← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1215928] Re: xenapi: image size calculation ignores container_format

 

This is an automated cleanup. This bug report has been closed because it
is older than 18 months and there is no open code change to fix this.
After this time it is unlikely that the circumstances which lead to
the observed issue can be reproduced.

If you can reproduce the bug, please:
* reopen the bug report (set to status "New")
* AND add the detailed steps to reproduce the issue (if applicable)
* AND leave a comment "CONFIRMED FOR: <RELEASE_NAME>"
  Only still supported release names are valid (LIBERTY, MITAKA, OCATA, NEWTON).
  Valid example: CONFIRMED FOR: LIBERTY


** Changed in: nova
   Importance: Low => Undecided

** Changed in: nova
       Status: Confirmed => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1215928

Title:
  xenapi: image size calculation ignores container_format

Status in OpenStack Compute (nova):
  Expired

Bug description:
  During this review:
   https://review.openstack.org/40908

  A potential bug has been discovered.

   nova/virt/xenapi/vm_utils.py

   if image_type == ImageType.DISK_VHD:
       vdis = _fetch_vhd_image(...)
   else:
       vdis = _fetch_disk_image(...)

  So _fetch_disk_image is called with:
   ami, aki, ari, raw, iso disk_formats (see determine_disk_image_type() function in vm_utils.py)

  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_disk_image(...) and investigate the virtual_size
  calculation!

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1215928/+subscriptions