juju relation status

John Meinel john at arbash-meinel.com
Mon Aug 25 17:09:43 UTC 2014


My understanding was that some of this was possibly buggy charms, where you
don't want to start relating a charm to X until it is already related to Y
(front end vs backend sort of stuff).

John
=:->


On Mon, Aug 25, 2014 at 9:05 PM, Marco Ceppi <marco.ceppi at canonical.com>
wrote:

> My question is why do you need to run add-relation in a synchronous
> fashion?
>
>
> On Fri, Aug 22, 2014 at 9:02 AM, Chris Glass <chris.glass at canonical.com>
> wrote:
>
>> Charm-helpers uses a trick for this, which is to check if the
>> "private-address" key was set on the relation.
>> You can have a better look here:
>>
>> https://bazaar.launchpad.net/~charm-helpers/charm-helpers/devel/view/head:/charmhelpers/core/hookenv.py#L393
>>
>> Hope this helps :)
>>
>> - Chris
>>
>> On Fri, Aug 22, 2014 at 3:35 PM, Tudor Rogoz <rogoz at adobe.com> wrote:
>> > Hi,
>> >
>> > Does anyone knows how to determine when a relation is establish (when
>> the
>> > relation joined or relation changed hooks ended) ? The goal would be to
>> be
>> > able to synchronously run the “juju add-relation” command.
>> >
>> > Thanks,
>> > Tudor
>> >
>> > --
>> > Juju mailing list
>> > Juju at lists.ubuntu.com
>> > Modify settings or unsubscribe at:
>> > https://lists.ubuntu.com/mailman/listinfo/juju
>> >
>>
>> --
>> Juju mailing list
>> Juju at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju
>>
>
>
> --
> 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/20140825/ad7cfd17/attachment.html>


More information about the Juju mailing list