Bug 1398192

Summary: kickstart %included network --noipv4 for device not activated in initramfs results in traceback
Product: Red Hat Enterprise Linux 7 Reporter: Radek Vykydal <rvykydal>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: robert.evans
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-02 09:05:33 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:
Embargoed:
Attachments:
Description Flags
anaconda.log
none
syslog (NM)
none
ifcfg.log none

Description Radek Vykydal 2016-11-24 09:43:36 UTC
boot options network configuration:

ip=ens3:dhcp

kickstart network configuration:

%include /tmp/ksinclude
%pre
echo "network --device=ens9 --noipv4 --activate" > /tmp/ksinclude
%end

results in traceback:

    networkInitialize(ksdata)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 1320, in networkInitialize
    devnames = apply_kickstart(ksdata)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 1302, in apply_kickstart
    added_connections = add_connection_for_ksdata(network_data, dev_name)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 569, in add_connection_for_ksdata
    nm.nm_add_connection(values)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 927, in nm_add_connection
    connection = proxy.AddConnection('(a{sa{sv}})', settings)
  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gio.py", line 171, in __call__
    None)
GLib.Error: g-io-error-quark: GDBus.Error:org.freedesktop.NetworkManager.Settings.Connection.MissingProperty: ipv4.method: property is missing (36)
Exception AttributeError: "'NoneType' object has no attribute 'udev_unref'" in <bound method Context.__del__ of <pyudev.core.Context object at 0x7fcb7d6bc310>> ignored

Pane is dead
  File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 927, in nm_add_connection
    connection = proxy.AddConnection('(a{sa{sv}})', settings)
  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gio.py", line 171, in __call__
    None)
GLib.Error: g-io-error-quark: GDBus.Error:org.freedesktop.NetworkManager.Settings.Connection.MissingProperty: ipv4.method: property is missing (36)

Exception AttributeError: "'NoneType' object has no attribute 'udev_unref'" in <bound method Context.__del__ of <pyudev.core.Context object at 0x7fcb7d6bc310>> ignored
Pane is dead

Comment 1 Radek Vykydal 2016-11-24 09:45:14 UTC
Created attachment 1223669 [details]
anaconda.log

Comment 2 Radek Vykydal 2016-11-24 09:45:48 UTC
Created attachment 1223672 [details]
syslog (NM)

Comment 3 Radek Vykydal 2016-11-24 09:46:37 UTC
Created attachment 1223673 [details]
ifcfg.log

Comment 4 Radek Vykydal 2016-11-24 10:58:08 UTC
A patch with fix:
https://github.com/rvykydal/anaconda/commits/rhel7-branch-noipv4-pre

Comment 6 Radek Vykydal 2017-02-02 09:05:33 UTC
I accidentally filed the issue again in bug 1418289. Closing this one as the other one seems to be on track for approval.

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