Bug 1401418

Summary: Cockpit can not handle interfaces which are setup by manual configure ifcfg files
Product: Red Hat Enterprise Linux 7 Reporter: Huijuan Zhao <huzhao>
Component: cockpitAssignee: Marius Vollmer <mvollmer>
Status: CLOSED NOTABUG QA Contact: qe-baseos-daemons
Severity: high Docs Contact:
Priority: medium    
Version: 7.3CC: bugs, cshao, dguo, dougsland, fdeutsch, jiawu, leiwang, qiyuan, rbarry, weiwang, yaniwang, ycui, yzhao
Target Milestone: pre-dev-freezeKeywords: Extras
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-01-02 12:32:03 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: 1400961    
Attachments:
Description Flags
All logs and all files in /etc/sysconfig/network-scripts/
none
Screenshot of unmanaged Interfaces in cockpit none

Description Huijuan Zhao 2016-12-05 08:06:16 UTC
Created attachment 1228003 [details]
All logs and all files in /etc/sysconfig/network-scripts/

Description of problem:
Setup ifcfg files manually for NIC, it shows "Unmanaged Interfaces" in Cockpit


Version-Release number of selected component (if applicable):
redhat-virtualization-host-4.0-20161130.0
imgbased-0.8.10-0.1.el7ev.noarch
cockpit-ws-122-3.el7.x86_64
NetworkManager-1.4.0-13.el7_3.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Install RHVH via interactive anaconda.
2. Reboot RHVH and login, setup /etc/sysconfig/network-scripts/ifcfg-interfacename files for two NICs p3p1 and p4p1(create bond1.20 over p3p1 and p4p1) (please refer to attachment for detailed configure)
3. Reboot RHVH and login Cockpit, enter Networking page, focus on interface status

Actual results:
After step3, it shows the two NICs p3p1 and p4p1 are "Unmanaged Interfaces", can not configure them via cockpit

Expected results:
After step4, cockpit should can handle all interfaces

Additional info:

Comment 1 Huijuan Zhao 2016-12-05 08:07:11 UTC
Created attachment 1228004 [details]
Screenshot of unmanaged Interfaces in cockpit

Comment 3 Marius Vollmer 2017-01-02 12:32:03 UTC
The ifcfg files contain NM_CONTROLLED=no, which explicitly puts them into the "Unmanaged Interfaces" section.

Removing NM_CONTROLLED=no should make them manageable via Cockpit.