Discussion:
[Linux-ha-dev] [Pacemaker] A patch for stonith external/libvirt
Dejan Muhamedagic
2012-10-11 14:46:48 UTC
Permalink
Hi Owen,
I attach a patch for the stonith agent external/libvirt. This agent
was failing on our machines because for rebooting machines it tried to
stop and then start them, which doesn't work on our system, while
rebooting them does. We have cluster glue version 1.0.8-2 installed
on a Debian system, with libvirt 0.9.12-3.
It would be good to have both, i.e. on-off and reboot method.
With a parameter which would specify the method. I wonder why
didn't the author put reboot in the first place. Holger?

Cheers,

Dejan

P.S. Moving discussion to linux-ha-dev.
-- Owen Le Blanc
_______________________________________________
http://oss.clusterlabs.org/mailman/listinfo/pacemaker
Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org
Dejan Muhamedagic
2012-10-15 11:24:14 UTC
Permalink
Post by Dejan Muhamedagic
Hi Owen,
I attach a patch for the stonith agent external/libvirt. This agent
was failing on our machines because for rebooting machines it tried to
stop and then start them, which doesn't work on our system, while
rebooting them does. We have cluster glue version 1.0.8-2 installed
on a Debian system, with libvirt 0.9.12-3.
It would be good to have both, i.e. on-off and reboot method.
With a parameter which would specify the method. I wonder why
didn't the author put reboot in the first place. Holger?
I modified the patch and introduced a reset_method parameter. It
defaults to power_cycle, so the default behaviour remains the
same.

Many thanks for the patch!

Cheers,

Dejan
Post by Dejan Muhamedagic
Cheers,
Dejan
P.S. Moving discussion to linux-ha-dev.
-- Owen Le Blanc
_______________________________________________
http://oss.clusterlabs.org/mailman/listinfo/pacemaker
Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org
_______________________________________________________
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Holger Teutsch
2012-10-12 10:32:30 UTC
Permalink
Dejan,
I'm no longer in "the cluster business".
I can not recall the reason but I suspect in my configuration nearly 2
years ago it was the other way round:
reboot did not work but stop/start did.

Regards
Holger
Post by Dejan Muhamedagic
Hi Owen,
I attach a patch for the stonith agent external/libvirt. This agent
was failing on our machines because for rebooting machines it tried to
stop and then start them, which doesn't work on our system, while
rebooting them does. We have cluster glue version 1.0.8-2 installed
on a Debian system, with libvirt 0.9.12-3.
It would be good to have both, i.e. on-off and reboot method.
With a parameter which would specify the method. I wonder why
didn't the author put reboot in the first place. Holger?
Cheers,
Dejan
P.S. Moving discussion to linux-ha-dev.
-- Owen Le Blanc
_______________________________________________
http://oss.clusterlabs.org/mailman/listinfo/pacemaker
Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org
Dejan Muhamedagic
2012-10-22 14:56:45 UTC
Permalink
Hi Holger,
Post by Holger Teutsch
Dejan,
I'm no longer in "the cluster business".
Good luck!
Post by Holger Teutsch
I can not recall the reason but I suspect in my configuration nearly 2
reboot did not work but stop/start did.
OK. The script supports the reboot method, but it still power
cycles by default.

Cheers,

Dejan
Post by Holger Teutsch
Regards
Holger
Post by Dejan Muhamedagic
Hi Owen,
I attach a patch for the stonith agent external/libvirt. This agent
was failing on our machines because for rebooting machines it tried to
stop and then start them, which doesn't work on our system, while
rebooting them does. We have cluster glue version 1.0.8-2 installed
on a Debian system, with libvirt 0.9.12-3.
It would be good to have both, i.e. on-off and reboot method.
With a parameter which would specify the method. I wonder why
didn't the author put reboot in the first place. Holger?
Cheers,
Dejan
P.S. Moving discussion to linux-ha-dev.
-- Owen Le Blanc
_______________________________________________
http://oss.clusterlabs.org/mailman/listinfo/pacemaker
Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org
_______________________________________________________
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Loading...