Image tasks API excludes in-progress tasks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Dan Smith | ||
Wallaby |
Fix Committed
|
Undecided
|
Unassigned | ||
Xena |
Fix Released
|
High
|
Dan Smith |
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/
self.
File "/opt/stack/
self.
File "/opt/stack/
raise mismatch_error
testtools.
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.
Changed in glance: | |
assignee: | nobody → Dan Smith (danms) |
Changed in glance: | |
status: | In Progress → Fix Released |
https:/ /review. opendev. org/c/openstack /glance/ +/785218