[openstack-dev] Glance GET /images/detail DetachedIntanceError on 'tags' attribute

Flavio Percoco flavio at redhat.com
Thu May 16 08:27:52 UTC 2013


On 15/05/13 15:51 -0500, Ray Pekowski wrote:
>   In my testing of Folsom in an HA environment including the use of
>   haproxy fronting three "contoller" nodes and mysql using wsrep on each
>   of those nodes I have been seeing an occasional HTTP 500 error on
>   Glance image list operations.  I don't know if this is due to my HA
>   environment.  I have only done a little troubleshooting and web
>   searching on the problem.  I'll be a little lazy and post what I am
>   seeing here in case it is a well known problem.  Here is a wireshark
>   dump of the failing API flying across the wire:

>   Any clue?


Yep, that looks like a bug. 

TL;DR:

The session attribute is removed from images dictionaries in the
to_dict method[0] and it looks like that's happening before tags are
loaded, which means that it won't be possible to load them since
there's no session and sqlalchemy gets really mad. :D

Please, file a bug for this.

Thanks a lot.
FF

[0]
https://github.com/openstack/glance/blob/master/glance/db/sqlalchemy/api.py#L606


-- 
{ name: "Flavio Percoco",
   gpg: "87112EC1", 
   internal: "8261386",
   phone: "+390687502386",
   irc: ["fpercoco", "flaper87"]}



More information about the OpenStack-dev mailing list