Currently glanceclient doesn't enforce disk-format or container-format
presence in the command line on image-create when providing image data
(with --file, --location, --copy-from), which means that the POST
request is made with the whole image and error is reported by Glance
API.
This post enforces presence of those arguments when image data is
provided so we can get the error quicker and avoid sending unnecessary
data over the network.
Reviewed: https:/ /review. openstack. org/163584 /git.openstack. org/cgit/ openstack/ python- glanceclient/ commit/ ?id=8d118ccedc7 e0544ec21e1fbb7 f1b8b3a4f03715
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8d118ccedc7e054 4ec21e1fbb7f1b8 b3a4f03715
Author: Gorka Eguileor <email address hidden>
Date: Fri Mar 13 17:47:09 2015 +0100
Require disk and container format on image-create
Currently glanceclient doesn't enforce disk-format or container-format
presence in the command line on image-create when providing image data
(with --file, --location, --copy-from), which means that the POST
request is made with the whole image and error is reported by Glance
API.
This post enforces presence of those arguments when image data is
provided so we can get the error quicker and avoid sending unnecessary
data over the network.
Change-Id: I5914fa9cfef190 a028b374005adbf 3a804b1b677
Closes-Bug: #1309272