Clashing python package on upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Medium
|
Unassigned |
Bug Description
When running `juju refresh`, juju unpacks the python packages in the venv/ directory. One of the packages `openstacksdk` uses Python stdlib `importlib` `metadata` module which tries to read the METADATA file to get the version string of the library.
However, since Juju unpacks the packages but not necessarily deletes the old ones, it leaves the venv directory with two versions of the openstack library: 2.1.0, 3.0.0
```
ubuntu@
venv/openstack venv/openstacks
```
This made the charm error and the old library had to be manually deleted.
To reproduce:
$ juju deploy github-runner --channel=
$ juju refresh stg-github-runner
tags: | added: upgrade-charm |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: canonical-is |
We experienced this again when going from a charm version that included openstacksdk 3.0.0 to 3.1.0.