Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2083754

Summary: 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.
Product: Red Hat OpenStack Reporter: Paras Babbar <pbabbar>
Component: python-tripleoclientAssignee: Cédric Jeanneret <cjeanner>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: medium Docs Contact:
Priority: medium    
Version: 17.0 (Wallaby)CC: cjeanner, hbrock, jschluet, jslagle, mburns, slinaber, vhariria
Target Milestone: betaKeywords: Triaged
Target Release: 17.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-16.4.1-0.20220629155516.d451aaa.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-21 12:21:27 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 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