Bug 1620232 - openstack baremetal node trait list <NODE ID>" API version issue error.
Summary: openstack baremetal node trait list <NODE ID>" API version issue error.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 14.0 (Rocky)
Hardware: All
OS: Unspecified
medium
high
Target Milestone: beta
: 14.0 (Rocky)
Assignee: Dmitry Tantsur
QA Contact: bjacot
URL:
Whiteboard:
: 1620245 (view as bug list)
Depends On:
Blocks: 1598437 1622974
TreeView+ depends on / blocked
 
Reported: 2018-08-22 18:30 UTC by bjacot
Modified: 2019-01-11 11:52 UTC (History)
8 users (show)

Fixed In Version: openstack-tripleo-heat-templates-9.0.0-0.20180919080941.0rc1.0rc1.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1622974 (view as bug list)
Environment:
OSP14 virtual environment 1: undercloud-0 2: overcloud nodes
Last Closed: 2019-01-11 11:51:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1789392 0 None None None 2018-08-28 09:56:15 UTC
OpenStack gerrit 597457 0 None MERGED Stop hardcoding baremetal API version in stackrc 2021-01-27 20:35:56 UTC
Red Hat Product Errata RHEA-2019:0045 0 None None None 2019-01-11 11:52:52 UTC

Description bjacot 2018-08-22 18:30:16 UTC
Description of problem:
When issueing "openstack baremetal node trait list <NODE ID>" the enduser is recieving an API version issue.

Version-Release number of selected component (if applicable):
osp14
core_puddle: 2018-08-21.2

How reproducible:
always

Steps to Reproduce:
1. Deploy undercloud
2: Perform introspection
3: source stackrc  
4: Post introspection issue command "openstack baremetal node trait list <NODE>"

Actual results:
(undercloud) [stack@undercloud-0 ~]$ openstack baremetal node trait list fdbcbd64-b4e3-4247-a58b-15aedc82a976
Requested API version 1.34 is not supported by the server, client, or
the requested operation is not supported by the requested version.
Supported version range is 1.1 to 1.46

Expected results:
Display information of the node's traits

Additional info:
none

Actual output:
(undercloud) [stack@undercloud-0 ~]$ openstack baremetal node trait list
usage: openstack baremetal node trait list [-h]
                                           [-f {csv,json,table,value,yaml}]
                                           [-c COLUMN] [--max-width <integer>]
                                           [--fit-width] [--print-empty]
                                           [--noindent]
                                           [--quote {all,minimal,none,nonnumeric}]
                                           [--sort-column SORT_COLUMN]
                                           <node>
openstack baremetal node trait list: error: too few arguments
(undercloud) [stack@undercloud-0 ~]$ openstack baremetal node trait list fdbcbd64-b4e3-4247-a58b-15aedc82a976
Requested API version 1.34 is not supported by the server, client, or
the requested operation is not supported by the requested version.
Supported version range is 1.1 to 1.46

Comment 1 bjacot 2018-08-22 18:35:48 UTC
apologies the order of the steps updated. 
Steps to Reproduce:
1. Deploy undercloud
2: source stackrc
3: Perform introspection  
4: Post introspection issue command "openstack baremetal node trait list <NODE>"

Comment 2 Alexander Chuzhoy 2018-08-22 19:10:58 UTC
w/a:
 openstack --os-baremetal-api-version 1.46 baremetal node trait list <node>

Comment 5 Bob Fournier 2018-08-27 22:07:12 UTC
I see this in OSP-13 GA also.  The requested range shows as within the supported range.

(undercloud) [stack@host01 templates]$ openstack baremetal node trait list host2
Requested API version 1.34 is not supported by the server, client, or
the requested operation is not supported by the requested
version.Supported version range is 1.1 to 1.37

Comment 6 Dmitry Tantsur 2018-08-28 08:26:17 UTC
*** Bug 1620245 has been marked as a duplicate of this bug. ***

Comment 7 Dmitry Tantsur 2018-08-28 09:47:27 UTC
Oh, it's undercloud. In the undercloud we hardcode the latest supported version. Maybe it was not the best idea..

Comment 8 Dmitry Tantsur 2018-08-28 09:56:16 UTC
The error message is outright wrong, filed https://bugzilla.redhat.com/show_bug.cgi?id=1622974 for it. Will track un-hardcoding the API version in this bug.

Comment 9 Dmitry Tantsur 2018-08-28 10:00:45 UTC
Nominating for OSP 13, since the same behavior was present there.

Comment 10 Dmitry Tantsur 2018-08-29 12:04:30 UTC
Returning to OSP 14 after realizing that the code base in 13 is completely different (instack-undercloud vs THT). Anyone affected by it in 13 is free to clone this bug for it.

Comment 13 Alexander Chuzhoy 2018-09-27 21:51:38 UTC
Verifying.
The fixed in version is missing:

Successfully tested with:
openstack-tripleo-heat-templates-9.0.0-0.20180919080941.0rc1.0rc1.el7ost.noarch



/usr/share/openstack-tripleo-heat-templates/extraconfig/post_deploy/undercloud_post.sh misses the "bad" export lines and running:
(undercloud) [stack@undercloud-0 ~]$ openstack baremetal node trait list controller-0

(undercloud) [stack@undercloud-0 ~]$ 


Returns an empty list as expected.

Comment 15 errata-xmlrpc 2019-01-11 11:51:27 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.