yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #09044
[Bug 1273326] [NEW] glance image-list does not show deleted/killed images
Public bug reported:
I have 3 killed images and one in the 'deleted' state which I can see in
the postgres database. When I try to run glance image-list, however,
none of them are shown.
I tried debugging this and placed a pdb.set_trace() call in
glance/registry/api/v1/images.py:Controller._get_images where the
self.db_api.image_get_all call is made
(https://github.com/openstack/glance/blob/stable/havana/glance/registry/api/v1/images.py#L108).
If I try to make this call manually it returns an empty list on the
first try, but all subsequent tries with the same arguments return the
right list with all the 4 images. Does anyone know what's going on?
I have only tried reproducing this on Havana.
** Affects: glance
Importance: Undecided
Status: New
** Description changed:
I have 3 killed images and one in the 'deleted' state which I can see in
the postgres database. When I try to run glance image-list, however,
none of them are shown.
I tried debugging this and placed a pdb.set_trace() call in
glance/registry/api/v1/images.py:Controller._get_images where the
- self.db_api.image_get_all call is made. If I try to make this call
- manually it returns an empty list on the first try, but all subsequent
- tries with the same arguments return the right list with all the 4
- images. Does anyone know what's going on?
+ self.db_api.image_get_all call is made
+ (https://github.com/openstack/glance/blob/stable/havana/glance/registry/api/v1/images.py#L108).
+ If I try to make this call manually it returns an empty list on the
+ first try, but all subsequent tries with the same arguments return the
+ right list with all the 4 images. Does anyone know what's going on?
I have only tried reproducing this on Havana.
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1273326
Title:
glance image-list does not show deleted/killed images
Status in OpenStack Image Registry and Delivery Service (Glance):
New
Bug description:
I have 3 killed images and one in the 'deleted' state which I can see
in the postgres database. When I try to run glance image-list,
however, none of them are shown.
I tried debugging this and placed a pdb.set_trace() call in
glance/registry/api/v1/images.py:Controller._get_images where the
self.db_api.image_get_all call is made
(https://github.com/openstack/glance/blob/stable/havana/glance/registry/api/v1/images.py#L108).
If I try to make this call manually it returns an empty list on the
first try, but all subsequent tries with the same arguments return the
right list with all the 4 images. Does anyone know what's going on?
I have only tried reproducing this on Havana.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1273326/+subscriptions
Follow ups
References