-
Epic
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
CatalogRebuild
-
29
-
False
-
-
False
-
Not Selected
-
To Do
-
OCPSTRAT-1515 - Reflect only the mirrored operators in the operator catalogs
-
OCPSTRAT-1515Reflect only the mirrored operators in the operator catalogs
-
33% To Do, 0% In Progress, 67% Done
-
---
-
---
As a oc-mirror user, I would like mirrored operator catalogs to reflect the mirrored operators only, so that, after I mirror my catalog I can check that it contains the filtered operators using:
oc-mirror list operators --catalog mirror.syangsao.net:8443/ocp4/redhat/redhat-operator-index:v4.12
Context
In oc-mirror v2 (and in v1 after bug fix OCPBUGS-31536), oc-mirror doesn't rebuild catalogs.
- The filtered declarative config isn't recreated based on the imagesetconfig filter
- The catalog cache isn't regenerated
- The catalog image isn't rebuilt based on the above 2 elements
Instead, the original catalog image is pushed as is to the mirror registry. Its declarative config will show all operators, and for each operator all channels and all bundles.
This behavior is causing some inconvenience to our users.
Concerns, complexity
- How to deal with caches
- How to deal with default channels
- How to deal with keeping a single valid channel head
- What to do when cross channel filtering is involved
- How to deal with mirroring by bundle selection (how to rebuild the update graph)
- Make multi-arch catalogs
Known ongoing/related work
- https://github.com/operator-framework/operator-registry/pull/1231/files
- https://docs.google.com/document/d/1jWRBZNPtMMbzAz71hjCKubrL_dxOBUs11xUe3QUnozo/edit
- CLID-151
- CLID-86
- CLID-87
OPRUN-3346- OPRUN-3347
Additional info:
- https://redhat-internal.slack.com/archives/C02JW6VCYS1/p1719601148099479
- https://redhat-internal.slack.com/archives/C02JW6VCYS1/p1719908123474019
- Naval group feedback: There is a lot of informations missing in the Operator Hub for disconnected environment, when provisioning a catalogsources, there should be an arg that stipulate that we are in a disconnected environment, and shows : name of the operator for oc-mirror, other operator dependencies, even a tab with a sample ImageSetConfig for oc-mirror to let us know easily what bundle we will need.
- causes
-
OCPBUGS-44225 Rebuild catalog not support for oci format catalog
- Verified
-
OCPBUGS-43986 Normal user can't run the oc-mirror command
- Closed
-
OCPBUGS-44281 V2 with --alpha-ctlg-filter unable to rebuild catalog redhat-operator-index:v4.17
- Closed
- is depended on by
-
RFE-5688 oc-mirror does not rebuild catalog post mirroring.
- Accepted
- is related to
-
OCPBUGS-45161 As an oc-mirror user, I'd like to have ClusterCatalog resource generated for operator catalogs
- New
- relates to
-
OCPBUGS-44837 oc-mirror should throws error when using invalid imageSetConfig with bundles
- New
-
OCPBUGS-44836 oc-mirror can't support mirror image with bundle
- ON_QA
-
OCPBUGS-44818 oc-mirror failed when try to mirror a full catalog
- Verified
-
OCPBUGS-44789 oc-mirror rebuild catalog failed for oci catalog when run the same command twice
- Verified
-
OCPBUGS-44222 `--secure-policy=false` not work when use --alpha-ctlg-filter
- Closed
-
OCPBUGS-44224 Rebuild catalog failed with error : building at STEP "RUN rm -rf /configs": while running runtime: exit status 1
- Closed
-
OCPBUGS-44827 oc-mirror can't support the ibm catalog as oci format
- Closed
-
OCPBUGS-44484 oc-mirror can't mirror the image that tag and digest are empty
- Closed
- links to