juju selects wrong address for API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Expired
|
High
|
Unassigned |
Bug Description
[Environment]
Distributor ID: Ubuntu
Description: Ubuntu 14.10
Release: 14.10
Codename: utopic
juju-core:
Installed: 1.24.0-
Candidate: 1.24.0-
Version table:
*** 1.24.0-
500 http://
100 /var/lib/
1.
500 http://
environments.yaml:
environments:
local:
type: local
lxc-clone: true
container: kvm
These are IPs my system has:
$ ip a | egrep -e '^ inet '
inet 127.0.0.1/8 scope host lo
inet 192.168.0.103/24 brd 192.168.0.255 scope global br0
inet 10.0.3.1/24 brd 10.0.3.255 scope global lxcbr0
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
inet 192.168.123.1/24 brd 192.168.123.255 scope global virbr1
inet 192.168.10.1/24 brd 192.168.10.255 scope global virbr2
inet 10.172.192.118/18 brd 10.172.255.255 scope global tun0
Steps to reproduce:
$ juju bootstrap
$ juju add-machine
The /var/lib/
# format 1.18
tag: machine-1
datadir: /var/lib/juju
[...]
stateaddresses:
- 192.168.0.103:37017
[...]
apiaddresses:
- 10.172.
[...]
values:
AGENT_
CONTAINER_TYPE: kvm
NAMESPACE: freyes-local
PROVIDER_TYPE: local
SECURE_
So the launched VM cannot connect to the API, the VM's IP address is in the subnet 192.168.0.0/24 so it should be connecting to 192.168.0.103 just like the state address.
tags: | added: kvm local-provider lxc network |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 1.25.0 |
Changed in juju-core: | |
milestone: | 1.25-alpha1 → 1.25-beta1 |
Changed in juju-core: | |
milestone: | 1.25-beta1 → 1.25-beta2 |
Changed in juju-core: | |
milestone: | 1.25-beta2 → 1.25.1 |
Changed in juju-core: | |
status: | Triaged → Incomplete |
Changed in juju-core: | |
milestone: | 1.26.0 → none |
This problem also surfaces in a MAAS environment with multiple subnets on the bootstrap node.