]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fall back to PARTTYPE if PARTLABEL is empty 29464/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:43:42 +0000 (11:43 +0200)
commit4cdcc208a2daaeae106c09e6e0dd75b1e80c3092
tree682c62acf04c33d306b404c165f53f898fcae28a
parent833ca7c60aebea64d7d535c18d2ebc44a9499afd
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