]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-volume: add a retry in util.disk.remove_partition
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 16 Aug 2022 12:13:41 +0000 (14:13 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 17 Aug 2022 04:25:58 +0000 (06:25 +0200)
commit3fedce6c34fb3acfa57b5a028cb750041ee8fbd6
treebec7804ff9b35fea4e8f71a8549815de3bfb3df4
parent042ca579c2e4fece1853503d982b6afc0a0478dc
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>
src/ceph-volume/ceph_volume/util/disk.py