cinder/cinder/volume/drivers/hpe
Gorka Eguileor ce90774678 3PAR: Fix live migration
After live migrating a volume into the 3PAR driver the volume would be
unusable.  And we would no longer be able to do any operation with it.

Migrated in-use volumes cannot be renamed when migrated and therefore
need to use the "_name_id" field of the Volume object (volumes table in
the DB) to store the original volume's ID so the driver can locate the
volume.

The problem is that, even though the 3PAR driver sets the "_name_id"
field, it doesn't use it for any operation, so once the volume has been
migrated and the ID of the volume no longer matches the one that was
used to create the volume (value now in "_name_id") it will no longer be
able to locate the volume.

This patch adds the logic necessary to locate volumes using the
"_name_id" field.

Closes-Bug: #1697422
Change-Id: I27b9d4be419e1b52db02d4525b292ceeb5d5f867
(cherry picked from commit fc51678298)
(cherry picked from commit cfde6bd1c0)
Conflicts:
	cinder/tests/unit/volume/drivers/hpe/test_hpe3par.py
	cinder/volume/drivers/hpe/hpe_3par_common.py
	cinder/volume/drivers/hpe/hpe_3par_iscsi.py
2020-07-06 13:49:05 +02:00
..
__init__.py Refactor HP 3PAR drivers to now be HPE 2015-11-12 12:46:35 -08:00
hpe_3par_base.py Add get_driver_options method 2019-03-07 09:18:01 -05:00
hpe_3par_common.py 3PAR: Fix live migration 2020-07-06 13:49:05 +02:00
hpe_3par_fc.py 3PAR: Add config for NSP single path attach 2019-08-30 14:12:27 +00:00
hpe_3par_iscsi.py 3PAR: Fix live migration 2020-07-06 13:49:05 +02:00
hpe_lefthand_iscsi.py Add get_driver_options method 2019-03-07 09:18:01 -05:00