dnsmasq-base should ship the dnsmasq dbus configuration file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dnsmasq (Ubuntu) |
Fix Released
|
Medium
|
Mathieu Trudel-Lapierre | ||
Precise |
Fix Released
|
Medium
|
Mathieu Trudel-Lapierre |
Bug Description
[Rationale]
Required for network-manager SRU for bug 1004775:
To properly handle updating DNS nameservers in the dnsmasq instance spawned by NetworkManager; it would require starting dnsmasq with dbus enabled so that all future dns changes could be done through that API. Unfortunately, dnsmasq currently ships the dbus configuration file along with an init script as part of the 'dnsmasq' package; which, when installed and improperly configured can conflict with the dnsmasq instance used by network-manager. Furthermore, the additional files provided by 'dnsmasq' are not required. Moving the dbus config file from 'dnsmasq' to 'dnsmasq-base' allows users of the standalone binary to start dnsmasq with dbus enabled without requiring the additional installation of the 'dnsmasq' package and the init script and other configuration files it provides.
[Test case]
Requirements: the 'dnsmasq-base' package must be installed; the 'dnsmasq' package must *NOT* be installed.
1) Start a terminal
2) sudo stop network-manager # network-manager interferes with the test, since it starts dnsmasq.
2) Attempt to start dnsmasq with the following command:
'sudo dnsmasq --enable-dbus'
Without the file shipped with dnsmasq-base:
dnsmasq: Erreur DBus : Connection ":1.64" is not allowed to own the service "uk.org.
With the file; dnsmasq should start successfully.
Other instances may interfere with the test case; if you get an error such as "address already in use"; first kill off other running instances of dnsmasq.
[Regression Potential]
Minimal; would have to be misexecution of the patch; through an error in the packaging (ie. incorrect package dependencies) could cause dnsmasq to refuse to start with --enable-dbus. That function isn't used by any of the packages we ship by default at this point.
---
/etc/dbus-
dnsmasq-base should ship the file along with the dnsmasq binary; all other arch-indep files from dnsmasq can stay where they are.
Changed in dnsmasq (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Mathieu Trudel-Lapierre (mathieu-tl) |
description: | updated |
Changed in dnsmasq (Ubuntu Precise): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Mathieu Trudel-Lapierre (mathieu-tl) |
description: | updated |
Changed in dnsmasq (Ubuntu Precise): | |
status: | In Progress → Triaged |
Changed in dnsmasq (Ubuntu Precise): | |
status: | Triaged → In Progress |
This bug was fixed in the package dnsmasq - 2.62-3ubuntu1
---------------
dnsmasq (2.62-3ubuntu1) quantal; urgency=low
* debian/rules: install the dnsmasq dbus configuration in dnsmasq-base, since dnsmasq. conffiles, debian/ dnsmasq- base.conffiles: make sure the dbus
users of the standalone binary might want to use DBus (ie. NetworkManager).
(LP: #1029977)
* debian/control: dnsmasq-base Breaks/Replaces dnsmasq (<< 2.62-3ubuntu1) due
to the file move.
* debian/
configuration file is properly listed as such.
-- Mathieu Trudel-Lapierre <email address hidden> Tue, 24 Jul 2012 08:57:45 -0400