[Pkg-ganeti-devel] automatic failover with ganeti.

BRULÉ Yann Yann.BRULE at supinfo.com
Fri Oct 2 08:20:26 UTC 2009


Hi !

I try to download ganeti-watcher but I don't know where to find it. Someone could tell me where I can find it and how to configure it to do an automatic failover?

Thank you !

Have a good day.

-----Message d'origine-----
De : ganeti at googlegroups.com [mailto:ganeti at googlegroups.com] De la part de Sp4rKY
Envoyé : jeudi 17 septembre 2009 09:16
À : ganeti
Objet : Re: automatic failover with ganeti.


The testcases which are in the git are only for ganeti base classes.
I patched an executable script, which doesn't have any test script :)

Cheers,

Maxence

On 17 sep, 09:08, Loic Dachary <l... at dachary.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
>
> Sp4rKY wrote:
> > Ok, just made a quick-and-nasty patch :)
>
> > I have no time to test it atm, so if you can do so :) Please let me
> >  know if it works :)
>
> > Cheers,
>
> > Maxence
>
> > ================================= --- a/usr/sbin/ganeti-watcher    Thu
> > Sep 17 08:50:46 2009 +0200 +++ b/usr/sbin/ganeti-watcher    Thu Sep 17
> > 09:01:50 2009 +0200 @@ -253,6 +253,12 @@ op =
> > opcodes.OpActivateInstanceDisks(instance_name=self.name)
> > cli.SubmitOpCode(op, cl=client)
>
> > +  def Failover(self): +    """Encapsulates the failover of an
> > instance. + +    """ +    op =
> > opcodes.opFailoverInstance(instance_name=self.name) +
> > cli.SubmitOpCode(op, cl=client)
>
> > def GetClusterData(): """Get a list of instances on this cluster.
> > @@ -409,8 +415,14 @@
>
> > notepad.RecordRestartAttempt(instance) elif instance.state in
> > HELPLESS_STATES: -        if
> > notepad.NumberOfRestartAttempts(instance): -
> > notepad.RemoveInstance(instance) +        logging.info("Instance's
> > primary node is down, try to failover") +        try: +
> > instance.Failover() +
> > self.started_instances.add(instance.name) +        except
> > Exception: +          logging.exception("Error while failovering
> > instance %s", +                            instance.name) +
> > notepad.RecordRestartAttempt(instance) else: if
> > notepad.NumberOfRestartAttempts(instance):
> > notepad.RemoveInstance(instance) =================================
>
> Did you add a test to the test suite that validates it works as expected ?
>
> Cheers
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org
>
> iEYEARECAAYFAkqx4FEACgkQ8dLMyEl6F2058QCfZELq7/pq+ukLuHT7ZfeoE6hk
> 0uwAn2MEC2W2vzR7lVm5seIkmb79JtZ4
> =T59u
> -----END PGP SIGNATURE-----
>
>  loic.vcf
> < 1 000AfficherTélécharger



More information about the Pkg-ganeti-devel mailing list