From: Erwan Velu Date: Tue, 9 Oct 2018 20:28:19 +0000 (+0200) Subject: ceph_volume: Reporting nr_requests X-Git-Tag: v12.2.10~32^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d1812be768b1cca952e9f50a40280341d7f41307;p=ceph.git 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) --- 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: