Re: [Openstack] HOT ResourceGroup index referencing with get_attr

2017-03-12 Thread Turbo Fredriksson
On 12 Mar 2017, at 18:56, Turbo Fredriksson wrote: > 2017-03-12 18:32:48Z [member_tcp_8301]: CREATE_FAILED > resources.member_tcp_8301: Property error: resources[1].properties.subnet: > Value must be a string I’m such a dope! subnet: type: comma_delimited_list description: List of

Re: [Openstack] HOT ResourceGroup index referencing with get_attr

2017-03-12 Thread Turbo Fredriksson
On 12 Mar 2017, at 18:09, Lars-Erik Helander wrote: > Here are two templates foo.yaml and bar.yaml Thanx, it looks like something I did, with a few details here and there different. But I’m starting to think that there’s something else a-foot here! 2017-03-12 18:32:48Z [member_tcp_8301]: CRE

Re: [Openstack] HOT ResourceGroup index referencing with get_attr

2017-03-12 Thread Lars-Erik Helander
Here are two templates foo.yaml and bar.yaml foo.yaml heat_template_version: newton description: > Create a set of channel ports on a specific network. parameters: network: type: string description: Network label: Network port_count: type: number description: Numb

Re: [Openstack] HOT ResourceGroup index referencing with get_attr

2017-03-12 Thread Turbo Fredriksson
On 12 Mar 2017, at 15:59, Lars-Erik Helander wrote: > I think you need to pass %index% in a string, e.g. Could you give me some examples? I’m really struggling to get this working! ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinf

Re: [Openstack] HOT ResourceGroup index referencing with get_attr

2017-03-12 Thread Lars-Erik Helander
I think you need to pass %index% in a string, e.g. type: Turbo::LoadBalancerMember properties: index: “%index%” instance: { get_attr: [instance, instance] } pool: { get_attr: [listener_tcp_8301, pool] } /Lasse On 2017-03-12, 16:0

Re: [Openstack] HOT ResourceGroup index referencing with get_attr

2017-03-12 Thread Turbo Fredriksson
On 12 Mar 2017, at 14:50, Turbo Fredriksson wrote: > So how do you pass on ‘%index%’ to that child? > > Because I still need to “retrieve” the IP with get_attr so I can send it to > the child.. Well, I could just send the whole ‘instance’ ID, and in the child retrieve it. But I still can’t fi

Re: [Openstack] HOT ResourceGroup index referencing with get_attr

2017-03-12 Thread Turbo Fredriksson
On 12 Mar 2017, at 14:03, Lars-Erik Helander wrote: > I have also had similar problems with %index% and have resolved these using > an additional “child” resource where I use “%index%” as a parameter and > within the child resource use { get_attr: [instance, address, index] } So how do you pa

Re: [Openstack] HOT ResourceGroup index referencing with get_attr

2017-03-12 Thread Lars-Erik Helander
I have also had similar problems with %index% and have resolved these using an additional “child” resource where I use “%index%” as a parameter and within the child resource use { get_attr: [instance, address, index] } /Lasse On 2017-03-12, 13:28, "Turbo Fredriksson" wrote: I'm trying to

[Openstack] HOT ResourceGroup index referencing with get_attr

2017-03-12 Thread Turbo Fredriksson
I'm trying to figure out a way to setup a [number of] 'OS::Neutron::LBaaS::PoolMember’ resource, from a list of IPs… I’m setting up my initial resources like this: —— s n i p —— resources: lbaas: type: Turbo::LoadBalancer properties: name: { get_param: 'OS::stack_name' } ne