Unable to create a tenant for an administrative user. Please help me [closed]
Hi,
Is there any export who can help me to fix this issue.. This is very urgent for me to understand this kind of error. I am waiting for your response .. I had modified my keystone config file..
grep ^[^#] /etc/keystone/keystone.conf
[DEFAULT]
[DEFAULT]
admin_token = f17fa36e2167c95b8a54
log_file = /var/log/keystone/keystone.log
log_dir = /var/log/keystone
[sql]
connection = mysql://keystone:labs#123@localhost/keystone
[identity]
driver = keystone.identity.backends.sql.Identity
[credential]
driver = keystone.credential.backends.sql.Credential
[trust]
driver = keystone.trust.backends.sql.Trust
[os_inherit]
[catalog]
driver = keystone.catalog.backends.sql.Catalog
[endpoint_filter]
[token]
driver = keystone.token.backends.sql.Token
[cache]
[policy]
driver = keystone.policy.backends.sql.Policy
[ec2]
driver = keystone.contrib.ec2.backends.kvs.Ec2
[assignment]
[oauth1]
[ssl]
[signing]
token_format = UUID
[ldap]
[auth]
methods = external,password,token,oauth1
password = keystone.auth.plugins.password.Password
token = keystone.auth.plugins.token.Token
oauth1 = keystone.auth.plugins.oauth1.OAuth
[paste_deploy]
config_file = keystone-paste.ini
[ sql]
connection = mysql://keystone:labs#123@control/keystone
Initially I was getting below ''Unable to establish" error and the service was dead state..
[root@control ~]# export SERVICE_TOKEN=ADMIN
[root@control ~]# export SERVICE_ENDPOINT=http://control:35357/v2.0
[root@control ~]# keystone tenant-create --name=admin --description="Admin Tenant"
Unable to establish connection to http://control:35357/v2.0/tenants
[root@control ~]# /etc/init.d/openstack-keystone status
keystone dead but pid file exists
So I found the root cause for above as per below log and after I comment this line in conf file "keystone-paste.ini", still having same issue.. and as per log there are some Authorization failed.. Please please advise me if any modification require on this stage.
tail -f keystone.log
2014-02-09 15:56:43.971 1885 CRITICAL keystone [-] The Keystone paste configuration file keystone-paste.ini could not be found.
2014-02-09 15:58:39.156 1937 INFO keystone.common.environment [-] Environment configured as: eventlet
2014-02-09 15:58:40.154 1937 WARNING keystone.token.provider [-] keystone.conf [signing] token_format is deprecated in favor of keystone.conf [token] provider
2014-02-09 15:58:40.380 1937 INFO keystone.common.environment.eventlet_server [-] Starting /usr/bin/keystone-all on 0.0.0.0:35357
2014-02-09 15:58:40.405 1937 INFO keystone.common.environment.eventlet_server [-] Starting /usr/bin/keystone-all on 0.0.0.0:5000
2014-02-09 16:00:03.733 1937 WARNING keystone.common.wsgi [-] Authorization failed. The request you have made requires authentication. from 192.168.2.60
2014-02-09 16:05:34.703 1937 WARNING keystone.common.wsgi [-] Authorization failed. The request you have made requires authentication. from 192.168.2.60
2014-02-09 16:30:32.615 2031 INFO keystone.common.environment [-] Environment configured as: eventlet
2014-02-09 16:30:32.630 2031 CRITICAL keystone [-] No section 'admin' (prefixed by 'app' or 'application' or 'composite' or 'composit' or 'pipeline' or 'filter-app') found in config /etc/keystone/keystone.conf
[root@control ~]# /etc/init.d/openstack-keystone status
keystone (pid 1937) is running...
[root@control ~]# keystone tenant-create --name=admin --description="Admin Tenant"
Invalid OpenStack Identity credentials.
Advance Thanks to all,,,
Thanks all to view this link ...
Did you set up service token and endpoint as suggested in official documentation ? Please refer the following link. If you still have issue, please let us know. We will help you to solve your issue http://docs.openstack.org/havana/install-guide/install/apt/content/keystone-users.html
Thank you Dheeru for giving your attention.. Yes I have followed official documentation.. I am stuck in to define users, tenants, and roles on identity service. I have configured each step properly. Please advise me if is there any log location to troubleshoot the above error...
http://docs.openstack.org/havana/install-guide/install/yum/content/keystone-users.html
I updated below token as per my requirement.. Is this correct or please advise if I modify anything ..
# export OS_SERVICE_TOKEN=labs#123
# export OS_SERVICE_ENDPOINT=http://control:35357/v2.0
Thank you,,
This surprised me. Can you ping me on dheerendra.madhusudhana@gmail.com ?
also look at the sample configuration posted by me in http://virtual2privatecloud.com/keystone-sample-configuration/
Thank you for giving this link. I think it will help me to fix this issue. I will check today and I will post the update on this.. Thank you very much