mirror of
https://github.com/ceph/ceph
synced 2025-03-21 17:57:38 +00:00
ceph-volume: add Ceph's device id to inventory
This will benefit the orchestrator and dashboard to show a unified view of devices with SMART data Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
This commit is contained in:
parent
b5800329d0
commit
e70d6041c1
@ -25,7 +25,8 @@ def device_report_keys(device_info):
|
|||||||
'sectorsize': '512',
|
'sectorsize': '512',
|
||||||
'size': 1999844147200.0,
|
'size': 1999844147200.0,
|
||||||
'support_discard': '',
|
'support_discard': '',
|
||||||
'vendor': 'DELL'}
|
'vendor': 'DELL',
|
||||||
|
'device_id': 'Vendor-Model-Serial'}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
report = Devices().json_report()[0]
|
report = Devices().json_report()[0]
|
||||||
@ -67,6 +68,7 @@ class TestInventory(object):
|
|||||||
'sys_api',
|
'sys_api',
|
||||||
'available',
|
'available',
|
||||||
'lvs',
|
'lvs',
|
||||||
|
'device_id',
|
||||||
]
|
]
|
||||||
|
|
||||||
expected_sys_api_keys = [
|
expected_sys_api_keys = [
|
||||||
|
@ -62,6 +62,7 @@ class Device(object):
|
|||||||
'available',
|
'available',
|
||||||
'path',
|
'path',
|
||||||
'sys_api',
|
'sys_api',
|
||||||
|
'device_id',
|
||||||
]
|
]
|
||||||
pretty_report_sys_fields = [
|
pretty_report_sys_fields = [
|
||||||
'human_readable_size',
|
'human_readable_size',
|
||||||
|
Loading…
Reference in New Issue
Block a user