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
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>"
w/a: openstack --os-baremetal-api-version 1.46 baremetal node trait list <node>
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
*** Bug 1620245 has been marked as a duplicate of this bug. ***
Oh, it's undercloud. In the undercloud we hardcode the latest supported version. Maybe it was not the best idea..
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.
Nominating for OSP 13, since the same behavior was present there.
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.
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.
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