Unable to create tentant in keystone
I am following this instruction http://docs.openstack.org/juno/instal...
and I have made it untill this point where I set the token and endpoint
export OS_SERVICE_TOKEN= <my previously randomly genereted token set in the keystone.conf>
export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0
And when I enter the command:
keystone tenant-create --name admin --description "Admin Tenant"
I get this error:
--description "Admin Tenant" /usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient. 'python-keystoneclient.', DeprecationWarning) Unable to establish connection to http://controller:35357/v2.0/tenants
I suspect that this is because I dont have keystone running and listening to port 35357. But when I check service keystone status it says stop/waiting. When I run keystone with start it's status switches its (I am guessing) PID every second untill it stops.
I am a serous linux noob but I am willing to learn and understand what I am doing wrong here.
Edit1 output aftter -debug:
root@devf12-VirtualBox:/home/devf12# service keystone statuskeystone stop/waiting
root@devf12-VirtualBox:/home/devf12# service keystone startkeystone start/running, process 2671
root@devf12-VirtualBox:/home/devf12# keystone --debug tenant-create --name admin --description "Admin Tenant"
/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
'python-keystoneclient.', DeprecationWarning)
Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]
Edit2 I am at a total loss here:
root@devf12-VirtualBox:/home/devf12# export OS_AUTH_URL=http://controller:35357/v2.0
root@devf12-VirtualBox:/home/devf12# keystone --debug tenant-create --name admin --description "Admin Tenant"
/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
'python-keystoneclient.', DeprecationWarning)
Expecting authentication method via
either a service token, --os-token or env[OS_SERVICE_TOKEN],
credentials, --os-username or env[OS_USERNAME]
I put the same token in the export and the config file Here is the text version of the keystone.config file: https://www.dropbox.com/s/r7nz96zwgzu...
Edit3 here are the last lines of the log file:
2015-07-28 13:32:08.187 3052 CRITICAL keystone [-] ImportError: No module named persistence.backends.sql
2015-07-28 13:32:08.187 3052 TRACE keystone Traceback (most recent call last):
2015-07-28 13:32:08.187 3052 TRACE keystone File "/usr/bin/keystone-all", line 137, in <module>
2015-07-28 13:32:08.187 3052 TRACE keystone service.load_backends()
2015-07-28 13:32:08.187 3052 TRACE keystone File "/usr/lib/python2.7/dist-packages/keystone/service.py", line 58, in load_backends
2015-07-28 13:32:08.187 3052 TRACE keystone token_api=token.Manager(),
2015-07-28 13:32:08.187 3052 TRACE keystone File "/usr/lib/python2.7/dist-packages/keystone/common/dependency.py", line 166, in wrapper
2015-07-28 13:32:08.187 3052 TRACE keystone self.__wrapped_init__(*args, **kwargs)
2015-07-28 13:32:08.187 3052 TRACE keystone File "/usr/lib/python2.7/dist-packages/keystone/common/dependency.py ...