HomeClusterLabs Projects

Exit with OCF_ERR_INSTALLED on manifest or env var lookup failure
83255710f55bUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Exit with OCF_ERR_INSTALLED on manifest or env var lookup failure

The agent relies on the pod manifest existing. If it's not found or if
the requested environment variable is missing, the resource agent should
exit with $OCF_ERR_INSTALLED rather than $OCF_ERR_GENERIC or propagating
the jq exit code.

A comment was added to clarify the seemingly redundant file existence
check, which is kept for robustness.

Details

Provenance
clobranoAuthored on Thu, Apr 24, 5:13 AM
Parents
rR553821e80564: Uniform error log message formatting
Branches
Unknown
Tags
Unknown

Event Timeline