Public bug reported: The CMD I used to import an image:
glance --os-image-api-version 2 task-create --type import --input '{"import_from": "http://10.43.176.8/images/cirros-0.3.2-x86_64-disk.img","import_from_format": "qcow2","image_properties": {"disk_format": "qcow2","container_format": "bare"}}' This CMD returned as follows: +------------+----------------------------------------------------------------------------------+ | Property | Value | +------------+----------------------------------------------------------------------------------+ | created_at | 2016-05-12T02:58:50Z | | id | 2e7e9564-95fe-4e87-8d32-072c8574e8c5 | | input | {"image_properties": {"container_format": "bare", "disk_format": "qcow2"}, | | | "import_from_format": "qcow2", "import_from": | | | "http://10.43.176.8/images/cirros-0.3.2-x86_64-disk.img"} | | message | | | owner | d8f2596f60b4481e83a99f6644619fe5 | | result | None | | status | pending | | type | import | | updated_at | 2016-05-12T02:58:50Z | +------------+----------------------------------------------------------------------------------+ But I can't find an image with ID 2e7e9564-95fe-4e87-8d32-072c8574e8c5,I got image list: +--------------------------------------+---------------------------------+ | ID | Name | +--------------------------------------+---------------------------------+ | cf7e0ec2-bf81-4f86-97f2-14d884a57bc2 | | | 7136811f-e47e-4832-9088-0ab5f0990ebd | | | 3ce6c411-1bd6-490c-b7e6-a70319e244e2 | cirros-0.3.4-x86_64-uec | | 133a819a-9cac-4466-8d9c-33ea17438abd | cirros-0.3.4-x86_64-uec-kernel | | 98c4f810-3489-4b57-959a-2625b75d55c8 | cirros-0.3.4-x86_64-uec-ramdisk | +--------------------------------------+---------------------------------+ I'm sure that image with ID "7136811f-e47e-4832-9088-0ab5f0990ebd" is a new one. I got these result on Mitaka. ** Affects: glance Importance: Undecided Assignee: Wenjun Wang (wangwenjun) Status: New ** Changed in: glance Assignee: (unassigned) => Wenjun Wang (wangwenjun) ** Summary changed: - wrong id returned when excute "image import" + wrong id returned when execute "image import" -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1580843 Title: wrong id returned when execute "image import" Status in Glance: New Bug description: The CMD I used to import an image: glance --os-image-api-version 2 task-create --type import --input '{"import_from": "http://10.43.176.8/images/cirros-0.3.2-x86_64-disk.img","import_from_format": "qcow2","image_properties": {"disk_format": "qcow2","container_format": "bare"}}' This CMD returned as follows: +------------+----------------------------------------------------------------------------------+ | Property | Value | +------------+----------------------------------------------------------------------------------+ | created_at | 2016-05-12T02:58:50Z | | id | 2e7e9564-95fe-4e87-8d32-072c8574e8c5 | | input | {"image_properties": {"container_format": "bare", "disk_format": "qcow2"}, | | | "import_from_format": "qcow2", "import_from": | | | "http://10.43.176.8/images/cirros-0.3.2-x86_64-disk.img"} | | message | | | owner | d8f2596f60b4481e83a99f6644619fe5 | | result | None | | status | pending | | type | import | | updated_at | 2016-05-12T02:58:50Z | +------------+----------------------------------------------------------------------------------+ But I can't find an image with ID 2e7e9564-95fe-4e87-8d32-072c8574e8c5,I got image list: +--------------------------------------+---------------------------------+ | ID | Name | +--------------------------------------+---------------------------------+ | cf7e0ec2-bf81-4f86-97f2-14d884a57bc2 | | | 7136811f-e47e-4832-9088-0ab5f0990ebd | | | 3ce6c411-1bd6-490c-b7e6-a70319e244e2 | cirros-0.3.4-x86_64-uec | | 133a819a-9cac-4466-8d9c-33ea17438abd | cirros-0.3.4-x86_64-uec-kernel | | 98c4f810-3489-4b57-959a-2625b75d55c8 | cirros-0.3.4-x86_64-uec-ramdisk | +--------------------------------------+---------------------------------+ I'm sure that image with ID "7136811f-e47e-4832-9088-0ab5f0990ebd" is a new one. I got these result on Mitaka. To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1580843/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp