Bug 2083754 - Depreciating warning: /usr/lib/python3.9/site-packages/ansible/_vendor/__init__.py:42: UserWarning: One or more Python packages bundled by this ansible-core distribution were already loaded (pyparsing). This may result in undefined behavior.
Summary: Depreciating warning: /usr/lib/python3.9/site-packages/ansible/_vendor/__init...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: beta
: 17.0
Assignee: Cédric Jeanneret
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-10 17:22 UTC by Paras Babbar
Modified: 2022-09-21 12:21 UTC (History)
7 users (show)

Fixed In Version: python-tripleoclient-16.4.1-0.20220629155516.d451aaa.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 12:21:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 841286 0 None stable/wallaby: MERGED python-tripleoclient: Move Ansible imports to correct UX Warnings (I4a8ecced93d28b70ed6fbcb425754397726850a7) 2022-06-29 16:48:43 UTC
Red Hat Issue Tracker OSP-15116 0 None None None 2022-05-10 17:47:20 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:21:52 UTC

Description Paras Babbar 2022-05-10 17:22:17 UTC
Description of problem:

All Openstack commands are coming up with the warning:

2022-05-03 12:25:29.876 |     "cmd": "source /home/stack/stackrc; openstack baremetal introspection interface list controller-0 --field switch_capabilities_support -f value | sort",
2022-05-03 12:25:29.878 |     "delta": "0:00:02.707182",
2022-05-03 12:25:29.881 |     "end": "2022-05-03 12:25:29.788052",
2022-05-03 12:25:29.883 |     "failed_when_result": false,
2022-05-03 12:25:29.885 |     "item": {
2022-05-03 12:25:29.887 |         "field": "switch_capabilities_support",
2022-05-03 12:25:29.889 |         "value": "None\nNone\nNone"
2022-05-03 12:25:29.891 |     },
2022-05-03 12:25:29.893 |     "rc": 0,
2022-05-03 12:25:29.895 |     "start": "2022-05-03 12:25:27.080870"
2022-05-03 12:25:29.897 | }
2022-05-03 12:25:29.899 | 
2022-05-03 12:25:29.901 | STDOUT:
2022-05-03 12:25:29.903 | 
2022-05-03 12:25:29.905 | None
2022-05-03 12:25:29.907 | None
2022-05-03 12:25:29.909 | None
2022-05-03 12:25:29.911 | 
2022-05-03 12:25:29.913 | 
2022-05-03 12:25:29.915 | STDERR:
2022-05-03 12:25:29.917 | 
2022-05-03 12:25:29.919 | /usr/lib/python3.9/site-packages/ansible/_vendor/__init__.py:42: UserWarning: One or more Python packages bundled by this ansible-core distribution were already loaded (pyparsing). This may result in undefined behavior.
2022-05-03 12:25:29.921 |   warnings.warn('One or more Python packages bundled by this ansible-core distribution were already '




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

How reproducible:
everytime

Steps to Reproduce:
1. run openstack command
2. returned with warning
3.

Actual results:
warning appeared

Expected results:

no warning should appear
Additional info:

Comment 1 Kevin Carter 2022-05-11 14:06:43 UTC
This was resolved upstream with the following reviews [0]. It looks like this will need to be backported. I've submitted the review for wallaby, please have a look at [1] when you have a moment.

[0] https://review.opendev.org/c/openstack/python-tripleoclient/+/834882
[1] https://review.opendev.org/c/openstack/python-tripleoclient/+/841286

Comment 6 David Rosenfeld 2022-07-28 20:17:23 UTC
Executed command from description and do not see the Warning message:

(undercloud) [stack@undercloud-0 ~]$ openstack baremetal introspection interface list controller-0 --field switch_capabilities_support -f value | sort
None
None
None
(undercloud) [stack@undercloud-0 ~]$

Comment 10 errata-xmlrpc 2022-09-21 12:21:27 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.0 (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-2022:6543


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