HomeClusterLabs Projects

High: PE: Implement three recovery policies based on op_status and op_rc

Description

High: PE: Implement three recovery policies based on op_status and op_rc

Three types of failure recovery:

  • soft ::= stop and retry
  • hard ::= stop and retry - current node is excluded
  • fatal ::= stop - all nodes are excluded

OCF Return Codes:

  • OCF_SUCCESS=0 N/A
  • OCF_ERR_GENERIC=1 soft
  • OCF_ERR_ARGS=2 fatal
  • OCF_ERR_UNIMPLEMENTED=3 hard
  • OCF_ERR_PERM=4 hard
  • OCF_ERR_INSTALLED=5 hard
  • OCF_ERR_CONFIGURED=6 fatal
  • OCF_NOT_RUNNING=7 N/A or soft depending on the context
  • OCF_RUNNING_MASTER=8 N/A
  • OCF_FAILED_MASTER=9 soft
  • Any other value soft

Operation status (from enum op_status_t):

  • LRM_OP_PENDING = -1, soft
  • LRM_OP_DONE, N/A
  • LRM_OP_CANCELLED, N/A
  • LRM_OP_TIMEOUT, soft
  • LRM_OP_NOTSUPPORTED, hard
  • LRM_OP_ERROR depends on rc value

Mercurial revision: 77d174805a67cd9b5f246af34d05f68be212ee5c

Details

Provenance
Andrew Beekhof <andrew@beekhof.net>Authored on Jan 8 2008, 10:34 AM
Parents
rP7a94dc29c49c: Medium: AIS: Read a number of configuration variables from openais.conf
Branches
Unknown
Tags
Unknown

Event Timeline