Project

General

Profile

Actions

Bug #17813

closed

ceph-disk: udev permission race with dm

Added by Loïc Dachary over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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 2 (0 open2 closed)

Related to Ceph - Bug #17889: ceph-disk: ceph-disk@.service races with ceph-osd@.serviceResolvedLoïc Dachary11/14/2016

Actions
Copied to Ceph - Backport #18009: jewel: ceph-disk: udev permission race with dmResolvedLoïc DacharyActions
Actions #1

Updated by Loïc Dachary over 7 years ago

  • Description updated (diff)
Actions #2

Updated by Loïc Dachary over 7 years ago

  • Description updated (diff)
Actions #3

Updated by Ken Dreyer over 7 years 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?

Actions #4

Updated by Loïc Dachary over 7 years ago

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

Actions #5

Updated by Loïc Dachary over 7 years ago

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

Updated by Loïc Dachary over 7 years ago

  • Description updated (diff)
  • Assignee set to Loïc Dachary
  • Priority changed from Normal to Urgent
Actions #7

Updated by Loïc Dachary over 7 years ago

  • Status changed from 12 to Fix Under Review
Actions #8

Updated by Loïc Dachary over 7 years ago

  • Backport set to jewel
Actions #9

Updated by Kefu Chai over 7 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #10

Updated by Loïc Dachary over 7 years ago

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

Updated by Loïc Dachary over 7 years ago

  • Status changed from Pending Backport to In Progress
Actions #12

Updated by Loïc Dachary over 7 years 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.

Actions #13

Updated by Loïc Dachary over 7 years ago

  • Status changed from In Progress to Pending Backport
Actions #14

Updated by Nathan Cutler about 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF