Ask Your Question
1

Keystone configuration error: Client configured to run without a service

asked 2013-05-30 04:28:32 -0600

Jasper22 gravatar image

updated 2013-05-30 04:50:12 -0600

fifieldt gravatar image

Hi

I'm very confused with keystone configuration. Currently I'm using the keystone version from GitHub but the default packages from Ubuntu install provide the same results.

Actual error: Configuration error: Client configured to run without a service catalog.

Keystone version: keystone 1:2013.1-0ubuntu1.1

  • I deleted whole keystone database twice, re-created with db_sync command.
  • Added users, endpoints, roles, tenants according to tutorial: OPENSTACK INSTALL AND DEPLOY MANUAL - UBUNTU - GRIZZLY, 2013.1 (OBJECT STORAGE 1.8.0)
  • Double/triple checked that at keystone.conf file the [catalog] section says:
    [catalog]
    # dynamic, sql-based backend (supports API/CLI-based management commands)
    driver = keystone.catalog.backends.sql.Catalog

  • Installed swift on another computer (Ubuntu)

    but anytime when I run swift --debug --os-auth-url http://keystone-server:5000/v2.0 --os-username swift --os-password 123456 stat I receive an output:

 REQ: curl -i http://10.0.0.195:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient"
DEBUG:keystoneclient.client:REQ: curl -i http://10.0.0.195:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient"
REQ BODY: {"auth": {"passwordCredentials": {"username": "swift", "password": "123456"}}}

  DEBUG:keystoneclient.client:REQ BODY: {"auth": {"passwordCredentials": {"username": "swift", "password": "123456"}}}

  INFO:urllib3.connectionpool:Starting new HTTP connection (1): 10.0.0.195
  DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 1133
  RESP: [200] {'date': 'Thu, 30 May 2013 09:21:26 GMT', 'content-type': 'application/json', 'content-length': '1133', 'vary': 'X-Auth-Token'}
  RESP BODY: {"access": {"token": {"issued_at": "2013-05-30T09:21:26.202319", "expires": "2013-05-31T09:21:26Z", "id": "MIICbgYJKoZIhvcNAQcCoIICXzCCAlsCAQExCTAHBgUrDgMCGjCCAUcGCSqGSIb3DQEHAaCCATgEggE0eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNS0zMFQwOToyMToyNi4yMDIzMTkiLCAiZXhwaXJlcyI6ICIyMDEzLTA1LTMxVDA5OjIxOjI2WiIsICJpZCI6ICJwbGFjZWhvbGRlciJ9LCAic2VydmljZUNhdGFsb2ciOiBbXSwgInVzZXIiOiB7InVzZXJuYW1lIjogInN3aWZ0IiwgInJvbGVzX2xpbmtzIjogW10sICJpZCI6ICIzOTQwNzExMWVhZDM0NjkzODQ3M2I4MTZhNzQ4MWIzMSIsICJyb2xlcyI6IFtdLCAibmFtZSI6ICJzd2lmdCJ9LCAibWV0YWRhdGEiOiB7ImlzX2FkbWluIjogMCwgInJvbGVzIjogW119fX0xgf8wgfwCAQEwXDBXMQswCQYDVQQGEwJVUzEOMAwGA1UECBMFVW5zZXQxDjAMBgNVBAcTBVVuc2V0MQ4wDAYDVQQKEwVVbnNldDEYMBYGA1UEAxMPd3d3LmV4YW1wbGUuY29tAgEBMAcGBSsOAwIaMA0GCSqGSIb3DQEBAQUABIGAPbTCLvA25liyxaQqS0vjijdeIsyDPfFbx4Z3+2JXO+fe1oe0ZK3DVIeLftOM0i-VaJH8NbtwMlJeurM6Tzmi6olm1dCrewA7lKGqEhErT0MRHlAHxB6s2VIPBHDfwUSdjYgmXXZDLXDzp+pl+r7Mppk8+BLZNooaawF9VeqShrI="}, "serviceCatalog": [], "user": {"username": "swift", "roles_links": [], "id": "39407111ead346938473b816a7481b31", "roles": [], "name": "swift"}, "metadata": {"is_admin": 0, "roles": []}}}

  DEBUG:keystoneclient.client:RESP: [200] {'date': 'Thu, 30 May 2013 09:21:26 GMT', 'content-type': 'application/json', 'content-length': '1133', 'vary': 'X-Auth-Token'}
  RESP BODY: {"access": {"token": {"issued_at": "2013-05-30T09:21:26.202319", "expires": "2013-05-31T09:21:26Z", "id": "MIICbgYJKoZIhvcNAQcCoIICXzCCAlsCAQExCTAHBgUrDgMCGjCCAUcGCSqGSIb3DQEHAaCCATgEggE0eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNS0zMFQwOToyMToyNi4yMDIzMTkiLCAiZXhwaXJlcyI6ICIyMDEzLTA1LTMxVDA5OjIxOjI2WiIsICJpZCI6ICJwbGFjZWhvbGRlciJ9LCAic2VydmljZUNhdGFsb2ciOiBbXSwgInVzZXIiOiB7InVzZXJuYW1lIjogInN3aWZ0IiwgInJvbGVzX2xpbmtzIjogW10sICJpZCI6ICIzOTQwNzExMWVhZDM0NjkzODQ3M2I4MTZhNzQ4MWIzMSIsICJyb2xlcyI6IFtdLCAibmFtZSI6ICJzd2lmdCJ9LCAibWV0YWRhdGEiOiB7ImlzX2FkbWluIjogMCwgInJvbGVzIjogW119fX0xgf8wgfwCAQEwXDBXMQswCQYDVQQGEwJVUzEOMAwGA1UECBMFVW5zZXQxDjAMBgNVBAcTBVVuc2V0MQ4wDAYDVQQKEwVVbnNldDEYMBYGA1UEAxMPd3d3LmV4YW1wbGUuY29tAgEBMAcGBSsOAwIaMA0GCSqGSIb3DQEBAQUABIGAPbTCLvA25liyxaQqS0vjijdeIsyDPfFbx4Z3+2JXO+fe1oe0ZK3DVIeLftOM0i-VaJH8NbtwMlJeurM6Tzmi6olm1dCrewA7lKGqEhErT0MRHlAHxB6s2VIPBHDfwUSdjYgmXXZDLXDzp+pl+r7Mppk8+BLZNooaawF9VeqShrI="}, "serviceCatalog": [], "user": {"username": "swift", "roles_links": [], "id": "39407111ead346938473b816a7481b31", "roles": [], "name": "swift"}, "metadata": {"is_admin": 0, "roles": []}}}

  Traceback (most recent call last): 
File "/usr/bin/swift", line 1212, in <module>
error_queue)
File "/usr/bin/swift", line 570, in st_stat
headers = conn.head_account()
File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1026, in head_account
return self._retry(None, head_account)
File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 995, in _retry
self.url, self.token = self.get_auth()
File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 983, in get_auth
insecure=self.insecure)
File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 320, in get_auth
insecure=insecure)
File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 265, in get_keystoneclient_2_0
endpoint_type=endpoint_type)
File "/usr/lib/python2.7/dist-packages/keystoneclient/service_catalog.py", line 66, in url_for
raise exceptions.EmptyCatalog('The service catalog is empty.')
keystoneclient.exceptions.EmptyCatalog: The service catalog is empty.

On Ubuntu box where keystone installed the command keystone catalog always return empty

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
2

answered 2013-07-14 16:16:07 -0600

fraber gravatar image

updated 2013-07-15 15:51:16 -0600

smaffulli gravatar image

Following the instructions at http://docs.openstack.org/trunk/openstack-compute/install/apt/content/ I got the same error, but with a WARNING before:

WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). 
Configuration error: Client configured to run without a service catalog. Run the client using --os-auth-url or OS_AUTH_URinstead of --os-endpoint or OS_SERVICE_ENDPOINT, for example.

I was able to fix the issue by taking serious the WARNING part and removing the environment variables:

# unset OS_SERVICE_ENDPOINT
# unset OS_SERVICE_TOKEN
edit flag offensive delete link more

Comments

OK, it worked

moham gravatar imagemoham ( 2013-09-24 05:35:08 -0600 )edit
1

answered 2013-07-09 14:11:06 -0600

nishtha gravatar image

After dropping the table of keystone,re-create it,grant all privileges to all and run the db_sync command. If it is running fine, instead of adding the users,tenants and roles manually, create a file say keystone.sh in your user account containing the bash script described in http://docs.openstack.org/grizzly/basic-install/apt/content/basic-install_controller.html#basic-install_controller-keystone very correctly with no errors and run it using ./keystone.sh after changing it's permissions if necessary. Please do make sure that your environment variables are set or write them in .bashrc file and reboot the system so that the environment variables are loaded in each login. For me, it worked when I faced the same problem when installing openstack grizzly on ubuntu 13.04

edit flag offensive delete link more
0

answered 2018-09-13 13:36:34 -0600

novainfinite gravatar image

open a new command line and copy export OS_USERNAME=admin export OS_PASSWORD=PA$$WORD export OS_PROJECT_NAME=admin export OS_USER_DOMAIN_NAME=Default export OS_PROJECT_DOMAIN_NAME=Default export OS_AUTH_URL=http://controller:35357/v3 export OS_IDENTITY_API_VERSION=3

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-05-30 04:28:32 -0600

Seen: 6,553 times

Last updated: Sep 13