]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: ensure udev add on the data partition is last
authorLoic Dachary <ldachary@redhat.com>
Sun, 20 Sep 2015 12:38:34 +0000 (14:38 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 22 Sep 2015 06:46:57 +0000 (08:46 +0200)
commitc86438cdcefdd19b1427ffe05a462d05ec79f3c7
tree74c169bfba078b9dd31342e6b541caa514da574d
parent0dd2364984c498c614affc4f3af0fbe40b9f632f
ceph-disk: ensure udev add on the data partition is last

When calling partprobe, we make sure there is at least one udev add
called for each partition created when preparing a device. But there is
no guarantee that the udev add for data partition will be last and the
following scenario can happen:

 - udev add data partition fails because the journal partition is owned
   by root
 - udev add journal partition chown the journal partition
 - no other udev add event is sent and the OSD does not activate

An additional, possibly redundant, udev add event is fired after
partprobe is run and after udevadm settles, to guarantee there is at
least one udev add data partition after the last udev add journal
partition.

http://tracker.ceph.com/issues/12787 Fixes: #12787

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/ceph-disk