disk image create creates image size of atleast 1G
Bug #1366909 reported by
jsb
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diskimage-builder |
Fix Released
|
Medium
|
yogananth subramanian |
Bug Description
disk image create creates a qcow2 image with virtual size of atleast 1G. If DISK-IMAGE-SIZE is used in decimals,then, truncate command errors out as invalid number. This forces the image to be atleast 1G in size. Could this made in Mega bytes so that image less than 1 G can be created.
Thanks
Changed in diskimage-builder: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in diskimage-builder: | |
assignee: | nobody → yogananth subramanian (anantyog-o) |
Changed in diskimage-builder: | |
assignee: | yogananth subramanian (anantyog-o) → Ben Nemec (bnemec) |
Changed in diskimage-builder: | |
assignee: | Ben Nemec (bnemec) → yogananth subramanian (anantyog-o) |
Changed in diskimage-builder: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Could you be more specific with how you ran into this error? Which commands did you run? How do you recreate this bug?
Just guessing what you did, I tried to use a decimal in my image-size, and got the expected error:
$ nova boot --flavor x1.tiny --block-device source= image,id= 2913cff0- a7aa-463a- af95-60dd9cf5e4 01,dest= volume, size=3. 5,shutdown= remove, bootindex= 0 --key-name stack test1ERROR (BadRequest): Block Device Mapping is Invalid: Invalid volume_size. (HTTP 400) (Request-ID: req-6b92b300- 336e-4cfd- ac80-a7ebf22df0 63)