Mount multiple cinder volumes to VM via heat
I am using following heat template to attach multiple volumes to my VM.
cinder_relhighiops_volume:
type: OS::Cinder::Volume
properties:
size: { get_param: volume_size }
availability_zone: { get_param: availability_zone }
volume_type: relhighiops_type
volume_attachment:
type: OS::Cinder::VolumeAttachment
properties:
volume_id: { get_resource: cinder_relhighiops_volume }
instance_uuid: { get_resource: my_instance }
cinder_highcap_volume:
type: OS::Cinder::Volume
properties:
size: { get_param: volume_size }
availability_zone: { get_param: availability_zone }
volume_type: highcap_type
volume_attachment:
type: OS::Cinder::VolumeAttachment
properties:
volume_id: { get_resource: cinder_highcap_volume }
instance_uuid: { get_resource: my_instance }
It always attaches the last entry, i.e., cinder_highcap_volume, and ignores others. I wonder if values preceding it are somehow getting overwritten. Any ideas?
Thanks,
Nodir