← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1332342] [NEW] nova libvirt imagebackend resizes images wrong for rdb volumes

 

Public bug reported:

Problem found in icehouse 2014.1

in nova/virt/libvirt/imagebackend.py

    def _resize(self, volume_name, size):
        size = int(size) * units.Ki

        with RBDVolumeProxy(self, volume_name) as vol:
            vol.resize(size)


The multiplier by units.Ki causes rdb to resize the image to a size that 1000 larger than it should be.
This doesn't seem to cause problems when the instance/image is created; however, when it comes time to delete it, it can take a VERY long time to delete the instance/disk image.

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: ceph rdb

-- 
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/1332342

Title:
  nova libvirt imagebackend resizes images wrong for rdb volumes

Status in OpenStack Compute (Nova):
  New

Bug description:
  Problem found in icehouse 2014.1

  in nova/virt/libvirt/imagebackend.py

      def _resize(self, volume_name, size):
          size = int(size) * units.Ki

          with RBDVolumeProxy(self, volume_name) as vol:
              vol.resize(size)

  
  The multiplier by units.Ki causes rdb to resize the image to a size that 1000 larger than it should be.
  This doesn't seem to cause problems when the instance/image is created; however, when it comes time to delete it, it can take a VERY long time to delete the instance/disk image.

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


Follow ups

References