Bug 1575758 - Cinder's image volume cache sync lock prevents parallel image downloading
Summary: Cinder's image volume cache sync lock prevents parallel image downloading
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: 10.0 (Newton)
Hardware: All
OS: All
medium
medium
Target Milestone: zstream
: 8.0 (Liberty)
Assignee: Alan Bishop
QA Contact: Avi Avraham
Kim Nylander
URL:
Whiteboard:
Depends On: 1555188 1572220 1575130 1575720
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-07 20:05 UTC by Alan Bishop
Modified: 2023-02-22 23:02 UTC (History)
7 users (show)

Fixed In Version: openstack-cinder-7.0.3-15.el7ost
Doc Type: Bug Fix
Doc Text:
Cinder uses a synchronization lock to prevent duplicate entries in the volume image cache. Prior to this update, the scope of the lock was too broad and caused simultaneous requests to create a volume from an image to compete for the lock, even when the image cache was not enabled. With this update, the synchronization lock has been updated to minimize the scope of the lock, and to take effect only when the volume image cache is enabled. As a result, simultaneous requests to create a volume from an image run in parallel when the volume image cache is disabled. When the volume image cache is enabled, locking is minimized to ensure only a single entry is created in the cache.
Clone Of: 1575720
Environment:
Last Closed: 2018-07-05 12:28:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1758414 0 None None None 2018-05-07 20:05:43 UTC
OpenStack gerrit 558556 0 None None None 2018-05-07 20:05:43 UTC
Red Hat Issue Tracker OSP-5074 0 None None None 2022-08-16 08:51:59 UTC
Red Hat Product Errata RHBA-2018:2131 0 None None None 2018-07-05 12:28:59 UTC

Description Alan Bishop 2018-05-07 20:05:43 UTC
+++ This bug was initially created as a clone of Bug #1575720 +++

+++ This bug was initially created as a clone of Bug #1575130 +++

+++ This bug was initially created as a clone of Bug #1572220 +++

+++ This bug was initially created as a clone of Bug #1555188 +++

A synchronization lock was added to fix a problem that allowed multiple redundant entries in the image volume cache [1],[2].

[1] https://bugs.launchpad.net/cinder/+bug/1649636
[2] https://review.openstack.org/446590

Unfortunately, the scope of the lock is too broad and impacts performance in a couple of scenarios.

1) When the cache is not enabled, simultaneous attempts to download the image from glance are serialized.
2) Even when the volume image is cached, simultaneous requests to create a volume from the image are serialized.

The scope of the lock needs to be reduced to only serialize the portion of the process that results in an entry being added to the cache.

--- Additional comment from Alan Bishop on 2018-04-26 08:39:02 EDT ---

Patch has merged upstream, and needs to be backported to OSP.

--- Additional comment from Red Hat Bugzilla Rules Engine on 2018-04-26 08:39:08 EDT ---

This bugzilla has been removed from the Target Release until it has been release planned with 3-acks provided.

--- Additional comment from Jon Schlueter on 2018-05-02 12:15:29 EDT ---

raising needinfo? to rhos-flags@ asking for acks to get POST Bug to have proper acks and release flag before it lands.  If it doesn't have necessary bits or can't be acked bug might need to be moved off of POST until it's clear what is needed to move the bug forward.

--- Additional comment from Alan Bishop on 2018-05-04 16:13:51 EDT ---

The upstream patch merged in time to be included in the latest OSP-13 puddle.

--- Additional comment from Red Hat Bugzilla Rules Engine on 2018-05-04 16:14:01 EDT ---

This bugzilla has been removed from the Target Release until it has been release planned with 3-acks provided.

Comment 8 errata-xmlrpc 2018-07-05 12:28:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2131


Note You need to log in before you can comment on or make changes to this bug.