<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 26, 2015 at 4:36 PM, Andrew Wilkins <span dir="ltr"><<a href="mailto:andrew.wilkins@canonical.com" target="_blank">andrew.wilkins@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Tue, May 26, 2015 at 11:45 PM, Vasiliy Tolstov <span dir="ltr"><<a href="mailto:v.tolstov@selfip.ru" target="_blank">v.tolstov@selfip.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi! users sometimes can changed their server ip address, does it<br>
possible to change unit public address?<br>
Or only way is to edit mongodb database on state server?</blockquote><div><br></div></span><div>Hi Vasiliy,<div><br></div></div><div>Do you mean in relation settings? The charm's config-changed hook</div><div>will be invoked when the machine addresses change. You can use this</div><div>hook to update a unit's relation settings.</div><div><br></div><div>There was a long thread about automatically updating the address,</div><div>but we didn't go there because it would break "proxy charms"; charms</div><div>that manage remote services, presenting addresses for remote machines.</div><div><br></div></div></div></div></blockquote><div><br></div><div>relation settings only propagates private ip, which juju sets, and its imo bug that juju should update and invoke relation change hook if it changes and has the previously set value (ie. thus works w/ proxy charms). at least that was my summary going in and out of the that monster thread. at the moment juju doesn't update the addresses it set, but it will invoke config-changed when addresses changed afaicr but effectively zero charms are ready to handle that.</div><div><br></div><div>re public address, unit-get public-address makes it available as info into the charm, but there isn't a mechanism per-se to modify the address or notify wrt to that information.</div><div><br></div><div>you can manually modify the relation settings that convey private/public address info with juju run ala <a href="https://gist.github.com/kapilt/a61efcb4eaef9e685397">https://gist.github.com/kapilt/a61efcb4eaef9e685397</a></div><div><br></div><div>might be helpful if you could clarify the context that the public address changed and how its causing a problem with a concrete example.</div><div><br></div><div>cheers,</div><div><br></div><div>Kapil</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><div>Cheers,</div><div>Andrew</div><span class=""><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span><font color="#888888"><br>
--<br>
Vasiliy Tolstov,<br>
e-mail: <a href="mailto:v.tolstov@selfip.ru" target="_blank">v.tolstov@selfip.ru</a><br>
<br>
--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com" target="_blank">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
</font></span></blockquote></span></div><br></div></div>
<br>--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
<br></blockquote></div><br></div></div>