Bug 2163685

Summary: barbicanclient throws a warning: "UserWarning: The secrets module is moved to barbicanclient/v1 directory"
Product: Red Hat OpenStack Reporter: Mikolaj Ciecierski <mciecier>
Component: python-barbicanclientAssignee: OSP Team <rhos-maint>
Status: CLOSED ERRATA QA Contact: Jeremy Agee <jagee>
Severity: medium Docs Contact:
Priority: medium    
Version: 17.1 (Wallaby)CC: alee, apevec, dwilde, ggrasza, lhh, rhos-maint
Target Milestone: gaKeywords: Triaged
Target Release: 17.1Flags: astillma: needinfo? (rhos-maint)
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-barbicanclient-5.3.0-1.20230509091028.ad49c40.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-16 01:13: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:

Description Mikolaj Ciecierski 2023-01-24 09:13:09 UTC
Description of problem:

openstack command throws the following warning:
/usr/lib/python3.9/site-packages/barbicanclient/__init__.py:57: UserWarning: The secrets module is moved to barbicanclient/v1 directory, direct import of barbicanclient.secrets will be deprecated. Please import barbicanclient.v1.secrets instead.
  warnings.warn("The %s module is moved to barbicanclient/v1 "

Version-Release number of selected component (if applicable):
python3-barbicanclient-5.3.0-0.20221028130646.ad49c40.el9ost.noarch

How reproducible:
always

Steps to Reproduce:
1.Run any openstack command, for example $openstack endpoint list
2.
3.

Actual results:
STDERR:
 /usr/lib/python3.9/site-packages/barbicanclient/__init__.py:57: UserWarning: The secrets module is moved to barbicanclient/v1 directory, direct import of barbicanclient.secrets will be deprecated. Please import barbicanclient.v1.secrets instead.
warnings.warn("The %s module is moved to barbicanclient/v1 "


Expected results:
no warning

Additional info:

Comment 2 Ade Lee 2023-01-24 22:09:18 UTC
Fix is merged upstream in wallaby.  So it should be picked up in 17.1 build.  Moving to POST.

Comment 8 Grzegorz Grasza 2023-05-08 10:09:46 UTC
I backported the change to rhos-17.1-trunk-patches

Comment 22 errata-xmlrpc 2023-08-16 01:13:18 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 (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), 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-2023:4577