Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache resource agent issues: grep exit code and improper OCF_CHECK_LEVEL usage #128

Closed
Alan-R opened this issue Aug 28, 2012 · 3 comments
Closed

Comments

@Alan-R
Copy link
Contributor

Alan-R commented Aug 28, 2012

In the apache resource agent, the code uses the exit code from grep directly - as though it were a proper OCF exit code. It is not.

This causes a "not running" condition to become "generic error" - which is not right. Pacemaker treats the two very differently.

The second problem is the non-conforming implementation of OCF_CHECK_LEVEL. The OCF specification states that if you receive an OCF_CHECK_LEVEL that you do not support, you are to treat it as the next lower level that you do support - and you're required to support OCF_CHECK_LEVEL of 0. In effect, this means that any positive OCF_CHECK_LEVEL is legal for any resource agent - unlike this implementation of the apache agent, which allows only one value.

@fghaas
Copy link
Member

fghaas commented Aug 28, 2012

Thanks Alan, makes perfect sense. Do you have the time and inclination to hack up a patch, or would you prefer that someone else do that?

@dmuhamedagic
Copy link
Contributor

On Tue, Aug 28, 2012 at 06:54:13AM -0700, Alan Robertson wrote:

In the apache resource agent, the code uses the exit code from grep directly - as though it were a proper OCF exit code. It is not.

This causes a "not running" condition to become "generic error" - which is not right. Pacemaker treats the two very differently.

The second problem is the non-conforming implementation of OCF_CHECK_LEVEL. The OCF specification states that if you receive an OCF_CHECK_LEVEL that you do not support, you are to treat it as the next lower level that you do support - and you're required to support OCF_CHECK_LEVEL of 0. In effect, this means that any positive OCF_CHECK_LEVEL is legal for any resource agent - unlike this implementation of the apache agent, which allows only one value.

Hi Alan, just replied to your email to the linux-ha-dev ML. I
guess we can keep the discussion to one place :)

@dmuhamedagic
Copy link
Contributor

Both issues fixed now. Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants