ibm-mas / ansible-devops

Ansible collection supporting devops for IBM Maximo Application Suite
https://ibm-mas.github.io/ansible-devops/
Eclipse Public License 2.0
49 stars 88 forks source link

Prefix catalog name created by mirror_ocp to avoid clashes with prior OpenShift installations #1257

Closed ChrisSchneiderIBM closed 2 months ago

ChrisSchneiderIBM commented 7 months ago

I installed OpenShift using oc-mirror and also mirrored the LVM-Operator. Therefore I already created a redhat/certified-operator-index image.

When I installed Maximo, the container images used for the mirror_ocp catalogs overwrite the "original" container image.

Therefore it would be great if the container images behind the catalogs created by mirror_ocp would be prefixed with ibm, e.g. instead of an image named redhat/certified-operator-index create an image prefixed with ibm-mas

durera commented 6 months ago

We can provide an option to customise the catalog names when using our code to set up the red hat catalogs, but generally speeaking if there's already a certified-operator-index catalog source there shouldn't be a need to set up one with our roles.

ChrisSchneiderIBM commented 6 months ago

@durera: Thank you for your response!

While there is already a certified-operator-index catalog source, it does not mirror the full catalog to reduce size. Re-using the catalog from the MAS Ansible Role would allow us to rely on the MAS Ansible role to specify dependencies & versioning

lokesh-sreedhara commented 4 months ago

@ChrisSchneiderIBM had a internal chat with David, here is how you can solve this.

In this case you don’t need to use mirror ocp. We can’t just name them something different, it’s still clashes. There are 2 options:

We would recommend MAS CLI to manage the OCP and MAS catalogs

ChrisSchneiderIBM commented 4 months ago

Thank you for your response @lokesh-sreedhara. Is there a way in MAS CLI to add my own operators, like OpenShift Update Service, RHACM, Logging etc?

Managing the RH catalogs required by Maximo myself comes with the challenge that I've to manually keep them in sync with MAS CLI.

For now I worked around the issue by giving my separately mirrored catalog a different name:

ocp_mirror_operators:
- catalog: registry.redhat.io/redhat/redhat-operator-index:v{{ ocp_version }}
  targetCatalog: redhat2/redhat-operator-index
  packages:
    ...
durera commented 2 months ago

Action here should be:

Should be straightforward change to make and test by just running the role in isolation and checking the catalogsources, doesn't matter if the catalog sources are pointing at something that even exists for the purpose of this test.