jammy-yoga install hook failure due to missing pyudev

Bug #1987547 reported by Corey Bryant
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ceph Dashboard Charm
Fix Released
Medium
Luciano Lo Giudice

Bug Description

2022-08-24 15:18:01 WARNING unit.ceph-dashboard/0.install logger.go:60 Traceback (most recent call last):
2022-08-24 15:18:01 WARNING unit.ceph-dashboard/0.install logger.go:60 File "/var/lib/juju/agents/unit-ceph-dashboard-0/charm/./src/charm.py", line 35, in <module>
2022-08-24 15:18:01 WARNING unit.ceph-dashboard/0.install logger.go:60 import charms_ceph.utils as ceph_utils
2022-08-24 15:18:01 WARNING unit.ceph-dashboard/0.install logger.go:60 File "/var/lib/juju/agents/unit-ceph-dashboard-0/charm/venv/charms_ceph/utils.py", line 20, in <module>
2022-08-24 15:18:01 WARNING unit.ceph-dashboard/0.install logger.go:60 import pyudev
2022-08-24 15:18:01 WARNING unit.ceph-dashboard/0.install logger.go:60 ModuleNotFoundError: No module named 'pyudev'

pyudev is currently included in test-requirements.txt. Does it need to be in requirements.txt?

Revision history for this message
Luciano Lo Giudice (lmlogiudice) wrote :

Hey Corey,

Yes, it would appear that pyudev is missing in the requirements file for this charm.

Changed in charm-ceph-dashboard:
assignee: nobody → Luciano Lo Giudice (lmlogiudice)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Luciano Lo Giudice (lmlogiudice) wrote :

Strangely, though, it seems that this comes from charms.ceph, which _does_ require pyudev, so this package is somehow not being installed, even though it's a transitional dependency (charms.ceph _is_ a dependency of the dashboard).

Revision history for this message
Luciano Lo Giudice (lmlogiudice) wrote :

Update: This only seems to affect jammy-yoga deployments (I've deployed focal-yoga successfully).

Revision history for this message
Luciano Lo Giudice (lmlogiudice) wrote :

After digging around, there's already a patchset for this issue: https://review.opendev.org/c/openstack/charms.ceph/+/851770

Changed in charm-ceph-dashboard:
status: Triaged → Fix Committed
Changed in charm-ceph-dashboard:
status: Fix Committed → In Progress
Changed in charm-ceph-dashboard:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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