-
Story
-
Resolution: Done
-
Critical
-
None
-
None
-
None
-
BU Product Work
-
8
-
False
-
None
-
False
-
OCPSTRAT-277 - OC mirror improvements
-
-
-
CFE Sprint 237, CFE Sprint 238, CFE Sprint 239, CFE Sprint 240
As a oc-mirror user, I would like mirrored operator catalogs to have valid caches that reflect the contents of the catalog (configs folder) based on the filtering done in the ImageSetConfig for that catalog
so that the catalog image starts efficiently in a cluster.
Tasks:
- white-out /tmp on all manifests (per platform)
- Recreate the cache under /tmp/cache using
- extract the whole catalog
- use the opm binary included in the extracted catalog to call (command line)
opm serve /configs –-cache-dir /tmp/cache –-cache-only
- Create a new layer from /configs and /tmp/cache
- the /tmp is compatible with all platforms
- oc-mirror should not change the CMD nor ENTRYPOINT of the image
- Rebuild catalog image up to the index (manifest list)
Acceptance criteria:
- Run the catalog container with command opm serve <configDir> --cache-dir=<cacheDir> --cache-only --cache-enforce-integrity to verify the integrity of the cache
- 4.14 catalogs mirrored with oc-mirror v4.14 run correctly in a cluster
- when mirrored with mirrorToMirror workflow
- when mirrored with mirrorToMirror workflow with --include-oci-local-catalogs
- when mirrored with mirrorToDisk + diskToMirror workflow
- 4.14 catalogs mirrored with oc-mirror v4.14 use the pre-computed cache (not sure how to test this)
- catalogs<= 4.13 mirrored with oc-mirror v4.14 run correctly in a cluster (this is not something we publish as supported)
- causes
-
OCPBUGS-17545 oc-mirror fails to exec on arm64 cluster with error: bin/usr/bin/registry/opm: exec format error
- Closed
-
OCPBUGS-17546 pod catalogsource generated by oc-mirror will crashloopBackOff randomly
- Closed
-
OCPBUGS-19060 pod catalogsource generated by oc-mirror will crashloopBackOff randomly
- Closed
- is cloned by
-
CFE-938 [DUPLICATE]As a oc-mirror user, I would like mirrored operator catalogs to have valid caches
- Closed
- relates to
-
OCPSTRAT-277 OC mirror improvements
- Closed
- links to
1.
|
Implement recomputing the cache | Closed | Sherine Khoury | ||
2.
|
Implement automated tests verifying the implementation | Closed | Unassigned |