Bug 2318251
Summary: | [RFE] Set encryption via nova instance flavor | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Dustin Ash <duash> |
Component: | openstack-nova | Assignee: | OSP DFG:Compute <osp-dfg-compute> |
Status: | CLOSED MIGRATED | QA Contact: | OSP DFG:Compute <osp-dfg-compute> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 17.1 (Wallaby) | CC: | alifshit, dasmith, eglynn, jhakimra, kchamart, mwitt, sbauza, sgordon, smooney, vromanso |
Target Milestone: | --- | Keywords: | FeatureBackport, Triaged |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2025-01-14 21:00:35 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: |
Description
Dustin Ash
2024-10-11 21:11:59 UTC
*** Bug 2318250 has been marked as a duplicate of this bug. *** We discussed this during the team triage call and agree this is a reasonable request. For context, Cinder volume encryption is request by the volume type [1]. As Sean mentioned, you actually can do this today with images by using the 'cinder_img_volume_type' image property on the image [2]. Nova will call Cinder API and when Cinder sees 'cinder_img_volume_type' on the image, it will use it as the volume type. While not flavors, it is possible today to request a volume type when creating a server in the Nova API [3] by specifying the 'block_device_mapping_v2' request parameter and API microversion 2.67 [4] or later. For example with OSC [5] it would look something like this: openstack server create --flavor FLAVOR --network NETWORK --block-device uuid=IMAGE_UUID,source_type=image,destination_type=volume,volume_size=SIZE_GB,boot_index=0,volume_type=VOLUME_TYPE SERVER_NAME The above are mentioned FYI in case either of those methods work for you and you want to have something immediately. For the flavor extra spec, it will take some time for development upstream and then if possible, backport it to older versions. [1] https://docs.openstack.org/cinder/latest/configuration/block-storage/volume-encryption.html#volume-encryption [2] https://docs.openstack.org/cinder/latest/cli/cli-manage-volumes.html#cinder-img-volume-type [3] https://docs.openstack.org/api-ref/compute/#create-server [4] https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id61 [5] https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/server.html#server-create |