move already deployed service to new vps with different ip address.
Kapil Thangavelu
kapil.thangavelu at canonical.com
Wed Oct 15 22:27:06 UTC 2014
On Wed, Oct 15, 2014 at 3:32 PM, John Meinel <john at arbash-meinel.com> wrote:
> So if the machines are able to contact the API server, they should inform
> it of their new addresses, which should update the other charm to point at
> the new addresses.
> Note that with LXC you'd also have stable IP addresses for mysql and
> wordpress in their respective containers.
>
> (This might require 1.21, but I thought the IP address update changes
> landed in 1.20)
>
> i thought so to, but i don't see the address update behavior in 1.20.9
fwiw.
-k
> John
> =:->
>
> On Wed, Oct 15, 2014 at 4:21 PM, Vasiliy Tolstov <v.tolstov at selfip.ru>
> wrote:
>
>> 2014-10-15 11:08 GMT+04:00 John Meinel <john at arbash-meinel.com>:
>> > You could probably edit the /var/lib/juju/agents/unit-*/agent.conf and
>> > /var/lib/juju/agents/machine-*/agent.conf to change the IP addresses
>> stored
>> > there (everyone needs to know how to get back to the API server).
>> >
>> > Generally the API server filters out 127.0.0.1 when reporting its
>> possible
>> > addresses to other units, since *most* of the time they can't actually
>> > contact it at 127.*
>> > In fact, the only time it works is when they are colocated, if you used
>> > containers or VMs the 127.* address wouldn't ever work.
>> > And generally colocating your services with the API server is
>> considered a
>> > security issue. (You have to give your cloud credentials to the API
>> server
>> > if you want to let it start instances for you, but that information
>> should
>> > not be available to the services you deploy.)
>> >
>> > If you did deploy into containers (like juju deploy --to lxc:0) then the
>> > services would be isolated, and likely the API server would get a
>> 10.0.3.1
>> > address, which could be preserved between packing it up and putting it
>> > somewhere else.
>>
>>
>> Problem not in state server, as i see in wordpress config i have
>> address 10.0.2.15 as i understand in relation-change than i'm attach
>> mysql it gets it public_ip (that can't be 127 as it ignored).
>> As i understand i need to delete relation from wordpress to mysql and
>> add it again.. or not?
>>
>> --
>> Vasiliy Tolstov,
>> e-mail: v.tolstov at selfip.ru
>> jabber: vase at selfip.ru
>>
>
>
> --
> 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/20141016/6b814abd/attachment.html>
More information about the Juju
mailing list