Public bug reported:

$ ps axw | grep dnsm
14672 ?        S      0:00 dnsmasq -u lxc-dnsmasq --strict-order 
--bind-interfaces --pid-file=/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

$ sudo vi /etc/init/lxc-net.conf
# 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=/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

^^ 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=/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

## 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
ProcVersionSignature: User Name 3.2.0-29.46-virtual 3.2.24
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
Ec2AvailabilityZone: nova
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.conffile..etc.init.lxc.net.conf: [modified]
mtime.conffile..etc.init.lxc.net.conf: 2012-08-30T01:03:44.536628

** Affects: lxc (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug ec2-images precise

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1043588

Title:
  sudo restart lxc-net does not kill/restart dnsmasq

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1043588/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to