Project

General

Profile

Actions

Bug #43579

open

c-v inventory does not report available partitions

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 a device is partitioned, then c-v inventory should inspect it and mark it as available if possible.

Consider the following:

[root@c5558f7d5219 /]# ceph-volume inventory 
 stderr: unable to read label for /dev/vdc: (2) No such file or directory
 stderr: unable to read label for /dev/vdb1: (2) No such file or directory
 stderr: unable to read label for /dev/vdb: (2) No such file or directory
 stderr: unable to read label for /dev/vda1: (2) No such file or directory
 stderr: unable to read label for /dev/vda: (2) No such file or directory
 stderr: unable to read label for /dev/vdd: (2) No such file or directory

Device Path               Size         rotates available Model name
/dev/vda                  46.57 GB     True    False     
/dev/vdb                  30.00 GB     True    False     
/dev/vdc                  30.00 GB     True    False     
/dev/vdd                  30.00 GB     True    False     
[root@c5558f7d5219 /]# ceph-volume inventory /dev/vdb1
 stderr: unable to read label for /dev/vdb1: (2) No such file or directory

====== Device report /dev/vdb1 ======

     available                 True
     rejected reasons          
     path                      /dev/vdb1
     device id                 
     human readable size       30.00 GB
[root@c5558f7d5219 /]# ceph-volume inventory /dev/vdb 
 stderr: unable to read label for /dev/vdb1: (2) No such file or directory
 stderr: unable to read label for /dev/vdb: (2) No such file or directory

====== Device report /dev/vdb ======

     available                 False
     rejected reasons          locked
     path                      /dev/vdb
     device id                 
     scheduler mode            mq-deadline
     rotational                1
     vendor                    0x1af4
     human readable size       30.00 GB
     sas address               
     removable                 0
     model                     
     ro                        0

I don't know where the lock is coming from though.

No data to display

Actions

Also available in: Atom PDF