Bug 1763839

Summary: RFE: Image pre-caching
Product: Red Hat OpenStack Reporter: Dan Smith <dasmith>
Component: openstack-novaAssignee: Lee Yarwood <lyarwood>
Status: CLOSED CURRENTRELEASE QA Contact: OSP DFG:Compute <osp-dfg-compute>
Severity: medium Docs Contact:
Priority: low    
Version: 17.0 (Wallaby)CC: alifshit, dasmith, egallen, eglynn, jhakimra, jparker, jschluet, kchamart, lyarwood, mariel, mwitt, sbauza, sgordon, spower, stephenfin, vromanso
Target Milestone: gaKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-nova-23.0.3-0.20210908140341.e39bbdc.el9ost Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-28 17:59:40 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: Victoria
Embargoed:

Description Dan Smith 2019-10-21 17:43:30 UTC
Support image pre-caching on compute nodes as requested via the API.

Upstream spec: 

https://specs.openstack.org/openstack/nova-specs/specs/ussuri/approved/image-precache-support.html

Procedure for QE will be:

0. Set image_cache_manager_interval to something short like 10m for compute nodes
1. Set up a deployment with multiple compute nodes not using Ceph
2. Create an aggregate around multiple compute nodes
3. Request some image be pre-cached on that aggregate (openstack aggregate cache images)
4. Check logs on compute nodes to confirm (grep for 'Caching.*request' in compute logs. Check for errors around that time. Note timestamp on base image in $nova/instances/_base.
5. Re-request the same image, check that compute logs indicate that the image is already cached. Check base image file timestamp to ensure it has been updated.
6. Ensure that requesting the image be cached keeps the cache manager from removing it, and that it *is* removed once the cache manager runs after $interval time has passed since the last cache request.

Comment 1 melanie witt 2019-10-25 14:58:16 UTC
Setting metadata after the triage call.

Comment 10 Artom Lifshitz 2022-08-23 16:50:47 UTC
This will need an enhancement doctext once this graduates out of Tech preview (https://bugzilla.redhat.com/show_bug.cgi?id=2120757)

Comment 13 Artom Lifshitz 2023-06-28 17:59:40 UTC
Closing as CURRENTRELEASE. The code is present in 17.0 and 17.1, but no further QE work will be performed due to lack of capacity. This puts this RFE into the "implicitly supported" category like most Nova features that originate in the community and that appear in our OSP code without much involvement from Red Hat engineers. If a significant enough bug ends up being reported for this feature, we will re-evaluate the QE situation.

There will, however, be documentation written for this feature: https://issues.redhat.com/browse/RHOSPDOC-1276.