Thanks.

Isn't the "EC2 MountPoint Property Type" used in Volumes property for
mounting storage volumes when the VM instance is already running? So the
effect would be similar to this working example:

 "DemoInstance" : {
   "Type" : "AWS::EC2::Instance",
   "Properties" : {
     "KeyName" : { "Ref" : "KeyName" },
     "ImageId" : "cirros-0.3.1-x86_64-disk",
     "InstanceType": "m1.small"
   }
  },

  "StorageVolume" : {
   "Type" : "OS::Cinder::VolumeAttachment",
   "Properties" : {
     "instance_uuid" : { "Ref" : "DemoInstance" },
     "mountpoint" : "/dev/vdb",
     "volume_id" : "04fbad7a-41bf-41d9-9b53-2c2bb715f25c"
   }
  }

...but the question remains is it possible somehow to define that the
instance is started (booted) from the volume. E.g. instead of ImageId
defined for AWS::EC2::Instance, define the reference to the  volume
somehow.



On 9 December 2013 12:56, Juha Tynninen <[email protected]> wrote:

> Hi,
>
> I'm using stable/havana version of Openstack.
>
> I can boot instance from the pre-existing bootable Cinder volume with nova
> command:
> nova boot --flavor 2 --block_device_mapping vda=<volume id>:::0 <name for
> instance>
>
> ...but how can this be done with a Heat template? Or can it be done?
>
> AWS::EC2::Instance resource doesn't seem to have a property for this.
>
> Thanks,
> -Juha
>
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to