Bug 1592858 - Add better error message when showing an incorrect ironic port
Summary: Add better error message when showing an incorrect ironic port
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-ironic-inspector-client
Version: 12.0 (Pike)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: Upstream M3
: 14.0 (Rocky)
Assignee: Bob Fournier
QA Contact: mlammon
URL:
Whiteboard:
Depends On:
Blocks: 1602984
TreeView+ depends on / blocked
 
Reported: 2018-06-19 13:12 UTC by Jeremy
Modified: 2022-08-09 09:39 UTC (History)
7 users (show)

Fixed In Version: python-ironic-inspector-client-3.3.0-0.20180810080932.53bf4e8.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1602984 (view as bug list)
Environment:
Last Closed: 2019-01-11 11:50:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 578552 0 None None None 2018-06-27 20:35:33 UTC
Red Hat Issue Tracker OSP-9177 0 None None None 2022-08-09 09:39:26 UTC
Red Hat Product Errata RHEA-2019:0045 0 None None None 2019-01-11 11:50:31 UTC
Storyboard 2002749 0 None None None 2018-06-28 13:48:06 UTC

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


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