Project

General

Profile

Bug #17813

ceph-disk: udev permission race with dm

Added by Loic Dachary 10 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
Start date:
11/07/2016
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
No

Description

In the ceph-devel mailing list "ceph-disk and /dev/dm-* permissions - race condition?" the following workaround is suggested to address a race condition involving dmcrypt devices at boot time (courtesy Wyllys Ingersoll):

add a line to the udev 55-dm.rules file just before the 'GOTO="dm_end"' line towards the end of that file: OWNER:="ceph", GROUP:="ceph", MODE:="0660"

See the ceph-disk and /dev/dm- permissions - race condition? thread in ceph-devel for more information


Related issues

Related to Ceph - Bug #17889: ceph-disk: ceph-disk@.service races with ceph-osd@.service Resolved 11/14/2016
Copied to Ceph - Backport #18009: jewel: ceph-disk: udev permission race with dm Resolved

History

#1 Updated by Loic Dachary 9 months ago

  • Description updated (diff)

#2 Updated by Loic Dachary 9 months ago

  • Description updated (diff)

#3 Updated by Ken Dreyer 9 months ago

Loic, would this change in 55-dm.rules affect all devicemapper block devices on the box, not just encrypted OSDs?

In RHEL , /usr/lib/udev/rules.d/10-dm.rules is owned by the device-mapper RPM, so I think any by-hand additions there will be wiped on the next yum update?

#4 Updated by Loic Dachary 9 months ago

@Ken you right. Any idea on how to implement this in the right way ?

#5 Updated by Loic Dachary 9 months ago

  • Related to Bug #17889: ceph-disk: ceph-disk@.service races with ceph-osd@.service added

#6 Updated by Loic Dachary 9 months ago

  • Description updated (diff)
  • Assignee set to Loic Dachary
  • Priority changed from Normal to Urgent

#7 Updated by Loic Dachary 9 months ago

  • Status changed from Verified to Need Review

#8 Updated by Loic Dachary 9 months ago

  • Backport set to jewel

#9 Updated by Kefu Chai 9 months ago

  • Status changed from Need Review to Pending Backport

#10 Updated by Loic Dachary 9 months ago

  • Copied to Backport #18009: jewel: ceph-disk: udev permission race with dm added

#11 Updated by Loic Dachary 9 months ago

  • Status changed from Pending Backport to In Progress

#12 Updated by Loic Dachary 9 months ago

https://github.com/ceph/ceph/pull/12136 is the right thing to do to deal with this problem but depends on #17889 being fixed to be effective.

#13 Updated by Loic Dachary 9 months ago

  • Status changed from In Progress to Pending Backport

#14 Updated by Nathan Cutler 7 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF