Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-26656

[OS::Nova::Server] Please support block_device_mapping_v2.volume_type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • openstack-heat
    • 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 }

      }}

              rh-ee-dhrusing Dhruvendra Singh
              rh-ee-dhrusing Dhruvendra Singh
              rhos-dfg-df
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: