qcow2 images size should match the virtual image size
Bug #1190559 reported by
Giulio Fidente
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Invalid
|
Low
|
Flavio Percoco |
Bug Description
the image size of qcow2 images should match the virtual size reported by qemu-img not the actual data size
# glance image-show ff8f8fb3-
[...]
| size | 699592704 |
[...]
# qemu-img info /var/lib/
image: /var/lib/
file format: qcow2
virtual size: 6.0G (6442450944 bytes)
disk size: 667M
cluster_size: 65536
Changed in glance: | |
assignee: | nobody → Flavio Percoco (flaper87) |
milestone: | none → next |
importance: | Undecided → Low |
To post a comment you must log in.
I think there is small or no value in showing the actual data size. Thinking about a few scenario cases where the virtual size would be a more useful information to show:
1. to create a cinder volume from the image, it is after the virtual size which the volume should be sized
2. to learn about the guest disk size, it is the virtual size the interesting value
3. to check the quota allowance/usage, it is with the virtual size which we should compare