Bug 1377223

Summary: Running anaconda install from foreman failed with Exception AttributeError
Product: Red Hat Enterprise Linux 7 Reporter: Michael Burman <mburman>
Component: python-pyudevAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.3CC: gklein, isenfeld, lmiksik, thozza
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-20 08:31:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1367016, 1375561    
Attachments:
Description Flags
logs
none
screenshot Traceback none

Description Michael Burman 2016-09-19 09:03:32 UTC
Created attachment 1202360 [details]
logs

Description of problem:
Running anaconda install from foreman failed with  Exception AttributeError.
The Traceback error attached in the screenshot.


11:08:58,789 INFO anaconda: /sbin/anaconda 21.48.22.90-1
11:08:59,133 INFO anaconda: created new libuser.conf at /tmp/libuser.ZBbDIR with instPath="/mnt/sysimage"
11:08:59,135 INFO anaconda: 16515072 kB (16128 MB) are available
11:08:59,149 INFO anaconda: check_memory(): total:16128, needed:670, graphical:760
11:08:59,161 INFO anaconda: anaconda called with cmdline = ['/sbin/anaconda']
11:08:59,161 INFO anaconda: Default encoding = utf-8 
11:08:59,210 INFO anaconda: Parsing kickstart: /run/install/ks.cfg
11:08:59,540 INFO anaconda: network: setting %s from ksdevice for missing kickstart --device
11:08:59,757 DEBUG anaconda: scripts found for locale en_US.UTF-8: ['Latn']
11:08:59,757 DEBUG anaconda: console fonts found for locale en_US.UTF-8: ['latarcyrheb-sun16']
11:08:59,758 DEBUG anaconda: setting console font to latarcyrheb-sun16
11:08:59,796 DEBUG anaconda: console font set successfully to latarcyrheb-sun16
11:08:59,796 DEBUG anaconda: setting locale to: en_US.UTF-8
11:08:59,834 DEBUG anaconda: network: devices found ['enp4s0', 'enp6s0', 'ens2f0', 'ens2f1', 'ens1f0', 'ens1f1']
11:09:00,033 DEBUG anaconda: network: kickstart - reactivating device enp4s0 with f552b7c1-bc46-42ab-9b62-9f594d96c17d
11:09:00,290 DEBUG anaconda: network: ifcfg file for enp6s0 not found
11:09:00,462 DEBUG anaconda: network: ifcfg file for ens2f0 not found
11:09:00,652 DEBUG anaconda: network: ifcfg file for ens2f1 not found
11:09:00,869 DEBUG anaconda: network: ifcfg file for ens1f0 not found
11:09:01,098 DEBUG anaconda: network: ifcfg file for ens1f1 not found
11:09:01,133 DEBUG anaconda: network: missing ifcfgs created for devices ['enp6s0', 'ens2f0', 'ens2f1', 'ens1f0', 'ens1f1']
11:09:01,253 DEBUG anaconda: network: setting ONBOOT value of enp4s0 to True
11:09:01,362 DEBUG anaconda: network: real kickstart ONBOOT value set for devices ['enp4s0']
11:09:01,412 INFO anaconda: Running Thread: AnaWaitForConnectingNMThread (139942311708416)
11:09:01,414 WARN anaconda.stdout: Not asking for VNC because of an automated install
11:09:01,414 WARN anaconda.stdout: Not asking for VNC because text mode was explicitly asked for in kickstart
11:09:01,422 INFO anaconda: Display mode = t
11:09:01,424 INFO anaconda: 16515072 kB (16128 MB) are available
11:09:01,439 INFO anaconda: check_memory(): total:16128, needed:670, graphical:760
11:09:01,466 INFO anaconda: got 2 NTP servers from DHCP
11:09:01,472 INFO anaconda: Thread Done: AnaWaitForConnectingNMThread (139942311708416)
11:09:01,493 INFO anaconda: Red Hat Enterprise Linux is the highest priority installclass, using it


Version-Release number of selected component (if applicable):
anaconda-21.48.22.90-1
rhel7.3 - RedHat-7.3-x86_64-initrd.img

How reproducible:
Always on rhel7.3 - RedHat-7.3-x86_64-initrd.img

Steps to Reproduce:
1. Install rhel7.3 from foreman

Actual results:
Installation failed

Expected results:
Should work

Comment 1 Michael Burman 2016-09-19 09:04:04 UTC
Created attachment 1202361 [details]
screenshot Traceback

Comment 2 Gil Klein 2016-09-19 09:18:46 UTC
The exception from the screenshot:

libkmod: kmod_module_insert_module: could not find module by name=’bnx2i'
libkmod: kmod_module_insert_module: could not find module by name=’bnx2i’
anaconda 21.48.22.98-1 for Red Hat Enterprise Linux 7.3 (pre-release) started.
installation log files are stored in /tmp during the installation
shell is available on TTYZ
The exception from the screenshot is:

when reporting a bug add logs from /tmp as separate text/plain attachments
11:89:81 Not asking for UNC because of an automated install
11:89:81 Not asking for UNC because text mode was explicitly asked for in kickstart
Traceback (most recent call last):
File "/sbin/anaconda". line 1286. in (module)
setupDisplaytanaconda. opts. addon_paths)
File ”/sbin/anaconda". line 715. in setupDisplay
anaconda.initInterface(addons)
File "/usr/lib64/pgthon2.7/site-packages/pyanaconda/anaconda.py". line 228. in initlnterface
self._intf = TextUserInterface(self.storage. self.payload.
File "/usr/lib64/python2.7/site-packages/pganaconda/anaconda.py". line 168. in storage
self._storage.setDefaultFSType(self.instClass.defaultFS)
File "/usr/lib/python2.7/site-packages/blivet/__init__.pg". line 1761. in setDefaultFSType
self._check_valid_fstype(newtype)
File "/usr/lib/python2.7/site-packages/blivet/__init__.py". line 1736. in _check_valid_fstype
raise UalueError("new value 2s is not valid as a default fs type" 2 fmt)
UalueError: new value non-existent xfs filesystem is not valid as a default fs type
Exception fittributeError: "’NoneType’ object has no attribute ’udev_unref’" in (bound method Context.__del__ of <pgudev.core.Con
text object at 8x7f46e79f7358>> ignored

Comment 5 Jaroslav Škarvada 2016-09-20 08:31:57 UTC

*** This bug has been marked as a duplicate of bug 1252833 ***