Actions
Bug #40817
openc-v fails to identify unmounted non-lvm OSDs
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
mosquito:~ # ceph-volume inventory --format json-pretty /dev/sdj
{
"available": false,
"lvs": [],
"path": "/dev/sdj",
"rejected_reasons": [
"Used by ceph-disk"
],
"sys_api": {
"human_readable_size": "186.31 GB",
"locked": 0,
"model": "INTEL SSDSC2BA20",
"nr_requests": "128",
"partitions": {
"sdj1": {
"holders": [],
"sectors": "204800",
"sectorsize": 512,
"size": "100.00 MB",
"start": "2048"
},
"sdj2": {
"holders": [],
"sectors": "390515087",
"sectorsize": 512,
"size": "186.21 GB",
"start": "206848"
}
},
"path": "/dev/sdj",
"removable": "0",
"rev": "0140",
"ro": "0",
"rotational": "0",
"sas_address": "0x4433221103000000",
"sas_device_handle": "0x0008",
"scheduler_mode": "deadline",
"sectors": 0,
"sectorsize": "512",
"size": 200049647616.0,
"support_discard": "",
"vendor": "ATA"
}
}
mosquito:~ # python3
Python 3.6.8 (default, Apr 30 2019, 13:27:23) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ceph_volume.util.device import Device
>>> Device('/dev/sdj').used_by_ceph
False <- This should be <True>
This device is used by ceph although it's currently not mounted. It's still registered against the cluster.
No data to display
Actions