| Summary: | Unable to restore encrypted volume when default exists | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | bkopilov <bkopilov> |
| Component: | openstack-cinder | Assignee: | Eric Harney <eharney> |
| Status: | CLOSED DUPLICATE | QA Contact: | nlevinki <nlevinki> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.0 (Liberty) | CC: | eharney, sgotliv, yeylon |
| Target Milestone: | --- | Keywords: | ZStream |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-04-11 13:18:08 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
*** This bug has been marked as a duplicate of bug 1325749 *** |
Description of problem: 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-lvmdriver-1 volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver 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-9e1a-4203-a622-4fd5527ac704 | lvmdriver-1 | - | True | | abf68fd7-6f29-49f1-810a-f5179dfe5c41 | tempest-scenario-type-cryptsetup-766034649 | - | True | +--------------------------------------+--------------------------------------------+-------------+-----------+ stack@debian:~$ cinder type-show tempest-scenario-type-cryptsetup-766034649 +---------------------------------+--------------------------------------------+ | Property | Value | +---------------------------------+--------------------------------------------+ | description | None | | extra_specs | {} | | id | abf68fd7-6f29-49f1-810a-f5179dfe5c41 | | is_public | True | | name | tempest-scenario-type-cryptsetup-766034649 | | os-volume-type-access:is_public | True | | qos_specs_id | None | +---------------------------------+--------------------------------------------+ stack@debian:~$ cinder show 212cf84a-81c0-41bf-967a-13f62d20870b +--------------------------------+----------------------------------------------+ | Property | Value | +--------------------------------+----------------------------------------------+ | attachments | [] | | availability_zone | nova | | bootable | false | | consistencygroup_id | None | | created_at | 2016-04-07T07:22:10.000000 | | description | None | | encrypted | True | | id | 212cf84a-81c0-41bf-967a-13f62d20870b | | metadata | {} | | migration_status | None | | multiattach | False | | name | tempest-TestEncryptedCinderVolumes-743000316 | | os-vol-host-attr:host | debian.example.com@lvmdriver-1#lvmdriver-1 | | os-vol-mig-status-attr:migstat | None | | os-vol-mig-status-attr:name_id | None | | os-vol-tenant-attr:tenant_id | b15fbad351a54d12b03ce67608c2d545 | | replication_status | disabled | | size | 1 | | snapshot_id | None | | source_volid | None | | status | available | | updated_at | 2016-04-07T07:29:39.000000 | | user_id | e247edd4759345ab900ece2f2285c7ca | | volume_type | tempest-scenario-type-cryptsetup-766034649 | +--------------------------------+----------------------------------------------+ stack@debian:~$ cinder backup-show 22d47be8-f151-461a-be90-e33553ccf711 +-----------------------+----------------------------------------+ | Property | Value | +-----------------------+----------------------------------------+ | availability_zone | nova | | container | volumebackups | | created_at | 2016-04-07T07:28:54.000000 | | data_timestamp | 2016-04-07T07:28:54.000000 | | description | None | | fail_reason | None | | has_dependent_backups | False | | id | 22d47be8-f151-461a-be90-e33553ccf711 | | is_incremental | False | | name | tempest-scenario-type-backup-513595382 | | object_count | 22 | | size | 1 | | snapshot_id | None | | status | available | | updated_at | 2016-04-07T07:29:39.000000 | | volume_id | 212cf84a-81c0-41bf-967a-13f62d20870b | +-----------------------+----------------------------------------+ stack@debian:~$ cinder list --all-tenants +--------------------------------------+----------------------------------+-----------------+-----------------------------------------------------+------+--------------------------------------------+----------+-------------+ | ID | Tenant ID | Status | Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+----------------------------------+-----------------+-----------------------------------------------------+------+--------------------------------------------+----------+-------------+ | 212cf84a-81c0-41bf-967a-13f62d20870b | b15fbad351a54d12b03ce67608c2d545 | available | tempest-TestEncryptedCinderVolumes-743000316 | 1 | tempest-scenario-type-cryptsetup-766034649 | false | | | b3ae2e35-180d-4181-8662-e33a08ce2532 | 833254ee96fc43b79dd9d17441b78c40 | error_restoring | restore_backup_22d47be8-f151-461a-be90-e33553ccf711 | 1 | lvmdriver-1 | false | | +--------------------------------------+----------------------------------+-----------------+-----------------------------------------------------+------+--------------------------------------------+----------+-------------+ Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. After install , default volume-type exists , its the only type. 2. Created volume-type and attach it to encrypted type. 3. Create volume , create backup 4. Restore action will fail. Actual results: Restore fails Expected results: Restore should be to the original type and not the default. Additional info: