Handling IP address change

Andrew Wilkins andrew.wilkins at canonical.com
Tue Dec 9 02:53:02 UTC 2014


On Tue, Dec 9, 2014 at 10:31 AM, Stuart Bishop <stuart.bishop at canonical.com>
wrote:

> Hi.
>
> Does juju handle IP address changes of units yet? If so, what hooks
> can I expect to be invoked?
>

>From 1.21 onwards, config-changed will be fired whenever the unit's
addresses change.


>  - config-changed?
>  - relation-changed on every relation, changed unit side?
>  - relation-changed on every relation, related unit side?
>

Relation hooks will not fire (yet?).
For now, public-address will not be updated in the relation settings
automatically. There is a bug open for this.

I need to keep the 'host' attribute on my database relations in sync
> with the actual IP address (or in future, the IP address of one of the
> related proxies).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20141209/66712082/attachment.html>


More information about the Juju mailing list