]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fall back to PARTTYPE if PARTLABEL is empty 29462/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:31:59 +0000 (11:31 +0200)
commit279500223ea9f8628336e5a414e3c3a7e6c3b6ee
treeae906fb942f8aa94d154ad5b9ffe2af0d819fa05
parentd041cb0cfb6c7961998cd68ad2dca946a80c512a
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