any ways to update unit public address ?

2015-05-26 Thread Vasiliy Tolstov
Hi! users sometimes can changed their server ip address, does it
possible to change unit public address?
Or only way is to edit mongodb database on state server?

-- 
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru

-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Juju 1.24-beta5 is available for testing

2015-05-26 Thread Curtis Hovey-Canonical
# juju-core 1.24-beta5

A new development release of Juju, juju-core 1.24-beta5, is now available.
This release replaces version 1.24-beta4.


## Getting Juju

juju-core 1.24-beta5 is available for vivid and backported to earlier
series in the following PPA:

https://launchpad.net/~juju/+archive/devel

Windows and OS X users will find installers at:

https://launchpad.net/juju-core/+milestone/1.24-beta5

Development releases use the "devel" simple-streams. You must configure
the `agent-stream` option in your environments.yaml to use the matching
juju agents.

Upgrading from stable releases to development releases is not
supported. You can upgrade test environments to development releases
to test new features and fixes, but it is not advised to upgrade
production environments to 1.24-beta5.


## Notable Changes

This releases addresses stability and performance issues.


## Resolved issues

  * Lxc network.mtu setting not set consistently across hosts
Lp 1442257

  * Transaction collection (txns) grows without bound
Lp 1453785

  * Firewaller gets an exception if a machine is not provisioned
Lp 1454599

  * Jujud leaking file handles
Lp 1454697

  * Destroying a machine with a placed unit errors then destroys
anyway.
Lp 1455158


Finally

We encourage everyone to subscribe the mailing list at
juju-...@lists.canonical.com, or join us on #juju-dev on freenode.

-- 
Curtis Hovey
Canonical Cloud Development and Operations
http://launchpad.net/~sinzui

-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Re: any ways to update unit public address ?

2015-05-26 Thread Andrew Wilkins
On Tue, May 26, 2015 at 11:45 PM, Vasiliy Tolstov 
wrote:

> Hi! users sometimes can changed their server ip address, does it
> possible to change unit public address?
> Or only way is to edit mongodb database on state server?


Hi Vasiliy,

Do you mean in relation settings? The charm's config-changed hook
will be invoked when the machine addresses change. You can use this
hook to update a unit's relation settings.

There was a long thread about automatically updating the address,
but we didn't go there because it would break "proxy charms"; charms
that manage remote services, presenting addresses for remote machines.

Cheers,
Andrew


> --
> Vasiliy Tolstov,
> e-mail: v.tols...@selfip.ru
>
> --
> Juju-dev mailing list
> Juju-dev@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>
-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Re: any ways to update unit public address ?

2015-05-26 Thread Kapil Thangavelu
On Tue, May 26, 2015 at 4:36 PM, Andrew Wilkins <
andrew.wilk...@canonical.com> wrote:

> On Tue, May 26, 2015 at 11:45 PM, Vasiliy Tolstov 
> wrote:
>
>> Hi! users sometimes can changed their server ip address, does it
>> possible to change unit public address?
>> Or only way is to edit mongodb database on state server?
>
>
> Hi Vasiliy,
>
> Do you mean in relation settings? The charm's config-changed hook
> will be invoked when the machine addresses change. You can use this
> hook to update a unit's relation settings.
>
> There was a long thread about automatically updating the address,
> but we didn't go there because it would break "proxy charms"; charms
> that manage remote services, presenting addresses for remote machines.
>
>
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.

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.

you can manually modify the relation settings that convey private/public
address info with juju run ala
https://gist.github.com/kapilt/a61efcb4eaef9e685397

might be helpful if you could clarify the context that the public address
changed and how its causing a problem with a concrete example.

cheers,

Kapil



> Cheers,
> Andrew
>
>
>> --
>> Vasiliy Tolstov,
>> e-mail: v.tols...@selfip.ru
>>
>> --
>> Juju-dev mailing list
>> Juju-dev@lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>>
>
>
> --
> Juju-dev mailing list
> Juju-dev@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>
>
-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev