In a python3 grenade run, openstack client plugins are lost after swift install
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grenade |
Fix Released
|
Undecided
|
Chris Dent |
Bug Description
When running grenade under python3, swift runs as python2. This means that when swift is upgraded (and re-installed) it will install python-
The result is that after the swift upgrade, future usage of openstack client plugins will fail to find the commands associated with the plugins. For example the resource provider inventory verification tests upgrading nova (upgraded after swift) will fail.
One way to work around this is reinstall the python-
This problem can be seen in the back and forth discussion between cdent and cdent on https:/
Changed in grenade: | |
assignee: | nobody → Chris Dent (cdent) |
status: | New → In Progress |
tags: | added: python3 |
Reviewed: https:/ /review. openstack. org/619728 /git.openstack. org/cgit/ openstack- dev/grenade/ commit/ ?id=674861b787a 9861a5585101563 a971bf3e571812
Committed: https:/
Submitter: Zuul
Branch: master
commit 674861b787a9861 a5585101563a971 bf3e571812
Author: Chris Dent <email address hidden>
Date: Fri Nov 23 12:51:35 2018 +0000
Re-install python- openstackclient after swift
When running grenade under python3, swift runs under python2. Swift
includes openstack client in its requirements so when it installs under
Python 2 it clobbers the existing openstack client at /usr/local/bin and
any previously installed plugins are wiped out because their entry
points aren't seen. This was discovered because the osc-placement
commands were not available to nova inventory verification commands
during the nova upgrade, which comes after swift.
To address this, we do a reinstall at the end of swift's upgrade. PYTHON3_ PACKAGES,
Because python-openstack client is in ENABLED_
it will install as Python3 when installed standalone.
Note that the issue being fixed here is python3 specific, not
OpenStack release specific.
Closes-Bug: 1805156 e243b39eae6041e fe4a4d0a3af
Change-Id: If23619885a4766