Bug 1532140

Summary: [RFE] Add NIC Mapping Reporting Feature
Product: Red Hat OpenStack Reporter: zenghui.shi <zshi>
Component: os-net-configAssignee: zenghui.shi <zshi>
Status: CLOSED ERRATA QA Contact: Shai Revivo <srevivo>
Severity: high Docs Contact:
Priority: high    
Version: 11.0 (Ocata)CC: atelang, bfournie, dsneddon, fbaudin, hbrock, jslagle, mburns, rhel-osp-director-maint, skramaja, srevivo, yrachman
Target Milestone: z5Keywords: FutureFeature, RFE, Triaged, ZStream
Target Release: 11.0 (Ocata)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: os-net-config-6.1.2-2.el7ost Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1532102 Environment:
Last Closed: 2018-05-18 17:08:29 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: 1532102    
Bug Blocks:    

Description zenghui.shi 2018-01-08 07:07:52 UTC
+++ This bug was initially created as a clone of Bug #1532102 +++

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:

--- Additional comment from zenghui.shi on 2018-01-07 20:24:21 EST ---

upstream bug: https://bugs.launchpad.net/os-net-config/+bug/1713137

--- Additional comment from zenghui.shi on 2018-01-08 01:34:16 EST ---

targeting this for 10.z as this is a request to backport NIC mapping to 10.z.

Comment 1 zenghui.shi 2018-01-08 07:12:50 UTC
this bz is to backport nic mapping to 11.z

Comment 7 errata-xmlrpc 2018-05-18 17:08:29 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:1622

Comment 8 Bob Fournier 2018-05-31 13:08:51 UTC
*** Bug 1268421 has been marked as a duplicate of this bug. ***