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
# 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).
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/ |
to the value in my openrc
OS_AUTH_URL “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