<div dir="ltr">You can't bypass authentication with, say, keystone.conf admin_token and get a catalog. A catalog is produced as the result of authentication. Run the client with a set of credentials (user, password, tenant, auth URL) and you'll be able to get a catalog, and glanceclient will probably work as well.</div>
<div class="gmail_extra"><br clear="all"><div><div><br></div>-Dolph</div>
<br><br><div class="gmail_quote">On Thu, May 2, 2013 at 7:51 AM, Dennis Jacobfeuerborn <span dir="ltr"><<a href="mailto:dennisml@conversis.de" target="_blank">dennisml@conversis.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 01.05.2013 20:34, Jay Pipes wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 05/01/2013 02:28 PM, Dennis Jacobfeuerborn wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
I'm currently working on setting up OpenStack using Ansible (after<br>
giving up on Puppet) and have keystone running and Glance running.<br>
The problem I now have is that the client doesn't seem to work:<br>
<br>
[root@controller1 ~]# glance index<br>
ID                                   Name                           Disk<br>
Format          Container Format     Size<br>
------------------------------<u></u>------ ------------------------------<br>
-------------------- -------------------- --------------<br>
'NoneType' object has no attribute 'rfind'<br>
[root@controller1 ~]# glance image-list<br>
'NoneType' object has no attribute 'rfind'<br>
[root@controller1 ~]# glance image-create --name=cirros-0.3-x86_64<br>
--is-public=true --container-format=bare --disk-format=qcow2 <<br>
cirros-0.3.0-x86_64-disk.img<br>
'NoneType' object has no attribute 'rfind'<br>
<br>
Unfortunately I don't get any meaningful error and the api and registry<br>
logs don't show anything either despite debug=True.<br>
<br>
Any ideas how I could find out what the problem is?<br>
</blockquote>
<br>
The problem is likely your image endpoint in the Keystone service catalog.<br>
</blockquote>
<br></div>
Ineed the endpoint variables in the ansible template weren't substituted due to a typo and after fixing this I no longer get the error and image-list and image-create now work as expected. Thanks!<div class="im"><br>

<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What does `keystone service-catalog` show?<br>
</blockquote>
<br></div>
There is only a 'catalog' command and that throws an error:<br>
<br>
[root@controller1 ~]# keystone catalog<br>
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).<br>
Configuration error: Client configured to run without a service catalog. Run the client using --os-auth-url or OS_AUTH_URL, instead of --os-endpoint or OS_SERVICE_ENDPOINT, for example.<br>
<br>
This is strange though because commands like "service-list" and "endpoint-list" work without any problem.<br>
Any idea what is special about 'catalog' to show this behaviour?<br>
<br>
Regards,<br>
  Dennis<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~<u></u>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/~<u></u>openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/<u></u>ListHelp</a><br>
</div></div></blockquote></div><br></div>