-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
-
3
-
False
-
-
False
-
?
-
rhos-ops-day1day2-edpm
-
None
-
-
-
-
EDPM Sprint 20, EDPM Sprint 21
-
2
-
Moderate
The Compute API starting from 2.67 supports a volume_type setting in POST /servers (array |device_mapping_v2).
However Heat does not support this API, making it a bit messy to create a new server with a root volume of non-default type:
{{ vm2_vol: type: OS::Cinder::Volume properties: volume_type: luks-hdd size: 50 image: vm.debian-12.6 vm2: type: OS::Nova::Server depends_on: [ vm2_vol ] properties: key_name:
{ get_param: keypair }flavor: Small block_device_mapping: - device_name: "vda" volume_id:
{ get_resource: vm2_vol }networks: - port:
{ get_resource: vm2_port_public }- port:
{ get_resource: vm2_port_internal }}}
This leads to an error each time the server is re-created, because Heat doesn’t know it needs to recreate the root volume as well.
It would be nice to have the following work:
{{vm2: type: OS::Nova::Server depends_on: [ vm2_vol ] properties: key_name:
{ get_param: keypair }flavor: Small block_device_mapping_v2: - device_name: "vda" delete_on_termination: true volume_size: 50 image: vm.debian-12.6 volume_type: luks-hdd networks: - port:
{ get_resource: vm2_port_public }- port:
{ get_resource: vm2_port_internal }}}