[Openstack] [Heat] VolumeAttachement Groups

Abbass MAROUNI abbass.marouni at virtualscale.fr
Thu Sep 4 10:01:22 UTC 2014


Great, thanks steven.
Can we use this with a recent version of Heat (juno) or is it for the 
icehouse release ?

On 09/04/2014 11:34 AM, Steven Hardy wrote:
> On Tue, Sep 02, 2014 at 04:19:49PM +0200, Abbass MAROUNI wrote:
>> Hello,
>>
>> I would like to know if it's possible to use a Resource Group in Heat
>> templates to create cinder volumes and then another Resource Group to attach
>> these volumes to a VM.
>> So for a VM with 10 volumes we'll need 3 resources, 1 for the VM another
>> (ResourceGroup) for the creation of 10 volumes and a third (ResourceGroup)
>> for the attachement of the volumes.
> Yes, this is possible, but not quite via the method you describe.
>
> You need to create a number of nested stacks via one ResourceGroup, where
> the nested stack contains the volume and volume attachment resources (e.g
> the things you want to group), then you create the server and pass the ID
> in to all the nested stacks via a property specified in the resource group
> definition.
>
> I've just posted an example which shows how this works:
>
> https://review.openstack.org/119015
>
> Steve

-- 
--
Abbass MAROUNI
VirtualScale





More information about the Openstack mailing list