incorrect private address when using manual provider
Andrew McDermott
andrew.mcdermott at canonical.com
Mon May 16 13:50:56 UTC 2016
Hi Matt,
For the manual provider the preferred public and private addresses are
taken from the initial bootstrap host address. Once set, they don't change.
I'm assuming, as you mention private addresses, that a charm is getting
the wrong address from `unit-get private-address'. You can force a
preferred private address by bootstrapping against a particular IP
address.
For example, I tried bootstrapping to a node which has 4 NICs, all in
10.11.19.0/24, and two VLANs (10.10.1.0/24 and 192.168.200.0/24):
$ juju bootstrap private-address-issue manual/maas19-node3.maas19
`juju status' shows me that the public address is maas19-node3.maas19:
$ juju status
[Machines]
ID STATE DNS INS-ID SERIES AZ
0 started maas19-node3.maas19 manual: trusty
verified by DNS:
$ dig maas19-node3.maas19 +short
10.11.19.115
$ dig -x 10.11.19.115 +short
maas19-node3.maas19.
and I can observe that the preferred private address is:
$ juju deploy ubuntu --to 0 --series trusty
$ juju run --unit ubuntu/0 -- 'unit-get public-address'
maas19-node3.maas19
$ juju run --unit ubuntu/0 -- 'unit-get private-address'
maas19-node3.maas19
If I bootstrap to a specific IP address:
$ juju bootstrap private-address-issue manual/10.11.19.11
and run the deploy/run sequence again I see that the private address is
set to the public address:
$ juju deploy ubuntu --to 0 --series trusty
$ juju run --unit ubuntu/0 -- 'unit-get public-address'
10.11.19.11
$ juju run --unit ubuntu/0 -- 'unit-get private-address'
10.11.19.11
Right now we don't have a mechanism to inform the manual provider what
the preferred private address should be. For the moment it seems that,
given your known network topology on the machine you are deploying to,
you should bootstrap using the address that you want to be the preferred
private address.
On 5 May 2016 at 01:45, Matt Rae <matt.rae at canonical.com> wrote:
> Hi we're seeing an issue where the juju private-address is chosen
> incorrectly when using the manual provider on a host with multiple
> interfaces.
>
> Are there any details regarding how the private-address is chosen when
> using the manual provider?
>
> Matt
>
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
>
--
Andrew McDermott <andrew.mcdermott at canonical.com>
Juju Core Sapphire team <http://juju.ubuntu.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20160516/93cc8eee/attachment.html>
More information about the Juju
mailing list