← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1336168] Re: Chunksize should be configurable when using copy_from

 

** Changed in: glance
       Status: Fix Committed => Fix Released

** Changed in: glance
    Milestone: None => juno-3

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

Title:
  Chunksize should be configurable when using copy_from

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

Bug description:
  When using the copy_from option, readers and writers can have different
  speeds to respectively read and write.
  A reader timeout will happen if the writer is slow and the writer is
  being asked to write a lot. This is currently happening when using
  the VMware store and copying from an HTTP server. The reader is reading
  16MB which takes too long to upload to vCenter which is causing a
  timeout from the HTTP server. The writer should be able to control the
  size of the chunks being read when using copy_from: this way the writer
  will write fast enough to not make the reader timeout.

  This can be reproduced with the filesystem store and copying from http by adding sleep of 30/40 seconds in
  https://github.com/openstack/glance/blob/master/glance/store/filesystem.py#L433 between each chunk read.
  The chunk will become smaller and then zero.
  This is simulating the effect of a slow writer.

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


References