By request, I have created bug 1307696 (https://bugs.launchpad.net/glance/+bug/1307696) and (also by request), I am forwarding this email chain to openstack-dev.

~W



-------- Original Message --------
Subject: Re: [Openstack] Glance 500 errors
Date: Mon, 14 Apr 2014 14:43:00 -0400
From: William Dunn <wd...@mailtrust.com>
To: Damon Wang <damon.dev...@gmail.com>, Zhi Yan Liu <lzy....@gmail.com>
CC: openst...@lists.openstack.org <openst...@lists.openstack.org>

Yep, I can provide more logs:

First, I've done a bit more debugging and I'm pretty sure there's
nothing wrong with Keysonte.  I created a new user and gave that user
the admin role on the service tenant, just to check, and was able to get
tokens and whatnot; no change in behavior.

So, here's the registry log with sqlalchemy debug added into the mix.
  * during a "glance image-list":
http://pastie.org/private/gwkvnzh6n3o0koka5ohw
  * and during a "glance image-create blah blah < blah.img"
http://pastie.org/private/yqzjb7lg2odnevnzof67zg

(roughly the same in the api log as last night).

Also, I tried to drop and recreate the database using:
openstack-db --drop --service glance
openstack-db --init --service glance --password glance
(yeah, simple passwords, it's internal use only)
and I got the following error output:
http://hastebin.com/xanutudafa.md  (Sorry pastie.org max 64kb)
^^^ but that says Complete! at the end, so who knows, that may all be
normal(?).

And finally, you guys had said maybe wanting to see the config files, so
here's the api.conf:
http://pastie.org/private/bwphhktoeimbbclkvfqreq
and the glance-registry.conf:
http://pastie.org/private/q6abrp3bn0snfksxrj9k7a

Again, I verified the mysql connectivity works fine and i can write to
the image store dir:
http://pastie.org/private/vsnijulitckjhkg1tkwlnq

Hope this helps!

~Will



On 4/14/2014 3:29 AM, Damon Wang wrote:
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....@gmail.com
<mailto:lzy....@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 <wd...@mailtrust.com
    <mailto:wd...@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@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 � � : openst...@lists.openstack.org
    <mailto:openst...@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 � � : openst...@lists.openstack.org
    <mailto:openst...@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     : openst...@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack



_______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to