[Openstack] How to fix this bug?

2017-03-12 Thread Sam
Hi all, I'm installing openstack ocata version, in this step: https://docs.openstack.org/ocata/install-guide-ubuntu/keystone-users.html I got error while run 'openstack' command: Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-1ee39bdd-03b8-4ea8-9432-d0

[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

[Openstack] How to fix this bug?

2017-03-12 Thread Sam
Hi all, I'm installing openstack ocata version, in this step: https://docs.openstack.org/ocata/install-guide-ubuntu/keystone-users.html I got error while run 'openstack' command: Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-1ee39bdd-03b8-4ea8-9432-d0

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

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] How to fix this bug?

2017-03-12 Thread Chris Suttles
Your env looks incorrect to me. Take a look here for setting those vars correctly: https://docs.openstack.org/ocata/install-guide-ubuntu/keystone-install.html It's crucial that you set those variables to the same information you provide to keystone in the steps listed there. On Sun, Mar 12, 2017

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 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 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
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 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 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] How to fix this bug?

2017-03-12 Thread Sam
Thank you, but which one is incorrect? All my passwd is set to 'gateway', and I use 'gateway' username not 'admin' or 'openstack'. And in https://docs.openstack.org/ocata/install-guide-ubuntu/ keystone-install.html this step, I set every thing as doc said except env as bellow, but event I set env

Re: [Openstack] How to fix this bug?

2017-03-12 Thread Mark Kirkwood
Hi, Assuming that the user and password are correct, then I'd look at the domain info - very easy to get tripped up about whether the name is 'Default' or 'default'. Maybe try setting the ID instead of the NAME e.g: export OS_USER_DOMAIN_ID=default export OS_PROJECT_DOMAIN_ID=default regards

Re: [Openstack] How to fix this bug?

2017-03-12 Thread Chris Suttles
The OS_PROJECT variable should probably still be admin. I urge you to consider following the guide verbatim, and customizing once you are done. -Chris > On Mar 12, 2017, at 6:32 PM, Sam wrote: > > Thank you, but which one is incorrect? > > All my passwd is set to 'gateway', and I use 'gatew

Re: [Openstack] How to fix this bug?

2017-03-12 Thread Mohit .
Hello Sam, Hope you must have bootstrapped keystone with the correct password ADMIN_PASS keystone-manage bootstrap --bootstrap-password ADMIN_PASS \ --bootstrap-admin-url http://controller:35357/v3/ \ --bootstrap-internal-url http://controller:5000/v3/ \ --bootstrap-public-url http://contr

Re: [Openstack] How to fix this bug?

2017-03-12 Thread Sam
Thank you all, I have solved by re-configure last 3 step in https://docs.openstack.org/ocata/install-guide-ubuntu/keystone-users.html by adding 'sudo', then it works. It seems that I miss some step... Thank you! 2017-03-13 10:16 GMT+08:00 Mohit . : > Hello Sam, > > Hope you must have bootstrapp