Triggering a fixed hook as part of upgrade-charm

Kapil Thangavelu kapil.thangavelu at canonical.com
Thu Apr 4 15:02:38 UTC 2013


On Thu, Apr 4, 2013 at 10:57 AM, William Reade
<william.reade at canonical.com>wrote:

> On Thu, 2013-04-04 at 15:40 +0100, Tom Haddon wrote:
> > The particular case here is that we don't actually have a relation
> > error, we just want to change the implementation of the hook. Can you
> > run "juju resolved --retry unit_name [relation_name]" even if there's no
> > error?
>
> Ah, that's a bit trickier. but... with judicious use of the various
> relation-* hook tools, you should be able to retrieve all the
> information that the past hooks had access to, and should thus be able
> to reconstruct anything you had previously constructed from that info.
>
> FWIW, I should point out that juju-core's resolved has no
> [relation_name], because relation errors have been promoted to unit
> errors: as soon as any hook fails we stop and wait, rather than running
> further hooks in a potentially-broken context.
>


Just to be clear on behavior, while pyjuju does mark relation hook errors
separately, it also stops all hook execution on the unit on a relation hook
error.

cheers,

Kapil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20130404/a1447bba/attachment.html>


More information about the Juju mailing list