Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1592858

Summary: Add better error message when showing an incorrect ironic port
Product: Red Hat OpenStack Reporter: Jeremy <jmelvin>
Component: python-ironic-inspector-clientAssignee: Bob Fournier <bfournie>
Status: CLOSED ERRATA QA Contact: mlammon
Severity: low Docs Contact:
Priority: low    
Version: 12.0 (Pike)CC: bfournie, jjoyce, jschluet, mburns, slinaber, srevivo, tvignaud
Target Milestone: Upstream M3Keywords: Triaged
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-ironic-inspector-client-3.3.0-0.20180810080932.53bf4e8.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1602984 (view as bug list) Environment:
Last Closed: 2019-01-11 11:50:06 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: 1602984    

Description Jeremy 2018-06-19 13:12:58 UTC
Description of problem:  If you try introspection show on the wrong port we get an unhelpful python error. Can we get a better erorr message for the customer such as wrong interface, or interface does not exist for this ironic node? Thanks!


(undercloud) [stack@undercloud-0 ~]$ openstack baremetal introspection interface list  97d26ba9-ce7c-40e1-823b-5b6d2a7f7d76
+-----------+-------------------+----------------------+-------------------+----------------+
| Interface | MAC Address       | Switch Port VLAN IDs | Switch Chassis ID | Switch Port ID |
+-----------+-------------------+----------------------+-------------------+----------------+
| eth2      | 52:54:00:b2:9b:eb | []                   | None              | None           |
| eth1      | 52:54:00:5c:3a:df | []                   | None              | None           |
| eth0      | 52:54:00:f3:40:c7 | []                   | None              | None           |
+-----------+-------------------+----------------------+-------------------+----------------+
(undercloud) [stack@undercloud-0 ~]$ openstack baremetal introspection interface show  97d26ba9-ce7c-40e1-823b-5b6d2a7f7d76 em0
need more than 0 values to unpack

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

How reproducible:
100%

Comment 4 mlammon 2018-09-24 21:01:53 UTC
installed osp14 2018-09-06.1

Environment: 
(undercloud) [stack@undercloud-0 ~]$ yum info python2-ironic-inspector-client
Loaded plugins: search-disabled-repos
Installed Packages
Name        : python2-ironic-inspector-client
Arch        : noarch
Version     : 3.3.0
Release     : 0.20180810080932.53bf4e8.el7ost



(undercloud) [stack@undercloud-0 ~]$ openstack baremetal introspection interface list c6462ef4-cb74-4451-addc-79bf5f959700
+-----------+-------------------+----------------------+-------------------+----------------+
| Interface | MAC Address       | Switch Port VLAN IDs | Switch Chassis ID | Switch Port ID |
+-----------+-------------------+----------------------+-------------------+----------------+
| eth2      | 52:54:00:0a:37:1a | []                   | None              | None           |
| eth1      | 52:54:00:e6:cc:8c | []                   | None              | None           |
| eth0      | 52:54:00:01:aa:13 | []                   | None              | None           |
+-----------+-------------------+----------------------+-------------------+----------------+
(undercloud) [stack@undercloud-0 ~]$ openstack baremetal introspection interface show c6462ef4-cb74-4451-addc-79bf5f959700 eth3
Interface eth3 was not found on this node

Comment 6 errata-xmlrpc 2019-01-11 11:50:06 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/RHEA-2019:0045