Bug 1398192 - kickstart %included network --noipv4 for device not activated in initramfs results in traceback
Summary: kickstart %included network --noipv4 for device not activated in initramfs re...
Keywords:
Status: CLOSED DUPLICATE of bug 1418289
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: anaconda
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-24 09:43 UTC by Radek Vykydal
Modified: 2017-02-02 09:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-02 09:05:33 UTC
Target Upstream Version:


Attachments (Terms of Use)
anaconda.log (1.28 KB, text/plain)
2016-11-24 09:45 UTC, Radek Vykydal
no flags Details
syslog (NM) (218.41 KB, text/plain)
2016-11-24 09:45 UTC, Radek Vykydal
no flags Details
ifcfg.log (1.51 KB, text/plain)
2016-11-24 09:46 UTC, Radek Vykydal
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.