Ceph block device permission gets wrongly reverted by udev

Bug #1915705 reported by Ponnuvel Palaniyappan
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph OSD Charm
Won't Fix
Undecided
Ponnuvel Palaniyappan
ceph (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

When creating OSD block devices, ceph-volume correctly sets the ownership to ceph:ceph. But when osd-encrypt is enabled before the cluster is deployed by Juju, udevadm reverts the permission back to root:disk.

A reproducer is:

Deploy a Mimic or Nautilus Ceph cluster using Juju (A bare-bones Ceph cluster using sts-bundles is sufficient). Then immediately after (before Juju completes the deployment), do

    juju config ceph-osd osd-encrypt=True

Then the OSD units end up in blocked with "No block devices detected using current configuration".

This is caused by [0]

    udevadm trigger --subsystem-match=block --action=add

executed by ceph-osd charm.

This looks ery similar issue that's been fixed in the past [1]. However, the fix proposed there doesn't work here.

[0] https://github.com/openstack/charms.ceph/blob/master/charms_ceph/utils.py#L984
[1] https://bugs.launchpad.net/charm-ceph-osd/+bug/1767087

Tags: sts
Revision history for this message
Ponnuvel Palaniyappan (pponnuvel) wrote :

James' comment in [0] neatly describes the problem except it's not clear why the same fix isn't working in this situation.

[0] https://bugs.launchpad.net/charm-ceph-osd/+bug/1767087/comments/2

tags: added: sts
Changed in charm-ceph-osd:
status: New → Confirmed
assignee: nobody → Ponnuvel Palaniyappan (pponnuvel)
Changed in charm-ceph-osd:
status: Confirmed → In Progress
Revision history for this message
Ponnuvel Palaniyappan (pponnuvel) wrote :
Revision history for this message
Ponnuvel Palaniyappan (pponnuvel) wrote :

James Page suggested this might need to be done in the packaging as well.

Once the fix is finalized in charm-ceph-osd, I'll update the udev rules in debian/udev/95-ceph-osd-lvm.rules.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-ceph-osd (master)

Change abandoned by "James Page <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/charm-ceph-osd/+/778497
Reason: This review is > 12 weeks without comment and currently blocked by a core reviewer with a -2. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and contacting the reviewer with the -2 on this review to ensure you address their concerns.

James Page (james-page)
Changed in charm-ceph-osd:
status: In Progress → Won't Fix
Changed in ceph (Ubuntu):
status: New → Won't Fix
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.