integ/config/puppet-modules/openstack
Felipe Sanches Zanoni 0de8da2116 Fix puppet-ceph multipath osd disk partition detection
The puppet-ceph module is not correctly checking the OSD
partition when it belongs to a multipath disk or any /dev/dm-X
device.

This fix changes the parsing string when running ceph-disk list
command to verify osd disk is already created.

Without multipath disk, the readlink command will return,
for example, '/dev/sdb' for any partition of that disk.
The output of ceph-disk is like:

/dev/sdb :
  /dev/sdb1 ceph data, prepared, cluster ceph, osd.0, osd uuid
e3c08a72-c755-4dec-b353-e4df4b4690c4, journal /dev/sdb2
  /dev/sdb2 ceph journal, for /dev/sdb1

This way when grepping '/dev/sdb.*ceph data', it will detect
the line with the partition '/dev/sdb1' with no errors.

But with multipath disk the readlink command returns /dev/dm-X
for disks and partitions. For example, it will return /dev/dm-6
when using
/dev/dm-6 :
  /dev/dm-7 ceph data, prepared, cluster ceph, osd.0, osd uuid
e3c08a72-c755-4dec-b353-e4df4b4690c4, journal /dev/dm-8
  /dev/dm-8 ceph journal, for /dev/dm-7

This way when grepping '/dev/dm-6.*ceph data', it will not
detect the line with the partition /dev/dm-7.

Test-Plan:
  PASS: Fresh install AIO-SX with ceph backend and verify ceph
        is HEALTH_OK (with multipath disks)
  PASS: Lock/Unlock controller-0 and verify ceph is HEALTH_OK
        (with multipath disks)
  PASS: Fresh install AIO-SX with ceph backend and verify ceph
        is HEALTH_OK (with regular disks)
  PASS: Lock/Unlock controller-0 and verify ceph is HEALTH_OK
        (with regular disks)

Closes-bug: 2009227

Signed-off-by: Felipe Sanches Zanoni <Felipe.SanchesZanoni@windriver.com>
Change-Id: Iad11c803b68983ad70fb1edfce5a9acc156a10f4
2023-03-11 21:14:38 +00:00
..
puppet-ceph-2.2.0/centos puppet-ceph update broke the build 2022-05-25 18:26:17 +00:00
puppet-ceph-2.4.1/debian Fix puppet-ceph multipath osd disk partition detection 2023-03-11 21:14:38 +00:00
puppet-horizon-9.5.0/centos Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00
puppet-horizon-17.4.0/debian Debian: Add package for puppet-module-horizon-17.4.0. 2022-05-13 16:08:13 -04:00
puppet-keystone-11.3.0/centos Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00
puppet-keystone-17.4.0/debian Debian: Fix openstack secret get failure 2022-09-09 15:56:33 +00:00
puppet-openstacklib-11.3.0/centos Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00
puppet-openstacklib-17.4.0/debian Increase timeout for openstack commands 2022-10-20 10:34:03 -03:00
puppet-oslo-11.3.0/centos Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00
puppet-oslo-17.4.0/debian Debian: Replace deprecated idle_timeout parm on keystone 2022-03-18 00:58:57 -03:00