[Bug 1043588] Re: sudo restart lxc-net does not kill/restart dnsmasq
*** This bug is a duplicate of bug 703800 *** https://bugs.launchpad.net/bugs/703800 @jneff yes the same for me, so the workaround doesn't work... because the post-stop script try do delete the bridge but there is an error bridge lxcbr0 is still up; can't delete it if all containers are not stopped. After that if you try so start lxc-net there is a test if [ -d /sys/class/net/${LXC_BRIDGE} ]; then so as the bridge is already up the script exit and will not launch dnsmasq... I'm right? -- 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
[Bug 1043588] Re: sudo restart lxc-net does not kill/restart dnsmasq
*** This bug is a duplicate of bug 703800 *** https://bugs.launchpad.net/bugs/703800 In my tests on Ubuntu 14.04, the LXC dnsmasq process is restarted with: $ sudo restart lxc-net only when all guest containers are stopped. If one or more containers are running, the dnsmasq process is left running with its old settings when lxc-net is restarted. -- 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
Re: [Bug 1043588] Re: sudo restart lxc-net does not kill/restart dnsmasq
*** This bug is a duplicate of bug 703800 *** https://bugs.launchpad.net/bugs/703800 This happens because 'restart service' does not cause service's post-stop to be executed. Only it's pre-stop is executed. Note that if you want to stop the dnsmasq, you can work around this by doing stop lxc-net; start lxc-net The pre-start also would not be executed on a restart, so just changing the post-stop would not suffice. We'd have to change the pre-start to 'script'. I'm not sure whether there is any downside to doing so. status: confirmed importance: medium ** Changed in: lxc (Ubuntu) Importance: Low = Medium ** Changed in: lxc (Ubuntu) Status: Triaged = Confirmed -- 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
[Bug 1043588] Re: sudo restart lxc-net does not kill/restart dnsmasq
Scott I can reproduce the restart issue, but using start/stop dnsmasq was restarted: ubuntu@server-15281:~$ ps axw | grep dnsm 5367 ?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 ubuntu@server-15281:~$ sudo stop lxc-net lxc-net stop/waiting ubuntu@server-15281:~$ ps axw | grep dnsm 5409 pts/0S+ 0:00 grep --color=auto dnsm ubuntu@server-15281:~$ sudo start lxc-net lxc-net start/running ubuntu@server-15281:~$ ps axw | grep dnsm 5425 ?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 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. ** Changed in: lxc (Ubuntu) Status: New = Confirmed ** Changed in: lxc (Ubuntu) Importance: Undecided = Low ** Changed in: lxc (Ubuntu) Status: Confirmed = Triaged ** Also affects: lxc (Ubuntu Precise) Importance: Undecided Status: New ** Also affects: lxc (Ubuntu Quantal) Importance: Low Status: Triaged ** Changed in: lxc (Ubuntu Precise) Status: New = Triaged ** Changed in: lxc (Ubuntu Precise) Importance: Undecided = Low -- 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
[Bug 1043588] Re: sudo restart lxc-net does not kill/restart dnsmasq
*** This bug is a duplicate of bug 703800 *** https://bugs.launchpad.net/bugs/703800 Thanks for reporting this bug. This is actually a bug in upstart, not lxc, reported as bug 703800. I'll mark it as a duplicate. ** This bug has been marked a duplicate of bug 703800 init: restart command fails to restart main process when pre-stop stanza exists -- 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
[Bug 1043588] Re: sudo restart lxc-net does not kill/restart dnsmasq
-- 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