Actions
Bug #58045
closedorchestrator: incorrect size listed for devices in device ls
% Done:
0%
Source:
Tags:
backport_processed
Backport:
quincy, pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Description
currently when printing out the size in `ceph orch device ls` the orchestrator is calling a function that continually divides the raw size by 1000 instead of 1024, resulting in an incorrect size being listed. For example with a 100G disk, ceph-volume reports
{ "available": true, "ceph_device": false, "created": "2022-11-17T15:01:42.035999Z", "device_id": "", "human_readable_type": "hdd", "lsm_data": {}, "lvs": [], "path": "/dev/vdm", "rejected_reasons": [], "sys_api": { "actuators": null, "device_nodes": "vdm", "human_readable_size": "100.00 GB", "locked": 0, "model": "", "nr_requests": "256", "partitions": {}, "path": "/dev/vdm", "removable": "0", "rev": "", "ro": "0", "rotational": "1", "sas_address": "", "sas_device_handle": "", "scheduler_mode": "mq-deadline", "sectors": 0, "sectorsize": "512", "size": 107374182400.0, "support_discard": "0", "type": "disk", "vendor": "0x1af4" }
and the orchestrator, given this info, reports
vm-00 /dev/vdm hdd 107G Yes 25m ago
incorrectly saying the device is 107G instead of 100G ( (107374182400 / (1024 ^ 3)) = 100)
Updated by Adam King about 1 year ago
- Status changed from In Progress to Pending Backport
Updated by Backport Bot about 1 year ago
- Copied to Backport #59181: pacific: orchestrator: incorrect size listed for devices in device ls added
Updated by Backport Bot about 1 year ago
- Copied to Backport #59182: quincy: orchestrator: incorrect size listed for devices in device ls added
Actions