]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: show correct rejected reason in inventory if device type is not acceptable 36852/head
authorSatoru Takeuchi <satoru.takeuchi@gmail.com>
Fri, 22 May 2020 01:45:32 +0000 (01:45 +0000)
committerJan Fajerski <jfajerski@suse.com>
Fri, 28 Aug 2020 09:06:53 +0000 (11:06 +0200)
commita6f01c4a51f59f2f235c9f856031e65280974a6c
tree33eae94ce1878e80ed42e78a504a23433413ac5b
parenta884fe27b5fa554f4573eb22f3e6f941493aa9f5
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