yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #26495
[Bug 1208920] Re: Should wrong image-create size be handled differently
** Changed in: glance
Status: New => Won't Fix
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1208920
Title:
Should wrong image-create size be handled differently
Status in OpenStack Image Registry and Delivery Service (Glance):
Won't Fix
Bug description:
With the client its possible to create an image with a length
different to the input image file/number of bytes in stdin:
glance -k image-create --name s1 --disk-format raw --container-format
bare --size 100 < /etc/motd
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 6f54030f22f81c30ca2e90258332cb05 |
| container_format | bare |
| created_at | 2013-08-06T15:14:42 |
| deleted | False |
| deleted_at | None |
| disk_format | raw |
| id | 5e709403-2950-4e7c-91f2-70606e0226c5 |
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | s1 |
| owner | 45609156725616 |
| protected | False |
| size | 100 | <<<< truncated size
| status | active |
| updated_at | 2013-08-06T15:14:42 |
+------------------+--------------------------------------+
if you try to download you get the number of bytes you specified
$ glance -k image-download 5e709403-2950-4e7c-91f2-70606e0226c5
Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 3.2.0-27-generic x86_64)
* Documentation: https://help.u
-----------------------
alternatively if the size specified is too large the image-create
command hangs.
If we are creating an image without the --location or --copy_from
arguments should the --size parameter be ignored/errored on rather
than respected as it is currently?
The help seems to suggest size isn't to be used when the request body
contains the image data:
--size <SIZE> Size of image data (in bytes). Only used with '--
location' and '--copy_from'.
If so (ie we should error on size mismatch) feel free to assign to me.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1208920/+subscriptions