Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The bootable setting is automated once you create the volume and map it to the instance. You can't (as far as I know) set an attribute in the template. So, say you have:

    type: OS::Cinder::Volume
      name: "instance_volume"
      size: 10

And then you want this to become a boot device for your resource. You'll do:

instance: type: OS::Nova::Server properties: name: "instance_name" ... ... block_device_mapping: [{ device_name: "vda", volume_id : { get_resource : instance_volume }, delete_on_termination : "true" }]

And the created volume will be automatically set as bootable:

[stack@undercloud ~]$ openstack volume show instance_volume|grep bootable
    | bootable                     | true