Networker shouldn't touch /etc/network/interfaces in a local environment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Critical
|
Michael Foord |
Bug Description
Steps to reproduce on trusty 13.04:
# create and start container
1. sudo lxc-create --name c1
2. sudo lxc-start --name c1
# get container ip
3. sudo lxc-ls --fancy
# bootstrap local env and manually provision container
4. juju bootstrap
5. juju addmachine ssh:ubuntu@
# destroy lxc
6. sudo lxc-stop --name c1
7. sudo lxc-destroy --name c1
You now have a broken network configuration. Restart your computer and you should be greeted by a message about the missing network configuration. You should now be unable to connect to the internet. To recover the network:
sudo restart network-manager
# or
sudo start network-manager
# or
sudo /etc/init.
# get indicator running in unity panel
/usr/bin/nm-applet
# fix boot time network config issue by adding the following to /etc/network/
auto lo
iface loinet loopback
Changed in juju-core: | |
assignee: | nobody → Michael Foord (mfoord) |
Changed in juju-core: | |
status: | Triaged → Won't Fix |
status: | Won't Fix → In Progress |
milestone: | none → next-stable |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
tags: |
added: network removed: networker |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
Changed in juju-core: | |
milestone: | next-stable → 1.21-alpha1 |
The problem stems from the recent changes in the networker worker. It's too eager to reconfigure /etc/network/ interfaces file to include existing NICs config from /etc/network/ interfaces. d/*.cfg. This is OK for MAAS and possibly other providers, but not for the local provider, as we shouldn't touch the users' network config like that.