I am creating this as the first service with the token and url environment variables assigned.
Followed steps from this page --> http://docs.openstack.org/kilo/install-guide/install/apt/content/keystone-services.html
And my keystone conf changes,
[DEFAULT]
admin_token = ab973e842bed7e89fc78
log_dir = /var/log/keystone
verbose = True
[database]
connection=mysql://keystone:nefw#007@controller/keystone
[memcache]
servers = localhost:11211
[token]
provider=keystone.token.providers.uuid.Provider
driver = keystone.token.persistence.backends.memcache.Token
[revoke]
driver = keystone.contrib.revoke.backends.sql.Revoke
root@XXX-XX-156:/home/mkrish004c/openstack/kilo# export OS_TOKEN=ab973e842bed7e89fc78(given in keystone.conf)
root@XXX-XX-156:/home/mkrish004c/openstack/kilo# export OS_URL=http://10.xx.xx.xx:35357/v2.0
root@XXX-XX-156:/home/mkrish004c/openstack/kilo# openstack service create --type identity --description "OpenStack Identity" keystone
/usr/lib/python2.7/dist-packages/novaclient/v1_1/__init__.py:30: UserWarning: Module novaclient.v1_1 is deprecated (taken as a basis for novaclient.v2). The preferable way to get client class or object you can find in novaclient.client module.
warnings.warn("Module novaclient.v1_1 is deprecated (taken as a basis for "
ERROR: openstack
using openstack --debug, getting the following exception
(openstack) user create --password-prompt admin
INFO: openstackclient.shell command: openstackclient.identity.v2_0.user.CreateUser
DEBUG: openstackclient.identity.v2_0.user.CreateUser take_action(Namespace(columns=[], disable=False, email=None, enable=False, formatter='table', max_width=0, name='admin', or_show=False, password=None, password_prompt=True, prefix='', project=None, variables=[]))
User Password:
Repeat User Password:
ERROR: openstack
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 303, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 91, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/dist-packages/openstackclient/identity/v2_0/user.py", line 105, in take_action
enabled=enabled,
File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/users.py", line 102, in create
return self._create('/users', params, "user", log=not bool(password))
File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 151, in _create
return self._post(url, body, response_key, return_raw, **kwargs)
File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 165, in _post
resp, body = self.client.post(url, body=body, **kwargs)
File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 170, in post
return self.request(url, 'POST', **kwargs)
File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 200, in request
resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 89, in request
return self.session.request(url, method, **kwargs)
File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 318, in inner
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 307, in request
auth_headers = self.get_auth_headers(auth)
File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 589, in get_auth_headers
return auth.get_headers(self, **kwargs)
File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/base.py", line 114, in get_headers
token = self.get_token(session)
File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/base.py ...
(more)
Can you provide the contents of your /etc/keystone/keystone.conf file as well any log output from /var/log/keystone/keystone.log and /var/log/keystone/keystone-all.log from the time when you are running the openstack-service-create? Thanks.
Added the logs in question, Thanks for your analysis.
See my updated, answer. I think I'm going to need more characters.
Also, I don't know if token_flush not working is intended, a bug, or a configuration problem that I also have. According to this link, it looks like they intended to have it in Kilo: http://docs.openstack.org/developer/keystone/configuration.html (http://docs.openstack.org/developer/k...) I haven't found anything on that problem yet...
I just folowd the steps from the installatn guide from http://docs.openstack.org/kilo/install-guide/ (http://docs.openstack.org/kilo/instal...) and note says for conf file changes "Default configuration files vary by distribution. You might need to add these sections and options rather than modifying existing sections and options."