]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fall back to PARTTYPE if PARTLABEL is empty 29463/head
authorJan Fajerski <jfajerski@suse.com>
Tue, 30 Jul 2019 15:32:06 +0000 (17:32 +0200)
committerJan Fajerski <jfajerski@suse.com>
Fri, 2 Aug 2019 09:40:53 +0000 (11:40 +0200)
commit2845ca1c3dbcc9df27e37555f90af4fda6af1bba
tree941e4ebf28f4e37124d0ff9b2bf0f5e022f33771
parent6619d663b60bc88c1097e957c65e613b925cf9cf
ceph-volume: fall back to PARTTYPE if PARTLABEL is empty

In some cases ceph-disk does not populate PARTLABEL for wal and db
partitions. This commit adds the assumption that the empty string is a
valid label and falls back to identifying those disks by PARTTYPE.

Fixes: https://tracker.ceph.com/issues/40917
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit 82d2ae7ffdf62ca93c7848fb62e506db4cda893c)
src/ceph-volume/ceph_volume/util/device.py
src/ceph-volume/ceph_volume/util/disk.py