Unable to restore encrypted volume - restored with the wrong volume type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
In Progress
|
Medium
|
Yao wang |
Bug Description
Hi,
Setup : debian with devstack installation .
Description: The setup is configured with local lvm backend for cinder.
[lvmdriver-1]
lvm_type = default
iscsi_helper = tgtadm
volume_group = stack-volumes-
volume_driver = cinder.
volume_backend_name = lvmdriver-1
When we create an encrypted volume-type , the volume backup action done successfully but restore fails.
The reason is that restore action done on the wrong volume type ( default LVM and not encrypted type)
stack@debian:~$ cinder type-list
+------
| ID | Name | Description | Is_Public |
+------
| 73dba26b-
| abf68fd7-
+------
stack@debian:~$ cinder type-show tempest-
+------
| Property | Value |
+------
| description | None |
| extra_specs | {} |
| id | abf68fd7-
| is_public | True |
| name | tempest-
| os-volume-
| qos_specs_id | None |
+------
stack@debian:~$ cinder show 212cf84a-
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2016-04-
| description | None |
| encrypted | True |
| id | 212cf84a-
| metadata | {} |
| migration_status | None |
| multiattach | False |
| name | tempest-
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| replication_status | disabled |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| updated_at | 2016-04-
| user_id | e247edd4759345a
| volume_type | tempest-
+------
stack@debian:~$ cinder backup-show 22d47be8-
+------
| Property | Value |
+------
| availability_zone | nova |
| container | volumebackups |
| created_at | 2016-04-
| data_timestamp | 2016-04-
| description | None |
| fail_reason | None |
| has_dependent_
| id | 22d47be8-
| is_incremental | False |
| name | tempest-
| object_count | 22 |
| size | 1 |
| snapshot_id | None |
| status | available |
| updated_at | 2016-04-
| volume_id | 212cf84a-
+------
stack@debian:~$ cinder list --all-tenants
+------
| ID | Tenant ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 212cf84a-
| b3ae2e35-
+------
Thanks,
Benny
Changed in cinder: | |
assignee: | nobody → Cao ShuFeng (caosf-fnst) |
Changed in cinder: | |
importance: | Undecided → Medium |
Changed in cinder: | |
status: | In Progress → New |
tags: | added: bugsmash |
Changed in cinder: | |
assignee: | Cao ShuFeng (caosf-fnst) → Eric Harney (eharney) |
Changed in cinder: | |
assignee: | Eric Harney (eharney) → Yao wang (wangyao18322710251) |
status: | New → In Progress |
The problem caused when we have existing type and its the main backend , restore wont work for encrypted volumes.
Once we delete volume-type , restore works !
Why ?
Benny