]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: increase partprobe / udevadm settle timeouts
authorLoic Dachary <ldachary@redhat.com>
Wed, 16 Dec 2015 11:33:25 +0000 (12:33 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 6 Jan 2016 15:54:05 +0000 (16:54 +0100)
commit74c27423f4925c7a31d6675851ffa3d2f5265ef1
tree16e1bca7feab7e8b4ce0bd1bd069705cdb77873e
parent263eb579ac7179a19157004ed2de294085dc4a63
ceph-disk: increase partprobe / udevadm settle timeouts

The default of 120 seconds may be exceeded when the disk is very slow
which can happen in cloud environments. Increase it to 600 seconds
instead.

The partprobe command may fail for the same reason but it does not have
a timeout parameter. Instead, try a few times before failing.

The udevadm settle guarding partprobe are not necessary because
partprobe already does the same. However, partprobe does not provide a
way to control the timeout. Having a udevadm settle after another is
going to be a noop most of the time and not add any delay. It matters
when the udevadm settle run by partprobe fails with a timeout because
partprobe will silentely ignores the failure.

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 730b5d62d3cda7de4076bafa6e9e35f1eb8e2190)
src/ceph-disk