[Openstack] Glance 500 errors

Damon Wang damon.devops at gmail.com
Mon Apr 14 07:29:12 UTC 2014


Hi Will,

I agree to @zhiyan that the log are not valuable enough, in most cases, it
is because "Authorization Failure" for db's pass, or auth protocol or
others.

Anyway, please provide more log or config file's detail.

Hope it helps

Damon


2014-04-14 14:19 GMT+08:00 Zhi Yan Liu <lzy.dev at gmail.com>:

> In both glance-api logs [1][2], I think your registry service should
> got some problems when it handles glance-api requests, but from the
> glance-registry logs you provided, I can't found any valuable
> information for that case, so could you collect more logs? especially
> glance-registry service.
>
> zhiyan
>
> [1] 2014-04-13 15:40:18.247 11634 INFO
> glance.registry.client.v1.client [29ff632c-8a35-4502-a437-dc29a629e4cc
> c7cf091e6b184a17a361526e62c46fdd 16869d14f07048f59bb2bacff6fb18a5]
> Registry client request GET /images/detail raised ServerError
>
> [2] 2014-04-13 15:41:52.626 11634 INFO
> glance.registry.client.v1.client [091f2a2f-a786-4c81-ad98-8671b1ea914e
> c7cf091e6b184a17a361526e62c46fdd 16869d14f07048f59bb2bacff6fb18a5]
> Registry client request POST /images raised ServerError
>
> On Mon, Apr 14, 2014 at 3:47 AM, William Dunn <wdunn at mailtrust.com> wrote:
> > I'm working on setting up Havana on CentOS 6.5, bare metal.
> >
> > Everything seems cool up to here:
> >
> http://docs.openstack.org/havana/install-guide/install/yum/content/glance-verify.html
> >
> > but when I tried to load the test image into glance:
> > glance image-create --name="CirrOS 0.3.1" --disk-format=qcow2 \
> >   --container-format=bare --is-public=true < cirros-0.3.1-x86_64-disk.img
> > I get a 500 error:
> > http://pastie.org/private/l9hzbuacftyt9ashgt7ang
> >
> > I poked around, and discovered that I also get the same 500 error when I
> do a
> > glance image-list:
> > [root at box images]# glance image-list
> > Request returned failure status.
> > HTTPInternalServerError (HTTP 500)
> >
> > Doing a curl:
> > curl -i -X GET -H 'X-Auth-Token: blahblah' -H 'Content-Type:
> application/json' -H 'User-Agent: python-glanceclient'
> http://192.168.20.1:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20
> > returns:
> > HTTP/1.1 500 Internal Server Error
> > Content-Type: text/plain
> > Content-Length: 0
> > Date: Sun, 13 Apr 2014 19:44:51 GMT
> > Connection: close
> >
> > So, I googled, and I followed all the advice I found.  My
> filesystem_store_datadir
> > is set, I verified that there is a service tenant in keystone and a
> glance user
> > with admin credentials in keystone, the sql data is in both
> glance-api.conf and
> > glance-registry.conf, and is correct.  I verified that the unix user
> glance can
> > write to the image store directory, and that the mysql user glance can
> read/write
> > to the database glance, as specified.
> >
> > So, I bumped up to debug output for both the registry and api, and this
> is what
> > I've got:
> > Doing a glance image-list, registry log:
> > http://pastie.org/private/cshdglpjxasmitl480ljq
> > Doing a glance image-list, api log:
> > http://pastie.org/private/wkceq0bdrunsvvm9qemdow
> > Doing a glance image-create blahblahblah, registry log:
> > http://pastie.org/private/xxetsfl0nopcaszvsiemw
> > Doing a glance image-create blahblahblah, api log:
> > http://pastie.org/private/jmsa5y30xn6xpay77weea
> >
> > I can provide more info if needed, but I'm stumped at this point.  Any
> suggestions?
> >
> >
> > Will Dunn
> >
> >
> >
> > _______________________________________________
> > Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> > Post to     : openstack at lists.openstack.org
> > Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140414/9935db57/attachment.html>


More information about the Openstack mailing list