Bug 1434494
Summary: | Image-Volume Cache Caches Multiple Copies of Same Image on First Launch | |||
---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Alan Bishop <abishop> | |
Component: | openstack-cinder | Assignee: | Alan Bishop <abishop> | |
Status: | CLOSED ERRATA | QA Contact: | Tzach Shefi <tshefi> | |
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 8.0 (Liberty) | CC: | abishop, bschmaus, ddomingo, eharney, jschluet, nlevinki, pgrist, srevivo | |
Target Milestone: | rc | Keywords: | TestOnly, Triaged | |
Target Release: | 11.0 (Ocata) | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | openstack-cinder-10.0.0-3.el7ost | Doc Type: | Bug Fix | |
Doc Text: |
Previously, concurrent requests to create a volume from the same image could result in multiple entries in the Block Storage service's image cache. This resulted in duplicated image cache entries for the same image, which wasted space.
This update adds a synchronization lock to prevent this. The first request to create a volume from an image will be cached, and all other requests will use the cached image.
|
Story Points: | --- | |
Clone Of: | 1377891 | |||
: | 1434499 (view as bug list) | Environment: | ||
Last Closed: | 2017-05-17 20:10:22 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1377891, 1434499, 1434500 |
Description
Alan Bishop
2017-03-21 15:44:58 UTC
Patch has been merged to stable/ocata Verified on HA openstack-cinder-10.0.0-4.el7ost.noarch Get admin user/tenant ID # crudini --set /etc/cinder/cinder.conf tripleo_iscsi image_volume_cache_enabled True # crudini --set /etc/cinder/cinder.conf DEFAULT cinder_internal_tenant_project_id 39bd74e6b7cd4e2c923d26ac5e75c198 # crudini --set /etc/cinder/cinder.conf DEFAULT cinder_internal_tenant_user_id a4f9bd9cffa94c969a0cdcdc5d65827e #pcs resource restart openstack-cinder-volume Or systemctl restart openstack-cinder-volume (if not HA) Uploaded a Cirros image to glance. Then booted up three volumes from same image #for i in 1 2 3; do cinder create 1 --image cirros ; done All three volumes created fine, with only one image cache. On cinder list 4 lines, first one is image cache, we only have 1 such cached image as fixed by this bug, the other 3 lines are available volumes. # cinder list --all-tenants +--------------------------------------+----------------------------------+-----------+--------------------------------------------+------+-------------+----------+-------------+ | ID | Tenant ID | Status | Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+----------------------------------+-----------+--------------------------------------------+------+-------------+----------+-------------+ | 0ef914c9-0618-4864-b6cd-df65d56117b3 | 39bd74e6b7cd4e2c923d26ac5e75c198 | available | image-3ec64daa-2e57-42f4-abfd-e50435ab1fd5 | 1 | - | false | | | 1f5fa797-88f8-48fc-a604-0fe2251a1f97 | 39bd74e6b7cd4e2c923d26ac5e75c198 | available | - | 1 | - | true | | | 6d07c625-d290-403f-93bd-d01e703b0083 | 39bd74e6b7cd4e2c923d26ac5e75c198 | available | - | 1 | - | true | | | a68f63b4-7659-42c7-afca-106411ecfaf4 | 39bd74e6b7cd4e2c923d26ac5e75c198 | available | - | 1 | - | true | | +--------------------------------------+----------------------------------+-----------+--------------------------------------------+------+-------------+----------+-------------+ 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/RHEA-2017:1245 |