Network Manager's Upstart configuration is wrong - Network Manager doesn't start in case of faulty ifupdown configuration

Bug #1371481 reported by Michael Schaller
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Confirmed
High
Unassigned
network-manager (Ubuntu)
Confirmed
High
Unassigned

Bug Description

Hi everyone,

If you add a faulty entry to ifupdown's configuration (/etc/network/interfaces or sourced in files) then Network Manager doesn't get started by Upstart.

As an example add this block for a non-existent network interface to /etc/network/interfaces:
auto bogus0
iface bogus0 inet dhcp

If you reboot your machine then Network Manager won't be started by Upstart.

The issue with Network Manager's Upstart configuration is that it starts on the following condition:
start on (local-filesystems
   and started dbus
   and static-network-up)

This is wrong as the static-network-up event is never emitted in case the ifupdown configuration is (partially) invalid.
In order to fix this issue please use the following start on condition:
start on (local-filesystems
   and started dbus
   and started networking)

This is an issue in all currently supported Ubuntu releases.
Please let me know if you have any further questions.

Best,

Michael Schaller

Revision history for this message
Michael Schaller (misch-9) wrote :

Mathieu, what do you think?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in network-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Margarita Manterola (marga-9) wrote :

I just spent two hours yesterday debugging this issue, Network Manager was not starting because there was a static interface configured that wasn't present.

The fix is simple and works, please apply it.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.