Closed AJNOURI closed 7 years ago
In fact, it is more a lack of knowledge than an error. The type LUKS, just needs to be create first. No need for epiphany to find it out, check the documentation which is by the way available on the exam:
openstack volume type create LUKS
+---------------------------------+--------------------------------------+ | Field | Value | +---------------------------------+--------------------------------------+ | description | None | | id | dc1f9f78-b08d-4695-b74f-7d472aa84d6b | | is_public | True | | name | LUKS | | os-volume-type-access:is_public | True | +---------------------------------+--------------------------------------+
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 | +--------------------------------------+-------------------------------------------+-----------------+----------+------------------+ | dc1f9f78-b08d-4695-b74f-7d472aa84d6b | nova.volume.encryptors.luks.LuksEncryptor | aes-xts-plain64 | 512 | front-end | +--------------------------------------+-------------------------------------------+-----------------+----------+------------------+
Then create a simple volume with LUKS type:
openstack volume create --size 1 --type LUKS encr-vol1
+---------------------+--------------------------------------+ | Field | Value | +---------------------+--------------------------------------+ | attachments | [] | | availability_zone | nova | | bootable | false | | consistencygroup_id | None | | created_at | 2017-01-16T00:13:19.228018 | | description | None | | encrypted | True | | id | e3b00bc2-5a4f-434f-ab0f-6326461d1141 | | migration_status | None | | multiattach | False | | name | encr-vol1 | | properties | | | replication_status | disabled | | size | 1 | | snapshot_id | None | | source_volid | None | | status | creating | | type | LUKS | | updated_at | None | | user_id | 6994b730621e4ab1a85dcb4a3088309f | +---------------------+--------------------------------------+
Both openstack and cinder commands don't seem to accept LUKS (encrypted type)
openstack volume create --type LUKS --size 1 encrvol1
orcinder create --volume-type LUKS --name encr-vol1 1