yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #38577
[Bug 1488311] Re: import task still in progress although there occured an error
the same bug : https://bugs.launchpad.net/glance/+bug/1495519
** Changed in: glance
Status: In Progress => Invalid
** Changed in: glance
Assignee: wangxiyuan (wangxiyuan) => (unassigned)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1488311
Title:
import task still in progress although there occured an error
Status in Glance:
Invalid
Bug description:
Reproduce:
Create a import task like:
{
"type":"import",
"input":{
"import_from":"file://wrong_address", #1. wrong image address
# 2.lack of "import_from_format" , or even "import_from", "image_properties"
"image_properties":{
"disk_format":"qcow2",
"container_format":"bare",
"name":"test-task1"
}
}
}
It will return an error :
1. URLError: <urlopen error The given uri is not valid. Please specify a valid uri from the following list of supported uri ['http']>
2. Invalid: Input does not contain 'import_from_format' field
But command 'glance task-show task_id' : return that the task
status still in progress and will never be chaned.
Expect result : Task status is changed into failure.
The reason is that glance only checked the parameters before taskflow
start, but didn't do any dispose about task status.
As in taskflow, it has checked the parameters already, we could remove
the checking before the taskflow.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1488311/+subscriptions
References