Bug 2272202 - UserWarning: You have a configured API_VERSION with 'latest' in it. In the context of openstacksdk this doesn't make any sense.
Summary: UserWarning: You have a configured API_VERSION with 'latest' in it. In the co...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-common
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z4
: 17.1
Assignee: Nobody
QA Contact: David Rosenfeld
URL:
Whiteboard:
: 2259167 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-03-29 15:32 UTC by Alex Stupnikov
Modified: 2024-11-21 09:32 UTC (History)
15 users (show)

Fixed In Version: openstack-tripleo-common-15.4.1-17.1.20240911100820.e5b18f2.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-11-21 09:32:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-31782 0 None None None 2024-03-29 15:37:44 UTC
Red Hat Knowledge Base (Solution) 7086166 0 None None None 2024-09-06 12:01:14 UTC
Red Hat Product Errata RHSA-2024:9990 0 None None None 2024-11-21 09:32:22 UTC

Description Alex Stupnikov 2024-03-29 15:32:26 UTC
Description of problem:
This warning message was already reported and fixed in bug #2233560: patch Idbcfbf29626d9a66427b78067813915caf0e9cd5 was used to downgrade DEFAULT_COMPUTE_API_VERSION to "2.1" from "2.latest". This change caused bug #2259167: normal live migration command is broken unless higher Nova API version is provided manually; patch Idbcfbf29626d9a66427b78067813915caf0e9cd5 was reverted to fix live migration.

As a result, original bug #2233560 is affecting RHOSP 17.1 again and should be either addressed somehow: it is visible to customers, so we can solve the bug itself or document it as a known issue.


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

How reproducible:
# Make sure that OS_COMPUTE_API_VERSION is set to "2.latest"
$ openstack aggregate list
/usr/lib/python3.9/site-packages/openstack/config/cloud_region.py:452: UserWarning: You have a configured API_VERSION with 'latest' in it. In the context of openstacksdk this doesn't make any sense.
  warnings.warn(
<LIST OF AGGREGATES>


Actual results:
Warning is printed.

Expected results:
No warnings are printed for valid configuration or error is documented properly.

Comment 5 Artom Lifshitz 2024-08-19 17:46:33 UTC
*** Bug 2259167 has been marked as a duplicate of this bug. ***

Comment 19 errata-xmlrpc 2024-11-21 09:32:19 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 (Moderate: RHOSP 17.1.4 (openstack-tripleo-common and python-tripleoclient) security update), 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/RHSA-2024:9990


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