++ echo 'Log: /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/logs/smart-update.log' Log: /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/logs/smart-update.log ++ '[' -f /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/conf/cloud-secret.yml ']' ++ SKIP_BACKUPS_TO_AWS_GCP= ++ oc get projects error: the server doesn't have a resource type "projects" +++ kubectl version -o json +++ grep '\-eks\-' +++ jq -r .serverVersion.gitVersion WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1 ++ '[' ']' +++ kubectl version -o json +++ /usr/bin/sed -r 's/[^0-9.]+//g' +++ jq -r '.serverVersion.major + "." + .serverVersion.minor' WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1 ++ KUBE_VERSION=1.26 +++ helm version -c +++ /usr/bin/sed -re 's/.*SemVer:"([^"]+)".*/\1/; s/.*\bVersion:"([^"]+)".*/\1/' ++ HELM_VERSION=v3.14.4 ++ '[' v3 == v2 ']' + main + create_namespace smart-update-801 + local namespace=smart-update-801 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + kubectl_bin get ns + egrep -v '^kube-|^default|Terminating|openshift|^NAME' + cleanup_rbac ++ mktemp + kubectl_bin delete clusterrolebindings pgo-cluster-role pgo-deployer-cr chaos-mesh-chaos-controller-manager-cluster-level + xargs kubectl delete ns + awk '{print$1}' + local LAST_OUT=/tmp/tmp.EmrtPfntsZ ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.E8txq1J5wh + local LAST_ERR=/tmp/tmp.YwDpobzSkA + local exit_status=0 + local timeout=4 + set +o errexit ++ mktemp ++ seq 0 2 + local LAST_ERR=/tmp/tmp.MNURyfbnB0 + for i in '$(seq 0 2)' + local exit_status=0 + local timeout=4 + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + set +o errexit + kubectl get ns ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete clusterrolebindings pgo-cluster-role pgo-deployer-cr chaos-mesh-chaos-controller-manager-cluster-level + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.EmrtPfntsZ + cat /tmp/tmp.YwDpobzSkA + rm /tmp/tmp.EmrtPfntsZ /tmp/tmp.YwDpobzSkA + return 0 error: resource(s) were provided, but no name was specified + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete clusterrolebindings pgo-cluster-role pgo-deployer-cr chaos-mesh-chaos-controller-manager-cluster-level + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete clusterrolebindings pgo-cluster-role pgo-deployer-cr chaos-mesh-chaos-controller-manager-cluster-level + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.E8txq1J5wh + cat /tmp/tmp.MNURyfbnB0 Error from server (NotFound): clusterrolebindings.rbac.authorization.k8s.io "pgo-cluster-role" not found Error from server (NotFound): clusterrolebindings.rbac.authorization.k8s.io "pgo-deployer-cr" not found Error from server (NotFound): clusterrolebindings.rbac.authorization.k8s.io "chaos-mesh-chaos-controller-manager-cluster-level" not found + rm /tmp/tmp.E8txq1J5wh /tmp/tmp.MNURyfbnB0 + return 1 + true + kubectl_bin delete clusterroles pgo-cluster-role pgo-deployer-cr chaos-mesh-chaos-controller-manager-target-namespace chaos-mesh-chaos-controller-manager-cluster-level ++ mktemp + local LAST_OUT=/tmp/tmp.DiH3Uslg8b ++ mktemp + local LAST_ERR=/tmp/tmp.2noPHcUp8M + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete clusterroles pgo-cluster-role pgo-deployer-cr chaos-mesh-chaos-controller-manager-target-namespace chaos-mesh-chaos-controller-manager-cluster-level + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete clusterroles pgo-cluster-role pgo-deployer-cr chaos-mesh-chaos-controller-manager-target-namespace chaos-mesh-chaos-controller-manager-cluster-level + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete clusterroles pgo-cluster-role pgo-deployer-cr chaos-mesh-chaos-controller-manager-target-namespace chaos-mesh-chaos-controller-manager-cluster-level + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.DiH3Uslg8b + cat /tmp/tmp.2noPHcUp8M Error from server (NotFound): clusterroles.rbac.authorization.k8s.io "pgo-cluster-role" not found Error from server (NotFound): clusterroles.rbac.authorization.k8s.io "pgo-deployer-cr" not found Error from server (NotFound): clusterroles.rbac.authorization.k8s.io "chaos-mesh-chaos-controller-manager-target-namespace" not found Error from server (NotFound): clusterroles.rbac.authorization.k8s.io "chaos-mesh-chaos-controller-manager-cluster-level" not found + rm /tmp/tmp.DiH3Uslg8b /tmp/tmp.2noPHcUp8M + return 1 + true + kubectl delete MutatingWebhookConfiguration/chaos-mesh-mutation ValidatingWebhookConfiguration/chaos-mesh-validation ValidatingWebhookConfiguration/validate-auth Error from server (NotFound): mutatingwebhookconfigurations.admissionregistration.k8s.io "chaos-mesh-mutation" not found Error from server (NotFound): validatingwebhookconfigurations.admissionregistration.k8s.io "chaos-mesh-validation" not found Error from server (NotFound): validatingwebhookconfigurations.admissionregistration.k8s.io "validate-auth" not found + true + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + kubectl_bin delete namespace smart-update-801 ++ mktemp + local LAST_OUT=/tmp/tmp.3LwlGbEw4y ++ mktemp + local LAST_ERR=/tmp/tmp.ac9xPWSRCR + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete namespace smart-update-801 + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete namespace smart-update-801 + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete namespace smart-update-801 + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.3LwlGbEw4y + cat /tmp/tmp.ac9xPWSRCR Error from server (NotFound): namespaces "smart-update-801" not found + rm /tmp/tmp.3LwlGbEw4y /tmp/tmp.ac9xPWSRCR + return 1 + : + wait_for_delete namespace/smart-update-801 + local res=namespace/smart-update-801 + set +o xtrace namespace/smart-update-801 - Error from server (NotFound): namespaces "smart-update-801" not found + kubectl_bin create namespace smart-update-801 ++ mktemp + local LAST_OUT=/tmp/tmp.NqooKArc2W ++ mktemp + local LAST_ERR=/tmp/tmp.lYPFVmaoKx + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl create namespace smart-update-801 + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.NqooKArc2W namespace/smart-update-801 created + cat /tmp/tmp.lYPFVmaoKx + rm /tmp/tmp.NqooKArc2W /tmp/tmp.lYPFVmaoKx + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.2ZnyKG0tSn +++ mktemp ++ local LAST_ERR=/tmp/tmp.wVE7lTsCNN ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade ++ kubectl config current-context ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.2ZnyKG0tSn ++ cat /tmp/tmp.wVE7lTsCNN ++ rm /tmp/tmp.2ZnyKG0tSn /tmp/tmp.wVE7lTsCNN ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-c_jen-pg-721-a67b3475b-2-upgrade --namespace=smart-update-801 ++ mktemp + local LAST_OUT=/tmp/tmp.p2qkh4zZ6Y ++ mktemp + local LAST_ERR=/tmp/tmp.NKbIS0ZwsT + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl config set-context gke_cloud-dev-112233_us-central1-c_jen-pg-721-a67b3475b-2-upgrade --namespace=smart-update-801 + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.p2qkh4zZ6Y Context "gke_cloud-dev-112233_us-central1-c_jen-pg-721-a67b3475b-2-upgrade" modified. + cat /tmp/tmp.NKbIS0ZwsT + rm /tmp/tmp.p2qkh4zZ6Y /tmp/tmp.NKbIS0ZwsT + return 0 + deploy_operator + local pull_secret_name= + local operator_manifest=/mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/operator.yaml + local namespace_mode=disabled + local action=install + local namespace=smart-update-801 + local dont_send_telemetry=false + local version_service_uri_override= + desc 'start operator' + set +o xtrace ----------------------------------------------------------------------------------- start operator ----------------------------------------------------------------------------------- + prepare_operator_yaml '' /mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/operator.yaml disabled install smart-update-801 false + local pull_secret_name= + local operator_manifest=/mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/operator.yaml + local namespace_mode=disabled + local operator_action=install + local namespace=smart-update-801 + local dont_send_telemetry=false + /usr/bin/sed -e 's#^namespace: .*#namespace: "smart-update-801"#g' + yq r -d2 /mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/operator.yaml 'data[values.yaml]' + cat /dev/fd/63 - ++ echo 'crunchy_debug: "true"' + /usr/bin/sed -e 's#namespace_mode: .*#namespace_mode: "disabled"#g' ++ cut -d: -f2 ++ echo perconalab/percona-postgresql-operator:PR-721-a67b3475b + /usr/bin/sed -e 's#pgo_image_tag: .*#pgo_image_tag: "PR-721-a67b3475b"#g' + /usr/bin/sed -e 's#pgo_operator_namespace: .*#pgo_operator_namespace: "smart-update-801"#g' + /usr/bin/sed -e 's#^disable_telemetry: .*#disable_telemetry: "false"#g' ++ echo perconalab/percona-postgresql-operator:PR-721-a67b3475b ++ cut -d: -f1 + /usr/bin/sed -e 's#pgo_image_prefix: .*#pgo_image_prefix: "perconalab/percona-postgresql-operator"#g' + [[ -n '' ]] + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + yq w '-d*' /mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/operator.yaml metadata.namespace smart-update-801 + yq w -d4 - 'spec.template.spec.containers[0].env[0].value' install + yq w -d3 - 'subjects[0].namespace' smart-update-801 + yq w -d4 - 'spec.template.spec.containers[0].image' perconalab/percona-postgresql-operator:PR-721-a67b3475b-pgo-deployer ++ cat /tmp/tmp.oOS3sF5C9m/operator.ini + yq w -d2 - -d2 'data[values.yaml]' 'crunchy_debug: "true" archive_mode: "true" archive_timeout: "60" ccp_image_pull_secret: "" ccp_image_pull_secret_manifest: "" create_rbac: "true" delete_operator_namespace: "false" delete_watched_namespaces: "false" disable_telemetry: "false" namespace: "smart-update-801" namespace_mode: "disabled" pgo_image_prefix: "perconalab/percona-postgresql-operator" pgo_image_pull_policy: "Always" pgo_image_pull_secret: "" pgo_image_pull_secret_manifest: "" pgo_image_tag: "PR-721-a67b3475b" pgo_operator_namespace: "smart-update-801"' + [[ -n '' ]] + kubectl_bin apply -f /tmp/tmp.oOS3sF5C9m/operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.adqkw4oIAq ++ mktemp + local LAST_ERR=/tmp/tmp.fzaMuT0e3r + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl apply -f /tmp/tmp.oOS3sF5C9m/operator.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.adqkw4oIAq serviceaccount/pgo-deployer-sa created clusterrole.rbac.authorization.k8s.io/pgo-deployer-cr created configmap/pgo-deployer-cm created clusterrolebinding.rbac.authorization.k8s.io/pgo-deployer-crb created job.batch/pgo-deploy created + cat /tmp/tmp.fzaMuT0e3r + rm /tmp/tmp.adqkw4oIAq /tmp/tmp.fzaMuT0e3r + return 0 + wait_job_completion pgo-deploy true + local job=pgo-deploy + local mandatory=true + local ns=smart-update-801 + retry=0 + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' pgo-deploy+ retry=0 ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 3 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 4 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 5 -ge 600 ']' ++ grep -io 'not found' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 6 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 7 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 8 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 9 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 10 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 11 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 12 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 13 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 14 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 15 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 16 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 17 -ge 600 ']' ++ grep -io 'not found' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 18 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 19 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 20 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 21 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 22 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + kubectl_bin delete -f /tmp/tmp.oOS3sF5C9m/operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.Z4beae7OwE ++ mktemp + local LAST_ERR=/tmp/tmp.kdsCCIsg8B + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete -f /tmp/tmp.oOS3sF5C9m/operator.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.Z4beae7OwE serviceaccount "pgo-deployer-sa" deleted clusterrole.rbac.authorization.k8s.io "pgo-deployer-cr" deleted configmap "pgo-deployer-cm" deleted clusterrolebinding.rbac.authorization.k8s.io "pgo-deployer-crb" deleted job.batch "pgo-deploy" deleted + cat /tmp/tmp.kdsCCIsg8B + rm /tmp/tmp.Z4beae7OwE /tmp/tmp.kdsCCIsg8B + return 0 ++ get_operator_pod ++ kubectl_bin get pods --selector=name=postgres-operator -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.mk8Vmgf4Qe +++ mktemp ++ local LAST_ERR=/tmp/tmp.klXTUXGD12 ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade ++ kubectl get pods --selector=name=postgres-operator -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.mk8Vmgf4Qe ++ cat /tmp/tmp.klXTUXGD12 ++ rm /tmp/tmp.mk8Vmgf4Qe /tmp/tmp.klXTUXGD12 ++ return 0 + wait_pod postgres-operator-68868d7ff8-zmrs8 + local pod=postgres-operator-68868d7ff8-zmrs8 + local ns= + set +o xtrace postgres-operator-68868d7ff8-zmrs8true + [[ -n '' ]] + desc 'start cluster' + set +o xtrace ----------------------------------------------------------------------------------- start cluster ----------------------------------------------------------------------------------- + cluster=cluster1 + PGO_TAG=1.0.0 + PG_VER=13 + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/conf/client.yml ++ mktemp + local LAST_OUT=/tmp/tmp.ogtqJZYHl8 ++ mktemp + local LAST_ERR=/tmp/tmp.Hy0l6s9OxB + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl apply -f /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/conf/client.yml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.ogtqJZYHl8 deployment.apps/pg-client created + cat /tmp/tmp.Hy0l6s9OxB + rm /tmp/tmp.ogtqJZYHl8 /tmp/tmp.Hy0l6s9OxB + return 0 + IMAGE_PGBOUNCER=percona/percona-postgresql-operator:1.0.0-ppg13-pgbouncer + IMAGE_PG_HA=percona/percona-postgresql-operator:1.0.0-ppg13-postgres-ha + IMAGE_BACKREST=percona/percona-postgresql-operator:1.0.0-ppg13-pgbackrest + IMAGE_BACKREST_REPO=percona/percona-postgresql-operator:1.0.0-ppg13-pgbackrest-repo + IMAGE_PGBADGER=percona/percona-postgresql-operator:1.0.0-ppg13-pgbadger + spinup_pgcluster cluster1 /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/smart-update/conf/1.0.0_cr.yaml + local cluster=cluster1 + local config=/mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/smart-update/conf/1.0.0_cr.yaml + local backup=false + local custom_config=false + local podAntiAffinity=false + local schedule=false + local schedule_type=false + local tls_only=false + local pgoClientFile=/mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/conf/client.yml + local namespace=smart-update-801 + local root_via_pgbouncer= + desc 'create fresh PG cluster' + set +o xtrace ----------------------------------------------------------------------------------- create fresh PG cluster ----------------------------------------------------------------------------------- + create_user_secrets cluster1 smart-update-801 + local cluster=cluster1 + local namespace=smart-update-801 + yq r -d0 /mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/users-secret.yaml + yq w - metadata.name cluster1-users-secret + kubectl_bin -n smart-update-801 apply -f - ++ mktemp + yq w - stringData.some-name some-name_pass + local LAST_OUT=/tmp/tmp.A6J9mTvFot ++ mktemp + local LAST_ERR=/tmp/tmp.JiDFBX9urS + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl -n smart-update-801 apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.A6J9mTvFot secret/cluster1-users-secret created + cat /tmp/tmp.JiDFBX9urS + rm /tmp/tmp.A6J9mTvFot /tmp/tmp.JiDFBX9urS + return 0 + yq r -d1 /mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/users-secret.yaml + yq w - metadata.name cluster1-pmm-secret + kubectl_bin -n smart-update-801 apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.C4P1nwXGyp ++ mktemp + local LAST_ERR=/tmp/tmp.iDM4gzurW4 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl -n smart-update-801 apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.C4P1nwXGyp secret/cluster1-pmm-secret created + cat /tmp/tmp.iDM4gzurW4 + rm /tmp/tmp.C4P1nwXGyp /tmp/tmp.iDM4gzurW4 + return 0 + kubectl_bin -n smart-update-801 apply -f /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/conf/client.yml ++ mktemp + local LAST_OUT=/tmp/tmp.KcFzkZfiiK ++ mktemp + local LAST_ERR=/tmp/tmp.nDwQ0LjOCG + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl -n smart-update-801 apply -f /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/conf/client.yml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.KcFzkZfiiK deployment.apps/pg-client unchanged + cat /tmp/tmp.nDwQ0LjOCG + rm /tmp/tmp.KcFzkZfiiK /tmp/tmp.nDwQ0LjOCG + return 0 + apply_cluster /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/smart-update/conf/1.0.0_cr.yaml cluster1 false false false false false false false false + local path=/mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/smart-update/conf/1.0.0_cr.yaml + local name=cluster1 + local backup=false + local restore_from=false + local restore_opts=false + local custom_config=false + local podAntiAffinity=false + local schedule=false + local schedule_type=false + local tls_only=false + local root_via_pgbouncer= + yq w /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/smart-update/conf/1.0.0_cr.yaml metadata.annotations.current-primary cluster1 + yq w - metadata.labels.crunchy-pgha-scope cluster1 + yq w - metadata.name cluster1 + yq w - spec.clustername cluster1 + yq w - spec.backup.image percona/percona-postgresql-operator:1.0.0-ppg13-pgbackrest + yq w - metadata.labels.name cluster1 + yq w - spec.backup.backrestRepoImage percona/percona-postgresql-operator:1.0.0-ppg13-pgbackrest-repo + yq w - spec.pgBadger.image percona/percona-postgresql-operator:1.0.0-ppg13-pgbadger + yq w - spec.pmm.image perconalab/pmm-client:2.41.0 + yq w - spec.pgPrimary.image percona/percona-postgresql-operator:1.0.0-ppg13-postgres-ha + yq w - spec.secretsName cluster1-users-secret + yq w - spec.database cluster1 + yq w - spec.keepData false + yq w - spec.name cluster1 + yq w - metadata.labels.pg-cluster cluster1 + yq w - metadata.labels.deployment-name cluster1 + yq w - spec.pgBouncer.image percona/percona-postgresql-operator:1.0.0-ppg13-pgbouncer + yq w - spec.keepBackups false + yq w - spec.user some-name + case ${podAntiAffinity} in + case ${backup} in + [[ false != \f\a\l\s\e ]] + [[ false != \f\a\l\s\e ]] + [[ false == \t\r\u\e ]] + [[ '' == \t\r\u\e ]] + kubectl_bin apply -f /tmp/tmp.oOS3sF5C9m/cr.yaml -n smart-update-801 ++ mktemp + local LAST_OUT=/tmp/tmp.TJwj7uxFKG ++ mktemp + local LAST_ERR=/tmp/tmp.WRkRJ8WnYv + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl apply -f /tmp/tmp.oOS3sF5C9m/cr.yaml -n smart-update-801 + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.TJwj7uxFKG perconapgcluster.pg.percona.com/cluster1 created + cat /tmp/tmp.WRkRJ8WnYv + rm /tmp/tmp.TJwj7uxFKG /tmp/tmp.WRkRJ8WnYv + return 0 + wait_deployment cluster1-backrest-shared-repo + local name=cluster1-backrest-shared-repo + local target_namespace=smart-update-801 + sleep 10 + set +o xtrace cluster1-backrest-shared-repo.... + wait_deployment cluster1 + local name=cluster1 + local target_namespace=smart-update-801 + sleep 10 + set +o xtrace cluster1.......... + [[ false == \g\c\s\+* ]] + wait_job_completion cluster1-stanza-create false + local job=cluster1-stanza-create + local mandatory=false + local ns=smart-update-801 + retry=0 + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl -n smart-update-801 get job/cluster1-stanza-create -o 'jsonpath={.metadata.name}' cluster1-stanza-create+ retry=0 ++ kubectl_bin -n smart-update-801 get job/cluster1-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/cluster1-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/cluster1-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/cluster1-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/cluster1-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ not found == \n\o\t\ \f\o\u\n\d ]] + echo + wait_job_completion backrest-backup-cluster1 + local job=backrest-backup-cluster1 + local mandatory=true + local ns=smart-update-801 + retry=0 + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl -n smart-update-801 get job/backrest-backup-cluster1 -o 'jsonpath={.metadata.name}' backrest-backup-cluster1+ retry=0 ++ kubectl_bin -n smart-update-801 get job/backrest-backup-cluster1 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/backrest-backup-cluster1 -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + wait_cluster_consistency cluster1 + cluster_name=cluster1 + wait_cluster_status cluster1 'pgcluster Initialized' + local cluster_name=cluster1 + local 'target_status=pgcluster Initialized' + local target_namespace=smart-update-801 + local status_query= + case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in ++ kubectl_bin get perconapgcluster/cluster1 -o 'jsonpath={.metadata.labels.pgo-version}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.chDbm82VR4 +++ mktemp ++ local LAST_ERR=/tmp/tmp.3k4Ca2G3N6 ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade ++ kubectl get perconapgcluster/cluster1 -o 'jsonpath={.metadata.labels.pgo-version}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.chDbm82VR4 ++ cat /tmp/tmp.3k4Ca2G3N6 ++ rm /tmp/tmp.chDbm82VR4 /tmp/tmp.3k4Ca2G3N6 ++ return 0 + status_query='kubectl_bin -n smart-update-801 get pgcluster/cluster1 -o jsonpath='\''{.status.state}'\''' + local retry=0 ++ eval kubectl_bin -n smart-update-801 get pgcluster/cluster1 -o 'jsonpath='\''{.status.state}'\''' +++ kubectl_bin -n smart-update-801 get pgcluster/cluster1 -o 'jsonpath={.status.state}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.IkbXlM2jGS ++++ mktemp +++ local LAST_ERR=/tmp/tmp.agiM9ZHHow +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade +++ kubectl -n smart-update-801 get pgcluster/cluster1 -o 'jsonpath={.status.state}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.IkbXlM2jGS +++ cat /tmp/tmp.agiM9ZHHow +++ rm /tmp/tmp.IkbXlM2jGS /tmp/tmp.agiM9ZHHow +++ return 0 + [[ pgcluster Initialized == \p\g\c\l\u\s\t\e\r\ \I\n\i\t\i\a\l\i\z\e\d ]] + sleep 10 + desc 'write data' + set +o xtrace ----------------------------------------------------------------------------------- write data ----------------------------------------------------------------------------------- ++ get_psql_user_pass postgres cluster1 ++ local user=postgres ++ local cluster=cluster1 ++ local namespace=smart-update-801 +++ kubectl_bin -n smart-update-801 get perconapgcluster/cluster1 -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.4vGSITesoX ++++ mktemp +++ local LAST_ERR=/tmp/tmp.xoP7TV3DVI +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade +++ kubectl -n smart-update-801 get perconapgcluster/cluster1 -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.4vGSITesoX +++ cat /tmp/tmp.xoP7TV3DVI +++ rm /tmp/tmp.4vGSITesoX /tmp/tmp.xoP7TV3DVI +++ return 0 ++ [[ xcluster1 == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/cluster1 -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.UvL3dHgJSc ++++ mktemp +++ local LAST_ERR=/tmp/tmp.s5iood4Epr +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade +++ kubectl get perconapgcluster/cluster1 -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.UvL3dHgJSc +++ cat /tmp/tmp.s5iood4Epr +++ rm /tmp/tmp.UvL3dHgJSc /tmp/tmp.s5iood4Epr +++ return 0 +++ kubectl_bin -n smart-update-801 get secret/cluster1-postgres-secret -o 'jsonpath={.data.password}' +++ base64 -d ++++ mktemp +++ local LAST_OUT=/tmp/tmp.bumLBvSKtK ++++ mktemp +++ local LAST_ERR=/tmp/tmp.hBFikZjcnu +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade +++ kubectl -n smart-update-801 get secret/cluster1-postgres-secret -o 'jsonpath={.data.password}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.bumLBvSKtK +++ cat /tmp/tmp.hBFikZjcnu +++ rm /tmp/tmp.bumLBvSKtK /tmp/tmp.hBFikZjcnu +++ return 0 ++ echo postgres_password + run_psql 'CREATE DATABASE myapp; \c myapp \\\ CREATE TABLE IF NOT EXISTS myApp (id int PRIMARY KEY);' postgres:postgres_password@cluster1.smart-update-801 + local 'command=CREATE DATABASE myapp; \c myapp \\\ CREATE TABLE IF NOT EXISTS myApp (id int PRIMARY KEY);' + local uri=postgres:postgres_password@cluster1.smart-update-801 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n smart-update-801 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.fMmrwHWAqz +++ mktemp ++ local LAST_ERR=/tmp/tmp.ZKfAPCFITt ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade ++ kubectl -n smart-update-801 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.fMmrwHWAqz ++ cat /tmp/tmp.ZKfAPCFITt ++ rm /tmp/tmp.fMmrwHWAqz /tmp/tmp.ZKfAPCFITt ++ return 0 + local client_container=pg-client-76df9df876-xrv6j + kubectl_bin exec pg-client-76df9df876-xrv6j -n smart-update-801 -- bash -c 'printf '\''CREATE DATABASE myapp; \c myapp \\\ CREATE TABLE IF NOT EXISTS myApp (id int PRIMARY KEY);\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@cluster1.smart-update-801.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.LxDC8Q1WmS ++ mktemp + local LAST_ERR=/tmp/tmp.aOlVF4wjQP + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl exec pg-client-76df9df876-xrv6j -n smart-update-801 -- bash -c 'printf '\''CREATE DATABASE myapp; \c myapp \\\ CREATE TABLE IF NOT EXISTS myApp (id int PRIMARY KEY);\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@cluster1.smart-update-801.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.LxDC8Q1WmS + cat /tmp/tmp.aOlVF4wjQP + rm /tmp/tmp.LxDC8Q1WmS /tmp/tmp.aOlVF4wjQP + return 0 ++ get_psql_user_pass postgres cluster1 ++ local user=postgres ++ local cluster=cluster1 ++ local namespace=smart-update-801 +++ kubectl_bin -n smart-update-801 get perconapgcluster/cluster1 -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.gHQJmSoqMU ++++ mktemp +++ local LAST_ERR=/tmp/tmp.eWODej8xSo +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade +++ kubectl -n smart-update-801 get perconapgcluster/cluster1 -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.gHQJmSoqMU +++ cat /tmp/tmp.eWODej8xSo +++ rm /tmp/tmp.gHQJmSoqMU /tmp/tmp.eWODej8xSo +++ return 0 ++ [[ xcluster1 == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/cluster1 -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.w7MLwCzHPM ++++ mktemp +++ local LAST_ERR=/tmp/tmp.stwuxrQsR9 +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade +++ kubectl get perconapgcluster/cluster1 -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.w7MLwCzHPM +++ cat /tmp/tmp.stwuxrQsR9 +++ rm /tmp/tmp.w7MLwCzHPM /tmp/tmp.stwuxrQsR9 +++ return 0 +++ kubectl_bin -n smart-update-801 get secret/cluster1-postgres-secret -o 'jsonpath={.data.password}' +++ base64 -d ++++ mktemp +++ local LAST_OUT=/tmp/tmp.4oQwFDE4ph ++++ mktemp +++ local LAST_ERR=/tmp/tmp.pNhX5MlVJj +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade +++ kubectl -n smart-update-801 get secret/cluster1-postgres-secret -o 'jsonpath={.data.password}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.4oQwFDE4ph +++ cat /tmp/tmp.pNhX5MlVJj +++ rm /tmp/tmp.4oQwFDE4ph /tmp/tmp.pNhX5MlVJj +++ return 0 ++ echo postgres_password + run_psql '\c myapp \\\ INSERT INTO myApp (id) VALUES (100500)' postgres:postgres_password@cluster1.smart-update-801 + local 'command=\c myapp \\\ INSERT INTO myApp (id) VALUES (100500)' + local uri=postgres:postgres_password@cluster1.smart-update-801 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n smart-update-801 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.YtLWIBWq74 +++ mktemp ++ local LAST_ERR=/tmp/tmp.fglqwViHbc ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade ++ kubectl -n smart-update-801 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.YtLWIBWq74 ++ cat /tmp/tmp.fglqwViHbc ++ rm /tmp/tmp.YtLWIBWq74 /tmp/tmp.fglqwViHbc ++ return 0 + local client_container=pg-client-76df9df876-xrv6j + kubectl_bin exec pg-client-76df9df876-xrv6j -n smart-update-801 -- bash -c 'printf '\''\c myapp \\\ INSERT INTO myApp (id) VALUES (100500)\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@cluster1.smart-update-801.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.UQSzGOupMS ++ mktemp + local LAST_ERR=/tmp/tmp.1X52XuG8iR + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl exec pg-client-76df9df876-xrv6j -n smart-update-801 -- bash -c 'printf '\''\c myapp \\\ INSERT INTO myApp (id) VALUES (100500)\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@cluster1.smart-update-801.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.UQSzGOupMS + cat /tmp/tmp.1X52XuG8iR + rm /tmp/tmp.UQSzGOupMS /tmp/tmp.1X52XuG8iR + return 0 ++ get_psql_user_pass postgres cluster1 ++ local user=postgres ++ local cluster=cluster1 ++ local namespace=smart-update-801 +++ kubectl_bin -n smart-update-801 get perconapgcluster/cluster1 -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.MQsxiHtdQZ ++++ mktemp +++ local LAST_ERR=/tmp/tmp.Q7fuVilB7O +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade +++ kubectl -n smart-update-801 get perconapgcluster/cluster1 -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.MQsxiHtdQZ +++ cat /tmp/tmp.Q7fuVilB7O +++ rm /tmp/tmp.MQsxiHtdQZ /tmp/tmp.Q7fuVilB7O +++ return 0 ++ [[ xcluster1 == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/cluster1 -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.beRniq7X1r ++++ mktemp +++ local LAST_ERR=/tmp/tmp.lRDsQRpAhb +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade +++ kubectl get perconapgcluster/cluster1 -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.beRniq7X1r +++ cat /tmp/tmp.lRDsQRpAhb +++ rm /tmp/tmp.beRniq7X1r /tmp/tmp.lRDsQRpAhb +++ return 0 +++ kubectl_bin -n smart-update-801 get secret/cluster1-postgres-secret -o 'jsonpath={.data.password}' +++ base64 -d ++++ mktemp +++ local LAST_OUT=/tmp/tmp.s6oXc66lQl ++++ mktemp +++ local LAST_ERR=/tmp/tmp.rTJjaxCIWR +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade +++ kubectl -n smart-update-801 get secret/cluster1-postgres-secret -o 'jsonpath={.data.password}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.s6oXc66lQl +++ cat /tmp/tmp.rTJjaxCIWR +++ rm /tmp/tmp.s6oXc66lQl /tmp/tmp.rTJjaxCIWR +++ return 0 ++ echo postgres_password + run_psql '\c myapp \\\ GRANT SELECT,INSERT ON myApp to "some-name";GRANT USAGE ON SCHEMA public TO "some-name";' postgres:postgres_password@cluster1.smart-update-801 + local 'command=\c myapp \\\ GRANT SELECT,INSERT ON myApp to "some-name";GRANT USAGE ON SCHEMA public TO "some-name";' + local uri=postgres:postgres_password@cluster1.smart-update-801 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n smart-update-801 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.2PGDXlQF1O +++ mktemp ++ local LAST_ERR=/tmp/tmp.sT66mTW8F5 ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade ++ kubectl -n smart-update-801 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.2PGDXlQF1O ++ cat /tmp/tmp.sT66mTW8F5 ++ rm /tmp/tmp.2PGDXlQF1O /tmp/tmp.sT66mTW8F5 ++ return 0 + local client_container=pg-client-76df9df876-xrv6j + kubectl_bin exec pg-client-76df9df876-xrv6j -n smart-update-801 -- bash -c 'printf '\''\c myapp \\\ GRANT SELECT,INSERT ON myApp to "some-name";GRANT USAGE ON SCHEMA public TO "some-name";\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@cluster1.smart-update-801.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.lzkVHiOuxG ++ mktemp + local LAST_ERR=/tmp/tmp.nJMFQ6Tmze + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl exec pg-client-76df9df876-xrv6j -n smart-update-801 -- bash -c 'printf '\''\c myapp \\\ GRANT SELECT,INSERT ON myApp to "some-name";GRANT USAGE ON SCHEMA public TO "some-name";\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@cluster1.smart-update-801.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.lzkVHiOuxG + cat /tmp/tmp.nJMFQ6Tmze + rm /tmp/tmp.lzkVHiOuxG /tmp/tmp.nJMFQ6Tmze + return 0 + sleep 10 + wait_job_completion backrest-backup-cluster1 + local job=backrest-backup-cluster1 + local mandatory=true + local ns=smart-update-801 + retry=0 + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl -n smart-update-801 get job/backrest-backup-cluster1 -o 'jsonpath={.metadata.name}' backrest-backup-cluster1+ retry=0 ++ kubectl_bin -n smart-update-801 get job/backrest-backup-cluster1 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/backrest-backup-cluster1 -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + sleep 30 + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/smart-update/conf/main_cr.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.Srg6DXGfTN ++ mktemp + local LAST_ERR=/tmp/tmp.anTQUq6Rn2 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl apply -f /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/smart-update/conf/main_cr.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.Srg6DXGfTN perconapgcluster.pg.percona.com/cluster1 configured + cat /tmp/tmp.anTQUq6Rn2 + rm /tmp/tmp.Srg6DXGfTN /tmp/tmp.anTQUq6Rn2 + return 0 + sleep 60 + wait_cluster_consistency cluster1 + cluster_name=cluster1 + wait_cluster_status cluster1 'pgcluster Initialized' + local cluster_name=cluster1 + local 'target_status=pgcluster Initialized' + local target_namespace=smart-update-801 + local status_query= + case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in ++ kubectl_bin get perconapgcluster/cluster1 -o 'jsonpath={.metadata.labels.pgo-version}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.8gWWaFRAue +++ mktemp ++ local LAST_ERR=/tmp/tmp.jY2F542fRt ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade ++ kubectl get perconapgcluster/cluster1 -o 'jsonpath={.metadata.labels.pgo-version}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.8gWWaFRAue ++ cat /tmp/tmp.jY2F542fRt ++ rm /tmp/tmp.8gWWaFRAue /tmp/tmp.jY2F542fRt ++ return 0 + status_query='kubectl_bin -n smart-update-801 get perconapgcluster/cluster1 -o jsonpath='\''{.status.PGCluster.state}'\''' + local retry=0 ++ eval kubectl_bin -n smart-update-801 get perconapgcluster/cluster1 -o 'jsonpath='\''{.status.PGCluster.state}'\''' +++ kubectl_bin -n smart-update-801 get perconapgcluster/cluster1 -o 'jsonpath={.status.PGCluster.state}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.FZdRQP07C5 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.XDi2dxWmaE +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade +++ kubectl -n smart-update-801 get perconapgcluster/cluster1 -o 'jsonpath={.status.PGCluster.state}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.FZdRQP07C5 +++ cat /tmp/tmp.XDi2dxWmaE +++ rm /tmp/tmp.FZdRQP07C5 /tmp/tmp.XDi2dxWmaE +++ return 0 + [[ pgcluster Initialized == \p\g\c\l\u\s\t\e\r\ \I\n\i\t\i\a\l\i\z\e\d ]] + sleep 10 ++ get_psql_user_pass pgbouncer cluster1 ++ local user=pgbouncer ++ local cluster=cluster1 ++ local namespace=smart-update-801 +++ kubectl_bin -n smart-update-801 get perconapgcluster/cluster1 -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.uoJxUIqHiG ++++ mktemp +++ local LAST_ERR=/tmp/tmp.ts8YcsdR8s +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade +++ kubectl -n smart-update-801 get perconapgcluster/cluster1 -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.uoJxUIqHiG +++ cat /tmp/tmp.ts8YcsdR8s +++ rm /tmp/tmp.uoJxUIqHiG /tmp/tmp.ts8YcsdR8s +++ return 0 ++ [[ xcluster1 == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/cluster1 -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.9BR9d8sUiM ++++ mktemp +++ local LAST_ERR=/tmp/tmp.F1IB7mnGsn +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade +++ kubectl get perconapgcluster/cluster1 -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.9BR9d8sUiM +++ cat /tmp/tmp.F1IB7mnGsn +++ rm /tmp/tmp.9BR9d8sUiM /tmp/tmp.F1IB7mnGsn +++ return 0 +++ kubectl_bin -n smart-update-801 get perconapgcluster/cluster1 -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.aOjm5BETXm ++++ mktemp +++ local LAST_ERR=/tmp/tmp.0q6GCbwG4r +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade +++ kubectl -n smart-update-801 get perconapgcluster/cluster1 -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.aOjm5BETXm +++ cat /tmp/tmp.0q6GCbwG4r +++ rm /tmp/tmp.aOjm5BETXm /tmp/tmp.0q6GCbwG4r +++ return 0 ++ [[ x == \x ]] ++ : assuming user secret was created by default +++ kubectl_bin -n smart-update-801 get secret/cluster1-users-secret -o 'jsonpath={.data.pgbouncer}' +++ base64 -d ++++ mktemp +++ local LAST_OUT=/tmp/tmp.2AA92QtSl2 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.XMIs3J7n5M +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade +++ kubectl -n smart-update-801 get secret/cluster1-users-secret -o 'jsonpath={.data.pgbouncer}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.2AA92QtSl2 +++ cat /tmp/tmp.XMIs3J7n5M +++ rm /tmp/tmp.2AA92QtSl2 /tmp/tmp.XMIs3J7n5M +++ return 0 ++ echo pgbouncer_password + compare_psql_cmd show-1 'SHOW DATABASES' pgbouncer:pgbouncer_password@cluster1-pgbouncer.smart-update-801 + local command_id=show-1 + local 'command=SHOW DATABASES' + local uri=pgbouncer:pgbouncer_password@cluster1-pgbouncer.smart-update-801 + local postfix= + local uri_suffix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/smart-update/compare/show-1.sql + run_psql 'SHOW DATABASES' pgbouncer:pgbouncer_password@cluster1-pgbouncer.smart-update-801 postgres '' + local 'command=SHOW DATABASES' + local uri=pgbouncer:pgbouncer_password@cluster1-pgbouncer.smart-update-801 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n smart-update-801 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.As0mhLBV6C +++ mktemp ++ local LAST_ERR=/tmp/tmp.g8jmzN7HPH ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade ++ kubectl -n smart-update-801 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.As0mhLBV6C ++ cat /tmp/tmp.g8jmzN7HPH ++ rm /tmp/tmp.As0mhLBV6C /tmp/tmp.g8jmzN7HPH ++ return 0 + local client_container=pg-client-76df9df876-xrv6j + kubectl_bin exec pg-client-76df9df876-xrv6j -n smart-update-801 -- bash -c 'printf '\''SHOW DATABASES\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://pgbouncer:pgbouncer_password@cluster1-pgbouncer.smart-update-801.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.PoC6QtHttg ++ mktemp + local LAST_ERR=/tmp/tmp.59bpvwLKq6 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl exec pg-client-76df9df876-xrv6j -n smart-update-801 -- bash -c 'printf '\''SHOW DATABASES\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://pgbouncer:pgbouncer_password@cluster1-pgbouncer.smart-update-801.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.PoC6QtHttg + cat /tmp/tmp.59bpvwLKq6 + rm /tmp/tmp.PoC6QtHttg /tmp/tmp.59bpvwLKq6 + return 0 + '[' '!' -s /tmp/tmp.oOS3sF5C9m/show-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/smart-update/compare/show-1.sql /tmp/tmp.oOS3sF5C9m/show-1.sql + destroy smart-update-801 + grep -v level=info ++ get_operator_pod ++ kubectl_bin get pods --selector=name=postgres-operator -o 'jsonpath={.items[].metadata.name}' + grep -v 'Getting pods from source' + grep -v 'get backup status: Job.batch' + /usr/bin/sed -r 's/"ts":[0-9.]+//; s^limits-[0-9.]+/^^g' + grep -v 'Getting tasks for pod' + grep -v 'the object has been modified' +++ mktemp + sort -u + grep -v level=debug + tee /tmp/tmp.oOS3sF5C9m/operator.log ++ local LAST_OUT=/tmp/tmp.tHKMWHesWx +++ mktemp ++ local LAST_ERR=/tmp/tmp.Xnf8cavy1h ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade ++ kubectl get pods --selector=name=postgres-operator -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.tHKMWHesWx ++ cat /tmp/tmp.Xnf8cavy1h ++ rm /tmp/tmp.tHKMWHesWx /tmp/tmp.Xnf8cavy1h ++ return 0 + kubectl_bin logs postgres-operator-68868d7ff8-zmrs8 -c operator ++ mktemp + local LAST_OUT=/tmp/tmp.3XRpIuJepb ++ mktemp + local LAST_ERR=/tmp/tmp.BRvIk7XW14 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl logs postgres-operator-68868d7ff8-zmrs8 -c operator + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.3XRpIuJepb + cat /tmp/tmp.BRvIk7XW14 + rm /tmp/tmp.3XRpIuJepb /tmp/tmp.BRvIk7XW14 + return 0 ] { } }, ] } }, { } }, { } ] } } ] } { } }, }, { ] { } }, ] ] ], { } }, }, { }, { },{ }] }], ] { } }, , ,{ ], { } }, }], { } }, }], } ], { } }, } ] ], } } ], }, }, { } }, }, { } }, }, 2024/04/23 14:04:07 INF 1 (localhost:4150) connecting to nsqd 2024/04/23 14:05:13 INF 2 (localhost:4150) connecting to nsqd 2024/04/23 14:05:15 INF 3 (localhost:4150) connecting to nsqd 2024/04/23 14:05:31 INF 4 (localhost:4150) connecting to nsqd 2024/04/23 14:05:51 INF 5 (localhost:4150) connecting to nsqd 2024/04/23 14:05:52 INF 6 (localhost:4150) connecting to nsqd 2024/04/23 14:05:52 INF 7 (localhost:4150) connecting to nsqd "accessModes": [ "affinity": "affinity": { "affinity": { "podAntiAffinity": { "allowPrivilegeEscalation": false, "allowPrivilegeEscalation": false, "annotations": {"keep-backups":"false","keep-data":"false"}, "apiVersion": "apps/v1", "apiVersion": "batch/v1", "apiVersion": "v1", "apiVersion": "v1", "apiVersion": "v1", "backrest-command": "backup", "backrest-command": "stanza-create", "claimName": "cluster1-pgbr-repo" "cluster1" "command": [ "configMap": { "configMap": { "configMapKeyRef": { "containerName": "database", "containerPort": 10000, "containerPort": 2022, "containerPort": 5432, "containerPort": 8009, "containers": [ "containers": [{ "cpu": "1", "cpu": "2", "cpu": "500m", "crunchydata" "crunchy-pgbouncer": "true", "crunchy-pgbouncer": "true", "crunchy-pgbouncer": "true", "defaultMode": 288 "defaultMode": 420, "deployment-name": "cluster1" "deployment-name": "cluster1-repl1" "deployment-name": "cluster1-repl2" "divisor": "1m", "dnsPolicy": "ClusterFirst" "downwardAPI": { "emptyDir": { "emptyDir": { "emptyDir": { "emptyDir": { "env": [ "env": [{ "env": [ { "exec": { "fieldPath": "metadata.annotations" "fieldPath": "metadata.labels" "fieldPath": "metadata.labels['crunchy-pgha-scope']" "fieldPath": "metadata.namespace" "fieldRef": { "fieldRef": { "fsGroup": 2, I0423 14:03:26.118720 1 shared_informer.go:240] Waiting for caches to sync for namespace I0423 14:03:26.219299 1 shared_informer.go:247] Caches are synced for namespace I0423 14:03:26.313199 1 shared_informer.go:240] Waiting for caches to sync for smart-update-801 I0423 14:03:26.414027 1 shared_informer.go:247] Caches are synced for smart-update-801 "image": "percona/percona-postgresql-operator:1.0.0-ppg13-pgbackrest", "image": "percona/percona-postgresql-operator:1.0.0-ppg13-pgbackrest-repo", "image": "percona/percona-postgresql-operator:1.0.0-ppg13-pgbadger", "image": "percona/percona-postgresql-operator:1.0.0-ppg13-pgbouncer", "image": "percona/percona-postgresql-operator:1.0.0-ppg13-postgres-ha", "imagePullPolicy": "IfNotPresent" "imagePullPolicy": "IfNotPresent", "imagePullPolicy": "IfNotPresent", "initialDelaySeconds": 15 "initialDelaySeconds": 20, "initialDelaySeconds": 30, "items": [ "items": [ "key": "config", "key": "config", "key": "crunchy-pgbouncer", "key": "init" "key": "password" "key": "pg-cluster", "key": "pgo-backrest", "key": "pgo-backrest-job", "key": "pgo-pg-database", "key": "pg-pod-anti-affinity", "key": "vendor", "kind": "Deployment", "kind": "Job", "kind": "PersistentVolumeClaim", "kind": "Service", "labels": { "labels": { "labels": { "labelSelector": { "limits": { "limits": { "livenessProbe": { "matchExpressions": [ "matchLabels": { "matchLabels": { "maxSurge": 1 "maxUnavailable": 1, "medium": "Memory", "medium": "Memory" "medium": "Memory", "medium": "Memory", "medium": "Memory", "memory": "128Mi" "memory": "48Mi" "memory": "512Mi" "memory": "64Mi" "metadata": { "metadata": { "metadata": { "mountPath": "/backrestrepo", "mountPath": "/dev/shm", "mountPath": "/etc/pgbackrest" "mountPath": "/etc/pgbackrest/conf.d", "mountPath": "/etc/podinfo", "mountPath": "/etc/ssh", "mountPath": "/etc/ssh", "mountPath": "/home/pgbackrest" "mountPath": "/pgconf", "mountPath": "/pgconf/", "mountPath": "/pgconf/pgreplicator", "mountPath": "/pgconf/pgsuper", "mountPath": "/pgconf/pguser", "mountPath": "/pgdata", "mountPath": "/pgdata", "mountPath": "/report", "mountPath": "/sshd", "mountPath": "/sshd", "mountPath": "/tmp", "mountPath": "/tmp", "mountPath": "/tmp" "mountPath": "/tmp", "name": "backrest", "name": "backrest-backup-cluster1", "name": "backrestrepo", "name": "backrestrepo", "name": "BACKREST_SKIP_CREATE_STANZA", "name": "BADGER_TARGET", "name": "cluster1", "name": "cluster1", "name": "cluster1-backrest-shared-repo", "name": "cluster1-backrest-shared-repo" "name": "cluster1-backrest-shared-repo", "name": "cluster1-backrest-shared-repo", "name": "cluster1-backrest-shared-repo", "name": "cluster1-pgbouncer", "name": "cluster1-pgbouncer", "name": "cluster1-pgbouncer", "name": "cluster1-pgbouncer", "name": "cluster1-pgbouncer-cm" "name": "cluster1-pgbouncer-secret", "name": "cluster1-pgbouncer-secret", "name": "cluster1-pgbr-repo", "name": "cluster1","pg-cluster": "cluster1","deployment-name": "cluster1","pgouser": "admin","crunchy-pgha-scope": "cluster1","pgo-version": "1.0.0" "name": "cluster1","pg-cluster": "cluster1","deployment-name": "cluster1","pgouser": "admin","crunchy-pgha-scope": "cluster1","pgo-version": "1.0.0" "name": "cluster1-pgha-config", "name": "cluster1-pgha-config", "name": "cluster1-repl1", "name": "cluster1-repl1", "name": "cluster1-repl2", "name": "cluster1-repl2", "name": "cluster1-stanza-create", "name": "COMMAND", "name": "COMMAND_OPTS", "name": "database", "name": "dshm" "name": "dshm", "name": "ENABLE_SSHD", "name": "LD_PRELOAD", "name": "LD_PRELOAD", "name": "MODE", "name": "NAMESPACE", "name": "NSS_WRAPPER_GROUP", "name": "NSS_WRAPPER_GROUP", "name": "NSS_WRAPPER_PASSWD", "name": "NSS_WRAPPER_PASSWD", "name": "patroni" "name": "PATRONI_KUBERNETES_LABELS", "name": "PATRONI_KUBERNETES_NAMESPACE", "name": "PATRONI_KUBERNETES_SCOPE_LABEL", "name": "PATRONI_LOG_LEVEL", "name": "PATRONI_POSTGRESQL_DATA_DIR", "name": "PATRONI_SCOPE", "name": "pgbackrest" "name": "pgbackrest-conf", "name": "pgbackrest-conf", "name": "pgbackrest-config" "name": "pgbackrest-config", "name": "PGBACKREST_DB_HOST", "name": "PGBACKREST_DB_PATH", "name": "PGBACKREST_DB_PATH", "name": "pgbackrest-home", "name": "pgbackrest-home", "name": "PGBACKREST_LOG_PATH", "name": "PGBACKREST_LOG_PATH", "name": "PGBACKREST_PG1_PORT", "name": "PGBACKREST_PG1_PORT", "name": "PGBACKREST_PG1_SOCKET_PATH", "name": "PGBACKREST_PG1_SOCKET_PATH", "name": "PGBACKREST_REPO1_HOST", "name": "PGBACKREST_REPO1_PATH", "name": "PGBACKREST_REPO1_PATH", "name": "PGBACKREST_REPO1_TYPE", "name": "PGBACKREST_REPO1_TYPE", "name": "PGBACKREST_STANZA", "name": "PGBACKREST_STANZA", "name": "pgbadger" "name": "pgbadger", "name": "PGBADGER_SERVICE_PORT", "name": "pgbouncer" "name": "pgbouncer", "name": "pgbouncer-conf", "name": "pgbouncer-conf", "name": "pgconf-volume" "name": "pgconf-volume", "name": "pgdata", "name": "pgdata", "name": "pgdata", "name": "PGHA_DATABASE", "name": "PGHA_INIT", "name": "PGHA_PASSWORD_TYPE", "name": "PGHA_PGBACKREST", "name": "PGHA_PGBACKREST_LOCAL_GCS_STORAGE", "name": "PGHA_PGBACKREST_LOCAL_GCS_STORAGE", "name": "PGHA_PGBACKREST_LOCAL_S3_STORAGE", "name": "PGHA_PGBACKREST_LOCAL_S3_STORAGE", "name": "PGHA_PGBACKREST_S3_VERIFY_TLS", "name": "PGHA_PG_PORT", "name": "PGHA_REPLICA_REINIT_ON_START_FAIL", "name": "PGHA_STANDBY", "name": "PGHA_SYNC_REPLICATION", "name": "PGHA_TLS_ENABLED", "name": "PGHA_TLS_ONLY", "name": "PGHA_USER", "name": "PGHOST", "name": "PG_PASSWORD", "name": "PG_PRIMARY_SERVICE_NAME", "name": "PITR_TARGET", "name": "podinfo" "name": "podinfo", "name": "PODNAME", "name": "postgres" "name": "primary-volume" "name": "primary-volume", "name": "report", "name": "report", "name": "root-volume" "name": "root-volume", "name": "ssh-config", "name": "ssh-config", "name": "ssh-config", "name": "ssh-config", "name": "sshd", "name": "sshd", "name": "sshd", "name": "sshd", "name": "tmp" "name": "tmp" "name": "tmp", "name": "tmp", "name": "tmp", "name": "tmp" "name": "user-volume" "name": "user-volume", "nodePort": 0 "operator": "Exists" "operator": "In", "/opt/crunchy/bin/postgres-ha/health/pgha-liveness.sh" "/opt/crunchy/bin/postgres-ha/health/pgha-readiness.sh" "optional": true "path": "annotations" "path": "cpu_limit", "path": "cpu_request", "path": "labels" "path": "mem_limit", "path": "mem_request", "path": "ssh_config" "path": "ssh_config" "periodSeconds": 10 "periodSeconds": 15, "persistentVolumeClaim": { "persistentVolumeClaim":{"claimName":"cluster1"} "persistentVolumeClaim":{"claimName":"cluster1-repl1"} "persistentVolumeClaim":{"claimName":"cluster1-repl2"} "pg-cluster": "cluster1" "pg-cluster": "cluster1", "pg-cluster": "cluster1" "pg-cluster": "cluster1", "pg-cluster": "cluster1" "pg-cluster": "cluster1", "pgo-backrest-job": "true", "pgo-backrest-repo": "true" "pgo-backrest-repo": "true", "pgo-backrest-repo": "true" "pgo-backrest": "true", "pgo-pg-database": "true", "pgo-pg-database": "true", "pgo-version": "1.0.0","name": "cluster1-replica","pg-cluster": "cluster1","deployment-name": "cluster1-repl1" "pgo-version": "1.0.0","name": "cluster1-replica","pg-cluster": "cluster1","deployment-name": "cluster1-repl1" "pgo-version": "1.0.0","name": "cluster1-replica","pg-cluster": "cluster1","deployment-name": "cluster1-repl2" "pgo-version": "1.0.0","name": "cluster1-replica","pg-cluster": "cluster1","deployment-name": "cluster1-repl2" "pg-pod-anti-affinity": "preferred", "pg-pod-anti-affinity": "preferred", "podAffinityTerm": { "podAntiAffinity": { "podAntiAffinity": { "podAntiAffinity": { "port": 10000 "port": 2022, "ports": [{ "ports": [{ "ports": [ { "preferredDuringSchedulingIgnoredDuringExecution": [ "privileged": false, "privileged": false, "projected": { "projected": { "projected": { "sources": [] } "protocol": "TCP", "protocol": "TCP", "protocol": "TCP", "readinessProbe": { "readinessProbe": { "readOnly": false "readOnly": false "readOnly": false "readOnly": false "readOnlyRootFilesystem": true "readOnlyRootFilesystem": true "readOnly": true "readOnly": true "readOnly": true "readOnly": true "ReadWriteOnce" "replicas": 0, "replicas": 1, "requests": { "requests": { "resourceFieldRef": { "resource": "limits.cpu" "resource": "limits.memory" "resource": "requests.cpu" "resource": "requests.memory" "resources": { "resources": { "resources": { "restartPolicy": "Always", "restartPolicy": "Never" "rollingUpdate": { "runAsNonRoot": true "secret": { "secret": { "secret": { "secret": { "secretKeyRef": { "secretName": "cluster1-backrest-repo-config" "secretName": "cluster1-backrest-repo-config", "secretName": "cluster1-backrest-repo-config" "secretName": "cluster1-backrest-repo-config", "secretName": "cluster1-postgres-secret" "secretName": "cluster1-primaryuser-secret" "secretName": "cluster1-some-name-secret" "securityContext": { "securityContext": { "securityContext": {}, "securityContext": { "securityContext": {"fsGroup": 26,"supplementalGroups": [1001]}, "securityContext": {"runAsNonRoot":true,"fsGroup":26}, "selector": { "selector": { "serviceAccountName": "pgo-backrest", "serviceAccountName": "pgo-default", "serviceAccountName": "pgo-pg", "service-name": "cluster1-backrest-shared-repo", "service-name": "cluster1-backrest-shared-repo", "service-name": "cluster1-pgbouncer", "service-name": "cluster1-pgbouncer", "service-name": "cluster1-pgbouncer", "sessionAffinity": "None" "sizeLimit": "128Ki" "sizeLimit": "16Mi" "sizeLimit": "1Mi" "sizeLimit": "64Mi" "sizeLimit": "64Mi" "sources": [ "sources": [ "spec": { "spec": { "spec": { "storage": "1G" "strategy": { "targetPort": 2022, "tcpSocket": { "template": { time="2024-04-23T14:03:25Z" level=warning msg="PGAdminStorage setting not set, will use PrimaryStorage setting" func="github.com/percona/percona-postgresql-operator/internal/config.(*PgoConfig).Validate()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/config/pgoconfig.go:337" version=1.6.0 time="2024-04-23T14:04:11Z" level=error msg="get deployment cluster1-repl1: deployments.apps \"cluster1-repl1\" not found" func="github.com/percona/percona-postgresql-operator/percona/controllers/pgreplica.CreateReplicaResource()" file="/go/src/github.com/percona/percona-postgresql-operator/percona/controllers/pgreplica/pgreplica.go:40" version=1.6.0 time="2024-04-23T14:04:16Z" level=error msg="get deployment cluster1-repl2: deployments.apps \"cluster1-repl2\" not found" func="github.com/percona/percona-postgresql-operator/percona/controllers/pgreplica.CreateReplicaResource()" file="/go/src/github.com/percona/percona-postgresql-operator/percona/controllers/pgreplica/pgreplica.go:40" version=1.6.0 time="2024-04-23T14:05:13Z" level=error msg="Error completing workflow cluster1-createcluster" func="github.com/percona/percona-postgresql-operator/internal/operator/task.completeWorkflow()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/task/workflow.go:48" version=1.6.0 time="2024-04-23T14:05:13Z" level=error msg="pgtasks.pg.percona.com \"cluster1-createcluster\" not found" func="github.com/percona/percona-postgresql-operator/internal/operator/task.completeWorkflow()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/task/workflow.go:49" version=1.6.0 time="2024-04-23T14:05:52Z" level=warning msg="crv1 pgreplica cluster1-repl1 is already marked complete, will not recreate" func="github.com/percona/percona-postgresql-operator/internal/operator/cluster.ScaleBase()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/cluster/cluster.go:535" version=1.6.0 time="2024-04-23T14:05:52Z" level=warning msg="crv1 pgreplica cluster1-repl2 is already marked complete, will not recreate" func="github.com/percona/percona-postgresql-operator/internal/operator/cluster.ScaleBase()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/cluster/cluster.go:535" version=1.6.0 time="2024-04-23T14:07:19Z" level=error msg="update perconapgcluster: handle internal secrets: get secret cluster1-users: secrets \"cluster1-users\" not found" func="github.com/percona/percona-postgresql-operator/percona/controllers/pgc.(*Controller).onUpdate()" file="/go/src/github.com/percona/percona-postgresql-operator/percona/controllers/pgc/pgc.go:481" version=1.6.0 "timeoutSeconds": 10 "topologyKey": "kubernetes.io/hostname" "type": "ClusterIP", "type": "RollingUpdate", "value": "" "value": "10000" "value": "5432" "value": "5432" "value": "/backrestrepo/cluster1-backrest-shared-repo" "value": "/backrestrepo/cluster1-backrest-shared-repo" "value": "backup" "value": "cluster1" "value": "cluster1" "value": "cluster1-backrest-shared-repo" "value": "cluster1-backrest-shared-repo-d7c658b7-58mbj" "value": "cluster1-repl1" "value": "cluster1-repl2" "value": "crunchy-pgha-scope" "value": "db" "value": "db" "value": " --db-host=10.251.74.13 --db-path=/pgdata/cluster1" "value": "false" "value": "false" "valueFrom": { "value": "INFO" "value": "pgbackrest" "value": "pgbackrest-repo" "value": "/pgdata/cluster1" "value": "/pgdata/cluster1" "value": "/pgdata/cluster1-repl1" "value": "/pgdata/cluster1-repl1" "value": "/pgdata/cluster1-repl2" "value": "/pgdata/cluster1-repl2" "value": "posix" "value": "posix" "value": "postgres" "values": [ "value": "stanza-create" "value": "/tmp" "value": "/tmp" "value": "/tmp/nss_wrapper/pgbackrest-repo/group" "value": "/tmp/nss_wrapper/pgbackrest-repo/passwd" "value": "/tmp/nss_wrapper/postgres/group" "value": "/tmp/nss_wrapper/postgres/passwd" "value": "true" "value": "true" "value": "--type=full --db-host=10.251.74.13 --db-path=/pgdata/cluster1" "value": "/usr/lib64/libnss_wrapper.so" "value": "/usr/lib64/libnss_wrapper.so" "value": "{vendor: \"crunchydata\"}" "vendor": "crunchydata" "vendor": "crunchydata", "vendor": "crunchydata" "vendor": "crunchydata", "vendor": "crunchydata" "vendor": "crunchydata", "volumeMounts": [ "volumeMounts": [{ "volumeMounts": [ "volumes": [ "volumes": [{ "weight": 1, + destroy_operator + kubectl_bin delete -f /tmp/tmp.oOS3sF5C9m/operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.RC2xaMLLl1 ++ mktemp + local LAST_ERR=/tmp/tmp.oVIQGOylg6 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete -f /tmp/tmp.oOS3sF5C9m/operator.yaml + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete -f /tmp/tmp.oOS3sF5C9m/operator.yaml + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete -f /tmp/tmp.oOS3sF5C9m/operator.yaml + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.RC2xaMLLl1 + cat /tmp/tmp.oVIQGOylg6 Error from server (NotFound): error when deleting "/tmp/tmp.oOS3sF5C9m/operator.yaml": serviceaccounts "pgo-deployer-sa" not found Error from server (NotFound): error when deleting "/tmp/tmp.oOS3sF5C9m/operator.yaml": clusterroles.rbac.authorization.k8s.io "pgo-deployer-cr" not found Error from server (NotFound): error when deleting "/tmp/tmp.oOS3sF5C9m/operator.yaml": configmaps "pgo-deployer-cm" not found Error from server (NotFound): error when deleting "/tmp/tmp.oOS3sF5C9m/operator.yaml": clusterrolebindings.rbac.authorization.k8s.io "pgo-deployer-crb" not found Error from server (NotFound): error when deleting "/tmp/tmp.oOS3sF5C9m/operator.yaml": jobs.batch "pgo-deploy" not found + rm /tmp/tmp.RC2xaMLLl1 /tmp/tmp.oVIQGOylg6 + return 1 + true + yq w -d4 /tmp/tmp.oOS3sF5C9m/operator.yaml 'spec.template.spec.containers[0].env[0].value' uninstall + kubectl_bin apply -f /tmp/tmp.oOS3sF5C9m/operator-destroy.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.tiZD8pqXu4 ++ mktemp + local LAST_ERR=/tmp/tmp.TxDzeAqMFC + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl apply -f /tmp/tmp.oOS3sF5C9m/operator-destroy.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.tiZD8pqXu4 serviceaccount/pgo-deployer-sa created clusterrole.rbac.authorization.k8s.io/pgo-deployer-cr created configmap/pgo-deployer-cm created clusterrolebinding.rbac.authorization.k8s.io/pgo-deployer-crb created job.batch/pgo-deploy created + cat /tmp/tmp.TxDzeAqMFC + rm /tmp/tmp.tiZD8pqXu4 /tmp/tmp.TxDzeAqMFC + return 0 + wait_job_completion pgo-deploy true + local job=pgo-deploy + local mandatory=true + local ns=smart-update-801 + retry=0 + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' pgo-deploy+ retry=0 ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 3 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 4 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 5 -ge 600 ']' ++ grep -io 'not found' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 6 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 7 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 8 -ge 600 ']' ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n smart-update-801 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + kubectl_bin delete -f /tmp/tmp.oOS3sF5C9m/operator-destroy.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.ndsDjK4egM ++ mktemp + local LAST_ERR=/tmp/tmp.zHXd9mjVTn + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete -f /tmp/tmp.oOS3sF5C9m/operator-destroy.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.ndsDjK4egM serviceaccount "pgo-deployer-sa" deleted clusterrole.rbac.authorization.k8s.io "pgo-deployer-cr" deleted configmap "pgo-deployer-cm" deleted clusterrolebinding.rbac.authorization.k8s.io "pgo-deployer-crb" deleted job.batch "pgo-deploy" deleted + cat /tmp/tmp.zHXd9mjVTn + rm /tmp/tmp.ndsDjK4egM /tmp/tmp.zHXd9mjVTn + return 0 + kubectl_bin get ns + awk '{print$1}' ++ mktemp + egrep -v '^kube-|^default|Terminating|openshift|^NAME' + xargs kubectl delete ns --grace-period=0 --force=true + local LAST_OUT=/tmp/tmp.NCXLcq5rWI ++ mktemp + local LAST_ERR=/tmp/tmp.9ekdJS8RUy + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl get ns + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.NCXLcq5rWI + cat /tmp/tmp.9ekdJS8RUy + rm /tmp/tmp.NCXLcq5rWI /tmp/tmp.9ekdJS8RUy + return 0 Warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. namespace "smart-update-801" force deleted + kubectl_bin delete clusterrolebindings pgo-cluster-role pgo-deployer-cr ++ mktemp + local LAST_OUT=/tmp/tmp.RDkilMckzo ++ mktemp + local LAST_ERR=/tmp/tmp.LpPgiF8TZF + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete clusterrolebindings pgo-cluster-role pgo-deployer-cr + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete clusterrolebindings pgo-cluster-role pgo-deployer-cr + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete clusterrolebindings pgo-cluster-role pgo-deployer-cr + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.RDkilMckzo + cat /tmp/tmp.LpPgiF8TZF Error from server (NotFound): clusterrolebindings.rbac.authorization.k8s.io "pgo-cluster-role" not found Error from server (NotFound): clusterrolebindings.rbac.authorization.k8s.io "pgo-deployer-cr" not found + rm /tmp/tmp.RDkilMckzo /tmp/tmp.LpPgiF8TZF + return 1 + true + kubectl_bin delete clusterroles pgo-cluster-role pgo-deployer-cr ++ mktemp + local LAST_OUT=/tmp/tmp.UmmOccYbsx ++ mktemp + local LAST_ERR=/tmp/tmp.J1mHQGWXLN + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete clusterroles pgo-cluster-role pgo-deployer-cr + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete clusterroles pgo-cluster-role pgo-deployer-cr + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-upgrade + kubectl delete clusterroles pgo-cluster-role pgo-deployer-cr + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.UmmOccYbsx + cat /tmp/tmp.J1mHQGWXLN Error from server (NotFound): clusterroles.rbac.authorization.k8s.io "pgo-cluster-role" not found Error from server (NotFound): clusterroles.rbac.authorization.k8s.io "pgo-deployer-cr" not found + rm /tmp/tmp.UmmOccYbsx /tmp/tmp.J1mHQGWXLN + return 1 + true + rm -rf /tmp/tmp.oOS3sF5C9m