[SRU] dnsmasq doesn't start on boot because its interface isn't up yet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
One Hundred Papercuts |
Confirmed
|
High
|
Unassigned | ||
dnsmasq (Debian) |
New
|
Unknown
|
|||
dnsmasq (Ubuntu) |
Confirmed
|
Low
|
Unassigned | ||
Xenial |
Won't Fix
|
Low
|
Unassigned | ||
Bionic |
Confirmed
|
Low
|
Unassigned |
Bug Description
[Impact]
dnsmasq will fail to respond on network devices that weren't up when its
service started, thus not binding as expected.
[Test Case]
TBD
[Regression Potential]
The fix is just configuring the order of service startup, so is unlikely to create any regressions. Things to watch would be service related misbehaviors and general availability of the dnsmasq functionality.
[Fix]
Straightforward packaging fix to the service to make it delay startup
until after the network is online.
[Discussion]
[Original Report]
My dnsmasq instance uses "interface=br-vz0" and the interface br-vz0 is managed manually in /etc/network/
During boot, dnsmasq is started before br-vz0 is created and this causes dnsmasq to exit:
Jan 5 08:56:16 simon-laptop dnsmasq[1008]: dnsmasq: unknown interface br-vz0
Jan 5 08:56:16 simon-laptop dnsmasq[1008]: unknown interface br-vz0
Jan 5 08:56:16 simon-laptop dnsmasq[1008]: FAILED to start up
Jan 5 08:56:17 simon-laptop NetworkManager[
...
Jan 5 08:56:18 simon-laptop NetworkManager[
...
Jan 5 08:56:18 simon-laptop NetworkManager[
Jan 5 08:56:18 simon-laptop NetworkManager[
Jan 5 08:56:18 simon-laptop NetworkManager[
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: dnsmasq 2.75-1
ProcVersionSign
Uname: Linux 4.3.0-5-generic x86_64
ApportVersion: 2.19.3-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Jan 5 09:53:30 2016
PackageArchitec
SourcePackage: dnsmasq
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in dnsmasq (Ubuntu): | |
importance: | Undecided → High |
Changed in hundredpapercuts: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in dnsmasq (Ubuntu): | |
assignee: | nobody → David Britton (davidpbritton) |
assignee: | David Britton (davidpbritton) → nobody |
Changed in dnsmasq (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in hundredpapercuts: | |
status: | Confirmed → In Progress |
assignee: | nobody → David Britton (davidpbritton) |
Changed in dnsmasq (Debian): | |
status: | Unknown → New |
Changed in dnsmasq (Ubuntu): | |
status: | In Progress → Confirmed |
Changed in hundredpapercuts: | |
status: | In Progress → Confirmed |
summary: |
- dnsmasq doesn't start on boot because its interface isn't up yet + [SRU] dnsmasq doesn't start on boot because its interface isn't up yet |
description: | updated |
description: | updated |
description: | updated |
tags: | added: network-online-ordering |
Adding the following to the [Unit] section of dnsmasq.service fixes the problem:
After= network- online. target network- online. target
Wants=