Re: Leadership Election Tools

2016-12-14 Thread Cory Johns
I think that's another nail in the coffin for @hook. You could work around it by having your @hook('upgrade-charm') handler unconditionally set a state (e.g., 'upgrade-charm'), and then have the state handler do the gating on leadership. This would also allow you to use the decorators for gating

Re: Leadership Election Tools

2016-12-14 Thread Stuart Bishop
On 14 December 2016 at 00:39, Matthew Williams < matthew.willi...@canonical.com> wrote: > Hey Folks, > > Let's say I'm a charm author that wants to test leadership election in my > charm. Are there any tools available that will let me force leadership > election in juju so that I can test how my

Leadership Election Tools

2016-12-13 Thread Matthew Williams
Hey Folks, Let's say I'm a charm author that wants to test leadership election in my charm. Are there any tools available that will let me force leadership election in juju so that I can test how my charm handles it? I was looking at the docs here: