sudo restart lxc-net does not kill/restart dnsmasq
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Confirmed
|
Medium
|
Unassigned | ||
Precise |
Triaged
|
Low
|
Unassigned | ||
Quantal |
Triaged
|
Low
|
Unassigned |
Bug Description
$ ps axw | grep dnsm
14672 ? S 0:00 dnsmasq -u lxc-dnsmasq --strict-order --bind-interfaces --pid-file=
$ sudo vi /etc/init/
# change parameters for dnsmasq
$ sudo restart lxc-net
$ ps axw | grep dnsm
14672 ? S 0:00 dnsmasq -u lxc-dnsmasq --strict-order --bind-interfaces --pid-file=
^^ Note, restart did not get new dnsmasq pid or settings
$ sudo stop lxc-net
lxc-net stop/waiting
$ sudo start lxc-net
lxc-net start/running
$ ps axw | grep dnsm
14672 ? S 0:00 dnsmasq -u lxc-dnsmasq --strict-order --bind-interfaces --pid-file=
## Note stop, start did not get new dnsmasq settings
$ sudo stop lxc-net
$ sudo kill 14672
$ sudo start lxc-net
lxc-net start/running
$ ps axw | grep dnsm
32299 pts/0 S+ 0:00 grep --color=auto dnsm
## Note, no dnsmasq was started
$ sudo reboot
## on reboot new settings will take affect
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: lxc 0.7.5-3ubuntu62
ProcVersionSign
Uname: Linux 3.2.0-29-virtual x86_64
ApportVersion: 2.0.1-0ubuntu12
Architecture: amd64
Date: Thu Aug 30 01:04:46 2012
Ec2AMI: ami-0000013e
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
ProcEnviron:
TERM=screen
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
mtime.conffile.
Scott
I can reproduce the restart issue, but using start/stop dnsmasq was restarted:
ubuntu@ server- 15281:~ $ ps axw | grep dnsm /var/run/ lxc/dnsmasq. pid --conf-file= --listen-address 10.0.3.1 --dhcp-range 10.0.3.2,10.0.3.254 --dhcp- lease-max= 253 --dhcp-no-override --except- interface= lo --interface=lxcbr0 server- 15281:~ $ sudo stop lxc-net server- 15281:~ $ ps axw | grep dnsm server- 15281:~ $ sudo start lxc-net server- 15281:~ $ ps axw | grep dnsm /var/run/ lxc/dnsmasq. pid --conf-file= --listen-address 10.0.3.1 --dhcp-range 10.0.3.2,10.0.3.254 --dhcp- lease-max= 253 --dhcp-no-override --except- interface= lo --interface=lxcbr0
5367 ? S 0:00 dnsmasq -u lxc-dnsmasq --strict-order --bind-interfaces --pid-file=
ubuntu@
lxc-net stop/waiting
ubuntu@
5409 pts/0 S+ 0:00 grep --color=auto dnsm
ubuntu@
lxc-net start/running
ubuntu@
5425 ? S 0:00 dnsmasq -u lxc-dnsmasq --strict-order --bind-interfaces --pid-file=
I did get confused by the duplicated configuration entries for network ranges in /etc/default/lxc and /etc/init/ lxc-net. conf.
Marking 'Low' as I think it only impacts the restart case - which can be worked around using stop/start lxc-net.