← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1390386] Re: Bad math interpreting rbd_store_chunk_size leads to wrong chunk size and slow upload of images

 

Duplicate of #1370247

** Changed in: glance
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1390386

Title:
  Bad math interpreting rbd_store_chunk_size leads to wrong chunk size
  and slow upload of images

Status in OpenStack Image Registry and Delivery Service (Glance):
  Invalid

Bug description:
  Setting rbd_store_chunk_size -= 8 leads to an actual chunk size of 8
  KB not 8 MB. The result is incredibly slow uploads to the RBD backend.

  2014-11-06 11:42:30.619 6986 DEBUG glance_store._drivers.rbd [-] writing chunk at offset 8208 add /usr/lib/python2.7/site-packages/glance_store/_drivers/rbd.py:365
  2014-11-06 11:42:30.626 6986 DEBUG glance_store._drivers.rbd [-] writing chunk at offset 16416 add /usr/lib/python2.7/site-packages/glance_store/_drivers/rbd.py:365
  2014-11-06 11:42:30.633 6986 DEBUG glance_store._drivers.rbd [-] writing chunk at offset 24624 add /usr/lib/python2.7/site-packages/glance_store/_drivers/rbd.py:365
  2014-11-06 11:42:30.638 6986 DEBUG glance_store._drivers.rbd [-] writing chunk at offset 32832 add /usr/lib/python2.7/site-packages/glance_store/_drivers/rbd.py:365

  
  /usr/lib/python2.7/site-packages/glance_store/_drivers/rbd.py: Line 192

  self.chunk_size = chunk * (1024 ^ 2)

  should be either

  self.chunk_size = chunk * (1024 ** 2)

  or

  self.chunk_size = chunk * units.Mi

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