amake operator-upgrade-podman . ./scripts/upgrade-operator-podman.sh ++ shopt -s extglob ++ '[' '!' 860636 ']' ++ '[' '!' 1.13.3 ']' ++ GITOPS_CHANNEL=latest ++ NEW_BUILD=openshift-gitops-operator.v1.13.3 ++ case "${NEW_VER}" in ++ export GITOPS_CHANNEL=gitops-1.13 ++ GITOPS_CHANNEL=gitops-1.13 ++ echo -e '\nInstalling and upgrading to version 1.13.3 from channel gitops-1.13 ' -e Installing and upgrading to version 1.13.3 from channel gitops-1.13 ++ [[ gitops-components-automated-testing == scripts ]] ++ QUAY_USER=trdoyle ++ sh scripts/install-operators.sh Installing OpenShift GitOps operator -e Ensure gitops subscription exists subscription.operators.coreos.com/openshift-gitops-operator created Waiting for CSV_NAME clusterserviceversion.operators.coreos.com/openshift-gitops-operator.v1.13.2 condition met Completed OpenShift GitOps operator installation -e Provide cluster-admin access to argocd-application-controller service account Warning: ServiceAccount 'openshift-gitops-argocd-application-controller' not found clusterrole.rbac.authorization.k8s.io/cluster-admin added: "system:serviceaccount:openshift-gitops:openshift-gitops-argocd-application-controller" ++ echo -e '\nCreating a basic argocd instance' -e Creating a basic argocd instance ++ oc delete ns example-argocd --ignore-not-found ++ oc create ns example-argocd namespace/example-argocd created ++ sleep 2 ++ oc apply -f config/YAMLs/argocd-basic.yaml argocd.argoproj.io/argocd created ++ oc wait argocd argocd -n example-argocd '--for=jsonpath={.status.phase}=Available' --timeout=60s argocd.argoproj.io/argocd condition met ++ [[ gitops-1.13 == \g\i\t\o\p\s\-\1\.\9 ]] ++ echo -e '\nCreating some sample applications' -e Creating some sample applications ++ oc apply -f config/YAMLs/sample-applications.yaml application.argoproj.io/builds-config created application.argoproj.io/console-config created application.argoproj.io/image-config created ++ apps=("builds-config" "console-config" "image-config") ++ declare -a apps ++ len=3 ++ i=0 ++ [[ 0 -lt 3 ]] +++ oc get app builds-config -n openshift-gitops -o 'jsonpath={.status.sync.status}' ++ [[ '' = \S\y\n\c\e\d ]] ++ echo 'Waiting for builds-config app to be in Healthy and Synced state' Waiting for builds-config app to be in Healthy and Synced state ++ sleep 10 ++ [[ 0 -lt 3 ]] +++ oc get app builds-config -n openshift-gitops -o 'jsonpath={.status.sync.status}' ++ [[ Synced = \S\y\n\c\e\d ]] +++ oc get app builds-config -n openshift-gitops -o 'jsonpath={.status.health.status}' ++ [[ Healthy = \H\e\a\l\t\h\y ]] ++ echo 'builds-config app in Healthy and Synced state' builds-config app in Healthy and Synced state +++ expr 0 + 1 ++ i=1 ++ [[ 1 -lt 3 ]] +++ oc get app console-config -n openshift-gitops -o 'jsonpath={.status.sync.status}' ++ [[ Synced = \S\y\n\c\e\d ]] +++ oc get app console-config -n openshift-gitops -o 'jsonpath={.status.health.status}' ++ [[ Healthy = \H\e\a\l\t\h\y ]] ++ echo 'console-config app in Healthy and Synced state' console-config app in Healthy and Synced state +++ expr 1 + 1 ++ i=2 ++ [[ 2 -lt 3 ]] +++ oc get app image-config -n openshift-gitops -o 'jsonpath={.status.sync.status}' ++ [[ Synced = \S\y\n\c\e\d ]] +++ oc get app image-config -n openshift-gitops -o 'jsonpath={.status.health.status}' ++ [[ Healthy = \H\e\a\l\t\h\y ]] ++ echo 'image-config app in Healthy and Synced state' image-config app in Healthy and Synced state +++ expr 2 + 1 ++ i=3 ++ [[ 3 -lt 3 ]] ++ echo -e '\nPreparing for the upgrade, connect to VPN if not connected already' -e Preparing for the upgrade, connect to VPN if not connected already ++ echo -e '\n\nEnter the password from bitwarden for account |shared-qe-temp.src5.75b4d5 when prompted' -e Enter the password from bitwarden for account |shared-qe-temp.src5.75b4d5 when prompted ++ INDEX=registry-proxy.engineering.redhat.com/rh-osbs/iib:860636 ++ MIRROR=quay.io/trdoyle/iib:860636 ++ echo iib index = registry-proxy.engineering.redhat.com/rh-osbs/iib:860636 iib index = registry-proxy.engineering.redhat.com/rh-osbs/iib:860636 ++ echo mirror index = quay.io/trdoyle/iib:860636 mirror index = quay.io/trdoyle/iib:860636 ++ oc get secrets pull-secret -n openshift-config -o 'template={{index .data ".dockerconfigjson"}}' ++ base64 -d ++ [[ '' == true ]] ++ mv /Users/trdoyle/.docker/config.json /Users/trdoyle/.docker/config_tmp.json ++ mv ./authfile /Users/trdoyle/.docker/config.json ++ podman login --username '|shared-qe-temp.src5.75b4d5' brew.registry.redhat.io Password: Login Succeeded! ++ mv /Users/trdoyle/.docker/config.json ./authfilewithbrew ++ mv /Users/trdoyle/.docker/config_tmp.json /Users/trdoyle/.docker/config.json ++ oc set data secret/pull-secret -n openshift-config --from-file=.dockerconfigjson=authfilewithbrew info: pull-secret was not changed ++ [[ '' == true ]] ++ podman pull registry-proxy.engineering.redhat.com/rh-osbs/iib:860636 --platform linux/arm64 --tls-verify=false Trying to pull registry-proxy.engineering.redhat.com/rh-osbs/iib:860636... Getting image source signatures Copying blob sha256:63a1bb47879cefa54a83e17c4e27a74b4576e807c622ce3b3b505ea8dcbed020 Copying blob sha256:6dc2ad2bc4e6e1396d7796ad71946955cd4adca263d3aeafb7fcc9fb3f75721f Copying blob sha256:d85ab64bf08ec7872e78be0a49a5af1c554818503aaa3fe5c6f5d019641cca97 Copying blob sha256:f516fd006fd1416aade34f9601138194e075d133d1c497e7c47481e2c7be42d5 Copying blob sha256:5789caf9bf7e8ba1a84456578e4cff6249ed83e81f68ae4980ce21f0bea68f47 Copying config sha256:bae5d9139b8e8369ecb1c92e2acfea0f4aed63b2188e0e830ebd942066b2a071 Writing manifest to image destination bae5d9139b8e8369ecb1c92e2acfea0f4aed63b2188e0e830ebd942066b2a071 ++ podman tag registry-proxy.engineering.redhat.com/rh-osbs/iib:860636 quay.io/trdoyle/iib:860636-arm64 ++ podman push quay.io/trdoyle/iib:860636-arm64 Getting image source signatures Copying blob sha256:ddd773663deaccd74c6cb774b88081d14fafa4978c29cfb1afd139dfe17608c6 Copying blob sha256:2df314e3a2bd4ce8533adeb48870053973cd4269c6e31a6e5403451c10798264 Copying blob sha256:fdde095c076c7ad4ac5463d876b1af1f1d066e64bdce71bb0897f7f46ed15973 Copying blob sha256:2cc2e3f2d90aec60bc0670c7b742c45ee7b9b5b737084d7b5daefdab7266b2d8 Copying blob sha256:8f2efcd917c7ceae789846e8802fc20fda190175b9f0bf90ac5480b4497a52da Copying config sha256:bae5d9139b8e8369ecb1c92e2acfea0f4aed63b2188e0e830ebd942066b2a071 Writing manifest to image destination ++ podman pull registry-proxy.engineering.redhat.com/rh-osbs/iib:860636 --platform linux/amd64 --tls-verify=false Trying to pull registry-proxy.engineering.redhat.com/rh-osbs/iib:860636... Getting image source signatures Copying blob sha256:9e885ac4fcb15b4726bfe8b1dd60b2eb334a4cf849a7f9cb8c2e22bcd2311f99 Copying blob sha256:ae0badd537673e93bcbcf384ce6acda3cdfef75d43bd2f7bc766ef5ffba3e51a Copying blob sha256:846f8649ddf598e8154bb38e290b01941527e2e3fe8a6809c7130eb8e713b431 Copying blob sha256:2dc71d44b6743e897d413594c90848bc7d9650eea10e97e8e7e8e94519398e1f Copying blob sha256:0e2c29947cc3a9ba4d11846d9666d0e73564d8d1d273bf5f4f120903462a1396 Copying config sha256:cd427d363dce5fb717a605875994601816100e58148466118aa1be8e4ffc0851 Writing manifest to image destination cd427d363dce5fb717a605875994601816100e58148466118aa1be8e4ffc0851 ++ podman tag registry-proxy.engineering.redhat.com/rh-osbs/iib:860636 quay.io/trdoyle/iib:860636-amd64 ++ podman push quay.io/trdoyle/iib:860636-amd64 Getting image source signatures Copying blob sha256:515575f6a00d47f1597ee9b978a3eecda222b39647367ec3e4ab7ab9a03941b7 Copying blob sha256:30c38478c03c7b39fe3563f2b6d4ffacf448584b9d88af141b70378c720c7bcb Copying blob sha256:2a72874d941373aa48b2ec29ac862062ec0e961e58fd2035037e066b4bc061ea Copying blob sha256:08a78c48d74b78515e70f09f6c29d8a6e9be3ddf15d1b064dcb4f7ee80e816ae Copying blob sha256:c4eeb440b2d0c4a0dd140d94a984004b60591124ee05438761c69a77bd948dba Copying config sha256:cd427d363dce5fb717a605875994601816100e58148466118aa1be8e4ffc0851 Writing manifest to image destination ++ podman manifest create quay.io/trdoyle/iib:860636 quay.io/trdoyle/iib:860636-arm64 quay.io/trdoyle/iib:860636-amd64 --amend 7d3c52637db9eb2c79957119e3094432aefe61f5e06ec150855858f350e7dadc ++ podman manifest push quay.io/trdoyle/iib:860636 Getting image list signatures Copying 2 images generated from 2 images in list Copying image sha256:49ad33ba26d66ea2b8d4c423af3e1f5d09e236453fde83237817c28e3e0bbfdc (1/2) Getting image source signatures Copying blob sha256:63a1bb47879cefa54a83e17c4e27a74b4576e807c622ce3b3b505ea8dcbed020 Copying blob sha256:6dc2ad2bc4e6e1396d7796ad71946955cd4adca263d3aeafb7fcc9fb3f75721f Copying blob sha256:d85ab64bf08ec7872e78be0a49a5af1c554818503aaa3fe5c6f5d019641cca97 Copying blob sha256:f516fd006fd1416aade34f9601138194e075d133d1c497e7c47481e2c7be42d5 Copying blob sha256:5789caf9bf7e8ba1a84456578e4cff6249ed83e81f68ae4980ce21f0bea68f47 Copying config sha256:bae5d9139b8e8369ecb1c92e2acfea0f4aed63b2188e0e830ebd942066b2a071 Writing manifest to image destination Copying image sha256:2c3cc81461bbbe7ebb259d84ecc8617b26bc0e0b005ad40c405e3e320358376e (2/2) Getting image source signatures Copying blob sha256:9e885ac4fcb15b4726bfe8b1dd60b2eb334a4cf849a7f9cb8c2e22bcd2311f99 Copying blob sha256:ae0badd537673e93bcbcf384ce6acda3cdfef75d43bd2f7bc766ef5ffba3e51a Copying blob sha256:846f8649ddf598e8154bb38e290b01941527e2e3fe8a6809c7130eb8e713b431 Copying blob sha256:2dc71d44b6743e897d413594c90848bc7d9650eea10e97e8e7e8e94519398e1f Copying blob sha256:0e2c29947cc3a9ba4d11846d9666d0e73564d8d1d273bf5f4f120903462a1396 Copying config sha256:cd427d363dce5fb717a605875994601816100e58148466118aa1be8e4ffc0851 Writing manifest to image destination Writing manifest list to image destination Storing list signatures ++ oc patch operatorhub.config.openshift.io/cluster '-p={"spec":{"disableAllDefaultSources":true}}' --type=merge operatorhub.config.openshift.io/cluster patched ++ oc apply -f config/YAMLs/image-content-source-policy.yaml imagecontentsourcepolicy.operator.openshift.io/brew-registry unchanged ++ cat ++ oc apply -f - catalogsource.operators.coreos.com/redhat-operators created ++ rm authfilewithbrew ++ i=0 +++ oc get catalogsource -n openshift-marketplace -o 'jsonpath={.items[0].status.connectionState.lastObservedState}' ++ '[' READY = READY ']' ++ NEW_BUILD=openshift-gitops-operator.v1.13.3 +++ oc get csv -n openshift-operators -o name ++ [[ clusterserviceversion.operators.coreos.com/openshift-gitops-operator.v1.13.2 == *\o\p\e\n\s\h\i\f\t\-\g\i\t\o\p\s\-\o\p\e\r\a\t\o\r\.\v\1\.\1\3\.\3* ]] ++ echo 'Operator upgrading...' Operator upgrading... ++ sleep 10 +++ oc get csv -n openshift-operators -o name ++ [[ clusterserviceversion.operators.coreos.com/openshift-gitops-operator.v1.13.2 == *\o\p\e\n\s\h\i\f\t\-\g\i\t\o\p\s\-\o\p\e\r\a\t\o\r\.\v\1\.\1\3\.\3* ]] +++ oc get csv -n openshift-operators -o name ++ [[ clusterserviceversion.operators.coreos.com/openshift-gitops-operator.v1.13.2 == *\o\p\e\n\s\h\i\f\t\-\g\i\t\o\p\s\-\o\p\e\r\a\t\o\r\.\v\1\.\1\3\.\3* ]] ++ echo 'Operator upgrading...' Operator upgrading... ++ sleep 10 +++ oc get csv -n openshift-operators -o name ++ [[ clusterserviceversion.operators.coreos.com/openshift-gitops-operator.v1.13.2 == *\o\p\e\n\s\h\i\f\t\-\g\i\t\o\p\s\-\o\p\e\r\a\t\o\r\.\v\1\.\1\3\.\3* ]] +++ oc get csv -n openshift-operators -o name ++ [[ clusterserviceversion.operators.coreos.com/openshift-gitops-operator.v1.13.2 == *\o\p\e\n\s\h\i\f\t\-\g\i\t\o\p\s\-\o\p\e\r\a\t\o\r\.\v\1\.\1\3\.\3* ]] ++ echo 'Operator upgrading...' Operator upgrading... ++ sleep 10 +++ oc get csv -n openshift-operators -o name ++ [[ clusterserviceversion.operators.coreos.com/openshift-gitops-operator.v1.13.2 == *\o\p\e\n\s\h\i\f\t\-\g\i\t\o\p\s\-\o\p\e\r\a\t\o\r\.\v\1\.\1\3\.\3* ]] +++ oc get csv -n openshift-operators -o name ++ [[ clusterserviceversion.operators.coreos.com/openshift-gitops-operator.v1.13.2 == *\o\p\e\n\s\h\i\f\t\-\g\i\t\o\p\s\-\o\p\e\r\a\t\o\r\.\v\1\.\1\3\.\3* ]] ++ echo 'Operator upgrading...' Operator upgrading... ++ sleep 10 +++ oc get csv -n openshift-operators -o name ++ [[ clusterserviceversion.operators.coreos.com/openshift-gitops-operator.v1.13.2 == *\o\p\e\n\s\h\i\f\t\-\g\i\t\o\p\s\-\o\p\e\r\a\t\o\r\.\v\1\.\1\3\.\3* ]] +++ oc get csv -n openshift-operators -o name ++ [[ clusterserviceversion.operators.coreos.com/openshift-gitops-operator.v1.13.2 == *\o\p\e\n\s\h\i\f\t\-\g\i\t\o\p\s\-\o\p\e\r\a\t\o\r\.\v\1\.\1\3\.\3* ]] ++ echo 'Operator upgrading...' Operator upgrading... ++ sleep 10 +++ oc get csv -n openshift-operators -o name ++ [[ clusterserviceversion.operators.coreos.com/openshift-gitops-operator.v1.13.2 clusterserviceversion.operators.coreos.com/openshift-gitops-operator.v1.13.3 == *\o\p\e\n\s\h\i\f\t\-\g\i\t\o\p\s\-\o\p\e\r\a\t\o\r\.\v\1\.\1\3\.\3* ]] ++ break ++ echo -e '\nOperator upgraded, Waiting for the pods to come up' -e Operator upgraded, Waiting for the pods to come up ++ sleep 30 ++ deployments=($(echo $(oc get deployments -n openshift-gitops --no-headers -o custom-columns=':metadata.name'))) ++++ oc get deployments -n openshift-gitops --no-headers -o custom-columns=:metadata.name +++ echo cluster gitops-plugin kam openshift-gitops-applicationset-controller openshift-gitops-dex-server openshift-gitops-redis openshift-gitops-repo-server openshift-gitops-server ++ for deployment in '"${deployments[@]}"' ++ oc rollout status deployment/cluster -n openshift-gitops --timeout=60s deployment "cluster" successfully rolled out ++ for deployment in '"${deployments[@]}"' ++ oc rollout status deployment/gitops-plugin -n openshift-gitops --timeout=60s deployment "gitops-plugin" successfully rolled out ++ for deployment in '"${deployments[@]}"' ++ oc rollout status deployment/kam -n openshift-gitops --timeout=60s deployment "kam" successfully rolled out ++ for deployment in '"${deployments[@]}"' ++ oc rollout status deployment/openshift-gitops-applicationset-controller -n openshift-gitops --timeout=60s deployment "openshift-gitops-applicationset-controller" successfully rolled out ++ for deployment in '"${deployments[@]}"' ++ oc rollout status deployment/openshift-gitops-dex-server -n openshift-gitops --timeout=60s Waiting for deployment "openshift-gitops-dex-server" rollout to finish: 1 old replicas are pending termination... Waiting for deployment "openshift-gitops-dex-server" rollout to finish: 1 old replicas are pending termination... deployment "openshift-gitops-dex-server" successfully rolled out ++ for deployment in '"${deployments[@]}"' ++ oc rollout status deployment/openshift-gitops-redis -n openshift-gitops --timeout=60s deployment "openshift-gitops-redis" successfully rolled out ++ for deployment in '"${deployments[@]}"' ++ oc rollout status deployment/openshift-gitops-repo-server -n openshift-gitops --timeout=60s Waiting for deployment "openshift-gitops-repo-server" rollout to finish: 1 old replicas are pending termination... Waiting for deployment "openshift-gitops-repo-server" rollout to finish: 1 old replicas are pending termination... deployment "openshift-gitops-repo-server" successfully rolled out ++ for deployment in '"${deployments[@]}"' ++ oc rollout status deployment/openshift-gitops-server -n openshift-gitops --timeout=60s Waiting for deployment "openshift-gitops-server" rollout to finish: 1 old replicas are pending termination... Waiting for deployment "openshift-gitops-server" rollout to finish: 1 old replicas are pending termination... deployment "openshift-gitops-server" successfully rolled out ++ oc wait argocd openshift-gitops -n openshift-gitops '--for=jsonpath={.status.phase}=Available' --timeout=60s argocd.argoproj.io/openshift-gitops condition met ++ oc wait argocd argocd -n example-argocd '--for=jsonpath={.status.phase}=Available' --timeout=60s argocd.argoproj.io/argocd condition met ++ [[ openshift-gitops-operator.v1.13.3 =~ openshift-gitops-operator\.v1\.10 ]] ++ deployments=($(echo $(oc get deployments -n example-argocd --no-headers -o custom-columns=':metadata.name'))) ++++ oc get deployments -n example-argocd --no-headers -o custom-columns=:metadata.name +++ echo argocd-redis argocd-repo-server argocd-server ++ for deployment in '"${deployments[@]}"' ++ oc rollout status deployment/argocd-redis -n example-argocd --timeout=60s deployment "argocd-redis" successfully rolled out ++ for deployment in '"${deployments[@]}"' ++ oc rollout status deployment/argocd-repo-server -n example-argocd --timeout=60s deployment "argocd-repo-server" successfully rolled out ++ for deployment in '"${deployments[@]}"' ++ oc rollout status deployment/argocd-server -n example-argocd --timeout=60s deployment "argocd-server" successfully rolled out ++ echo 'Wait for ArgoCD apiVersion upgrade' Wait for ArgoCD apiVersion upgrade ++ [[ openshift-gitops-operator.v1.13.3 =~ openshift-gitops-operator\.v1\.10 ]] ++ i=0 ++ [[ 0 -lt 3 ]] +++ oc get app builds-config -n openshift-gitops -o 'jsonpath={.status.sync.status}' ++ [[ Synced = \S\y\n\c\e\d ]] +++ oc get app builds-config -n openshift-gitops -o 'jsonpath={.status.health.status}' ++ [[ Healthy = \H\e\a\l\t\h\y ]] ++ echo 'builds-config app in Healthy and Synced state' builds-config app in Healthy and Synced state +++ expr 0 + 1 ++ i=1 ++ [[ 1 -lt 3 ]] +++ oc get app console-config -n openshift-gitops -o 'jsonpath={.status.sync.status}' ++ [[ Synced = \S\y\n\c\e\d ]] +++ oc get app console-config -n openshift-gitops -o 'jsonpath={.status.health.status}' ++ [[ Healthy = \H\e\a\l\t\h\y ]] ++ echo 'console-config app in Healthy and Synced state' console-config app in Healthy and Synced state +++ expr 1 + 1 ++ i=2 ++ [[ 2 -lt 3 ]] +++ oc get app image-config -n openshift-gitops -o 'jsonpath={.status.sync.status}' ++ [[ Synced = \S\y\n\c\e\d ]] +++ oc get app image-config -n openshift-gitops -o 'jsonpath={.status.health.status}' ++ [[ Healthy = \H\e\a\l\t\h\y ]] ++ echo 'image-config app in Healthy and Synced state' image-config app in Healthy and Synced state +++ expr 2 + 1 ++ i=3 ++ [[ 3 -lt 3 ]] ++ echo -e '\nOperator upgrade successful!\n' -e Operator upgrade successful! ++ oc patch operatorhub.config.openshift.io/cluster '-p={"spec":{"disableAllDefaultSources":false}}' --type=merge operatorhub.config.openshift.io/cluster patched