[Glance] CLI Client should check the property before starting upload image

Bug #1499386 reported by Alexey Galkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Invalid
Medium
Darja Shakhray
7.0.x
Won't Fix
Medium
MOS Maintenance
8.0.x
Invalid
Medium
Darja Shakhray

Bug Description

We need to add support checking 'disk-format' and 'container_format' properties into glance shell client before starting upload image.

Steps to reproduce:

root@node-1:~# glance --os-image-api-version 2 image-create --file ubuntu-14.10-server-i386.iso --progress
[=============================>] 100%
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | None |
| container_format | None |
| created_at | 2015-09-24T00:19:26Z |
| disk_format | None |
| id | 9c8adc5b-6ba7-4f8d-906c-aad04ffc7649 |
| min_disk | 0 |
| min_ram | 0 |
| name | None |
| owner | 6568b9984d994c4983e042e3aeaad63c |
| protected | False |
| size | None |
| status | queued |
| tags | [] |
| updated_at | 2015-09-24T00:19:26Z |
| virtual_size | None |
| visibility | private |
+------------------+--------------------------------------+
400 Bad Request: Properties disk_format, container_format must be set prior to saving data. (HTTP 400)
root@node-1:~# glance --os-image-api-version 1 image-create --file ubuntu-14.10-server-i386.iso --progress
[=============================>] 100%
400 Bad Request: Disk format is not specified. (HTTP 400)
root@node-1:~#

Tags: glance cli
Changed in mos:
assignee: MOS Glance (mos-glance) → dshakhray (dshakhray)
Revision history for this message
Vitaly Sedelnik (vsedelnik) wrote :

Won't Fix for 7.0-updates because of Medium importance, Confirmed for 8.0

Revision history for this message
Darja Shakhray (dshakhray) wrote :

Fixed bug in upstream https://review.openstack.org/#/c/163584/
This fix has been added in the branch openstack-ci/fuel-8.0/liberty

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.