Mailing List Archive

Re: [Pacemaker] A patch for stonith external/libvirt
Hi Owen,

On Wed, Oct 10, 2012 at 10:07:41AM +0100, Owen Le Blanc wrote:
> 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


> _______________________________________________
> Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
> 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

_______________________________________________________
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/
Re: [Pacemaker] A patch for stonith external/libvirt [ In reply to ]
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

On Thu, Oct 11, 2012 at 4:46 PM, Dejan Muhamedagic <dejanmm@fastmail.fm>wrote:

> Hi Owen,
>
> On Wed, Oct 10, 2012 at 10:07:41AM +0100, Owen Le Blanc wrote:
> > 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
>
>
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
> > 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
>
>
Re: [Pacemaker] A patch for stonith external/libvirt [ In reply to ]
On Thu, Oct 11, 2012 at 04:46:48PM +0200, Dejan Muhamedagic wrote:
> Hi Owen,
>
> On Wed, Oct 10, 2012 at 10:07:41AM +0100, Owen Le Blanc wrote:
> > 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

> Cheers,
>
> Dejan
>
> P.S. Moving discussion to linux-ha-dev.
>
> >
> > -- Owen Le Blanc
>
>
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
> > 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
>
> _______________________________________________________
> 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/
_______________________________________________________
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/
Re: [Pacemaker] A patch for stonith external/libvirt [ In reply to ]
Hi Holger,

On Fri, Oct 12, 2012 at 12:32:30PM +0200, Holger Teutsch wrote:
> Dejan,
> I'm no longer in "the cluster business".

Good luck!

> 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.

OK. The script supports the reboot method, but it still power
cycles by default.

Cheers,

Dejan

> Regards
> Holger
>
> On Thu, Oct 11, 2012 at 4:46 PM, Dejan Muhamedagic <dejanmm@fastmail.fm>wrote:
>
> > Hi Owen,
> >
> > On Wed, Oct 10, 2012 at 10:07:41AM +0100, Owen Le Blanc wrote:
> > > 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
> >
> >
> > > _______________________________________________
> > > Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
> > > 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
> >
> >

> _______________________________________________________
> 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/

_______________________________________________________
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/