Project

General

Profile

Actions

Bug #43458

open

c-v inventory does not recognise device correctly

Added by Sébastien Han over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

If the device path is wrong, c-v should return an error such as "not a block device", just like the one reported by lsblk.
Thus, the currently reported error is wrong.

[root@ff431db58f67 /]# ceph-volume inventory vdb
 stderr: lsblk: vdb: not a block device
 stderr: error: vdb: No such file or directory
 stderr: unable to read label for vdb: (2) No such file or directory
 stderr: 2020-01-03T15:41:59.120+0000 7f61fd201d80 -1 bluestore(vdb) _read_bdev_label failed to open vdb: (2) No such file or directory
 stderr: Unknown device, --name=, --path=, or absolute path in /dev/ or /sys expected.

====== Device report vdb ======

     available                 False
     rejected reasons          Insufficient space (<5GB)
     path                      vdb
     device id                 
[root@ff431db58f67 /]# echo $?   
0

No data to display

Actions

Also available in: Atom PDF