My glance-api-paste.ini already had the credentials when I posted the problem. Also, my python-glance package is Essex, just like the other openstack packages. After giving <i>glance -d index</i> as input, I noticed something that's pretty much obvious: The error comes from the response to the attempt at authenticating the user. I'm gonna double-check the credentials in the config files, then gonna report here. <div>
<br><div class="gmail_quote">2012/10/4 Jon Thomas <span dir="ltr"><<a href="mailto:jthomas@redhat.com" target="_blank">jthomas@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, 2012-10-04 at 11:41 -0500, Ahmed Al-Mehdi wrote:<br>
> Hi Janis,<br>
><br>
><br>
> Just fyi, in the Folsom release the lines with the "%…%" in<br>
> glance-api.conf  and glance-api-paste.ini are not present.  Document<br>
> instructs user to add the three relevant lines to [filter.authtoken]<br>
> section.<br>
><br>
</div>It looked to me that there were some config file changes in folsom.<br>
<br>
glance index works fine for me and I have in glance-api-paste.ini<br>
<br>
[filter:authtoken]<br>
paste.filter_factory = keystone.middleware.auth_token:filter_factory<br>
delay_auth_decision = true<br>
admin_tenant_name = service<br>
admin_user = glance<br>
admin_password = servicepass<br>
<br>
and in glance-api.conf there is no [filter:authtoken]. However there is<br>
[keystone_authtoken], but it's unchanged<br>
<br>
[keystone_authtoken]<br>
<div class="im">auth_host = 127.0.0.1<br>
auth_port = 35357<br>
auth_protocol = http<br>
admin_tenant_name = %SERVICE_TENANT_NAME%<br>
admin_user = %SERVICE_USER%<br>
admin_password = %SERVICE_PASSWORD%<br>
<br>
</div>Another possiblity for the 500 error might be that the<br>
python-glanceclient package is essex, not folsom. I had a 500 error with<br>
nova that was due to the python-novaclient package being essex, while<br>
nova packages were folsom.<br>
<div class="im"><br>
><br>
> Regards,<br>
> Ahmed.<br>
><br>
><br>
><br>
> From: J?nis ?e??eris <<a href="mailto:janis.gengeris@gmail.com">janis.gengeris@gmail.com</a>><br>
> Date: Thursday, October 4, 2012 7:24 AM<br>
> To: Daniel Oliveira <<a href="mailto:dvalbrand@gmail.com">dvalbrand@gmail.com</a>><br>
> Cc: "<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>" <<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>><br>
> Subject: Re: [Openstack] Just a newbie getting some error messages<br>
><br>
><br>
><br>
> When you have fresh install you will usually have something like this<br>
> in glance-api.conf<br>
><br>
><br>
> [filter:authtoken]<br>
> auth_host = 127.0.0.1<br>
> auth_port = 35357<br>
> auth_protocol = http<br>
> admin_tenant_name = %SERVICE_TENANT_NAME%<br>
> admin_user = %SERVICE_USER%<br>
> admin_password = %SERVICE_PASSWORD%<br>
><br>
><br>
> and something similar inside glance-api-paste.ini<br>
><br>
><br>
> So if you have these lines with %SERVICE_USER%, %SERVICE_PASSWORD%, %<br>
</div>> SERVICE_TENANT_NAME%, you need to replace them all with real user<br>
<div class="HOEnZb"><div class="h5">> credentials that have been configured in Keystone.<br>
><br>
><br>
> Here you can see sample config files with the sections configured:<br>
> <a href="http://docs.openstack.org/trunk/openstack-compute/install/content/glance-api-paste-file.html" target="_blank">http://docs.openstack.org/trunk/openstack-compute/install/content/glance-api-paste-file.html</a><br>

> <a href="http://docs.openstack.org/trunk/openstack-compute/install/content/glance-api-conf-file.html" target="_blank">http://docs.openstack.org/trunk/openstack-compute/install/content/glance-api-conf-file.html</a><br>

><br>
> On Thu, Oct 4, 2012 at 4:36 PM, Daniel Oliveira <<a href="mailto:dvalbrand@gmail.com">dvalbrand@gmail.com</a>><br>
> wrote:<br>
>         Hello Janis,<br>
><br>
><br>
>         I'm not sure if I understood what I should replace. Do you<br>
>         mean replacing, for example:<br>
><br>
><br>
>         the line<br>
>         admin_user = glance<br>
>         in the [filter:authtoken] section<br>
><br>
><br>
>         for the line<br>
>         admin_user = %glance?<br>
><br>
><br>
>         and so on for the other credentials?<br>
><br>
>         2012/10/4 J?nis ?e??eris <<a href="mailto:janis.gengeris@gmail.com">janis.gengeris@gmail.com</a>><br>
>                 Hi Daniel,<br>
><br>
><br>
>                 Do you have set up [filter:authtoken] section in<br>
>                 glance-api-paste.ini? You need to replace the strings<br>
>                 with percent signs with correct auth credentials.<br>
><br>
><br>
>                 To get more precise output use, 'glance -d index',<br>
>                 that will show additional debug information.<br>
><br>
>                 On Thu, Oct 4, 2012 at 4:07 PM, Daniel Oliveira<br>
>                 <<a href="mailto:dvalbrand@gmail.com">dvalbrand@gmail.com</a>> wrote:<br>
><br>
>                         Hello,<br>
><br>
><br>
>                         I've been trying to install OpenStack on a<br>
>                         server by following the manual installation<br>
>                         tutorial on <a href="http://openstack.org" target="_blank">openstack.org</a> for Ubuntu Server<br>
>                         12.04 (and that's the OS I'm using,<br>
>                         obviously). But when it comes to test whether<br>
>                         Glance was installed successfully<br>
>                         (<a href="http://docs.openstack.org/essex/openstack-compute/install/apt/content/images-verifying-install.html" target="_blank">http://docs.openstack.org/essex/openstack-compute/install/apt/content/images-verifying-install.html</a>), I get the following error message:<br>

><br>
><br>
>                         Failed to show index. Got error:<br>
>                         Unexpected responde: 500<br>
><br>
><br>
>                         The same happens when I try to do glance<br>
>                         index, which I guess should produce no output<br>
>                         instead. I really need some help on this,<br>
>                         since I'm not that experient with linux. Sorry<br>
>                         for any grammar errors, english is not my<br>
>                         native language ^_^. Thanks in advance,<br>
><br>
><br>
>                         --<br>
>                         My best regards,<br>
><br>
><br>
>                         Daniel Oliveira.<br>
><br>
><br>
><br>
><br>
>                         _______________________________________________<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">openstack@lists.launchpad.net</a><br>
>                         Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>                         More help   :<br>
>                         <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
><br>
><br>
><br>
><br>
><br>
>                 --<br>
>                 --janis<br>
><br>
><br>
><br>
><br>
>         --<br>
>         My best regards,<br>
><br>
><br>
>         Daniel Oliveira.<br>
><br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> --janis<br>
> _______________________________________________<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">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>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>My best regards,<div><br></div><div>Daniel Oliveira.</div><br>
</div>