← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1488311] [NEW] import task still in progress although there occured an error

 

Public bug reported:

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.

** Affects: glance
     Importance: Undecided
     Assignee: wangxiyuan (wangxiyuan)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => wangxiyuan (wangxiyuan)

-- 
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:
  New

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


Follow ups