[Linux-HA] OCF_ERROR_GENERIC

2009-02-04 Thread lakshmipadmaja maddali
Hi all,

I have a strange issue, that ocf_error_generic is being
ingored at times.

   For example, suppose in the start function of the ocf script if I
   explicity return ocf_error_generic, the services should shift to the
   secondary node as of my knowledge, but that's not happening.  Instead,
   heartbeat is calling monitor function again and again.
   But if I explicity mention exit(1) in the start function, then the
   heartbeat shifts its services to the secondary node.

   Same is the case with any function in the ocf script.

   So, why this is happening!!

   Please help me out.

   Regards,
   padmaja
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] OCF_ERROR_GENERIC

2009-02-04 Thread Dominik Klein
It is OCF_ERR_GENERIC, not OCF_ERROR_GENERIC. Read
/usr/lib/ocf/resource.d/heartbeat/.ocf-returncodes

You can also use ocf-tester to test your ocf script.

Regards
Dominik

lakshmipadmaja maddali wrote:
 Hi all,
 
 I have a strange issue, that ocf_error_generic is being
 ingored at times.
 
For example, suppose in the start function of the ocf script if I
explicity return ocf_error_generic, the services should shift to the
secondary node as of my knowledge, but that's not happening.  Instead,
heartbeat is calling monitor function again and again.
But if I explicity mention exit(1) in the start function, then the
heartbeat shifts its services to the secondary node.
 
Same is the case with any function in the ocf script.
 
So, why this is happening!!
 
Please help me out.
 
Regards,
padmaja
 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems
 

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems