[Pacemaker] Cannot start VirtualDomain resource after restart

Kadlecsik József kadlecsik.jozsef at wigner.mta.hu
Wed Jun 20 16:34:47 UTC 2012


On Wed, 20 Jun 2012, emmanuel segura wrote:

> I readed the resource agent VirtualDomain and it's like that
> ====================================================
> VirtualDomain_Start() {
>     if VirtualDomain_Status; then
>         ocf_log info "Virtual domain $DOMAIN_NAME already running."
>         return $OCF_SUCCESS
>     fi
> 
>     virsh $VIRSH_OPTIONS start ${DOMAIN_NAME}
>     rc=$?
>     if [ $rc -ne 0 ]; then
>         ocf_log error "Failed to start virtual domain ${DOMAIN_NAME}."
>         return $OCF_ERR_GENERIC
>     fi
> 
>     while ! VirtualDomain_Monitor; do
>         sleep 1
>     done
>     return $OCF_SUCCESS
> }
> ============================================================

That is exatly why I thought the messages

Jun 20 11:57:25 atlas4 lrmd: [17568]: info: operation monitor[35] on lx0
for client 17571: pid 30179 exited with return code 7
Jun 20 11:57:25 atlas4 crmd: [17571]: debug: create_operation_update:
do_update_resource: Updating resouce lx0 after complete monitor op
(interval=0)
Jun 20 11:57:25 atlas4 crmd: [17571]: info: process_lrm_event: LRM
operation lx0_monitor_0 (call=35, rc=7, cib-update=61, confirmed=true) not
running


means a monitoring *before* the resource is attempted to be started. And 
therefore the return code is right.

Best regards,
Jozsef
--
E-mail : kadlecsik.jozsef at wigner.mta.hu
PGP key: http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address: Wigner Research Centre for Physics, Hungarian Academy of Sciences
         H-1525 Budapest 114, POB. 49, Hungary


More information about the Pacemaker mailing list