Provide explicit task create and update value in controller tests

Assign an explicit created_at and updated_at datetime value to task DB
fixtures, it be used to fixes race condition in TasksController test
cases.

Closes-Bug: #1274365

Change-Id: I9f13c7e0e97085faac15713342808722a6692178
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Restore image status to 'queued' if upload failed

In v2, we're removing 'killed' status so as to let user
can retry upload if there is a failure. But based on
current implement, the image will be stuck in 'saving'
status when upload failed. This fix will restore the
image status to 'queued' to avoid the issue.

Closes-Bug: #1273087

Change-Id: Icd318e3e8d90b6837c84666c47f720b93febe228
Merge "Provide explicit task create and update value in controller tests"
Merge "Restore image status to 'queued' if upload failed"