yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #87127
[Bug 1922928] Re: Image tasks API excludes in-progress tasks
Any idea if this reaches further back than Wallaby?
** Also affects: glance/xena
Importance: High
Assignee: Dan Smith (danms)
Status: Fix Released
** Also affects: glance/wallaby
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1922928
Title:
Image tasks API excludes in-progress tasks
Status in Glance:
Fix Released
Status in Glance wallaby series:
New
Status in Glance xena series:
Fix Released
Bug description:
The glance /images/$uuid/tasks API is excluding in-progress tasks,
leading to test failures like this one:
Traceback (most recent call last):
File "/opt/stack/tempest/tempest/api/image/v2/test_images.py", line 111, in test_image_glance_direct_import
self.assertEqual(1, len(tasks['tasks']))
File "/opt/stack/tempest/.tox/tempest/lib/python3.8/site-packages/testtools/testcase.py", line 415, in assertEqual
self.assertThat(observed, matcher, message)
File "/opt/stack/tempest/.tox/tempest/lib/python3.8/site-packages/testtools/testcase.py", line 502, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: 1 != 0
This is caused by the fact that we assert that the task is not expired by comparing the expires_at column to the current time. However, if the task is not completed yet, the expires_at will be NULL and never pass that test.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1922928/+subscriptions
References