]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/blkdev: get_device_id: behave if model is lvm and id_model_enc isn't there 27156/head
authorSage Weil <sage@redhat.com>
Mon, 25 Mar 2019 12:10:21 +0000 (07:10 -0500)
committerSage Weil <sage@redhat.com>
Mon, 25 Mar 2019 13:24:45 +0000 (08:24 -0500)
commitec4434a65f2248fb823ccfb5d2e150bb4da71da1
tree1ff484f1a13bb06b418696353e889187aa4d86c9
parentfc7057fc0fa2fc074b1849429eedb73814efcd68
common/blkdev: get_device_id: behave if model is lvm and id_model_enc isn't there

If that happens, leave ID_MODEL blank and we'll fall back to something
else, like ID_SERIAL (which is present in each case I've seen this).

Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-volume/ceph_volume/util/device.py
src/common/blkdev.cc
src/test/common/blkdev-udevadm-info-samples/stud.nvme0n1 [new file with mode: 0644]
src/test/common/blkdev-udevadm-info-samples/stud.nvme0n1.devid [new file with mode: 0644]