75714711f2

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
Team and repository tags
brick
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:
- OR refer to the parent project, Cinder:
- Release notes for the project can be found at:
- License: Apache License, Version 2.0
- Source: https://opendev.org/openstack/os-brick
- Bugs: https://bugs.launchpad.net/os-brick
Description
Languages
Python
99.6%
Shell
0.4%