[Openstack] heat autoscaling group/instance relationships

Mike Spreitzer mspreitz at us.ibm.com
Tue Jun 10 23:34:35 UTC 2014


Aaron Knister <aaron.knister at gmail.com> wrote on 06/10/2014 02:40:09 PM:

> I'm trying to figure out how to determine all instances that were 
> created as part of a given autoscaling group. I want to take a given
> autoscaling group and list all of its instances. So far I can't 
> figure out how to do this. The instances themselves have a tag 
> called "AutoScalingGroupName" (mystack-MyServerGroup-f3r72ifsj2jq 
> for example) but the value of that doesn't seem to map to anything. 
> A resource-show on the autoscaling group doesn't seem to show any 
> identifier that maps to the autoscaling group name. 

> Any ideas on how I can do this?

Each of the four kinds of scaling group (InstanceGroup, ResourceGroup, and 
both AutoScalingGroups) is a nested stack.  List its members the same way 
you would list the members of any nested stack.  E.g., on the CLI,

heat resource-list ${name or UUID of the nested stack}

That will give you a disappointing listing.  You can get a little more 
info about a given member by

heat resource-show ${name or UUID of the nested stack} ${member name}

That will still be disappointing.  But it will include the "physical ID" 
--- which is the UUID, and you already know how to get what you want from 
that.

Regards,
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140610/1b49c269/attachment.html>


More information about the Openstack mailing list