instalation breaks network interface settings

Bug #1026622 reported by Paul Crawford
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
rpcbind (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When I installed rpcbind on Ubuntu 12.04 (32-bit) version (by means of old 'potrtmap' package) I found that it broke the settings in /etc/network/interfaces by commenting out the last line that configured eth0 for DHCP, etc.

Original file had this as the last 3 lines:

# The primary network interface
auto eth0
iface eth0 inet dhcp

After installing rpcbind it had done this:

# The primary network interface
auto eth0
#NetworkManager#iface eth0 inet dhcp

As a result, when I rebooted there was no remote log-in, etc.

$ lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04

$ apt-cache policy rpcbind
rpcbind:
  Installed: 0.2.0-7ubuntu1.1
  Candidate: 0.2.0-7ubuntu1.1
  Version table:
 *** 0.2.0-7ubuntu1.1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
        100 /var/lib/dpkg/status
     0.2.0-7ubuntu1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ precise/main i386 Packages

I expected to be able to install this package and still have a working network interface!

Revision history for this message
Paul Crawford (psc-sat) wrote :

Actually this is not quite true. It turns out on the next machine that this change was done earlier (Friday 13th, with interfaces.bak-0 file having the uncommented line), but it results in the system breaking once rpcbind, nis, etc has been added.

So before rpcbind & nis is installed, I can reboot and it works fine with the #NetworkManager# comment in place, but once installed it no longer brings the interface up unless I edit the file to remove #NetworkManager#

Revision history for this message
Paul Crawford (psc-sat) wrote :

It is strange. I have a script to install NIS and autofs, it installs the following packages:

portmap
nis
tcsh
nscd
autofs
rsh-client
rsh-server
nfs-kernel-server

Then it creates/updates some of the file (auto.master and so on) to suit out use.

If I install each package in turn and reboot, it comes up (but with around extra 30s delay or so later once NIS is installed). But if I run the script to install all in the one go then reboot I find that eth0 is out of use!

Removing the comment appears to make it boot to ping/SSH access quicker.

I guess this bug is probably a network manager one rather than rpcbind

Revision history for this message
Steve Langasek (vorlon) wrote :

I think this is unlikely to be a bug in either rpcbind or network-manager, but a bug in how your script is configuring things. It's normal for network-manager to comment out dhcp-only interfaces in /etc/network/interfaces, and for these network devices to be managed by network-manager; and rpcbind should in no way interfere with NM bringing up interfaces. This all works out of the box here for me and has for several releases.

Revision history for this message
Paul Crawford (psc-sat) wrote :

The odd thing is I ran the script after installing the packages one-by-one and it worked OK. Obviously it realised the packages were already installed so skipped doing anything there, then it set up the various files. However, it was still a bit slower to come up after reboot than when the comment-out section was removed.
The implication being something odd about installing several packages in the one apt-get command, which seems just as odd, or that the network manager had updated something in between (on the reboot between package installations) that prevented the loss of eth0.
Still, we need to change this entry anyway to a fixed IP address so it will become unimportant. Shame the reason is not known though.

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

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

Changed in rpcbind (Ubuntu):
status: New → Confirmed
Revision history for this message
Steve Langasek (vorlon) wrote :

Well, I don't know why someone else has just marked themselves as affected by this bug, but the bug is unreproducible and we have no leads on a solution; so I'm closing it as invalid.

Changed in rpcbind (Ubuntu):
status: Confirmed → Invalid
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.