← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1492702] [NEW] import task doesn't check image properties

 

Public bug reported:

Reproduce:

Create a import task like:
{
    "type":"import",
    "input":{
        "import_from":"http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img";,
        "import_from_format":"",
        "image_properties":{
            "disk_format":"wrong-format",
            "container_format":"wrong-format",
            "name":"test-task"
        }
    }
}


Expect : raise an error, image_properties is invalid.

Actual : the task is done successful. but the image's disk_format or
container_format is "wrong-format".

** 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/1492702

Title:
  import task doesn't check image properties

Status in Glance:
  New

Bug description:
  Reproduce:

  Create a import task like:
  {
      "type":"import",
      "input":{
          "import_from":"http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img";,
          "import_from_format":"",
          "image_properties":{
              "disk_format":"wrong-format",
              "container_format":"wrong-format",
              "name":"test-task"
          }
      }
  }


  Expect : raise an error, image_properties is invalid.

  Actual : the task is done successful. but the image's disk_format or
  container_format is "wrong-format".

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1492702/+subscriptions


Follow ups