Trying this has helped, somewhat:<div><br></div><div><div>keystone --os_username=admin --os_password=password -os_auth_url=<a href="http://192.168.1.50:35357/v2.0/">http://192.168.1.50:35357/v2.0/</a> </div><div>--os_tenant_id=6bda9db28517438b8bb1f1d8cd22ddb2 service-list</div>
<div>+----+------+------+-------------+</div><div>| id | name | type | description |</div><div>+----+------+------+-------------+</div><div>+----+------+------+-------------+</div><div><br></div><div>Why am I getting an empty service list?</div>
<div><br></div><div>/etc/keystone/default_catalog.templates looks like this, with  <a href="http://192.168.1.50">http://192.168.1.50</a> substituted for <span style="background-color:rgb(255,255,255);color:rgb(51,51,51);font-family:'Bitstream Vera Sans Mono','Courier New',monospace;font-size:12px;line-height:16px;white-space:pre">%SERVICE_HOST%</span></div>
<div><br></div><div><a href="https://github.com/openstack-dev/devstack/blob/master/files/default_catalog.templates">https://github.com/openstack-dev/devstack/blob/master/files/default_catalog.templates</a>
</div><div><br></div><div>Nick</div><br><div class="gmail_quote">On Fri, May 4, 2012 at 1:08 AM, Dolph Mathews <span dir="ltr"><<a href="mailto:dolph.mathews@gmail.com" target="_blank">dolph.mathews@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra">"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.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">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.</div>
<span class="HOEnZb"><font color="#888888">
<div class="gmail_extra"><br></div></font></span><div class="gmail_extra"><span class="HOEnZb"><font color="#888888">-Dolph<br><br></font></span><div class="gmail_quote"><div><div class="h5">On Wed, May 2, 2012 at 11:38 PM, Nick Lothian <span dir="ltr"><<a href="mailto:nick.lothian@gmail.com" target="_blank">nick.lothian@gmail.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">I'm having some trouble using the Keystone API.<div><br></div><div>When I run </div>
<div><br></div><div><div>keystone --os_username=admin --os_password=password --os_auth_url=<a href="http://192.168.1.50:5000/v2.0/" target="_blank">http://192.168.1.50:5000/v2.0/</a> service-list</div>

</div><div><br></div><div>I get the following:</div><div><br></div><div><div>No handlers could be found for logger "keystoneclient.v2_0.client"</div><div>Unable to communicate with identity service: 404 Not Found</div>


<div><br></div><div>The resource could not be found.</div><div><br></div><div>   . (HTTP 404)</div></div><div><br></div><div><br></div><div>The keystone log shows the following:</div><div><br></div><div><div>(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</div>


<div><br></div></div><div><br></div><div>Additionally, if I use curl to call the keystone API directly (as documented at <a href="http://keystone.openstack.org/api_curl_examples.html#id4" target="_blank">http://keystone.openstack.org/api_curl_examples.html#id4</a>) my whole serviceCatalog section is empty ("serviceCatalog": {})</div>


<div><br></div><div>I am using a default devstack installation.</div><div><br></div><div>What am I missing?</div>
<br></div></div><div class="im">_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></div></blockquote></div><br></div>
</blockquote></div><br></div>