Hi,

I was recently using the Apache resource agent, and discovered a few 
problems:

     The exit code from grep was used directly as an OCF exit code.
             It is NOT an OCF exit code, and should not be directly used 
in this way.
             This caused a "not running" error to become a generic error.
             Pacemaker reacts very differently to the two kinds of errors.

       This code occurred in two places.

The resource agent used OCF_CHECK_LEVEL improperly.

The specification says that if you receive an OCF_CHECK_LEVEL which you 
do not support, you are required to interpret it as the next lower 
supported value for OCF_CHECK_LEVEL.

In effect, there are no invalid OCF_CHECK_LEVEL values.  The Apache 
agent declared all values but one to be errors.  This is not the correct 
behavior.

-- 
     Alan Robertson <al...@unix.sh> - @OSSAlanR

"Openness is the foundation and preservative of friendship...  Let me claim 
from you at all times your undisguised opinions." - William Wilberforce
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to