From d1812be768b1cca952e9f50a40280341d7f41307 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Tue, 9 Oct 2018 22:28:19 +0200 Subject: [PATCH] ceph_volume: Reporting nr_requests We are already reporting the rotational & scheduler of a disk device. Reporting the nr_requests could be useful to get how many concurrent IOs the device supports/reports. That could help detecting badly detected/configured devices. Signed-off-by: Erwan Velu (cherry picked from commit e0ea3d475a85844afdcdf92cf638b8128c8e2d9e) --- src/ceph-volume/ceph_volume/util/disk.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ceph-volume/ceph_volume/util/disk.py b/src/ceph-volume/ceph_volume/util/disk.py index 641035813e374..6b08e92b6167f 100644 --- a/src/ceph-volume/ceph_volume/util/disk.py +++ b/src/ceph-volume/ceph_volume/util/disk.py @@ -710,7 +710,9 @@ def get_devices(_sys_block_path='/sys/block', _dev_path='/dev', _mapper_path='/d metadata['partitions'] = get_partitions_facts(sysdir) - metadata['rotational'] = get_file_contents(sysdir + "/queue/rotational") + for key in ['rotational', 'nr_requests']: + metadata[key] = get_file_contents(sysdir + "/queue/" + key) + metadata['scheduler_mode'] = "" scheduler = get_file_contents(sysdir + "/queue/scheduler") if scheduler is not None: -- 2.39.5