B.3. How are OCF Return Codes Interpreted?
The first thing the cluster does is to check the return code against the expected result. If the result does not match the expected value, then the operation is considered to have failed and recovery action is initiated.
There are three types of failure recovery:
Table B.3. Types of recovery performed by the cluster
Type
|
Description
|
Action Taken by the Cluster
|
---|
soft
|
A transient error occurred
|
Restart the resource or move it to a new location
|
hard
|
A non-transient error that may be specific to the current node occurred
|
Move the resource elsewhere and prevent it from being retried on the current node
|
fatal
|
A non-transient error that will be common to all cluster nodes (eg. a bad configuration was specified)
|
Stop the resource and prevent it from being started on any cluster node
|
Assuming an action is considered to have failed, the following table outlines the different OCF return codes and the type of recovery the cluster will initiate when it is received.