Bug 1359313
Summary: | Cinder volume encryption with iSCSI backend doesn't work | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Tom Barron <tbarron> |
Component: | openstack-cinder | Assignee: | Tom Barron <tbarron> |
Status: | CLOSED ERRATA | QA Contact: | lkuchlan <lkuchlan> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.0 (Kilo) | CC: | eharney, lyarwood, mschuppe, nlevinki, pablo.iranzo, pgrist, scohen, sknauss, srevivo, tbarron, tshefi, vcojot |
Target Milestone: | async | Keywords: | ZStream |
Target Release: | 7.0 (Kilo) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-cinder-2015.1.3-8.el7ost | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 1359197 | Environment: | |
Last Closed: | 2016-08-31 17:38:32 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: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1359197 |
Comment 4
Tom Barron
2016-08-01 12:09:36 UTC
Tested using:
openstack-cinder-2015.1.3-8.el7ost.noarch
python-cinderclient-1.2.1-3.el7ost.noarch
python-cinder-2015.1.3-8.el7ost.noarch
Verification flow:
[root@cougar01 tempest(keystone_admin)]# cinder type-create LUKS
+--------------------------------------+------+
| ID | Name |
+--------------------------------------+------+
| 9450e004-7163-4f78-8784-13575c28e2bd | LUKS |
+--------------------------------------+------+
[root@cougar01 tempest(keystone_admin)]# cinder encryption-type-create --cipher aes-xts-plain64 --key_size 512 \
> --control_location front-end LUKS nova.volume.encryptors.luks.LuksEncryptor
+--------------------------------------+-------------------------------------------+-----------------+----------+------------------+
| Volume Type ID | Provider | Cipher | Key Size | Control Location |
+--------------------------------------+-------------------------------------------+-----------------+----------+------------------+
| 9450e004-7163-4f78-8784-13575c28e2bd | nova.volume.encryptors.luks.LuksEncryptor | aes-xts-plain64 | 512 | front-end |
+--------------------------------------+-------------------------------------------+-----------------+----------+------------------+
[root@cougar01 tempest(keystone_admin)]# cinder type-key LUKS set volume_backend_name=Netapp1
[root@cougar01 tempest(keystone_admin)]# cinder extra-specs-list
+--------------------------------------+-------+--------------------------------------+
| ID | Name | extra_specs |
+--------------------------------------+-------+--------------------------------------+
| 9450e004-7163-4f78-8784-13575c28e2bd | LUKS | {u'volume_backend_name': u'Netapp1'} |
| a46b6b92-fb46-4463-aec2-9b4f7f29484d | iscsi | {u'volume_backend_name': u'lvm'} |
+--------------------------------------+-------+--------------------------------------+
[root@cougar01 tempest(keystone_admin)]# cinder create 1 --volume-type LUKS
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2016-08-08T14:48:47.479552 |
| display_description | None |
| display_name | None |
| encrypted | True |
| id | c293547a-9f74-4a4d-bbb4-eb5341086239 |
| metadata | {} |
| multiattach | false |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| volume_type | LUKS |
+---------------------+--------------------------------------+
[root@cougar01 tempest(keystone_admin)]# cinder list
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| c293547a-9f74-4a4d-bbb4-eb5341086239 | available | - | 1 | LUKS | false | |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
[root@cougar01 tempest(keystone_admin)]# nova boot --flavor 1 --image 7513c5ab-2574-4245-9dde-f06d947b21de --nic net-id=a4143383-2383-4fb8-b49a-208debf61cc4 vm
+--------------------------------------+-----------------------------------------------+
| Property | Value |
+--------------------------------------+-----------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | |
| OS-EXT-SRV-ATTR:host | - |
| OS-EXT-SRV-ATTR:hypervisor_hostname | - |
| OS-EXT-SRV-ATTR:instance_name | instance-00000003 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| OS-SRV-USG:launched_at | - |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | MsSzu8Nr5izM |
| config_drive | |
| created | 2016-08-08T14:47:41Z |
| flavor | m1.tiny (1) |
| hostId | |
| id | 951a6974-0aa8-4dd0-81c7-9acdad8925b4 |
| image | cirros (7513c5ab-2574-4245-9dde-f06d947b21de) |
| key_name | - |
| metadata | {} |
| name | vm |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tenant_id | a593ed86d05e433d8c8b86c8679227f1 |
| updated | 2016-08-08T14:47:41Z |
| user_id | 97ee77d442434c7583b0cd651a8a8857 |
+--------------------------------------+-----------------------------------------------+
[root@cougar01 tempest(keystone_admin)]# nova list
+--------------------------------------+------+--------+------------+-------------+---------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+---------------------+
| 951a6974-0aa8-4dd0-81c7-9acdad8925b4 | vm | ACTIVE | - | Running | public=172.24.4.230 |
+--------------------------------------+------+--------+------------+-------------+---------------------+
[root@cougar01 tempest(keystone_admin)]# nova volume-attach 951a6974-0aa8-4dd0-81c7-9acdad8925b4 c293547a-9f74-4a4d-bbb4-eb5341086239
+----------+--------------------------------------+
| Property | Value |
+----------+--------------------------------------+
| device | /dev/vdb |
| id | c293547a-9f74-4a4d-bbb4-eb5341086239 |
| serverId | 951a6974-0aa8-4dd0-81c7-9acdad8925b4 |
| volumeId | c293547a-9f74-4a4d-bbb4-eb5341086239 |
+----------+--------------------------------------+
[root@cougar01 tempest(keystone_admin)]# cinder list
+--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+
| c293547a-9f74-4a4d-bbb4-eb5341086239 | in-use | - | 1 | LUKS | false | 951a6974-0aa8-4dd0-81c7-9acdad8925b4 |
+--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-1791.html |