list-disk action breaks with udev path based configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph OSD Charm |
Expired
|
Undecided
|
Unassigned |
Bug Description
If I have 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 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 journal drives during the list-disk action.
Something like
from os.path import realpath
for dev in list(set(
instead of
for dev in list(set(
https:/
description: | updated |
Changed in charm-ceph-osd: | |
assignee: | nobody → Gábor Mészáros (gabor.meszaros) |
Changed in charm-ceph-osd: | |
assignee: | Gábor Mészáros (gabor.meszaros) → nobody |
status: | In Progress → New |
Fix proposed to branch: master /review. opendev. org/663587
Review: https:/