Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Keystone configuration error: Client configured to run without a service

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

Keystone configuration error: Client configured to run without a service

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"}}}

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

"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