Simultaneous requests for creating an instance result in recopying the image to _base before it is cached
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
Simultaneous requests for creating an instance result in unnecessary recopying of the image with ".part" extension to _base directory (one for each request) before it is cached. The fetch_func_sync needs to check again inside the synchronized whether the earlier copy was completed as indicated below in https:/
def cache(self, fetch_func, filename, size=None, *args, **kwargs):
"""Creates image from template.
Ensures that template and image not already exists.
Ensures that base directory exists.
:filename: Name of the file in the image directory
:size: Size of created image in bytes (optional)
"""
def fetch_func_
if not os.path.
tags: | added: compute |