Rajat Dhasmana 75714711f2 Fix multipath resize map with friendly names
When multipath is enabled and friendly names are ON and we try
to extend a volume, we pass the SCSI WWID to the multipath_resize_map
method which is not correct.

There are 2 things we can pass to the multipathd resize map command:

1) Multipath device (eg: dm-0)
2) Alias (eg: mpath1) or UUID (eg: 36005076303ffc56200000000000010aa)

The value should be an alias (mpath1) when friendly names are ON
and UUID (36005076303ffc56200000000000010aa) when friendly names
are OFF. However, we only pass the UUID irrespective of the value
set for friendly names.

This patch passes the multipath device path (to multipathd resize
map command) which is the real path of the multipath device (/dev/dm-*).
This fixes the issue as it passes the same value irrespective of if
the friendly names are ON or OFF.

-> self.multipath_resize_map(os.path.realpath(mpath_device))

(Pdb) mpath_device
'/dev/disk/by-id/dm-uuid-mpath-3600140522774ce73be84f9cb9537e0c9'

(Pdb) os.path.realpath(mpath_device)
'/dev/dm-5'

Closes-Bug: 1609753
Change-Id: I1c60af19c2ebaa9de878cd07cfc0077c5ea56fe3
2023-07-27 21:12:52 +00:00
2022-07-19 12:40:57 +02:00
2022-08-18 14:04:26 -04:00
2016-04-20 15:52:31 +00:00
2019-04-19 19:34:25 +00:00
2015-01-22 19:09:30 +00:00
2017-10-02 17:35:26 -05:00
2022-09-09 10:27:46 +00:00
2019-01-18 21:30:00 -05:00
2015-01-22 19:09:30 +00:00
2022-08-25 14:00:42 +00:00
2016-04-04 18:02:19 -04:00
2023-04-21 16:39:09 +00:00
2020-04-05 17:43:12 +02:00
2023-05-02 09:35:21 -04:00
2023-01-25 10:17:21 -05:00

Team and repository tags

image

brick

Latest Version

Downloads

OpenStack Cinder brick library for managing local volume attaches

Features

  • Discovery of volumes being attached to a host for many transport protocols.
  • Removal of volumes from a host.

Hacking

Hacking on brick requires Python 3.8+. A recent tox is required, as is a recent virtualenv (20.2.2 or newer).

For any other information, refer to the developer documents:

https://docs.openstack.org/os-brick/latest/

OR refer to the parent project, Cinder:

https://docs.openstack.org/cinder/latest/

Release notes for the project can be found at:

https://docs.openstack.org/releasenotes/os-brick

Description
Volume discovery and local storage management lib
Readme 31 MiB
Languages
Python 99.6%
Shell 0.4%