]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_volume: Reporting firmware revision
authorErwan Velu <erwan@redhat.com>
Tue, 9 Oct 2018 20:26:28 +0000 (22:26 +0200)
committerAlfredo Deza <adeza@redhat.com>
Fri, 26 Oct 2018 20:23:48 +0000 (16:23 -0400)
We are already reporting model & vendor of a given disk, let's also
report the revision of the firmware. That is useful to filter-out some
known broken revisions.

Signed-off-by: Erwan Velu <erwan@redhat.com>
(cherry picked from commit 59720794079bef0ba7f8bc2d9dfc8aaddd210005)

src/ceph-volume/ceph_volume/util/disk.py

index 4fc813e7209fe66c77fabd566578495d7a3f5f82..641035813e374894b21b094fa5b16bec96c0aeaa 100644 (file)
@@ -699,7 +699,7 @@ def get_devices(_sys_block_path='/sys/block', _dev_path='/dev', _mapper_path='/d
         metadata['ro'] = get_file_contents(os.path.join(sysdir, 'ro'))
 
 
-        for key in ['vendor', 'model', 'sas_address', 'sas_device_handle']:
+        for key in ['vendor', 'model', 'rev', 'sas_address', 'sas_device_handle']:
             metadata[key] = get_file_contents(sysdir + "/device/" + key)
 
         for key in ['sectors', 'size']: