xenapi: image size calculation ignores container_format
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
During this review:
https:/
A potential bug has been discovered.
nova/virt/
if image_type == ImageType.DISK_VHD:
vdis = _fetch_
else:
vdis = _fetch_
So _fetch_disk_image is called with:
ami, aki, ari, raw, iso disk_formats (see determine_
Whenever the size is calculated for these images, the container_format is not taken into account, and the size reported by glance is used. If the container applies compression, the size reported by glance will be smaller, than the space needed to save the contents. In these cases, the size calculation should fail, instead of returning the size from metadata.
Look at _fetch_
tags: | added: xenserver |
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
status: | New → Triaged |
Changed in nova: | |
status: | Triaged → Confirmed |
Changed in nova: | |
assignee: | nobody → Sumant Murke (sumant-murke) |
Changed in nova: | |
assignee: | Sumant Murke (sumant-murke) → nobody |
This only affects raw images.
Either way, we check what the final VHD physically uses on disk, which should catch any issues with this one.