yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #14218
[Bug 1315014] Re: when using --size to create a qcow2 image image is creates it as raw but reported as qcow2
We don't have a nice way to support this just yet. This may (or may not)
be supported in the future once we figure out what to do with image
inspections/operations. I'll mark it as invalid for now.
** 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/1315014
Title:
when using --size to create a qcow2 image image is creates it as raw
but reported as qcow2
Status in OpenStack Image Registry and Delivery Service (Glance):
Won't Fix
Bug description:
I tried creating 20GB qcow2 image using --size and the image
Here are the problems:
1. the image is not created with the selected size
2. the image is reported as qcow2 in glance-list but qemu-img shows it as raw (since the source image copied is a raw image we seem to be taking that parameter but reporting qcow2).
This is create-image from an remote image which is raw:
[root@orange-vdsf images(keystone_admin)]# glance image-create --name dafna_zise1 --disk-format qcow2 --container-format bare --copy-from http://download.eng.tlv.redhat.com/pub/rhel/released/RHEL-6/6.4/Appliance/rhel-client-x86_64-ec2-starter-6.4_20130130.0-1-sda.raw --size 20480000
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | None |
| container_format | bare |
| created_at | 2014-05-01T09:53:04 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 292c11dd-a16b-46a0-b176-d665293273b3 |
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | dafna_zise1 |
| owner | 5502ab8e099843cfa39df71b3037ccd6 |
| protected | False |
| size | 20480000 |
| status | queued |
| updated_at | 2014-05-01T09:53:04 |
+------------------+--------------------------------------+
[root@orange-vdsf images(keystone_admin)]# glance image-list --human
+--------------------------------------+-------------+-------------+------------------+---------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+--------------------------------------+-------------+-------------+------------------+---------+--------+
|
| 292c11dd-a16b-46a0-b176-d665293273b3 | dafna_zise1 | qcow2 | bare | 19.5MB | saving |
|
+--------------------------------------+-------------+-------------+------------------+---------+--------+
[root@orange-vdsf images(keystone_admin)]# glance image-list --human
+--------------------------------------+-------------+-------------+------------------+---------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+--------------------------------------+-------------+-------------+------------------+---------+--------+
|
| 292c11dd-a16b-46a0-b176-d665293273b3 | dafna_zise1 | qcow2 | bare | 6GB | active |
|
+--------------------------------------+-------------+-------------+------------------+---------+--------+
[root@orange-vdsf images(keystone_admin)]# qemu-img info 292c11dd-a16b-46a0-b176-d665293273b3
image: 292c11dd-a16b-46a0-b176-d665293273b3
file format: raw
virtual size: 6.0G (6442451456 bytes)
disk size: 6.0G
As you can see, the source image was a raw 6GB image.
I created a qcow2 image from this image and tried giving it a 20GB size.
the image is created as raw but reported as qcow
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1315014/+subscriptions
References