Hide Forgot
Description of problem: When disabling network manager, if there were no 'DEVICE' options defined in the /etc/sysconfig/network-scripts/ifcfg-ethX files, the network fails to start Version-Release number of selected component (if applicable): # cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) # rpm -qf /etc/sysconfig/network-scripts/ifup-eth initscripts-9.49.30-1.el7.x86_64 How reproducible: Get a CentOS 7.2 basic installation (I used virt-builder centos-7.2), disable NetworkManager, and run 'service network restart' Steps to Reproduce: 1. 2. 3. Actual results: It fails complaining that the 'device' does not seem to be present Expected results: It should work correctly Additional info: Apr 27 10:46:18 lago_basic_suite_master_host0 systemd[1]: Stopping LSB: Bring up/down networking... -- Subject: Unit network.service has begun shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit network.service has begun shutting down. Apr 27 10:46:18 lago_basic_suite_master_host0 network[2403]: Shutting down interface eth0: ERROR : [ipv6_test_device_status] Missing parameter 'device' (arg 1) Apr 27 10:46:18 lago_basic_suite_master_host0 ipv6_test_device_status[2444]: Missing parameter 'device' (arg 1) Apr 27 10:46:18 lago_basic_suite_master_host0 network[2403]: [ OK ] Apr 27 10:46:18 lago_basic_suite_master_host0 network[2403]: Shutting down loopback interface: [ OK ] Apr 27 10:46:18 lago_basic_suite_master_host0 systemd[1]: Starting LSB: Bring up/down networking... -- Subject: Unit network.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit network.service has begun starting up. Apr 27 10:46:18 lago_basic_suite_master_host0 network[2549]: Bringing up loopback interface: [ OK ] Apr 27 10:46:18 lago_basic_suite_master_host0 network[2549]: Bringing up interface eth0: ERROR : [/etc/sysconfig/network-scripts/ifup-eth] Device does not seem to be present, delaying initialization. Apr 27 10:46:18 lago_basic_suite_master_host0 /etc/sysconfig/network-scripts/ifup-eth[2671]: Device does not seem to be present, delaying initialization. Apr 27 10:46:18 lago_basic_suite_master_host0 network[2549]: [FAILED] Apr 27 10:46:18 lago_basic_suite_master_host0 systemd[1]: network.service: control process exited, code=exited status=1 Apr 27 10:46:18 lago_basic_suite_master_host0 systemd[1]: Failed to start LSB: Bring up/down networking. -- Subject: Unit network.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit network.service has failed. -- -- The result is failed. Apr 27 10:46:18 lago_basic_suite_master_host0 systemd[1]: Unit network.service entered failed state. Apr 27 10:46:18 lago_basic_suite_master_host0 systemd[1]: network.service failed. The /etc/sysconfig/network-scripts/ifcfg-eth0 file that gets generated by dracut: # Generated by dracut initrd NAME="eth0" ONBOOT=yes NETBOOT=yes UUID="b26dbb85-536c-4a01-86fc-57bb01cca298" IPV6INIT=yes BOOTPROTO=dhcp TYPE=Ethernet DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no PEERDNS=yes PEERROUTES=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes
Initscripts need either DEVICE or HWADDR.
I'm not able to reproduce this issue. It works in current release of dracut. If it's still issue for you please send us logs with set parameter "rd.break" on kernel cmd.
(In reply to Jan Macku from comment #5) > I'm not able to reproduce this issue. It works in current release of dracut. > > If it's still issue for you please send us logs with set parameter > "rd.break" on kernel cmd. And also please put there rd.debug