Bug 2163685 - barbicanclient throws a warning: "UserWarning: The secrets module is moved to barbicanclient/v1 directory"
Summary: barbicanclient throws a warning: "UserWarning: The secrets module is moved ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-barbicanclient
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ga
: 17.1
Assignee: OSP Team
QA Contact: Jeremy Agee
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-24 09:13 UTC by Mikolaj Ciecierski
Modified: 2023-12-15 04:25 UTC (History)
6 users (show)

Fixed In Version: python-barbicanclient-5.3.0-1.20230509091028.ad49c40.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-16 01:13:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 865897 0 None MERGED Fix the import warning of secrets 2023-01-24 09:13:57 UTC
Red Hat Issue Tracker OSP-21717 0 None None None 2023-01-24 09:16:52 UTC
Red Hat Product Errata RHEA-2023:4577 0 None None None 2023-08-16 01:13:41 UTC

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

Comment 23 Red Hat Bugzilla 2023-12-15 04:25:57 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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