]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: show correct rejected reason in inventory if device type is not acceptable 36452/head
authorSatoru Takeuchi <satoru.takeuchi@gmail.com>
Fri, 22 May 2020 01:45:32 +0000 (01:45 +0000)
committerJan Fajerski <jfajerski@suse.com>
Thu, 6 Aug 2020 16:42:54 +0000 (18:42 +0200)
commit6d80ff650fdc73f5a5cd2c6d5a2e402eb3c34f9f
tree0dbd3701cc7405a60655968543559aca3b345222
parenta6392736d38db55980ade3bc24bd9c9f5f509452
ceph-volume: show correct rejected reason in inventory if device type is not acceptable

If device type is not acceptable in `c-v inventory`, its rejected reason
becomes "Insufficient space (<5GB)" by mistake. It's because sys_api is
empty due to skipping devices that are neither `disk` nor `device`. We
should report the target device is not acceptable in this case.

Fixes: https://tracker.ceph.com/issues/46102
Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 3e5d91d41f7275d4656019c1ca3fc80927d214c9)
src/ceph-volume/ceph_volume/tests/conftest.py
src/ceph-volume/ceph_volume/tests/util/test_device.py
src/ceph-volume/ceph_volume/util/device.py