]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: retry cryptsetup remove 6879/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 6 Jan 2016 10:15:19 +0000 (11:15 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 6 Jan 2016 10:15:19 +0000 (11:15 +0100)
commit132e56615805cba0395898cf165b32b88600d633
treedab0781a44151fae1c4d042b1d835bdb00c184a7
parent17430d0cf90f616cce33da80a30cc14c7f989f8b
ceph-disk: retry cryptsetup remove

Retry a cryptsetup remove ten times. After the ceph-osd terminates, the
device is released asyncrhonously and an attempt to cryptsetup remove
will may fail because it is considered busy. Although a few attempts are
made before giving up, the number of attempts / the duration of the
attempts cannot be controlled with a cryptsetup option. The workaround
is to increase this by trying a few times.

If cryptsetup remove fails for a reason that is unrelated to timeout,
the error will be repeated a few times. There is no undesirable side
effect. It will not hide a problem.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/ceph-disk