After migrate volume to 3PAR between different backends, fails to find and delete original volume

Bug #1889262 reported by Daniil Kharun
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Incomplete
Undecided
Unassigned

Bug Description

After you migrate a volume to a 3PAR between different backends, the original volume can then not be found and deleted by the driver. Because update_migrated_volume() is only executed for the new backend and cannot rename the original disk on the original backend.

1. Create volume on 3par (SSD):
openstack volume create --size 8 --type SSD TEST
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2020-07-28T14:47:18.000000 |
| description | None |
| encrypted | False |
| id | 65391c97-bc1e-4ab7-a027-6c2eb4a900d1 |
| migration_status | None |
| multiattach | False |
| name | TEST |
| properties | |
| replication_status | None |
| size | 8 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| type | SSD |
| updated_at | None |
| user_id | cf90b6beffd344c1b9f419cddae09394 |
+---------------------+--------------------------------------+

2. Retype volume
cinder retype --migration-policy on-demand TEST HDD

3. Show log

2020-07-28 17:53:26.466 46790 INFO cinder.volume.drivers.hpe.hpe_3par_common [req-8dd800e6-c91b-4cb6-88f1-5563bca3a6b3 cf90b6beffd344c1b9f419cddae09394 4cf8b74781414a2585fe49ac35d76adb - default default] Current volume changed from osv-3bdEsQZ0TASv6Oz4N8e4.A to osv-ZTkcl7weSregJ2wutKkA0Q
2020-07-28 17:53:26.753 46791 INFO cinder.volume.manager [req-8dd800e6-c91b-4cb6-88f1-5563bca3a6b3 cf90b6beffd344c1b9f419cddae09394 4cf8b74781414a2585fe49ac35d76adb - default default] Complete-Migrate volume completed successfully.
2020-07-28 17:53:26.754 46791 INFO cinder.volume.manager [req-8dd800e6-c91b-4cb6-88f1-5563bca3a6b3 cf90b6beffd344c1b9f419cddae09394 4cf8b74781414a2585fe49ac35d76adb - default default] Migrate volume completed successfully.
2020-07-28 17:53:26.970 46791 WARNING cinder.volume.drivers.hpe.hpe_3par_common [req-8dd800e6-c91b-4cb6-88f1-5563bca3a6b3 cf90b6beffd344c1b9f419cddae09394 4cf8b74781414a2585fe49ac35d76adb - default default] Delete volume id not found. Removing from cinder: ddb744b1-0674-4c04-afe8-ecf837c7b8f8 Ex: Not found (HTTP 404) 23 - volume does not exist: HTTPNotFound: Not found (HTTP 404) 23 - volume does not exist

4. Show VV on new 3par (HDD) backend:
cli%showvv osv-ZTkcl7weSregJ2wutKkA0Q
                                                                                      -Rsvd(MiB)- -(MiB)-
  Id Name Prov Compr Dedup Type CopyOf BsId Rd -Detailed_State- Snp Usr VSize
1623 osv-ZTkcl7weSregJ2wutKkA0Q tpvv No No base --- 1623 RW normal 1024 1024 8192
---------------------------------------------------------------------------------------------------------
   1 total 1024 1024 8192

5. Show VV on old 3par (SSD) backend:

cli% showvv osv-ZTkcl7weSregJ2wutKkA0Q
                                                                                     -Rsvd(MiB)- -(MiB)-
 Id Name Prov Compr Dedup Type CopyOf BsId Rd -Detailed_State- Snp Usr VSize
377 osv-ZTkcl7weSregJ2wutKkA0Q tdvv No Yes base --- 377 RW normal 1024 1024 8192
--------------------------------------------------------------------------------------------------------
  1 total 1024 1024 8192

Tags: 3par
Revision history for this message
Eric Harney (eharney) wrote :

This looks the same as this bug, which was recently fixed:

https://bugs.launchpad.net/cinder/+bug/1697422

Can you confirm which version of the code you are using?

Changed in cinder:
status: New → Incomplete
Revision history for this message
Daniil Kharun (harunaga) wrote :

You're right, it's the same bug.

Revision history for this message
Raghavendra Tilay (raghavendrat) wrote :

Hi Daniil,

Gorka Eguileor fixed this bug in master (at time it was Victoria).
https://review.opendev.org/#/c/730830/

Later, the fix was backported to Ussuri & Train as well.

Please check & let me know if this bug can be closed.

Regards,
Raghavendra Tilay.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.