make operator-upgrade-podman . ./scripts/upgrade-operator-podman.sh ++ shopt -s extglob ++ '[' '!' 850189 ']' ++ '[' '!' 1.13.2 ']' ++ GITOPS_CHANNEL=latest ++ NEW_BUILD=openshift-gitops-operator.v1.13.2 ++ case "${NEW_VER}" in ++ export GITOPS_CHANNEL=gitops-1.13 ++ GITOPS_CHANNEL=gitops-1.13 ++ echo -e '\nInstalling and upgrading to version 1.13.2 from channel gitops-1.13 ' -e Installing and upgrading to version 1.13.2 from channel gitops-1.13 ++ [[ gitops-components-automated-testing == scripts ]] ++ QUAY_USER=devtools_gitops ++ sh scripts/install-operators.sh Installing OpenShift GitOps operator -e Ensure gitops subscription exists subscription.operators.coreos.com/openshift-gitops-operator unchanged Waiting for CSV_NAME clusterserviceversion.operators.coreos.com/openshift-gitops-operator.v1.13.2 condition met Completed OpenShift GitOps operator installation deployment "cluster" successfully rolled out deployment "gitops-plugin" successfully rolled out deployment "kam" successfully rolled out deployment "openshift-gitops-applicationset-controller" successfully rolled out deployment "openshift-gitops-dex-server" successfully rolled out deployment "openshift-gitops-redis" successfully rolled out deployment "openshift-gitops-repo-server" successfully rolled out deployment "openshift-gitops-server" successfully rolled out -e Provide cluster-admin access to argocd-application-controller service account 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 namespace "example-argocd" deleted ++ oc create ns example-argocd namespace/example-argocd created ++ sleep 2 ++ oc apply -f config/YAMLs/argocd-basic.yaml Warning: ArgoCD v1alpha1 version is deprecated and will be converted to v1beta1 automatically. Moving forward, please use v1beta1 as the ArgoCD API version. 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 unchanged application.argoproj.io/console-config unchanged application.argoproj.io/image-config unchanged ++ 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}' ++ [[ 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:850189 ++ MIRROR=quay.io/devtools_gitops/iib:850189 ++ echo iib index = registry-proxy.engineering.redhat.com/rh-osbs/iib:850189 iib index = registry-proxy.engineering.redhat.com/rh-osbs/iib:850189 ++ echo mirror index = quay.io/devtools_gitops/iib:850189 mirror index = quay.io/devtools_gitops/iib:850189 ++ 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:850189 --platform linux/arm64 --tls-verify=false Trying to pull registry-proxy.engineering.redhat.com/rh-osbs/iib:850189... Getting image source signatures Copying blob sha256:542d527919576362552249e2ecd4a22c4745918a17b561e683bb1a793b5102ba Copying blob sha256:6dc2ad2bc4e6e1396d7796ad71946955cd4adca263d3aeafb7fcc9fb3f75721f Copying blob sha256:d328e2a8137265c89a6ae13d78e3f3ea45333023f473475227a2a5b40e28adfe Copying blob sha256:946eb3c71131457f3e9e025b66a4301d274fefd4933472206043679c1bd8fd13 Copying blob sha256:9e1c5a2e2104c939e1ec4e0776e6bd05a06debc26e7e14d2310ccc1cff23dbf5 Copying config sha256:e62bca95408713665f34b419da43db5bed8f765e65616d04c05d3ac6a27482f2 Writing manifest to image destination e62bca95408713665f34b419da43db5bed8f765e65616d04c05d3ac6a27482f2 ++ podman tag registry-proxy.engineering.redhat.com/rh-osbs/iib:850189 quay.io/devtools_gitops/iib:850189-arm64 ++ podman push quay.io/devtools_gitops/iib:850189-arm64 Getting image source signatures Copying blob sha256:d65683f47155fa5a349e825399413519a939861b8bb9d6fcf85b2e45c9a7157c Copying blob sha256:2df314e3a2bd4ce8533adeb48870053973cd4269c6e31a6e5403451c10798264 Copying blob sha256:99d605f4932798360d18d2cdda416ca8c7051daf135a44a4228970932f994fef Copying blob sha256:6c94b117a9d910c142434b3f73e308c0ea4ade1bf31bc6d446351bf36465e20e Copying blob sha256:fa68b34de0d55d25e3b4bfe8e6a08e51263d0588af6042f84a5eeb8b3d37ebd5 Copying config sha256:e62bca95408713665f34b419da43db5bed8f765e65616d04c05d3ac6a27482f2 Writing manifest to image destination ++ podman pull registry-proxy.engineering.redhat.com/rh-osbs/iib:850189 --platform linux/amd64 --tls-verify=false Trying to pull registry-proxy.engineering.redhat.com/rh-osbs/iib:850189... Getting image source signatures Copying blob sha256:3b33c247961aee08a39021baf1ec86df886782a92cee93271f59115dc3be2fd6 Copying blob sha256:ae0badd537673e93bcbcf384ce6acda3cdfef75d43bd2f7bc766ef5ffba3e51a Copying blob sha256:f99f664888635bc510f3f17d9c09f85ee9ade21c11affe6a3e1f3129fc992d0f Copying blob sha256:c15da18c013d10e2fca29d80f0e81c93759ce6c718793ae2ecc043912f1a351f Copying blob sha256:00d3e81c7cbf005685a159d50e5329be2ee7b5d139390aff9f3ff5d371434dfa Copying config sha256:4ea818be98ea583c2aa29eb93e4995e2490d797874922c6da040678b72ca45a5 Writing manifest to image destination 4ea818be98ea583c2aa29eb93e4995e2490d797874922c6da040678b72ca45a5 ++ podman tag registry-proxy.engineering.redhat.com/rh-osbs/iib:850189 quay.io/devtools_gitops/iib:850189-amd64 ++ podman push quay.io/devtools_gitops/iib:850189-amd64 Getting image source signatures Copying blob sha256:330d7cae136b6cca028d857030af68eabf5aadaff8f3115caeaa2782ab146326 Copying blob sha256:08a78c48d74b78515e70f09f6c29d8a6e9be3ddf15d1b064dcb4f7ee80e816ae Copying blob sha256:d7c830899c2e570bdbf869b40daf3d89878bd90e98c63e7d68ea0b1135a1f690 Copying blob sha256:e12a2d1c43389f6bc475c4f865f0f1995fab675a447dd2079498bd1257677ef8 Copying blob sha256:767c37b22e5a3417a21de43d9553d0dd3263ccf1d0df1e229051a9a7e96de663 Copying config sha256:4ea818be98ea583c2aa29eb93e4995e2490d797874922c6da040678b72ca45a5 Writing manifest to image destination ++ podman manifest create quay.io/devtools_gitops/iib:850189 quay.io/devtools_gitops/iib:850189-arm64 quay.io/devtools_gitops/iib:850189-amd64 --amend d394a553e68ca8bd96597eb303dddf934fedf90c51a6d92a82e8ca3056c061d5 ++ podman manifest push quay.io/devtools_gitops/iib:850189 Getting image list signatures Copying 2 images generated from 2 images in list Copying image sha256:486673b8cb7a7c7e509eb6c5bcb16e386538b655a4594522764276c1fff4c973 (1/2) Getting image source signatures Copying blob sha256:542d527919576362552249e2ecd4a22c4745918a17b561e683bb1a793b5102ba Copying blob sha256:6dc2ad2bc4e6e1396d7796ad71946955cd4adca263d3aeafb7fcc9fb3f75721f Copying blob sha256:d328e2a8137265c89a6ae13d78e3f3ea45333023f473475227a2a5b40e28adfe Copying blob sha256:946eb3c71131457f3e9e025b66a4301d274fefd4933472206043679c1bd8fd13 Copying blob sha256:9e1c5a2e2104c939e1ec4e0776e6bd05a06debc26e7e14d2310ccc1cff23dbf5 Copying config sha256:e62bca95408713665f34b419da43db5bed8f765e65616d04c05d3ac6a27482f2 Writing manifest to image destination Copying image sha256:ceda88a9a8f742bb9d07f73d482425f52dd1a9f4e5f10454be94c8182f9decb6 (2/2) Getting image source signatures Copying blob sha256:3b33c247961aee08a39021baf1ec86df886782a92cee93271f59115dc3be2fd6 Copying blob sha256:ae0badd537673e93bcbcf384ce6acda3cdfef75d43bd2f7bc766ef5ffba3e51a Copying blob sha256:00d3e81c7cbf005685a159d50e5329be2ee7b5d139390aff9f3ff5d371434dfa Copying blob sha256:c15da18c013d10e2fca29d80f0e81c93759ce6c718793ae2ecc043912f1a351f Copying blob sha256:f99f664888635bc510f3f17d9c09f85ee9ade21c11affe6a3e1f3129fc992d0f Copying config sha256:4ea818be98ea583c2aa29eb93e4995e2490d797874922c6da040678b72ca45a5 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 (no change) ++ 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 unchanged ++ 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.2 +++ 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\.\2* ]] ++ 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 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 deployment "openshift-gitops-repo-server" successfully rolled out ++ for deployment in '"${deployments[@]}"' ++ oc rollout status deployment/openshift-gitops-server -n openshift-gitops --timeout=60s 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.2 =~ 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-dex-server argocd-redis argocd-repo-server argocd-server ++ for deployment in '"${deployments[@]}"' ++ oc rollout status deployment/argocd-dex-server -n example-argocd --timeout=60s deployment "argocd-dex-server" successfully rolled out ++ 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.2 =~ 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