]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commit
do not udevadm trigger, ceph-disk does it 365/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 30 Sep 2015 17:35:04 +0000 (19:35 +0200)
committerLoic Dachary <ldachary@redhat.com>
Wed, 30 Sep 2015 21:50:05 +0000 (23:50 +0200)
commitaa2e0c40fb395226b1bd427e0a486032b63a3895
tree0a97219afd5751bb61fbb04565a0412f7e183b9d
parentd754d730ca08efe3a4115ef29b409f0b91264ec5
do not udevadm trigger, ceph-disk does it

There is no need for osd create to call udevadm trigger action=add. By
running all actions associated with add for all block devices, it may
also trigger some race conditions. For instance, the following happens
about 10% of the time, when using dmcrypt:

 * ceph-disk prepare --dmcrypt /dev/vdb
 * /dev/vdb1 starts activating via udev
 * ceph-deploy triggers action=add
 * /dev/vdb2 udev chown root /dev/vdb2
 * /dev/vdb1 activate fails because of permission denied on /dev/vdb2
 * /dev/vdb2 udev action chown ceph /dev/vdb2

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

Signed-off-by: Loic Dachary <loic@dachary.org>
ceph_deploy/osd.py