Bug 1046307

Summary: UnknownDeviceError: UnknownDeviceError('eth0', GError('GDBus.Error:org.freedesktop.NetworkManager.UnknownDevice: No device found for the requested iface.',))
Product: [Fedora] Fedora Reporter: Steve Berg <sberg>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: anaconda-maint-list, g.kaviyarasu, jonathan, rvykydal, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:f83d69a41482e66b226123d8f028143fa5b67f826025577b588a1285f4e7dea0
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-02 14:48:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: ks.cfg
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: program.log none

Description Steve Berg 2013-12-24 12:17:40 UTC
Description of problem:
Set up pxeboot on my local dhcpd servers, set up a kickstart file and attempted to do a kickstart install using a VNC interface.

Version-Release number of selected component:
anaconda-20.25.15-1

The following was filed automatically by anaconda:
anaconda 20.25.15-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 209, in nm_device_property
    raise UnknownDeviceError(name, e)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 308, in nm_device_hwaddress
    return nm_device_property(name, "HwAddress")
  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 551, in add_connection_for_ksdata
    mac = nm.nm_device_hwaddress(devname)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 1170, in apply_kickstart_from_pre_section
    added_connections = add_connection_for_ksdata(network_data, dev_name)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 1184, in networkInitialize
    devnames = apply_kickstart_from_pre_section(ksdata)
  File "/sbin/anaconda", line 1068, in <module>
    networkInitialize(ksdata)
UnknownDeviceError: UnknownDeviceError('eth0', GError('GDBus.Error:org.freedesktop.NetworkManager.UnknownDevice: No device found for the requested iface.',))

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=f20-x86_64/initrd.img ramdisk_size=16000 ks=nfs:128.160.2.42:/export/install/kickstart/vengeance.ks ksdevice=link lang=en_US.UTF-8 keymap=us biosdevname=0 rdblacklist=nouveau nomodeset vnc vncpassword=NRL7320admin sshd sshpw --username=nrladmin NRL7320admin --plaintext BOOT_IMAGE=f20-x86_64/vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.11.10-301.fc20.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        20

Comment 1 Steve Berg 2013-12-24 12:17:43 UTC
Created attachment 841234 [details]
File: anaconda-tb

Comment 2 Steve Berg 2013-12-24 12:17:45 UTC
Created attachment 841235 [details]
File: anaconda.log

Comment 3 Steve Berg 2013-12-24 12:17:47 UTC
Created attachment 841236 [details]
File: environ

Comment 4 Steve Berg 2013-12-24 12:17:48 UTC
Created attachment 841237 [details]
File: ks.cfg

Comment 5 Steve Berg 2013-12-24 12:17:51 UTC
Created attachment 841238 [details]
File: lsblk_output

Comment 6 Steve Berg 2013-12-24 12:17:52 UTC
Created attachment 841239 [details]
File: nmcli_dev_list

Comment 7 Steve Berg 2013-12-24 12:17:54 UTC
Created attachment 841240 [details]
File: os_info

Comment 8 Steve Berg 2013-12-24 12:17:56 UTC
Created attachment 841241 [details]
File: storage.log

Comment 9 Steve Berg 2013-12-24 12:17:57 UTC
Created attachment 841242 [details]
File: syslog

Comment 10 Steve Berg 2013-12-24 12:17:59 UTC
Created attachment 841243 [details]
File: ifcfg.log

Comment 11 Steve Berg 2013-12-24 12:18:01 UTC
Created attachment 841244 [details]
File: program.log

Comment 12 Radek Vykydal 2014-01-02 14:48:59 UTC
This is caused by specifying non-existing --device (eth0) in kickstart. The device is named enp2s9 now by systemd [1].

from anaconda.log:
12:11:45,123 DEBUG anaconda: network: devices found ['enp2s9'] 
12:11:45,163 DEBUG anaconda: network: pre kickstart - adding connection for eth0

Anaconda should not crash in this case though, which is fixed in rawhide (RHEL bug #1023829)

You need to use either systemd device name enp2s9 or device mac address in kiskstart --device option.

[1] http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/