Bug 1532102 - [RFE] Add NIC Mapping Reporting Feature
Summary: [RFE] Add NIC Mapping Reporting Feature
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: os-net-config
Version: 10.0 (Newton)
Hardware: x86_64
OS: Linux
high
high
Target Milestone: async
: 10.0 (Newton)
Assignee: zenghui.shi
QA Contact: Yariv
URL:
Whiteboard:
Depends On:
Blocks: 1532140
TreeView+ depends on / blocked
 
Reported: 2018-01-08 01:21 UTC by zenghui.shi
Modified: 2018-07-11 13:10 UTC (History)
10 users (show)

Fixed In Version: os-net-config-5.2.2-2.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1532140 (view as bug list)
Environment:
Last Closed: 2018-06-27 17:22:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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