cliff-3.4.0 creates a race

Bug #1902872 reported by Sergii Golovatiuk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cliff
Confirmed
Undecided
Unassigned

Bug Description

virtualenv clifftest
source clifftest/bin/activate
pip install python-openstackclient python-ironicclient
openstack --os-cloud undercloud baremetal node list -f value -c "Provisioning State"

# Install python-tripleoclient
pip install python-tripleoclient
# Now output changes for command, some INFO messages are dumped:-
openstack --os-cloud undercloud baremetal node list -f value -c "Provisioning State"
2020-08-05 06:43:10.788 776951 INFO osc_lib.shell [-] command: baremetal node list -> ironicclient.osc.v1.baremetal_node.ListBaremetalNode (auth=True)
2020-08-05 06:43:10.790 776951 INFO osc_lib.clientmanager [-] Using auth plugin: password
2020-08-05 06:43:11.264 776951 INFO osc_lib.shell [-] END return value: 0

# Issue not specific to baremetal, all commands are impacted like
openstack --os-cloud undercloud network list
2020-08-05 06:45:28.404 780181 INFO osc_lib.shell [-] command: network list -> openstackclient.network.v2.network.ListNetwork (auth=True)
2020-08-05 06:45:28.405 780181 INFO osc_lib.clientmanager [-] Using auth plugin: password
/home/zuul/clifftest/lib/python3.6/site-packages/openstack/resource.py:351: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  len(inspect.getargspec(type_).args) > 1)
+--------------------------------------+----------+--------------------------------------+
| ID | Name | Subnets |
+--------------------------------------+----------+--------------------------------------+
| 5cfe57fb-6520-429a-844a-06d57a835259 | ctlplane | dc35e3e7-713a-46fb-b792-3bd003ffda02 |
+--------------------------------------+----------+--------------------------------------+
2020-08-05 06:45:29.002 780181 INFO osc_lib.shell [-] END return value: 0

# If tripleoclient is removed from venv or cliff is downgraded to 3.3.0, issue no longer happens. There is only 1 commit in 3.4.0 which switches to importlib-metadata:- https://github.com/openstack/cliff/compare/3.3.0...3.4.0

Changed in python-cliff:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.