On Wed, Jun 08, 2011 at 11:01:12PM +0200, Raoul Bhatia [IPAX] wrote:
> On 08.06.2011 22:14, Dejan Muhamedagic wrote:
> >>as far as i can tell, the ocf ra behaves correctly and returns
> >>$OCF_NOT_RUNNING:
> >>
> >>>postfix_validate_all
> >>>ret=$?
> >>>
> >>>#echo "debug[$1:$ret]"
> >>>LSB_STATUS_STOPPED=3
> >>>if [ $ret -ne $OCF_SUCCESS ]; then
> >>>     case $1 in
> >>>     stop)       exit $OCF_SUCCESS ;;
> >>>     monitor)    exit $OCF_NOT_RUNNING;;
> >>>     status)     exit $LSB_STATUS_STOPPED;;
> >>>     *)          exit $ret;;
> >>>     esac
> >>>fi
> >>
> >>the error remains nevertheless. should we do anything about this?
> >
> >What exactly do you mean by "the error remains"?
> >
> >If you want to reduce the severity of the error message use
> >ocf_is_probe (or however it's called). The resource agent behaves
> >well.
> 
> while testing, i came across the following problem:
> 
> >Jun  8 22:57:59 m02 crm_resource: [22052]: info: Invoked: crm_resource -C -r 
> >m-mail-postfix -H m01
> >Jun  8 22:57:59 m02 crm_resource: [22059]: info: Invoked: crm_resource -C -r 
> >m-mail-postfix -H m02
> >Jun  8 22:57:59 m02 crmd: [19558]: info: do_lrm_invoke: Removing resource 
> >m-mail-postfix from the LRM
> >Jun  8 22:57:59 m02 crmd: [19558]: info: do_lrm_invoke: Resource 
> >'m-mail-postfix' deleted for 22059_crm_resource on m02
> >Jun  8 22:57:59 m02 crmd: [19558]: info: notify_deleted: Notifying 
> >22059_crm_resource on m02 that m-mail-postfix was deleted
> >Jun  8 22:57:59 m02 crmd: [19558]: info: send_direct_ack: ACK'ing resource 
> >op m-mail-postfix_delete_60000 from 0:0:crm-resource-22059: 
> >lrm_invoke-lrmd-1307566679-18
> >Jun  8 22:58:00 m02 crmd: [19558]: info: do_lrm_rsc_op: Performing 
> >key=20:42077:7:376c6c26-8c72-486f-b72f-a92a04a8f294 
> >op=m-mail-postfix_monitor_0 )
> >Jun  8 22:58:00 m02 lrmd: [19555]: info: rsc:m-mail-postfix:52: probe
> >Jun  8 22:58:02 m02 postfix[22060]: ERROR: Postfix configuration directory 
> >'/data/mail/conf' does not exist. 3
> >Jun  8 22:58:02 m02 crmd: [19558]: info: process_lrm_event: LRM operation 
> >m-mail-postfix_monitor_0 (call=52, rc=7, cib-update=75, confirmed=true) not 
> >running
> 
> 
> does this mean that there is a new "probe" action?
> (see lrmd: [19555]: info: rsc:m-mail-postfix:52: probe)

After cleanup (rsc removal from LRM) there's a probe and the RA
says not running, everything's fine. The only thing is that the
message severity should be reduced to warning or info.

Thanks,

Dejan

> if so, shouldn't we handle it similar to the monitoring case above?
> 
> thanks,
> raoul
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to