prepare_disks_and_activate pristine device checks break with udev path based configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph OSD Charm |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
This report is connected to #1831871
Same issue, this time at the device activation phase.
With the following setup:
$ juju config ceph-osd osd-devices
/dev/disk/
$ juju config ceph-osd-std osd-journal
/dev/disk/
created by a custom udev rule, the charm will find the journal (and possibly the osd) devices non-pristine, as they have no partition mounted on those drives and they are listed with their udev names in the juju config.
Fix is simple, check the realpath of the drives during the activation function.
Something like
devices = [os.path.
to be added in the prepare_
https:/
description: | updated |
It's not clear whether this is a bug that breaks the charm in some way (e.g. hook failure) or leaves the underlying payload misconfigured, or whether it is a feature request. Please could you clarify further and include details of breakage/ mis-configurati on. Thanks.