Triggering a fixed hook as part of upgrade-charm

William Reade william.reade at canonical.com
Thu Apr 4 14:57:14 UTC 2013


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.

Cheers
William





More information about the Juju mailing list