HomeClusterLabs Projects

Exit with OCF_ERR_INSTALLED on manifest or env var lookup failure
c6141ae67937Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or 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
rR2eaa7bf131d5: Uniform error log message formatting
Branches
Unknown
Tags
Unknown

Event Timeline