HPE 3PAR: Retype from thin to full provisioning Fails on Replication setup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
In Progress
|
Undecided
|
Vivek Soni |
Bug Description
Observation -
Volume retype from ‘replication_
Steps To reproduce -
1. Create devstack.
2. Configure 3PAR with replication with this devstack
3. Create 2 volume-types, volumeType-1 and VolumeType-2
4. Set below extra specs on these Volume types
a. VolumeType-1: volume_
b. VolumeType-1: volume_
5. Create volume using VolumeType-1
6. Retype this volume to VolumeType-2
7. Verify the provisioning on the retyped volume.
Expected Result - Retyped volume should show provisioning as thin
Actual Result - Retype fails.
Note: - Issue is reproducible for retyping from thin to full as well.
Attaching relevant logs.
Below is the detailed output -
stack@cld6b16:~$ cinder extra-specs-list
+------
| ID | Name | extra_specs |
+------
| 01072a3a-
| 0f50088b-
| 189b165d-
| 1f2333e4-
| 4909cf60-
| ac6ebe23-
| b33b9f0c-
| b5c05556-
| e26aee11-
+------
stack@cld6b16:~$
stack@cld6b16:~$ cinder list
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 161ddcc3-
| b452bed5-
+------
stack@cld6b16:~$
stack@cld6b16:~$ cinder delete 6628-Scenario-1
Request to delete volume 6628-Scenario-1 has been accepted.
stack@cld6b16:~$
stack@cld6b16:~$
stack@cld6b16:~$ cinder list
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| affb42e3-
+------
stack@cld6b16:~$
NO VVs on Primary -
Retype from FullToThin
Existing Volume Types
stack@cld6b16:~$ cinder extra-specs-list
+------
| ID | Name | extra_specs |
+------
| 01072a3a-
| 0f50088b-
| 189b165d-
| 1f2333e4-
| 4909cf60-
| ac6ebe23-
| b33b9f0c-
| b5c05556-
| e26aee11-
+------
stack@cld6b16:~$
Create Volume with 3pariscsirep1 volume type
stack@cld6b16:~$ cinder create --name 6628-Scenario-3 --volume-type 3pariscsirep1 12 - This has full provisioning
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2017-08-
| description | None |
| encrypted | False |
| id | 7e52f5d5-
| metadata | {} |
| migration_status | None |
| multiattach | False |
| name | 6628-Scenario-3 |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| replication_status | None |
| size | 12 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| updated_at | None |
| user_id | 0911f154b383405
| volume_type | 3pariscsirep1 |
+------
stack@cld6b16:~$
Verify VOLUME Proproties on both array
Volume on Primary Array
CSIM-EOS07_1611168 cli% showvv -cpg TEST_RC_SRC_CPG
Id Name Prov Compr Dedup Type CopyOf BsId Rd -Detailed_State- Snp Usr VSize
71596 osv-flL11RpzT4i
71597 rcpy.366.71596.11 snp NA NA vcopy osv-flL11RpzT4i
-------
2 total 1024 12288 24576
CSIM-EOS07_1611168 cli%
Volume on Primary Array
CSIM-EOS12_1611702 cli% showvv -cpg TEST_RC_DEST_CPG
Id Name Prov Compr Dedup Type CopyOf BsId Rd -Detailed_State- Snp Usr VSize
8465 osv-flL11RpzT4i
-------
1 total 1024 12288 12288
CSIM-EOS12_1611702 cli%
Volume on Primary Array
Volume on Secondary Array
WE could see both volume with full provisioning in above case.
Now we'll retype the volume and verify whether provisioning changes to thin or not
stack@cld6b16:~$ cinder retype 6628-Scenario-3 3pariscsirep
stack@cld6b16:~$ cinder list
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 7e52f5d5-
+------
stack@cld6b16:~$ cinder list
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 7e52f5d5-
+------
+------
Retype with migration policy parameter
stack@cld6b16:~$ cinder retype --migration-policy on-demand 6628-Scenario-3 3pariscsirep
cinder stack@cld6b16:~$ cinder list
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 7e52f5d5-
+------
RETYPE FAILED
tags: | added: drivers hpe3par |
Fix proposed to branch: master /review. openstack. org/500348
Review: https:/