Trying this has helped, somewhat: keystone --os_username=admin --os_password=password -os_auth_url= http://192.168.1.50:35357/v2.0/ --os_tenant_id=6bda9db28517438b8bb1f1d8cd22ddb2 service-list +----+------+------+-------------+ | id | name | type | description | +----+------+------+-------------+ +----+------+------+-------------+
Why am I getting an empty service list? /etc/keystone/default_catalog.templates looks like this, with http://192.168.1.50 substituted for %SERVICE_HOST% https://github.com/openstack-dev/devstack/blob/master/files/default_catalog.templates Nick On Fri, May 4, 2012 at 1:08 AM, Dolph Mathews <dolph.math...@gmail.com>wrote: > "service-list" calls the admin API (port 35357), but the auth_url you > provided was port 5000. I don't think the current keystoneclient is smart > enough to try and switch to the correct endpoint. If you have an admin > role, switching to port 35357 should work for you. > > Additionally, you won't get a service catalog without also providing a > tenant, so that behavior is by design as well. Try --os_tenant_name or > --os_tenant_id if using the client, or providing "tenantName" or "tenantId" > in your "auth" object for curl. > > -Dolph > > On Wed, May 2, 2012 at 11:38 PM, Nick Lothian <nick.loth...@gmail.com>wrote: > >> I'm having some trouble using the Keystone API. >> >> When I run >> >> keystone --os_username=admin --os_password=password --os_auth_url= >> http://192.168.1.50:5000/v2.0/ service-list >> >> I get the following: >> >> No handlers could be found for logger "keystoneclient.v2_0.client" >> Unable to communicate with identity service: 404 Not Found >> >> The resource could not be found. >> >> . (HTTP 404) >> >> >> The keystone log shows the following: >> >> (eventlet.wsgi.server): 2012-05-03 14:03:12,840 DEBUG wsgi write >> 192.168.1.50 - - [03/May/2012 14:03:12] "GET /v2.0/OS-KSADM/services >> HTTP/1.1" 404 176 0.008028 >> >> >> Additionally, if I use curl to call the keystone API directly (as >> documented at http://keystone.openstack.org/api_curl_examples.html#id4) >> my whole serviceCatalog section is empty ("serviceCatalog": {}) >> >> I am using a default devstack installation. >> >> What am I missing? >> >> _______________________________________________ >> Mailing list: https://launchpad.net/~openstack >> Post to : openstack@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~openstack >> More help : https://help.launchpad.net/ListHelp >> >> >
_______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp