Bug 497924 - DHCP client NOT running, failed eth0 interface could not be set up until now
Summary: DHCP client NOT running, failed eth0 interface could not be set up until now
Status: RESOLVED DUPLICATE of bug 335486
Alias: None
Product: openSUSE 11.1
Classification: openSUSE
Component: Network (show other bugs)
Version: Final
Hardware: x86-64 openSUSE 11.1
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Marius Tomaschewski
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-24 10:40 UTC by Uwe Fest
Modified: 2014-12-14 17:37 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Fest 2009-04-24 10:40:23 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.0.8) Gecko/2009032600 SUSE/3.0.8-1.1.1 Firefox/3.0.8

The installation is an upgrade from opensuse 11.0 to opensuse 11.1.
The init-script network run not correctly on boot time.
On command line rcnetwork start is ok.
The configuration use dhcp4 client.
Error message on boot:
  eth0: RTL8168b/8111b at 0xf8f6e000, 00:17:31:87:44:be, IRQ 17
  doneWaiting for mandatory devices: eth0 __NSC__
  eth0 device: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
  eth0 DHCP client NOT running
  eth0 is down
  failed eth0 interface could not be set up until now

Solution:

script-part old:
for a in $(type_filter `ls -A /sys/class/net/`); do
        test -d /sys/class/net/$a || continue
        t=`get_iface_type $a`
        case "$t" in
                eth|tr|ib|wlan)
                        STAMPFILE=$STAMPFILE_STUB`cat /sys/class/net/$a/ifindex`
                        if [ "$MODE" = onboot -a "$ACTION" = start ] ; then
                                # skip interfaces (with active drivers)
                                # but not yet prepared by an
                                #   ifup -o hotplug
                                # call is triggered in udev rules.
                                # (may need rename to their final name)
                                if [ ! -e "$STAMPFILE" ] ; then
                                        continue
                                fi
                        fi
                        ;;
                lo|wlan_aux)
                        continue
                        ;;
        esac
        for b in $VIRTUAL_IFACES ; do
                if [ "$a" = "$b" ] ; then
                        NOT_PHYSICAL_IFACES="$NOT_PHYSICAL_IFACES $a"
                        continue 2
                fi
        done
        PHYSICAL_IFACES="$PHYSICAL_IFACES $a"
done

script-part new:
for a in $(type_filter `ls -A /sys/class/net/`); do
        test -d /sys/class/net/$a || continue
        t=`get_iface_type $a`
        case "$t" in
                eth|tr|ib|wlan)
                        STAMPFILE=$STAMPFILE_STUB`cat /sys/class/net/$a/ifindex`
                        if [ "$MODE" = onboot -a "$ACTION" = start ] ; then
                                # skip interfaces (with active drivers)
                                # but not yet prepared by an
                                #   ifup -o hotplug
                                # call is triggered in udev rules.
                                # (may need rename to their final name)
                                if [ ! -e "$STAMPFILE" ] ; then
                                        true            # correction
                                        # continue      # correction
                                fi
                        fi
                        ;;
                lo|wlan_aux)
                        continue
                        ;;
        esac
        for b in $VIRTUAL_IFACES ; do
                if [ "$a" = "$b" ] ; then
                        NOT_PHYSICAL_IFACES="$NOT_PHYSICAL_IFACES $a"
                        continue 2
                fi
        done
        PHYSICAL_IFACES="$PHYSICAL_IFACES $a"
done


Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Marius Tomaschewski 2009-12-10 15:55:44 UTC
The correction is not correct -- it just ignores the missed state file.

I think there is a mount point for /dev/shm tmpfs in the /etc/fstab, right?
See bug 335486 & co.
Comment 3 Uwe Fest 2009-12-11 11:58:38 UTC
Yes I have a mount point for /dev/shm tmpfs in the /etc/fstab:

tmpfs                /dev/shm             tmpfs      size=10G              0 0
Comment 4 Marius Tomaschewski 2009-12-14 10:53:32 UTC
Please remove /dev/shm mount entry from /etc/fstab and add explicit
one for /dev instead:

  udev    /dev      tmpfs    noauto,size=10G           0 0

The /dev/shm mount happens too late and hides files created by udev
rules, that were already there before the separate file system has
been mounted.

See also bug 516769 and bug 335486.

BTW: On openSUSE-11.2 /dev/.sysconfig is used for the state files.

*** This bug has been marked as a duplicate of bug 335486 ***
Comment 5 Novell Build 2014-12-14 17:37:54 UTC
This fix is in the Novell Plan9 Virtual Appliance build 137.  Source repository: lego revision: 2305.