Prerequisites for enterprise registry upgrade
If you installed the earlier version of IBM Fusion by using your enterprise registry, then mirror the 2.10.0 images to your enterprise registry.
- Update the global pull secret with the mirror registry credentials to which you want to mirror the current version images. If you want to mirror to the same enterprise registry that you used in the previous version, then skip this step.
- Use the end-to-end mirroring procedure to download all the images of IBM Fusion HCI and its services at once or individually
depending on your specific needs. For individual mirroring procedures, see the following topics:
- Mirror IBM Fusion images. See End-to-end mirroring of IBM Fusion and its services images to the enterprise registry.
- Mirror Backup & Restore images. See Mirroring Backup & Restore images.
- Mirror IBM Storage Scale images. See Mirroring IBM Storage Scale images.
- IBM Data Cataloging offline upgrade:
- Complete steps 1 to 2 of Mirroring IBM Data Cataloging images procedure.
- Update the redhat-operators catalog
source.
for catalog in $(ls oc-mirror-workspace/results-*/catalogSource* | grep -v spectrum-discover); do echo "Creating CatalogSource from file: $catalog"; echo "oc apply -f $catalog"; done - If a new TARGET_PATH value is used for the upgrade, then update the
existing
ImageContentSourcePolicy.
cat << EOF > imagecontentsourcepolicy_dcs.yaml apiVersion: operator.openshift.io/v1alpha1 kind: ImageContentSourcePolicy metadata: name: isf-dcs-icsp spec: repositoryDigestMirrors: - mirrors: - $LOCAL_ISF_REGISTRY/cpopen source: icr.io/cpopen - mirrors: - $LOCAL_ISF_REGISTRY/redhat source: registry.redhat.io/redhat - mirrors: - $LOCAL_ISF_REGISTRY/ubi8 source: registry.redhat.io/ubi8 - mirrors: - $LOCAL_ISF_REGISTRY/amq-streams source: registry.redhat.io/amq-streams - mirrors: - $LOCAL_ISF_REGISTRY/openshift4 source: registry.redhat.io/openshift4 - mirrors: - $LOCAL_ISF_REGISTRY/cp/ibm-spectrum-discover source: cp.icr.io/cp/ibm-spectrum-discover - mirrors: - $LOCAL_ISF_REGISTRY/db2u source: icr.io/db2u EOF oc apply -f imagecontentsourcepolicy_dcs.yaml
-
Fusion Data Foundation offline service upgrade: Offline upgrade of Data Foundation images that are deployed on OpenShift® Container Platform version 4.12, 4.14, 4.15, 4.16, or 4.17.
- Complete steps 1 to 10 of Mirroring Data Foundation images deployed on OpenShift Container Platform topic.
- Before you upgrade IBM Fusion, from the Services page of the IBM Fusion user interface, disable Automatic updates for Data Foundation service.
- Go to , and check whether the Update approval is changed to Manually.
- Start the IBM Fusion version upgrade.
- Update the image digest ID after you upgrade the IBM Fusion as follows:
- Run the following command to get the catalog source image digest
ID.
skopeo inspect docker://<enterprise registry host:port>/<target-path>/cpopen/isf-data-foundation-catalog:<ocp version> | jq -r ".Digest"You need to record the image digest ID. It is used in deployment phase only.
- Check whether the
data-foundation-serviceFusionServiceDefinitionCR is created.oc get fusionservicedefinitions.service.isf.ibm.com -n ibm-spectrum-fusion-ns data-foundation-service - Update the
imageDigestin theFusionServiceDefinitiondata-foundation-service.skopeo inspect docker://<enterprise registry host:port>/<target-path>/cpopen/isf-data-foundation-catalog:<ocp version> | jq -r ".Digest" - Edit the
data-foundation-service.spec.onboarding.serviceOperatorSubscription.multiVersionCatSrcDetails.ocp412-t.imageDigest.oc edit fusionservicedefinitions.service.isf.ibm.com -n ibm-spectrum-fusion-ns data-foundation-serviceExample of OpenShift Container Platform 4.12 output:spec: hasRelatedDefinition: false onboarding: ... serviceOperatorSubscription: catalogSourceName: isf-data-foundation-catalog createCatalogSource: true globalCatalogSource: true isClusterWide: false multiVersionCatSrcDetails: ocp49: skipCatSrcCreation: true ocp410: skipCatSrcCreation: true ocp411: skipCatSrcCreation: true ocp412-t: displayName: Data Foundation Catalog imageDigest: sha256:ed94a66296d1a4fe047b0a79db0e8653e179a8a2a646b0c05e435762d852de73 imageName: isf-data-foundation-catalog imageTag: v4.12 publisher: IBM registryPath: icr.io/cpopen skipCatSrcCreation: false
- Run the following command to get the catalog source image digest
ID.
- Change Update approval to the original value in the IBM Fusion user interface.
- Modify the image content source policy
isf-operator-index. For each source defined in the image content source policy, add the new mirror that points to the new registry. If you want to mirror to the same enterprise registry as the previous version, then skip this step.See the following sample image content source policy:apiVersion: operator.openshift.io/v1alpha1 kind: ImageContentSourcePolicy metadata: name: isf-catalog-index spec: repositoryDigestMirrors: # for scale - mirrors: - <Old ISF enterprise registry host>/<Old ISF target-path> - <Old ISF enterprise registry host:port>/<Old ISF target-path> - <New ISF enterprise registry host>/<New ISF target-path> - <New ISF enterprise registry host:port>/<New ISF target-path> source: cp.icr.io/cp/spectrum/scale - mirrors: - <Old ISF enterprise registry host>/<Old ISF target-path> - <Old ISF enterprise registry host:port>/<Old ISF target-path> - <New ISF enterprise registry host>/<New ISF target-path> - <New ISF enterprise registry host:port>/<New ISF target-path> source: icr.io/cpopen #for IBM Spectrum Fusion operator - mirrors: - <Old ISF enterprise registry host>/<Old ISF target-path> - <Old ISF enterprise registry host:port>/<Old ISF target-path> - <New ISF enterprise registry host>/<New ISF target-path> - <New ISF enterprise registry host:port>/<New ISF target-path> source: cp.icr.io/cp/isf-sds # for spp agent - mirrors: - <Old ISF enterprise registry host>/<Old ISF target-path>/sppc - <Old ISF enterprise registry host:port>/<Old ISF target-path>/sppc - <New ISF enterprise registry host>/<New ISF target-path>/sppc - <New ISF enterprise registry host:port>/<New ISF target-path>/sppc source: cp.icr.io/cp/sppc - mirrors: - <Old ISF enterprise registry host>/<Old ISF target-path>/sppc - <Old ISF enterprise registry host:port>/<Old ISF target-path>/sppc - <New ISF enterprise registry host>/<New ISF target-path>/sppc - <New ISF enterprise registry host:port>/<New ISF target-path>/sppc source: registry.redhat.io/amq7 - mirrors: - <Old ISF enterprise registry host>/<Old ISF target-path>/sppc - <Old ISF enterprise registry host:port>/<Old ISF target-path>/sppc - <New ISF enterprise registry host>/<New ISF target-path>/sppc - <New ISF enterprise registry host:port>/<New ISF target-path>/sppc source: registry.redhat.io/oadp - mirrors: - <New ISF enterprise registry host>/<New ISF target-path>/sppc - <New ISF enterprise registry host:port>/<New ISF target-path>/sppc source: registry.redhat.io/amq-streams