Bug 2272202

Summary: UserWarning: You have a configured API_VERSION with 'latest' in it. In the context of openstacksdk this doesn't make any sense.
Product: Red Hat OpenStack Reporter: Alex Stupnikov <astupnik>
Component: openstack-tripleo-commonAssignee: Nobody <nobody>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: medium Docs Contact:
Priority: medium    
Version: 17.1 (Wallaby)CC: alifshit, apevec, bdobreli, bgibizer, bshephar, dhill, enothen, jhakimra, jjoyce, jpretori, jschluet, lhh, mariel, mburns, slinaber
Target Milestone: z4Keywords: Triaged
Target Release: 17.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-common-15.4.1-17.1.20240911100820.e5b18f2.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-21 09:32:19 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:

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