network-manager no longer restarts dnsmasq

Bug #1562111 reported by richud
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Low
Unassigned

Bug Description

restarting Network Manager does not have any effect on it's child dnsmasq (nor does stopping and starting)

ubuntu@ubuntu:~$ pidof dnsmasq
2355
ubuntu@ubuntu:~$ sudo systemctl restart NetworkManager
ubuntu@ubuntu:~$ pidof dnsmasq
2355

This problem started in 15.10 and still exists in 16.04 beta2 - it works as expected in 14.04.

The upshot is you cannot load any extra dnsmasq configuration set in the conf dir /etc/NetworkManager/dnsmasq.d/ because dnsmasq doesn't get restarted.

(As a related issue dnsmasq is also running as 'nobody' and I don't think it should, Bug #1105493)

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: network-manager 1.0.4-0ubuntu10
ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6
Uname: Linux 4.4.0-15-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Mar 25 18:13:33 2016
IfupdownConfig:
 # interfaces(5) file used by ifup(8) and ifdown(8)
 auto lo
 iface lo inet loopback
IpRoute:
 default via 192.168.0.1 dev wlp4s0 proto static metric 600
 169.254.0.0/16 dev wlp4s0 scope link metric 1000
 192.168.0.0/24 dev wlp4s0 proto kernel scope link src 192.168.0.107 metric 600
NetworkManager.state:
 [main]
 NetworkingEnabled=true
 WirelessEnabled=true
 WWANEnabled=true
 WimaxEnabled=true
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: network-manager
UpgradeStatus: No upgrade log present (probably fresh install)
nmcli-con:
 NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH
 Wired connection 1 53d8bcbd-4047-4705-904a-60eef9d821c1 802-3-ethernet 1458929440 Fri 25 Mar 2016 06:10:40 PM UTC yes 0 no /org/freedesktop/NetworkManager/Settings/1 no -- -- --
 Mosquito a88863fb-196e-4000-8103-880e0698d514 802-11-wireless 1458929448 Fri 25 Mar 2016 06:10:48 PM UTC yes 0 no /org/freedesktop/NetworkManager/Settings/0 yes wlp4s0 activated /org/freedesktop/NetworkManager/ActiveConnection/0
nmcli-dev:
 DEVICE TYPE STATE DBUS-PATH CONNECTION CON-UUID CON-PATH
 wlp4s0 wifi connected /org/freedesktop/NetworkManager/Devices/1 Mosquito a88863fb-196e-4000-8103-880e0698d514 /org/freedesktop/NetworkManager/ActiveConnection/0
 enp0s25 ethernet unavailable /org/freedesktop/NetworkManager/Devices/2 -- -- --
 lo loopback unmanaged /org/freedesktop/NetworkManager/Devices/0 -- -- --
nmcli-nm: Error: command ['nmcli', '-f', 'all', 'nm'] failed with exit code 2: Error: Object 'nm' is unknown, try 'nmcli help'.

Revision history for this message
richud (richud.com) wrote :
Revision history for this message
nivlac (carndt) wrote :

DNSMASQ runs as user nobody per design of dnsmasq devs.
from the manpage:

-u, --user=<username>
    Specify the userid to which dnsmasq will change after startup. Dnsmasq must normally be started as root, but it will drop root privileges after startup by changing id to another user. Normally this user is "nobody" but that can be over-ridden with this switch.

Revision history for this message
richud (richud.com) wrote :

@nivlac: yes, not sure why I added that.

Anyway bug has been fixed now it seems, dnsmasq is now getting correctly restarted.

$ pidof dnsmasq
16166 1693 1692
$ systemctl restart NetworkManager
$ pidof dnsmasq
16966 1693 1692

(1692/3 are libvirt, so not restarted)

Changed in network-manager (Ubuntu):
importance: Undecided → Low
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers