Bug 1532102

Summary: [RFE] Add NIC Mapping Reporting Feature
Product: Red Hat OpenStack Reporter: zenghui.shi <zshi>
Component: os-net-configAssignee: zenghui.shi <zshi>
Status: CLOSED CURRENTRELEASE QA Contact: Yariv <yrachman>
Severity: high Docs Contact:
Priority: high    
Version: 10.0 (Newton)CC: atelang, bfournie, fbaudin, hbrock, jraju, jslagle, mburns, rhel-osp-director-maint, skramaja, yrachman
Target Milestone: asyncKeywords: FutureFeature, RFE, TestOnly, Triaged, ZStream
Target Release: 10.0 (Newton)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: os-net-config-5.2.2-2.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1532140 (view as bug list) Environment:
Last Closed: 2018-06-27 17:22:27 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: 1532140    

Description zenghui.shi 2018-01-08 01:21:42 UTC
Description of problem:

os-net-config reports NIC mapping, but only if you run in debug mode. Furthermore, the mapping output is not easily parsed for use in scripts. This is causing serious issues when troubleshooting or writing validations.

os-net-config should contain an option for returning the exact mapping, and it should return an easily consumable JSON or dict. For example, -i or --interfaces could return a mapping of the numeric NICs to real NIC name. This will make it possible to determine whether a mapping file is working correctly, or whether the desired mapped NICs are down (in which case they will not be mapped correctly).

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 zenghui.shi 2018-01-08 01:24:21 UTC
upstream bug: https://bugs.launchpad.net/os-net-config/+bug/1713137

Comment 2 zenghui.shi 2018-01-08 06:34:16 UTC
targeting this for 10.z as this is a request to backport NIC mapping to 10.z.

Comment 15 Yariv 2018-06-19 05:43:15 UTC
[root@compute-1 ~]# os-net-config -i nic2
{'nic2': 'eno2'}
[root@compute-1 ~]# 
[root@compute-1 ~]# os-net-config -i nic3
{'nic3': 'ens1f0'}
[root@compute-1 ~]# os-net-config -i nic6
{'nic6': 'ens2f1'}

Comment 16 Jon Schlueter 2018-06-27 17:22:27 UTC
According to our records, this should be resolved by os-net-config-5.2.3-2.el7ost.  This build is available now.