[openstack-dev] [Heat] referencing the index of a ResourceGroup

Jason Greathouse jason.greathouse at leankit.com
Thu Sep 11 15:06:01 UTC 2014


My mistake about the mailing list, The openstack heat wiki page (
https://wiki.openstack.org/wiki/Heat) only lists the "dev" list. I will
make sure to ask future usage questions on the other one.

Thank you for the response and example. This is what I was missing.

On Thu, Sep 11, 2014 at 3:21 AM, Steven Hardy <shardy at redhat.com> wrote:

> On Wed, Sep 10, 2014 at 04:44:01PM -0500, Jason Greathouse wrote:
> >    I'm trying to find a way to create a set of servers and attach a new
> >    volume to each server.
> >    I first tried to use block_device_mapping but that requires an
> existing
> >    snapshot or volume and the deployment would fail when Rackspace
> >    intermittently timed out trying to create the new volume from a
> >    snapshot.
> >    I'm now trying with 3 ResourceGroups: OS::Cinder::Volume to build
> volumes
> >    followed by OS::Nova::Server and then trying to attach the volumes
> >    with  OS::Cinder::VolumeAttachment.
>
> Basically creating lots of resource groups for related things is the wrong
> pattern.  You need to create one nested stack template containing the
> related things (Server, Volume and VolumeAttachment in this case), and use
> ResourceGroup to multiply them as a unit.
>
> I answered a similar question here on the openstack general ML recently
> (which for future reference may be a better ML for usage questions like
> this, as it's not really development discussion):
>
> http://lists.openstack.org/pipermail/openstack/2014-September/009216.html
>
> Here's another example which I used in a summit demo, which I think
> basically does what you need?
>
>
> https://github.com/hardys/demo_templates/tree/master/juno_summit_intro_to_heat/example3_server_with_volume_group
>
> Steve.
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



-- 
*Jason Greathouse*
Sr. Systems Engineer

*[image: LeanKitlogo] <https://leankit.com/>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140911/5b64a3b9/attachment.html>


More information about the OpenStack-dev mailing list