# keystone\_user questions

**URL:** <https://forum.ansible.com/t/keystone-user-questions/14795>\
**Category:** Ansible Project\
**Created:** [March 17, 2014, 6:30pm UTC](https://forum.ansible.com/t/keystone-user-questions/14795 "2014-03-17T18:30:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kesten\_Broughton2](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Post date:** [March 17, 2014, 6:30pm UTC](https://forum.ansible.com/t/keystone-user-questions/14795/1 "2014-03-17T18:30:36Z")

</div>

I am able to connect to my openstack private cloud directly using pyrax.  
I have ~/.pyrax.cfg and ~/.pyrax.creds to accomplish this.

Now i'm trying to get it working via ansible. In the docs, it's not clear  
how the example tenant creation is authenticated.

[http://docs.ansible.com/keystone\_user\_module.html](http://docs.ansible.com/keystone_user_module.html)

# Create a tenant

- keystone\_user: tenant=demo tenant\_description="Default Tenant"

> From the openstack controller it works

root@node-8:~# keystone --os-token \*\*mytoken\*\* tenant-delete --name  
lynx-dev3

WARNING: Bypassing authentication using a token & endpoint (authentication  
credentials are being ignored).

---

<div class="post-metadata">

**Author:** ![Kesten\_Broughton2](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Post date:** [March 17, 2014, 9:36pm UTC](https://forum.ansible.com/t/keystone-user-questions/14795/2 "2014-03-17T21:36:21Z")

</div>

My apologies, I had previously used the tenant.yml playbook without modification.  
On my new openstack cloud, i had to change the endpoint from the default

> > [http://127.0.0.1:35357/v2.0/](http://127.0.0.1:35357/v2.0/) |
> 
> - | - |

to the value in my openrc  
OS\_AUTH\_URL “[http://10.x.y.z:35357/v2.0/](http://10.x.y.z:35357/v2.0/)”

I also switched from token to login\_user and login\_password authentication for the admin user of the admin tenant.

I then see the following error:

TASK: [Create Tenant] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

failed: [node-8] =\> {“failed”: true, “item”: “”}

msg: Current authorization does not have a known management url

FATAL: all hosts have already failed – aborting
