ModuleNotFoundError: No module named 'tenacity' when upgrading charm

Bug #1898549 reported by Enzo Aguado on 2020-10-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Etcd Charm
High
George Kraft
Kubernetes Master Charm
High
George Kraft
Kubernetes Worker Charm
High
George Kraft

Bug Description

When upgrading from a previous version (521 in our case) to 540, etcd fails to find the tenacity module and crashes with the following error

https://paste.ubuntu.com/p/swVcqQXNn5/

Tags: sts Edit Tag help
George Kraft (cynerva) wrote :

Thanks for the report. I can reproduce this. The kubernetes-master and kubernetes-worker charms are also affected.

Changed in charm-etcd:
importance: Undecided → High
Changed in charm-kubernetes-master:
importance: Undecided → High
Changed in charm-kubernetes-worker:
importance: Undecided → High
Changed in charm-etcd:
status: New → Triaged
Changed in charm-kubernetes-master:
status: New → Triaged
Changed in charm-kubernetes-worker:
status: New → Triaged
Changed in charm-etcd:
assignee: nobody → George Kraft (cynerva)
Changed in charm-kubernetes-master:
assignee: nobody → George Kraft (cynerva)
Changed in charm-kubernetes-worker:
assignee: nobody → George Kraft (cynerva)
Changed in charm-etcd:
status: Triaged → In Progress
Changed in charm-kubernetes-master:
status: Triaged → In Progress
Changed in charm-kubernetes-worker:
status: Triaged → In Progress
Cory Johns (johnsca) wrote :

This is caused by https://bugs.launchpad.net/juju/+bug/1897743 where the upgrade-charm hook is not run on 2.8.4 causing the venv to not be rebuilt to pick up any changed wheelhouse entries (in this case, a new dependency in the snap layer).

George Kraft (cynerva) wrote :

A workaround is to manually run the upgrade-charm hook on failing applications:

juju run --application etcd -- hooks/upgrade-charm

tags: added: sts
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers