]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: show devices with GPT headers as not available 40315/head
authorAndrew Schoen <aschoen@redhat.com>
Wed, 17 Mar 2021 20:19:08 +0000 (15:19 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 22 Mar 2021 16:18:02 +0000 (17:18 +0100)
commit352e3575d742f6bc6f2c80bb5d3217a73406af6f
treea5651024284a5edba4b0e5d9dd11154d0e4adc6b
parent88995689900e46a0628b2ec1a6a3f2370b6e8d9a
ceph-volume: show devices with GPT headers as not available

This patch ensures that if a device has GPT headers it will
not show up in `ceph-volume inventory` as available.

Fixes: https://tracker.ceph.com/issues/48697
Resolves: rhbz#1908065

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 1347243242fc55c904c4d94fb43bdf0bcfc23ab0)
src/ceph-volume/ceph_volume/tests/util/test_device.py
src/ceph-volume/ceph_volume/util/device.py