]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: add a retry in util.disk.remove_partition 47989/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:04:30 +0000 (11:04 +0200)
commitbb10c6f4c2dc1b1880e84cd7bb70d3c93fb99356
tree89b1c7c52658ae51b7918854d6b4d20f03fc3f31
parentb3bf4b795ef1203dae9bf22aa81de642cc4b37ec
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