Comment 10 for bug 1416928

Revision history for this message
Curtis Hovey (sinzui) wrote :

We see evidence that the manual-provider test case was broken by a separate change. We can see 1.21 was passing the case until a recent backport of a feature from master. I will split the manual case from this bug.

The case of a working stack switching the apiaddresses to an lxcbr0 address can be seen with these steps with 1.21 on a real cloud.
1. juju bootstrap
2. deploy ubuntu
3. juju ssh 0 "sudo apt-get install -y lxc"
4. reboot -n
The agents will then fail

~$ sudo grep -A 1 apiaddresses /var/lib/juju/agents/machine-0/agent.conf
apiaddresses:
- 10.0.3.1:17070

$ sudo grep -A 1 apiaddresses /var/lib/juju/agents/machine-1/agent.conf
apiaddresses:
- 10.0.3.1:17070

This issue also happen when bootstrapping 1.20, installing lxc, reboot, then upgrade to 1.21. This is my command line for the fewest steps:
juju bootatrap
juju ssh 0 "sudo grep -A 1 apiaddresses /var/lib/juju/agents/machine-0/agent.conf"
  apiaddresses:
  - 10.185.145.253:17070
juju ssh 0 "sudo apt-get install -y lxc"
juju ssh 0 "sudo reboot -n"
juju ssh 0 "sudo grep -A 1 apiaddresses /var/lib/juju/agents/machine-0/agent.conf"
  apiaddresses:
  - 10.0.3.1:17070