yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #22471
[Bug 1373073] Re: Image v1 json client timeout while checking that image was deleted
Thanks Roman for confirmation.
** Changed in: glance
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1373073
Title:
Image v1 json client timeout while checking that image was deleted
Status in OpenStack Image Registry and Delivery Service (Glance):
Invalid
Status in Tempest:
Invalid
Bug description:
Description:
- Icehouse Openstack cloud
- Tempest commit 4b1b8cfd4526203e5706ec387cf6362ecaa5ed5b
I'm getting tearDown class error after executing image tests
<testcase classname="" name="tearDownClass (tempest.api.image.v1.test_images.CreateRegisterImagesTest)" time="0.000">
<failure type="testtools.testresult.real._StringException">_StringException: Traceback (most recent call last):
File "/home/user/WF_tempest/tempest-icehouse/tempest/api/image/base.py", line 58, in tearDownClass
cls.client.wait_for_resource_deletion(image_id)
File "/home/user/WF_tempest/tempest-icehouse/tempest/common/rest_client.py", line 551, in wait_for_resource_deletion
raise exceptions.TimeoutException
TimeoutException: Request timed out
After some investiogation, i've found that client tried to check
deleted VM by
def is_resource_deleted(self, id):
try:
self.get_image_meta(id)
except exceptions.NotFound:
return True
return False
But get_image_meta able to get metadata of deleted image, it just has
status = deleted.
My quick fix was:
def is_resource_deleted(self, id):
try:
_, meta = self.get_image_meta(id)
if meta['status'] == 'deleted':
return True
except exceptions.NotFound:
return True
return False
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1373073/+subscriptions