Comment 4 for bug 1465656

Revision history for this message
Eli Qiao (taget-9) wrote :

hi , but I don't get an error when boot from an encrypted volume on nova master commit af84e3dea346e706b3361d296c41161cc70d8d9e

I follow this guide to create encrypted type.
http://docs.openstack.org/juno/config-reference/content/section_create-encrypted-volume-type.html

taget@taget-ThinkStation-P300:/opt/stack/nova$ cinder encryption-type-list
+--------------------------------------+-------------------------------------------+-----------------+----------+------------------+
| Volume Type ID | Provider | Cipher | Key Size | Control Location |
+--------------------------------------+-------------------------------------------+-----------------+----------+------------------+
| 6ac309d3-5456-4270-9564-ae302f107290 | nova.volume.encryptors.luks.LuksEncryptor | aes-xts-plain64 | 512 | front-end |
+--------------------------------------+-------------------------------------------+-----------------+----------+------------------+

taget@taget-ThinkStation-P300:/opt/stack/nova$ cinder type-list
+--------------------------------------+-------------+-------------+-----------+
| ID | Name | Description | Is_Public |
+--------------------------------------+-------------+-------------+-----------+
| 1f7586c5-2aa8-4621-9bea-fbcbcbe89fa3 | lvmdriver-1 | - | True |
| 6ac309d3-5456-4270-9564-ae302f107290 | LUKS | - | True |
+--------------------------------------+-------------+-------------+-----------+

taget@taget-ThinkStation-P300:~$ cinder list
+--------------------------------------+-----------+-------------------------------+------+-------------+----------+-------------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Multiattach | Attached to |
+--------------------------------------+-----------+-------------------------------+------+-------------+----------+-------------+-------------+
| 20a3793c-906e-4b57-a54a-a8609edb0f53 | available | cirros-0.3.4-x86_64-uec-lucks | 5 | LUKS | true | False | |
| 46094a91-98cd-49dc-a4fe-b20cb9dcaf46 | available | encrypted volume | 1 | LUKS | false | False | |
| 8855d314-a16a-4be1-b943-f02c54e1a84d | available | unencrypted volume | 1 | lvmdriver-1 | false | False | |
+--------------------------------------+-----------+-------------------------------+------+-------------+----------+-------------+-------------+

then create an instance from 20a3793c-906e-4b57-a54a-a8609edb0f53

with this nova boot --boot-volume 20a3793c-906e-4b57-a54a-a8609edb0f53 --nic net-id=e1d6382e-0e01-4172-9772-19d83058f8f3 --flavor 2 test-volume

and I can see that vm can boot up without errors, did I miss something?

hi Joel, can you try my steps from nova command line to reproduce this issue?

Eli.