ModuleNotFoundError: No module named 'tenacity' when upgrading charm

Bug #1898549 reported by Enzo Aguado
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Etcd Charm
Invalid
High
George Kraft
Kubernetes Control Plane Charm
Invalid
High
George Kraft
Kubernetes Worker Charm
Invalid
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
Revision history for this message
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
Revision history for this message
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).

Revision history for this message
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
Revision history for this message
George Kraft (cynerva) wrote :

This was fixed in Juju 2.8.6.

Changed in charm-kubernetes-master:
status: In Progress → Invalid
Changed in charm-etcd:
status: In Progress → Invalid
Changed in charm-kubernetes-worker:
status: In Progress → Invalid
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.