relation-* events for subordinate charms
Marco Ceppi
marco.ceppi at canonical.com
Fri Feb 5 14:49:56 UTC 2016
Hi Iain,
upgrade-charm is the /right/ step for this, however the problem is that
upgrade charm does not explicitly run all the previous hooks (events) that
fired. The files and updated hooks will only be run on future hook
invocations. What I'd recommend is to abstract the bits that do this
updating in the hook to a file that can be included/executed from other
hooks (like the upgrade-charm hook) so that you can refresh them as the
charms are upgraded.
Marco
On Fri, Feb 5, 2016 at 6:50 AM Iain Lane <laney at ubuntu.com> wrote:
> [ please keep me in CC as I'm not subscribed ]
>
> Hey,
>
> Just got redirected here from #juju.
>
> I have a charm appstream-dep11 that has a subordinate relationship to
> nrpe-external-master so that it can provide some nagios checks. I just
> wrote a hook nrpe-external-master-relation-changed that puts some files
> in the right directories for nagios/nrpe to pick them up. The problem is
> that when I ran "juju upgrade-charm --repository=charms/
> appstream-dep11", the hook wasn't called and so the checks aren't
> installed.
>
> Can anyone let me know what I'm doing wrong here? I ideally want to just
> be able to run upgrade-charm (or some other command) after dropping new
> checks in so that they are easily picked up and exported.
>
> Cheers,
>
> --
> Iain Lane [ iain at orangesquash.org.uk ]
> Debian Developer [ laney at debian.org ]
> Ubuntu Developer [ laney at ubuntu.com ]
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20160205/cdf300da/attachment.html>
More information about the Juju
mailing list