]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: retry on OSError 18169/head
authorKefu Chai <kchai@redhat.com>
Sat, 7 Oct 2017 14:15:11 +0000 (22:15 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 8 Oct 2017 13:00:11 +0000 (21:00 +0800)
commite0b02ba9bdccf04bef6dc44ccabe8cb5b77cf6ee
tree52ca6739f82c449e92daf3cfceaebf2b1905c766
parentd36009b00ddbaf2f34e106be7c0e824b327d124a
ceph-disk: retry on OSError

we are likely to
1) create partition, for instance, sdc1
2) partprobe sdc
3) udevadm settle
4) check the device by its path: /dev/sdc1

but there is chance that the uevent sent from kernel fails to reach udev
before we call "udevadm", hence "/dev/sdc1" does not exist even after
"udevadm settle" returns. so we retry in case of OSError here.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 4f82dfb9e761a09484e6ba3bd027da535162783e)
src/ceph-disk/ceph_disk/main.py