Bug 1374660

Summary: ifcfg-rh plugin is unable to store and reload 802-1x connection with "eap leap"
Product: Red Hat Enterprise Linux 7 Reporter: Thomas Haller <thaller>
Component: NetworkManagerAssignee: Francesco Giudici <fgiudici>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: aloughla, atragler, bgalvani, jan.public, lrintel, mleitner, rkhan, sukulkar, thaller, unixi, vbenes
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: 2018-04-10 13:19:11 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:
Bug Depends On:    
Bug Blocks: 1470965    

Description Thomas Haller 2016-09-09 10:58:08 UTC
Steps to reproduce.


- use ifcfg-rh as primary settings plugin.

- create a connection:

$ nmcli connection add type ethernet ifname eth1 con-name connie \
        802-1x.identity jdoe 802-1x.eap leap


- notice the connection exists

$ nmcli connection show | grep connie


- notice the ifcfg-file exists:

$ ls -la /etc/sysconfig/network-scripts/ifcfg-connie*


- reload the connection:

$ nmcli connection reload


- notice the connection is gone:

$ nmcli connection show | grep connie


- in the logfile you see:


  <debug> [1473418475.0311] ifcfg-rh: loading from file "/etc/sysconfig/network-scripts/ifcfg-connie"...
  <warn>  [1473418475.0313] ifcfg-rh: loading "/etc/sysconfig/network-scripts/ifcfg-connie" fails: Missing IEEE_8021X_PASSWORD for EAP method 'leap'.
  <debug> [1473418475.0313] ifcfg-rh: loading from file "/etc/sysconfig/network-scripts/ifcfg-t-wifi-Red-Hat"...
  <warn>  [1473418475.0313] ifcfg-rh:     missing IEEE_8021X_CA_CERT for EAP method 'peap'; this is insecure!
  <debug> [1473418475.0315] settings-connection[0x55ea214e49f0]: constructed (NMIfcfgConnection)
  <debug> [1473418475.0318] settings-connection[0x55ea214e49f0,5e694412-7488-465d-9e62-4f5431e77103]: replace settings from connection 0x55ea216eaac0 (my-wifi-Red-Hat)
  <debug> [1473418475.0326] settings-connection[0x55ea214e49f0,5e694412-7488-465d-9e62-4f5431e77103]: disposing
  <debug> [1473418475.0328] ifcfg-rh: loading from file "/etc/sysconfig/network-scripts/ifcfg-lo"...
  <debug> [1473418475.0328] ifcfg-rh: loading "/etc/sysconfig/network-scripts/ifcfg-lo" fails: Ignoring loopback device config.
  <info>  [1473418475.0328] ifcfg-rh: remove /etc/sysconfig/network-scripts/ifcfg-connie (b66f1b0d-8fe7-4d4a-90ea-07dcb56086b0,"connie")
  <trace> [1473418475.0330] exported-object[0x55ea214e4b50]: unexport: "/org/freedesktop/NetworkManager/Settings/38"
  <debug> [1473418475.0331] settings-connection[0x55ea214e4b50,b66f1b0d-8fe7-4d4a-90ea-07dcb56086b0]: disposing

Comment 2 Francesco Giudici 2017-10-01 14:22:26 UTC
Issue present in nm-1.8, should be already solved upstream.
Will be fixed on next rebase.

Moving bug to MODIFIED.

Comment 6 errata-xmlrpc 2018-04-10 13:19:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0778