Bug 1728607
Summary: | "ironic node-list --fields resource_class" returns 'No API version was specified and the requested operation was not supported by the client's negotiated API version 1.9. Supported version range is: 1.1 to 1.22' | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Thom Carlin <tcarlin> |
Component: | python-ironicclient | Assignee: | RHOS Maint <rhos-maint> |
Status: | CLOSED NOTABUG | QA Contact: | mlammon |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 10.0 (Newton) | CC: | apevec, bfournie, imelofer, lhh, mburns |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-07-23 14:12:18 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: | 1715822 |
Description
Thom Carlin
2019-07-10 08:56:51 UTC
Same error returned for "ironic node-list --fields network_interface" Same error returned for "ironic node-port-list --fields local_link_connection" and "ironic node-port-list --fields pxe_enabled" Hi Thom, Since you are trying to run ironic-client you will need to set IRONIC_API_VERSION enviroment variable to the correct value otherwise you won't get the information. According to [1] the version would be 1.21 You can try the following command: $ export IRONIC_API_VERSION="1.21" $ ironic node-list --fields resource_class [1] https://docs.openstack.org/ironic/rocky/contributor/webapi-version-history.html#id18 That workaround was successful following https://bugzilla.redhat.com/show_bug.cgi?id=1728607#c3 with additional notes: $ cat /etc/rhosp-release Red Hat OpenStack Platform release 10.0.12 (Newton) which gives us the codename (Newton) Searching https://docs.openstack.org/ironic/rocky/contributor/webapi-version-history.html for the codename gives us the API version (1.22 is latest Newton) Adding this on the command line: IRONIC_API_VERSION="1.22" ironic node-list --fields resource_class which returns the expected result. My question back is how reasonable an RFE would it be to add this logic directly into the client? Its not really clear what would be expected for an RFE and also not likely to get backported to OSP-10. Going forward (OSP-13+) its recommended to use the "openstack baremetal" CLI as the "ironic" CLI is deprecated. |