2019-06-14 10:14:27 |
Gábor Mészáros |
description |
This report is connected to #1831871
Same issue, this time at the device activation phase. |
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/ceph/osd-sdc /dev/disk/ceph/osd-sdd
$ juju config ceph-osd-std osd-journal
/dev/disk/ceph/journal-sda /dev/disk/ceph/journal-sdb
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.realpath(dev) for dev in devices]
to be added in the prepare_disks_and_activate().
https://github.com/openstack/charm-ceph-osd/blob/master/hooks/ceph_hooks.py#L512-L520 |
|