]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: add a retry in util.disk.remove_partition 47990/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 16 Aug 2022 12:13:41 +0000 (14:13 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 6 Sep 2022 09:05:08 +0000 (11:05 +0200)
commita15b891f9afa6b1200ef8018e22768f33029d863
tree94e55109fc5de364772e056a38c22e1bc0e59348
parent2da7e094dc7dcdacd449478a64d207243307ab79
ceph-volume: add a retry in util.disk.remove_partition

This fixes a possible race condition when zapping a device.
Due to some udev events, that race condition makes the key
`ID_PART_ENTRY_NUMBER` show up too late.

The idea here is to retry multiple times before actually failing.

Fixes: https://tracker.ceph.com/issues/57144
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 3fedce6c34fb3acfa57b5a028cb750041ee8fbd6)
src/ceph-volume/ceph_volume/util/disk.py