after installation, nm reports eth0 as a not managed network device

Bug #790604 reported by Jean-Baptiste Lallement
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netcfg (Ubuntu)
Fix Released
Medium
Mathieu Trudel-Lapierre
network-manager (Ubuntu)
Fix Released
Medium
Mathieu Trudel-Lapierre

Bug Description

Binary package hint: network-manager

ISO Testing: Ubuntu Desktop Alternate 20110531 i386/amd64

After installation of the alternate image, reboot and login, the user is unable to manage the ethernet card with network-manager. nm-applet reports "Wired Network/Device not managed"

/etc/network/interfaces contains the lines :
# The primary network interface
auto eth0
iface eth0 inet dhcp

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: network-manager 0.8.4-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.39-3.10-generic 2.6.39
Uname: Linux 2.6.39-3-generic x86_64
Architecture: amd64
CRDA: Error: [Errno 2] No such file or directory
Date: Tue May 31 12:57:29 2011
Gconf:

InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110530)
IpRoute:
 default via 10.0.2.2 dev eth0 metric 100
 10.0.2.0/24 dev eth0 proto kernel scope link src 10.0.2.15
 169.254.0.0/16 dev eth0 scope link metric 1000
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
Keyfiles: Error: [Errno 2] No such file or directory
NetworkManager.state:
 [main]
 NetworkingEnabled=true
 WirelessEnabled=true
 WWANEnabled=true
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
RfKill:

SourcePackage: network-manager
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Hi Jean-Baptiste,

This is expected behaviour when eth0 is configured in /etc/network/interfaces. However, while the device shows as "not managed", you should still see applications as aware they are online (for instance, Evolution should be able to get online to retrieve mail without clicking "Work offline", and empathy should connect without issues as well).

Could you please verify this?

Thanks.

Changed in network-manager (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

It appears to be an issue specific to the alternate CD. First guess says this is something done differently in netcfg, but I haven't looked at all yet.

As another option, we could start using the ifblacklist script in NM to change /etc/network/interfaces when NM is installed (and revert when it's removed).

affects: network-manager (Ubuntu) → debian-installer (Ubuntu)
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

The network card if up and listed in ifconfig and an IP address is associated.
My point is that with the desktop image the user is able to manage the wired interface with network manager and not with an installation from an alternate image. In this case eth0 is filled in /etc/network/interfaces.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Changelog

netcfg (1.62ubuntu1) oneiric; urgency=low

  * Resynchronise with Debian. Remaining changes:
    - Set default hostname to 'ubuntu'.
    - Drop priority of netcfg/get_domain to medium for non-static
      configurations.
    - Use 'auto <interface>' for all interfaces, dropping allow-hotplug
      which doesn't work with current udev.
    - Call /usr/lib/network-manager/ifblacklist_migrate.sh from
      finish-install if present, so that 'auto dhcp' interfaces are disabled
      if network-manager is in use. May be preseeded away with
      netcfg/network-manager.

So it's really an issue in network-manager, seems like we're dropping ifblacklist_migrate.sh now.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

To avoid an unnecessary delta with Debian, I'll keep ifblacklist_migrate.sh installed in /usr/lib/NetworkManager instead of /usr/lib/network-manager, this means we'll also need a small update to netcfg.

affects: debian-installer (Ubuntu) → netcfg (Ubuntu)
Changed in netcfg (Ubuntu):
assignee: nobody → Mathieu Trudel-Lapierre (mathieu-tl)
status: Incomplete → In Progress
Changed in network-manager (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Mathieu Trudel-Lapierre (mathieu-tl)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package network-manager - 0.8.9997-1ubuntu2

---------------
network-manager (0.8.9997-1ubuntu2) oneiric; urgency=low

  * debian/rules: re-install ifblacklist-migrate.sh so installs from the
    alternate image correctly factor out devices managed by NetworkManager.
    (LP: #790604)
 -- Mathieu Trudel-Lapierre <email address hidden> Tue, 31 May 2011 10:06:33 -0400

Changed in network-manager (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package netcfg - 1.62ubuntu2

---------------
netcfg (1.62ubuntu2) oneiric; urgency=low

  * finish-install.d/55netcfg: call ifblacklist_migrate.sh from
    /usr/lib/NetworkManager now. (LP: #790604)
 -- Mathieu Trudel-Lapierre <email address hidden> Tue, 31 May 2011 16:02:49 +0100

Changed in netcfg (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
DavidWhyte (david-whyte) wrote :

I believe that this may still be an issue with the mini.iso image. I installed 11.10 to my Dell mini 9, using the mini.iso image and used a wired connection to download the install packages etc. Afterwards, my /etc/network/interfaces config had eth0 listed and nm was unable to manage the connection.

I removed the eth0 lines from the config file, restarted the network-manager service and everything seemed to work much better.

FTR, I initially noticed I had a problem because my netbook would show messages indicating that it was 'waiting for network connection' during bootup.

Cheers!

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.