]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: Add support for mpath devices to gather-facts
authorPaul Cuzner <pcuzner@redhat.com>
Fri, 29 Apr 2022 06:01:15 +0000 (18:01 +1200)
committerPaul Cuzner <pcuzner@redhat.com>
Fri, 13 May 2022 00:59:18 +0000 (12:59 +1200)
commitccb47b06f65cd514d9eff0c83d1c2aae72869a14
treecbc3a84115d63502639ec8f4aba623ca0888fe8a
parent1ffef5da9e56059adce9032f22746ec85c4ea4f1
cephadm: Add support for mpath devices to gather-facts

multipath devices typically show as 2 device nodes, so
gather-facts needs to use the serial number of the
device to ensure the disk/flash counts and capacity
calculations are not twice as big as they should be.

In addition to logic changes,
- the device data includes new fields: disk_type (hdd|flash),
  serial, and alt_dev_name. The alt_dev_name shows the
  alternate device name for the same serial number (when a
  serial number is not present, this is just '')
- enclosure information (SES only) is included based
  on device serial number. This maps serial numbers to slots
  and provides a breakdown of the slot states
- the supported block device list now excludes loopback and
  mdraid (/dev/md*) devices

Fixes: https://tracker.ceph.com/issues/55489
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
src/cephadm/cephadm