++ echo 'Log: /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/logs/self-healing.log' Log: /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/logs/self-healing.log ++ '[' -f /mnt/jenkins/workspace/cloud-pg-operator_PR-776/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 +++ jq -r .serverVersion.gitVersion +++ grep '\-eks\-' WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1 ++ '[' ']' +++ kubectl version -o json +++ jq -r '.serverVersion.major + "." + .serverVersion.minor' +++ /usr/bin/sed -r 's/[^0-9.]+//g' 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.15.1 ++ '[' v3 == v2 ']' + main + create_namespace self-healing-12550 + local namespace=self-healing-12550 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + kubectl_bin get ns + egrep -v '^kube-|^default|Terminating|openshift|^NAME' + cleanup_rbac + kubectl_bin delete clusterrolebindings pgo-cluster-role pgo-deployer-cr chaos-mesh-chaos-controller-manager-cluster-level + xargs kubectl delete ns ++ mktemp + awk '{print$1}' ++ mktemp + local LAST_OUT=/tmp/tmp.vEQeKagu6n + local LAST_OUT=/tmp/tmp.pSVwzTB6Yu ++ mktemp ++ mktemp + local LAST_ERR=/tmp/tmp.fCuuBOdsi1 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + local LAST_ERR=/tmp/tmp.3bIDV9U5Ga + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl get ns + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + 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.vEQeKagu6n + cat /tmp/tmp.fCuuBOdsi1 + rm /tmp/tmp.vEQeKagu6n /tmp/tmp.fCuuBOdsi1 + 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-776-0087ef129-2-sandbox + 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-776-0087ef129-2-sandbox + 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.pSVwzTB6Yu + cat /tmp/tmp.3bIDV9U5Ga 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.pSVwzTB6Yu /tmp/tmp.3bIDV9U5Ga + 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.wKx2CJopDu ++ mktemp + local LAST_ERR=/tmp/tmp.WPC8P9Rsij + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + 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-776-0087ef129-2-sandbox + 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-776-0087ef129-2-sandbox + 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.wKx2CJopDu + cat /tmp/tmp.WPC8P9Rsij 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.wKx2CJopDu /tmp/tmp.WPC8P9Rsij + 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 self-healing-12550 ++ mktemp + local LAST_OUT=/tmp/tmp.klfHwZu1Ug ++ mktemp + local LAST_ERR=/tmp/tmp.UvGW1Khkew + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl delete namespace self-healing-12550 + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl delete namespace self-healing-12550 + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl delete namespace self-healing-12550 + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.klfHwZu1Ug + cat /tmp/tmp.UvGW1Khkew Error from server (NotFound): namespaces "self-healing-12550" not found + rm /tmp/tmp.klfHwZu1Ug /tmp/tmp.UvGW1Khkew + return 1 + : + wait_for_delete namespace/self-healing-12550 + local res=namespace/self-healing-12550 + set +o xtrace namespace/self-healing-12550 - Error from server (NotFound): namespaces "self-healing-12550" not found + kubectl_bin create namespace self-healing-12550 ++ mktemp + local LAST_OUT=/tmp/tmp.31Z0t7h77L ++ mktemp + local LAST_ERR=/tmp/tmp.Aj45YjcXbJ + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl create namespace self-healing-12550 + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.31Z0t7h77L namespace/self-healing-12550 created + cat /tmp/tmp.Aj45YjcXbJ + rm /tmp/tmp.31Z0t7h77L /tmp/tmp.Aj45YjcXbJ + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.dfrysJIN21 +++ mktemp ++ local LAST_ERR=/tmp/tmp.uTur1pLdYL ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++ kubectl config current-context ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.dfrysJIN21 ++ cat /tmp/tmp.uTur1pLdYL ++ rm /tmp/tmp.dfrysJIN21 /tmp/tmp.uTur1pLdYL ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-c_jen-pg-776-0087ef129-2-sandbox --namespace=self-healing-12550 ++ mktemp + local LAST_OUT=/tmp/tmp.GxegxqnssK ++ mktemp + local LAST_ERR=/tmp/tmp.8GmJJaH5jZ + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl config set-context gke_cloud-dev-112233_us-central1-c_jen-pg-776-0087ef129-2-sandbox --namespace=self-healing-12550 + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.GxegxqnssK Context "gke_cloud-dev-112233_us-central1-c_jen-pg-776-0087ef129-2-sandbox" modified. + cat /tmp/tmp.8GmJJaH5jZ + rm /tmp/tmp.GxegxqnssK /tmp/tmp.8GmJJaH5jZ + return 0 + deploy_operator + local pull_secret_name= + local operator_manifest=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/operator.yaml + local namespace_mode=disabled + local action=install + local namespace=self-healing-12550 + 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-776/deploy/operator.yaml disabled install self-healing-12550 false + local pull_secret_name= + local operator_manifest=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/operator.yaml + local namespace_mode=disabled + local operator_action=install + local namespace=self-healing-12550 + local dont_send_telemetry=false + yq r -d2 /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/operator.yaml 'data[values.yaml]' + /usr/bin/sed -e 's#pgo_operator_namespace: .*#pgo_operator_namespace: "self-healing-12550"#g' + /usr/bin/sed -e 's#namespace_mode: .*#namespace_mode: "disabled"#g' + /usr/bin/sed -e 's#^namespace: .*#namespace: "self-healing-12550"#g' + /usr/bin/sed -e 's#^disable_telemetry: .*#disable_telemetry: "false"#g' + cat /dev/fd/63 - ++ echo perconalab/percona-postgresql-operator:PR-776-0087ef129 ++ echo 'crunchy_debug: "true"' ++ cut -d: -f2 ++ cut -d: -f1 ++ echo perconalab/percona-postgresql-operator:PR-776-0087ef129 + /usr/bin/sed -e 's#pgo_image_tag: .*#pgo_image_tag: "PR-776-0087ef129"#g' + /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-776/deploy/operator.yaml metadata.namespace self-healing-12550 + yq w -d3 - 'subjects[0].namespace' self-healing-12550 + yq w -d4 - 'spec.template.spec.containers[0].env[0].value' install + yq w -d4 - 'spec.template.spec.containers[0].image' perconalab/percona-postgresql-operator:PR-776-0087ef129-pgo-deployer ++ cat /tmp/tmp.MHCciBTf3t/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: "self-healing-12550" 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-776-0087ef129" pgo_operator_namespace: "self-healing-12550"' + [[ -n '' ]] + kubectl_bin apply -f /tmp/tmp.MHCciBTf3t/operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.WujG39ReZv ++ mktemp + local LAST_ERR=/tmp/tmp.WJS4UqMi77 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl apply -f /tmp/tmp.MHCciBTf3t/operator.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.WujG39ReZv 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.WJS4UqMi77 + rm /tmp/tmp.WujG39ReZv /tmp/tmp.WJS4UqMi77 + return 0 + wait_job_completion pgo-deploy true + local job=pgo-deploy + local mandatory=true + local ns=self-healing-12550 + retry=0 + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' pgo-deploy+ retry=0 ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 3 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 4 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 5 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 6 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 7 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 8 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 9 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 10 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 11 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 12 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 13 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 14 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 15 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 16 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 17 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 18 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 19 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 20 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 21 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 22 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 23 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 24 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 25 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 26 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 27 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 28 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 29 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 30 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 31 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 32 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 33 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 34 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 35 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + kubectl_bin delete -f /tmp/tmp.MHCciBTf3t/operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.g3sbYsPq9Q ++ mktemp + local LAST_ERR=/tmp/tmp.36bcWStsfY + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl delete -f /tmp/tmp.MHCciBTf3t/operator.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.g3sbYsPq9Q 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.36bcWStsfY + rm /tmp/tmp.g3sbYsPq9Q /tmp/tmp.36bcWStsfY + return 0 ++ get_operator_pod ++ kubectl_bin get pods --selector=name=postgres-operator -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.amTtBzsh4I +++ mktemp ++ local LAST_ERR=/tmp/tmp.FmOb5z9mDX ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++ kubectl get pods --selector=name=postgres-operator -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.amTtBzsh4I ++ cat /tmp/tmp.FmOb5z9mDX ++ rm /tmp/tmp.amTtBzsh4I /tmp/tmp.FmOb5z9mDX ++ return 0 + wait_pod postgres-operator-b56d4cc6-bv28j + local pod=postgres-operator-b56d4cc6-bv28j + local ns= + set +o xtrace postgres-operator-b56d4cc6-bv28jtrue + [[ -n '' ]] + deploy_chaos_mesh self-healing-12550 + local chaos_mesh_ns=self-healing-12550 + desc 'install chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- install chaos-mesh ----------------------------------------------------------------------------------- ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' + local old_cm_namespace=NAMESPACE + '[' NAMESPACE '!=' NAMESPACE ']' + helm repo remove chaos-mesh Error: no repo named "chaos-mesh" found + : + helm repo add chaos-mesh https://charts.chaos-mesh.org "chaos-mesh" has been added to your repositories + case ${PLATFORM} in + version_gt 1.19 ++ echo '1.26 >= 1.19' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + helm install chaos-mesh chaos-mesh/chaos-mesh --namespace=self-healing-12550 --set chaosDaemon.runtime=containerd --set chaosDaemon.socketPath=/run/containerd/containerd.sock --set dashboard.create=false --version v2.0.4 --set clusterScoped=false --set controllerManager.targetNamespace=self-healing-12550 NAME: chaos-mesh LAST DEPLOYED: Fri May 24 20:44:42 2024 NAMESPACE: self-healing-12550 STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: 1. Make sure chaos-mesh components are running kubectl get pods --namespace self-healing-12550 -l app.kubernetes.io/instance=chaos-mesh + sleep 10 + desc 'start cluster' + set +o xtrace ----------------------------------------------------------------------------------- start cluster ----------------------------------------------------------------------------------- + cluster=some-name + spinup_pgcluster some-name /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/cr.yaml + local cluster=some-name + local config=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/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-776/e2e-tests/conf/client.yml + local namespace=self-healing-12550 + local root_via_pgbouncer= + desc 'create fresh PG cluster' + set +o xtrace ----------------------------------------------------------------------------------- create fresh PG cluster ----------------------------------------------------------------------------------- + create_user_secrets some-name self-healing-12550 + local cluster=some-name + local namespace=self-healing-12550 + yq r -d0 /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/users-secret.yaml + yq w - metadata.name some-name-users-secret + yq w - stringData.some-name some-name_pass + kubectl_bin -n self-healing-12550 apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.ct8WSOdsF6 ++ mktemp + local LAST_ERR=/tmp/tmp.OQQGNAJtTM + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl -n self-healing-12550 apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.ct8WSOdsF6 secret/some-name-users-secret created + cat /tmp/tmp.OQQGNAJtTM + rm /tmp/tmp.ct8WSOdsF6 /tmp/tmp.OQQGNAJtTM + return 0 + yq r -d1 /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/users-secret.yaml + yq w - metadata.name some-name-pmm-secret + kubectl_bin -n self-healing-12550 apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.twDcNzuf6z ++ mktemp + local LAST_ERR=/tmp/tmp.pwhS8oJFQ0 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl -n self-healing-12550 apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.twDcNzuf6z secret/some-name-pmm-secret created + cat /tmp/tmp.pwhS8oJFQ0 + rm /tmp/tmp.twDcNzuf6z /tmp/tmp.pwhS8oJFQ0 + return 0 + kubectl_bin -n self-healing-12550 apply -f /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/client.yml ++ mktemp + local LAST_OUT=/tmp/tmp.aY5a7p4ePD ++ mktemp + local LAST_ERR=/tmp/tmp.9mA2fs56lO + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl -n self-healing-12550 apply -f /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/client.yml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.aY5a7p4ePD deployment.apps/pg-client created + cat /tmp/tmp.9mA2fs56lO + rm /tmp/tmp.aY5a7p4ePD /tmp/tmp.9mA2fs56lO + return 0 + apply_cluster /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/cr.yaml some-name false false false false false false false false + local path=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/cr.yaml + local name=some-name + 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-776/deploy/cr.yaml metadata.annotations.current-primary some-name + yq w - metadata.labels.deployment-name some-name + yq w - metadata.labels.crunchy-pgha-scope some-name + yq w - spec.keepData false + yq w - metadata.labels.name some-name + yq w - spec.user some-name + yq w - metadata.labels.pg-cluster some-name + yq w - spec.name some-name + yq w - spec.database some-name + yq w - spec.clustername some-name + yq w - spec.pgPrimary.image perconalab/percona-postgresql-operator:main-ppg14-postgres-ha + yq w - spec.keepBackups false + yq w - spec.backup.image perconalab/percona-postgresql-operator:main-ppg14-pgbackrest + yq w - metadata.name some-name + yq w - spec.secretsName some-name-users-secret + yq w - spec.backup.backrestRepoImage perconalab/percona-postgresql-operator:main-ppg14-pgbackrest-repo + yq w - spec.pgBouncer.image perconalab/percona-postgresql-operator:main-ppg14-pgbouncer + yq w - spec.pgBadger.image perconalab/percona-postgresql-operator:main-ppg14-pgbadger + yq w - spec.pmm.image perconalab/pmm-client:2.41.2 + 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.MHCciBTf3t/cr.yaml -n self-healing-12550 ++ mktemp + local LAST_OUT=/tmp/tmp.nPLxbCdwyw ++ mktemp + local LAST_ERR=/tmp/tmp.16lyVOY7sK + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl apply -f /tmp/tmp.MHCciBTf3t/cr.yaml -n self-healing-12550 + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.nPLxbCdwyw perconapgcluster.pg.percona.com/some-name created + cat /tmp/tmp.16lyVOY7sK + rm /tmp/tmp.nPLxbCdwyw /tmp/tmp.16lyVOY7sK + return 0 + wait_deployment some-name-backrest-shared-repo + local name=some-name-backrest-shared-repo + local target_namespace=self-healing-12550 + sleep 10 + set +o xtrace some-name-backrest-shared-repo... + wait_deployment some-name + local name=some-name + local target_namespace=self-healing-12550 + sleep 10 + set +o xtrace some-name.......... + [[ false == \g\c\s\+* ]] + wait_job_completion some-name-stanza-create false + local job=some-name-stanza-create + local mandatory=false + local ns=self-healing-12550 + retry=0 + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl -n self-healing-12550 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' some-name-stanza-create+ retry=0 ++ kubectl_bin -n self-healing-12550 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 3 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/some-name-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-some-name + local job=backrest-backup-some-name + local mandatory=true + local ns=self-healing-12550 + retry=0 + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl -n self-healing-12550 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' backrest-backup-some-name+ retry=0 ++ kubectl_bin -n self-healing-12550 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + wait_cluster_consistency some-name + cluster_name=some-name + wait_cluster_status some-name 'pgcluster Initialized' + local cluster_name=some-name + local 'target_status=pgcluster Initialized' + local target_namespace=self-healing-12550 + local status_query= + case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in ++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.BETOOL2Dh3 +++ mktemp ++ local LAST_ERR=/tmp/tmp.1Zoj6dDxua ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.BETOOL2Dh3 ++ cat /tmp/tmp.1Zoj6dDxua ++ rm /tmp/tmp.BETOOL2Dh3 /tmp/tmp.1Zoj6dDxua ++ return 0 + status_query='kubectl_bin -n self-healing-12550 get perconapgcluster/some-name -o jsonpath='\''{.status.PGCluster.state}'\''' + local retry=0 ++ eval kubectl_bin -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath='\''{.status.PGCluster.state}'\''' +++ kubectl_bin -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.status.PGCluster.state}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.hbQI3CkNQZ ++++ mktemp +++ local LAST_ERR=/tmp/tmp.VEg30N7SgC +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.status.PGCluster.state}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.hbQI3CkNQZ +++ cat /tmp/tmp.VEg30N7SgC +++ rm /tmp/tmp.hbQI3CkNQZ /tmp/tmp.VEg30N7SgC +++ 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 some-name ++ local user=postgres ++ local cluster=some-name ++ local namespace=self-healing-12550 +++ kubectl_bin -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.kNibntS9Lm ++++ mktemp +++ local LAST_ERR=/tmp/tmp.AUaVyDsXL9 +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.kNibntS9Lm +++ cat /tmp/tmp.AUaVyDsXL9 +++ rm /tmp/tmp.kNibntS9Lm /tmp/tmp.AUaVyDsXL9 +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.uA8RbKtSpQ ++++ mktemp +++ local LAST_ERR=/tmp/tmp.fLP0D658xh +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.uA8RbKtSpQ +++ cat /tmp/tmp.fLP0D658xh +++ rm /tmp/tmp.uA8RbKtSpQ /tmp/tmp.fLP0D658xh +++ return 0 +++ kubectl_bin -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.kvyEjTX44o ++++ mktemp +++ local LAST_ERR=/tmp/tmp.KQftFkFg8T +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.kvyEjTX44o +++ cat /tmp/tmp.KQftFkFg8T +++ rm /tmp/tmp.kvyEjTX44o /tmp/tmp.KQftFkFg8T +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.TrVOYYa73O +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.Mo2qKxHmj5 ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++++ kubectl -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.TrVOYYa73O ++++ cat /tmp/tmp.Mo2qKxHmj5 ++++ rm /tmp/tmp.TrVOYYa73O /tmp/tmp.Mo2qKxHmj5 ++++ return 0 +++ kubectl_bin -n self-healing-12550 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.4486O5T9RK ++++ mktemp +++ local LAST_ERR=/tmp/tmp.9XNVNUJEHh +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl -n self-healing-12550 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.4486O5T9RK +++ cat /tmp/tmp.9XNVNUJEHh +++ rm /tmp/tmp.4486O5T9RK /tmp/tmp.9XNVNUJEHh +++ 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@some-name.self-healing-12550 + local 'command=CREATE DATABASE myapp; \c myapp \\\ CREATE TABLE IF NOT EXISTS myApp (id int PRIMARY KEY);' + local uri=postgres:postgres_password@some-name.self-healing-12550 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.op0UNbLVmF +++ mktemp ++ local LAST_ERR=/tmp/tmp.MS2AhIOsiW ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++ kubectl -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.op0UNbLVmF ++ cat /tmp/tmp.MS2AhIOsiW ++ rm /tmp/tmp.op0UNbLVmF /tmp/tmp.MS2AhIOsiW ++ return 0 + local client_container=pg-client-76df9df876-smpmr + kubectl_bin exec pg-client-76df9df876-smpmr -n self-healing-12550 -- 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@some-name.self-healing-12550.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.cTuNPCfdaI ++ mktemp + local LAST_ERR=/tmp/tmp.PSibe0Yjff + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl exec pg-client-76df9df876-smpmr -n self-healing-12550 -- 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@some-name.self-healing-12550.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.cTuNPCfdaI + cat /tmp/tmp.PSibe0Yjff + rm /tmp/tmp.cTuNPCfdaI /tmp/tmp.PSibe0Yjff + return 0 ++ get_psql_user_pass postgres some-name ++ local user=postgres ++ local cluster=some-name ++ local namespace=self-healing-12550 +++ kubectl_bin -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.nygRIC2LBh ++++ mktemp +++ local LAST_ERR=/tmp/tmp.XmfU5FpvIx +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.nygRIC2LBh +++ cat /tmp/tmp.XmfU5FpvIx +++ rm /tmp/tmp.nygRIC2LBh /tmp/tmp.XmfU5FpvIx +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.55n0lBnt9E ++++ mktemp +++ local LAST_ERR=/tmp/tmp.y1qQaEKW6o +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.55n0lBnt9E +++ cat /tmp/tmp.y1qQaEKW6o +++ rm /tmp/tmp.55n0lBnt9E /tmp/tmp.y1qQaEKW6o +++ return 0 +++ kubectl_bin -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.PmzZaPTmGc ++++ mktemp +++ local LAST_ERR=/tmp/tmp.ZpSePfc45a +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.PmzZaPTmGc +++ cat /tmp/tmp.ZpSePfc45a +++ rm /tmp/tmp.PmzZaPTmGc /tmp/tmp.ZpSePfc45a +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.sWpc6eVw8s +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.yZvLFrwR2m ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++++ kubectl -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.sWpc6eVw8s ++++ cat /tmp/tmp.yZvLFrwR2m ++++ rm /tmp/tmp.sWpc6eVw8s /tmp/tmp.yZvLFrwR2m ++++ return 0 +++ kubectl_bin -n self-healing-12550 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.W2kOnRV9d6 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.m7FPwQGBtl +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl -n self-healing-12550 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.W2kOnRV9d6 +++ cat /tmp/tmp.m7FPwQGBtl +++ rm /tmp/tmp.W2kOnRV9d6 /tmp/tmp.m7FPwQGBtl +++ return 0 ++ echo postgres_password + run_psql '\c myapp \\\ INSERT INTO myApp (id) VALUES (100500)' postgres:postgres_password@some-name.self-healing-12550 + local 'command=\c myapp \\\ INSERT INTO myApp (id) VALUES (100500)' + local uri=postgres:postgres_password@some-name.self-healing-12550 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.xJ0b9Jx1R2 +++ mktemp ++ local LAST_ERR=/tmp/tmp.YpXo4cN5uB ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++ kubectl -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.xJ0b9Jx1R2 ++ cat /tmp/tmp.YpXo4cN5uB ++ rm /tmp/tmp.xJ0b9Jx1R2 /tmp/tmp.YpXo4cN5uB ++ return 0 + local client_container=pg-client-76df9df876-smpmr + kubectl_bin exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ INSERT INTO myApp (id) VALUES (100500)\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@some-name.self-healing-12550.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.Jg6hSfxe9c ++ mktemp + local LAST_ERR=/tmp/tmp.vZCBBTqoWk + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ INSERT INTO myApp (id) VALUES (100500)\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@some-name.self-healing-12550.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.Jg6hSfxe9c + cat /tmp/tmp.vZCBBTqoWk + rm /tmp/tmp.Jg6hSfxe9c /tmp/tmp.vZCBBTqoWk + return 0 ++ get_psql_user_pass postgres some-name ++ local user=postgres ++ local cluster=some-name ++ local namespace=self-healing-12550 +++ kubectl_bin -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.jObElAee63 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.mJdMOyW2eQ +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.jObElAee63 +++ cat /tmp/tmp.mJdMOyW2eQ +++ rm /tmp/tmp.jObElAee63 /tmp/tmp.mJdMOyW2eQ +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.47xVGLBjYH ++++ mktemp +++ local LAST_ERR=/tmp/tmp.FIc0QcWuQT +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.47xVGLBjYH +++ cat /tmp/tmp.FIc0QcWuQT +++ rm /tmp/tmp.47xVGLBjYH /tmp/tmp.FIc0QcWuQT +++ return 0 +++ kubectl_bin -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.qJJLNrD5IJ ++++ mktemp +++ local LAST_ERR=/tmp/tmp.El9PH6BpkA +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.qJJLNrD5IJ +++ cat /tmp/tmp.El9PH6BpkA +++ rm /tmp/tmp.qJJLNrD5IJ /tmp/tmp.El9PH6BpkA +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.dTJpt4j6Sy +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.b0r3QLVZ14 ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++++ kubectl -n self-healing-12550 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.dTJpt4j6Sy ++++ cat /tmp/tmp.b0r3QLVZ14 ++++ rm /tmp/tmp.dTJpt4j6Sy /tmp/tmp.b0r3QLVZ14 ++++ return 0 +++ kubectl_bin -n self-healing-12550 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.NN6CcQHuZ9 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.3bQkhN1Cuc +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl -n self-healing-12550 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.NN6CcQHuZ9 +++ cat /tmp/tmp.3bQkhN1Cuc +++ rm /tmp/tmp.NN6CcQHuZ9 /tmp/tmp.3bQkhN1Cuc +++ 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@some-name.self-healing-12550 + 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@some-name.self-healing-12550 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ju1oDIPgUv +++ mktemp ++ local LAST_ERR=/tmp/tmp.OBJNjDyH3x ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++ kubectl -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.ju1oDIPgUv ++ cat /tmp/tmp.OBJNjDyH3x ++ rm /tmp/tmp.ju1oDIPgUv /tmp/tmp.OBJNjDyH3x ++ return 0 + local client_container=pg-client-76df9df876-smpmr + kubectl_bin exec pg-client-76df9df876-smpmr -n self-healing-12550 -- 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@some-name.self-healing-12550.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.VIeyKU2rnZ ++ mktemp + local LAST_ERR=/tmp/tmp.dthKd8l14a + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl exec pg-client-76df9df876-smpmr -n self-healing-12550 -- 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@some-name.self-healing-12550.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.VIeyKU2rnZ + cat /tmp/tmp.dthKd8l14a + rm /tmp/tmp.VIeyKU2rnZ /tmp/tmp.dthKd8l14a + return 0 + sleep 10 ++ get_pod_by_role some-name master name ++ local cluster=some-name ++ local role=master ++ local parameter=name ++ case ${parameter} in ++ local 'jsonpath={.items[].metadata.name}' +++ kubectl_bin get pods --selector=role=master,pg-cluster=some-name -o 'jsonpath={.items[].metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.cDSsKrXSrm ++++ mktemp +++ local LAST_ERR=/tmp/tmp.367afS6tOK +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl get pods --selector=role=master,pg-cluster=some-name -o 'jsonpath={.items[].metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.cDSsKrXSrm +++ cat /tmp/tmp.367afS6tOK +++ rm /tmp/tmp.cDSsKrXSrm /tmp/tmp.367afS6tOK +++ return 0 ++ echo some-name-5d6f899994-sqzhr + kill_pod some-name-5d6f899994-sqzhr + local pod=some-name-5d6f899994-sqzhr + cat /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/chaos-pod-kill.yml + yq w - metadata.name chaos-cluster-pod-kill-30574 + yq w - 'spec.selector.pods.self-healing-12550[0]' some-name-5d6f899994-sqzhr + yq w - metadata.namespace self-healing-12550 + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.aNmwkrEEqb ++ mktemp + local LAST_ERR=/tmp/tmp.i5ot9QgGIF + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.aNmwkrEEqb podchaos.chaos-mesh.org/chaos-cluster-pod-kill-30574 created + cat /tmp/tmp.i5ot9QgGIF + rm /tmp/tmp.aNmwkrEEqb /tmp/tmp.i5ot9QgGIF + return 0 + sleep 5 + wait_deployment some-name + local name=some-name + local target_namespace=self-healing-12550 + sleep 10 + set +o xtrace some-name... + compare_psql_cmd select-1 '\c myapp \\\ SELECT * from myApp;' some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 + local command_id=select-1 + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 + local postfix= + local uri_suffix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/self-healing/compare/select-1.sql + run_psql '\c myapp \\\ SELECT * from myApp;' some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 postgres '' + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.d0zAT1N2ZD +++ mktemp ++ local LAST_ERR=/tmp/tmp.AlnAa4Ny7U ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++ kubectl -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.d0zAT1N2ZD ++ cat /tmp/tmp.AlnAa4Ny7U ++ rm /tmp/tmp.d0zAT1N2ZD /tmp/tmp.AlnAa4Ny7U ++ return 0 + local client_container=pg-client-76df9df876-smpmr + kubectl_bin exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@some-name-pgbouncer.self-healing-12550.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.FsU0bLiU4V ++ mktemp + local LAST_ERR=/tmp/tmp.D07OQN7q6C + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@some-name-pgbouncer.self-healing-12550.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.FsU0bLiU4V + cat /tmp/tmp.D07OQN7q6C + rm /tmp/tmp.FsU0bLiU4V /tmp/tmp.D07OQN7q6C + return 0 + '[' '!' -s /tmp/tmp.MHCciBTf3t/select-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/self-healing/compare/select-1.sql /tmp/tmp.MHCciBTf3t/select-1.sql ++ get_pod_by_role some-name master name ++ local cluster=some-name ++ local role=master ++ local parameter=name ++ case ${parameter} in ++ local 'jsonpath={.items[].metadata.name}' +++ kubectl_bin get pods --selector=role=master,pg-cluster=some-name -o 'jsonpath={.items[].metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.DEywxu3E6w ++++ mktemp +++ local LAST_ERR=/tmp/tmp.UtOVEt0p85 +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl get pods --selector=role=master,pg-cluster=some-name -o 'jsonpath={.items[].metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.DEywxu3E6w +++ cat /tmp/tmp.UtOVEt0p85 +++ rm /tmp/tmp.DEywxu3E6w /tmp/tmp.UtOVEt0p85 +++ return 0 ++ echo some-name-repl2-759b4f7fdd-66d6c + failure_pod some-name-repl2-759b4f7fdd-66d6c + local pod=some-name-repl2-759b4f7fdd-66d6c + cat /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/chaos-pod-failure.yml + yq w - metadata.name chaos-cluster-pod-failure-3557 + kubectl_bin apply -f - + yq w - 'spec.selector.pods.self-healing-12550[0]' some-name-repl2-759b4f7fdd-66d6c + yq w - metadata.namespace self-healing-12550 ++ mktemp + local LAST_OUT=/tmp/tmp.LDR5EGQlEQ ++ mktemp + local LAST_ERR=/tmp/tmp.rwiiZejWSa + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.LDR5EGQlEQ podchaos.chaos-mesh.org/chaos-cluster-pod-failure-3557 created + cat /tmp/tmp.rwiiZejWSa + rm /tmp/tmp.LDR5EGQlEQ /tmp/tmp.rwiiZejWSa + return 0 + sleep 10 + sleep 30 + compare_psql_cmd select-1 '\c myapp \\\ SELECT * from myApp;' some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 + local command_id=select-1 + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 + local postfix= + local uri_suffix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/self-healing/compare/select-1.sql + run_psql '\c myapp \\\ SELECT * from myApp;' some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 postgres '' + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.xFZnW3K6zv +++ mktemp ++ local LAST_ERR=/tmp/tmp.4vyT4ZJuA6 ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++ kubectl -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.xFZnW3K6zv ++ cat /tmp/tmp.4vyT4ZJuA6 ++ rm /tmp/tmp.xFZnW3K6zv /tmp/tmp.4vyT4ZJuA6 ++ return 0 + local client_container=pg-client-76df9df876-smpmr + kubectl_bin exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@some-name-pgbouncer.self-healing-12550.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.SrQtmWSOsB ++ mktemp + local LAST_ERR=/tmp/tmp.6yARF3d63N + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@some-name-pgbouncer.self-healing-12550.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.SrQtmWSOsB + cat /tmp/tmp.6yARF3d63N + rm /tmp/tmp.SrQtmWSOsB /tmp/tmp.6yARF3d63N + return 0 + '[' '!' -s /tmp/tmp.MHCciBTf3t/select-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/self-healing/compare/select-1.sql /tmp/tmp.MHCciBTf3t/select-1.sql + kubectl_bin patch perconapgcluster/some-name --type json -p '[{"op": "replace", "path": "/spec/pgReplicas/hotStandby/size", "value": 2}]' ++ mktemp + local LAST_OUT=/tmp/tmp.n2spLxshMq ++ mktemp + local LAST_ERR=/tmp/tmp.oeSmYGvsbz + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl patch perconapgcluster/some-name --type json -p '[{"op": "replace", "path": "/spec/pgReplicas/hotStandby/size", "value": 2}]' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.n2spLxshMq perconapgcluster.pg.percona.com/some-name patched (no change) + cat /tmp/tmp.oeSmYGvsbz + rm /tmp/tmp.n2spLxshMq /tmp/tmp.oeSmYGvsbz + return 0 + sleep 5 + wait_deployment some-name-repl1 + local name=some-name-repl1 + local target_namespace=self-healing-12550 + sleep 10 + set +o xtrace some-name-repl1 + wait_deployment some-name-repl2 + local name=some-name-repl2 + local target_namespace=self-healing-12550 + sleep 10 + set +o xtrace some-name-repl2 ++ get_pod_by_role some-name replica name repl1 ++ local cluster=some-name ++ local role=replica ++ local parameter=name ++ case ${parameter} in ++ local 'jsonpath={.items[].metadata.name}' +++ kubectl_bin get pods --selector=role=replica,pg-cluster=some-name -o 'jsonpath={.items[].metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.I2fLY7QQwc ++++ mktemp +++ local LAST_ERR=/tmp/tmp.6NAFti2lEz +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl get pods --selector=role=replica,pg-cluster=some-name -o 'jsonpath={.items[].metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.I2fLY7QQwc +++ cat /tmp/tmp.6NAFti2lEz +++ rm /tmp/tmp.I2fLY7QQwc /tmp/tmp.6NAFti2lEz +++ return 0 ++ echo some-name-repl1-5489f574fb-8z5wc + kill_pod some-name-repl1-5489f574fb-8z5wc + local pod=some-name-repl1-5489f574fb-8z5wc + cat /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/chaos-pod-kill.yml + yq w - metadata.name chaos-cluster-pod-kill-21780 + kubectl_bin apply -f - + yq w - 'spec.selector.pods.self-healing-12550[0]' some-name-repl1-5489f574fb-8z5wc + yq w - metadata.namespace self-healing-12550 ++ mktemp + local LAST_OUT=/tmp/tmp.YDJC81SHrJ ++ mktemp + local LAST_ERR=/tmp/tmp.RLIGMhNGDB + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.YDJC81SHrJ podchaos.chaos-mesh.org/chaos-cluster-pod-kill-21780 created + cat /tmp/tmp.RLIGMhNGDB + rm /tmp/tmp.YDJC81SHrJ /tmp/tmp.RLIGMhNGDB + return 0 + sleep 5 + run_psql '\c myapp \\\ INSERT INTO myApp (id) VALUES (100501)' some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 + local 'command=\c myapp \\\ INSERT INTO myApp (id) VALUES (100501)' + local uri=some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.jXHKT1vOQs +++ mktemp ++ local LAST_ERR=/tmp/tmp.m6vN5SxhOp ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++ kubectl -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.jXHKT1vOQs ++ cat /tmp/tmp.m6vN5SxhOp ++ rm /tmp/tmp.jXHKT1vOQs /tmp/tmp.m6vN5SxhOp ++ return 0 + local client_container=pg-client-76df9df876-smpmr + kubectl_bin exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ INSERT INTO myApp (id) VALUES (100501)\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@some-name-pgbouncer.self-healing-12550.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.x3KItpJOUN ++ mktemp + local LAST_ERR=/tmp/tmp.MeAWltRUj2 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ INSERT INTO myApp (id) VALUES (100501)\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@some-name-pgbouncer.self-healing-12550.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.x3KItpJOUN + cat /tmp/tmp.MeAWltRUj2 + rm /tmp/tmp.x3KItpJOUN /tmp/tmp.MeAWltRUj2 + return 0 + compare_psql_cmd select-2 '\c myapp \\\ SELECT * from myApp;' some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 + local command_id=select-2 + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 + local postfix= + local uri_suffix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/self-healing/compare/select-2.sql + run_psql '\c myapp \\\ SELECT * from myApp;' some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 postgres '' + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ugJjQYOmCm +++ mktemp ++ local LAST_ERR=/tmp/tmp.IY8DQmwaYU ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++ kubectl -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.ugJjQYOmCm ++ cat /tmp/tmp.IY8DQmwaYU ++ rm /tmp/tmp.ugJjQYOmCm /tmp/tmp.IY8DQmwaYU ++ return 0 + local client_container=pg-client-76df9df876-smpmr + kubectl_bin exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@some-name-pgbouncer.self-healing-12550.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.0yQvwsRaVQ ++ mktemp + local LAST_ERR=/tmp/tmp.tFgIUEOEoy + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@some-name-pgbouncer.self-healing-12550.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.0yQvwsRaVQ + cat /tmp/tmp.tFgIUEOEoy + rm /tmp/tmp.0yQvwsRaVQ /tmp/tmp.tFgIUEOEoy + return 0 + '[' '!' -s /tmp/tmp.MHCciBTf3t/select-2.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/self-healing/compare/select-2.sql /tmp/tmp.MHCciBTf3t/select-2.sql + wait_deployment some-name-repl1 + local name=some-name-repl1 + local target_namespace=self-healing-12550 + sleep 10 + set +o xtrace some-name-repl1. ++ get_pod_by_role some-name replica IP repl1 ++ local cluster=some-name ++ local role=replica ++ local parameter=IP ++ case ${parameter} in ++ local 'jsonpath={.items[].status.podIP}' +++ kubectl_bin get pods --selector=role=replica,pg-cluster=some-name -o 'jsonpath={.items[].status.podIP}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.bUsXgQMBuE ++++ mktemp +++ local LAST_ERR=/tmp/tmp.dQXbQYLaFX +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl get pods --selector=role=replica,pg-cluster=some-name -o 'jsonpath={.items[].status.podIP}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.bUsXgQMBuE +++ cat /tmp/tmp.dQXbQYLaFX +++ rm /tmp/tmp.bUsXgQMBuE /tmp/tmp.dQXbQYLaFX +++ return 0 ++ echo 10.87.33.78 + repl1_pod_ip=10.87.33.78 + compare_psql_cmd select-2 '\c myapp \\\ SELECT * from myApp;' some-name:some-name_pass@10-87-33-78.self-healing-12550 '' .pod.cluster.local + local command_id=select-2 + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=some-name:some-name_pass@10-87-33-78.self-healing-12550 + local postfix= + local uri_suffix=.pod.cluster.local + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/self-healing/compare/select-2.sql + run_psql '\c myapp \\\ SELECT * from myApp;' some-name:some-name_pass@10-87-33-78.self-healing-12550 postgres .pod.cluster.local + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=some-name:some-name_pass@10-87-33-78.self-healing-12550 + local driver=postgres + local suffix=.pod.cluster.local ++ kubectl_bin -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.vUBJLkeVSX +++ mktemp ++ local LAST_ERR=/tmp/tmp.vLn2UyRS9b ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++ kubectl -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.vUBJLkeVSX ++ cat /tmp/tmp.vLn2UyRS9b ++ rm /tmp/tmp.vUBJLkeVSX /tmp/tmp.vLn2UyRS9b ++ return 0 + local client_container=pg-client-76df9df876-smpmr + kubectl_bin exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@10-87-33-78.self-healing-12550.pod.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.rDQQA3HtCC ++ mktemp + local LAST_ERR=/tmp/tmp.TCmJtOIkVs + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@10-87-33-78.self-healing-12550.pod.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.rDQQA3HtCC + cat /tmp/tmp.TCmJtOIkVs + rm /tmp/tmp.rDQQA3HtCC /tmp/tmp.TCmJtOIkVs + return 0 + '[' '!' -s /tmp/tmp.MHCciBTf3t/select-2.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/self-healing/compare/select-2.sql /tmp/tmp.MHCciBTf3t/select-2.sql ++ get_pod_by_role some-name replica name repl1 ++ local cluster=some-name ++ local role=replica ++ local parameter=name ++ case ${parameter} in ++ local 'jsonpath={.items[].metadata.name}' +++ kubectl_bin get pods --selector=role=replica,pg-cluster=some-name -o 'jsonpath={.items[].metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.oaaslAwvHe ++++ mktemp +++ local LAST_ERR=/tmp/tmp.JM8ltUX632 +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl get pods --selector=role=replica,pg-cluster=some-name -o 'jsonpath={.items[].metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.oaaslAwvHe +++ cat /tmp/tmp.JM8ltUX632 +++ rm /tmp/tmp.oaaslAwvHe /tmp/tmp.JM8ltUX632 +++ return 0 ++ echo some-name-repl1-5489f574fb-k7xvp + network_loss some-name-repl1-5489f574fb-k7xvp + local pod=some-name-repl1-5489f574fb-k7xvp + cat /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/chaos-network-loss.yml + yq w - metadata.name chaos-cluster-network-loss-12003 + yq w - metadata.namespace self-healing-12550 + yq w - 'spec.selector.pods.self-healing-12550[0]' some-name-repl1-5489f574fb-k7xvp + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.K1hYl2yWl1 ++ mktemp + local LAST_ERR=/tmp/tmp.Tszt1vnrcv + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.K1hYl2yWl1 networkchaos.chaos-mesh.org/chaos-cluster-network-loss-12003 created + cat /tmp/tmp.Tszt1vnrcv + rm /tmp/tmp.K1hYl2yWl1 /tmp/tmp.Tszt1vnrcv + return 0 + run_psql '\c myapp \\\ INSERT INTO myApp (id) VALUES (100502)' some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 + local 'command=\c myapp \\\ INSERT INTO myApp (id) VALUES (100502)' + local uri=some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ShfyD4dtPf +++ mktemp ++ local LAST_ERR=/tmp/tmp.dEJksJX6X5 ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++ kubectl -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.ShfyD4dtPf ++ cat /tmp/tmp.dEJksJX6X5 ++ rm /tmp/tmp.ShfyD4dtPf /tmp/tmp.dEJksJX6X5 ++ return 0 + local client_container=pg-client-76df9df876-smpmr + kubectl_bin exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ INSERT INTO myApp (id) VALUES (100502)\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@some-name-pgbouncer.self-healing-12550.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.j9bzwtjU4f ++ mktemp + local LAST_ERR=/tmp/tmp.IIL3r24u7N + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ INSERT INTO myApp (id) VALUES (100502)\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@some-name-pgbouncer.self-healing-12550.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.j9bzwtjU4f + cat /tmp/tmp.IIL3r24u7N + rm /tmp/tmp.j9bzwtjU4f /tmp/tmp.IIL3r24u7N + return 0 + compare_psql_cmd select-3 '\c myapp \\\ SELECT * from myApp;' some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 + local command_id=select-3 + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 + local postfix= + local uri_suffix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/self-healing/compare/select-3.sql + run_psql '\c myapp \\\ SELECT * from myApp;' some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 postgres '' + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=some-name:some-name_pass@some-name-pgbouncer.self-healing-12550 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.gzE9FfhJWA +++ mktemp ++ local LAST_ERR=/tmp/tmp.FmFNjAW4ui ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++ kubectl -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.gzE9FfhJWA ++ cat /tmp/tmp.FmFNjAW4ui ++ rm /tmp/tmp.gzE9FfhJWA /tmp/tmp.FmFNjAW4ui ++ return 0 + local client_container=pg-client-76df9df876-smpmr + kubectl_bin exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@some-name-pgbouncer.self-healing-12550.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.FwFwsLSFWq ++ mktemp + local LAST_ERR=/tmp/tmp.thdSAKonUN + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@some-name-pgbouncer.self-healing-12550.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.FwFwsLSFWq + cat /tmp/tmp.thdSAKonUN + rm /tmp/tmp.FwFwsLSFWq /tmp/tmp.thdSAKonUN + return 0 + '[' '!' -s /tmp/tmp.MHCciBTf3t/select-3.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/self-healing/compare/select-3.sql /tmp/tmp.MHCciBTf3t/select-3.sql + sleep 60 ++ get_pod_by_role some-name replica IP repl1 ++ local cluster=some-name ++ local role=replica ++ local parameter=IP ++ case ${parameter} in ++ local 'jsonpath={.items[].status.podIP}' +++ kubectl_bin get pods --selector=role=replica,pg-cluster=some-name -o 'jsonpath={.items[].status.podIP}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.TvJEGEVz72 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.WLvr1dWJ1a +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox +++ kubectl get pods --selector=role=replica,pg-cluster=some-name -o 'jsonpath={.items[].status.podIP}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.TvJEGEVz72 +++ cat /tmp/tmp.WLvr1dWJ1a +++ rm /tmp/tmp.TvJEGEVz72 /tmp/tmp.WLvr1dWJ1a +++ return 0 ++ echo 10.87.33.78 + repl1_pod_ip=10.87.33.78 + compare_psql_cmd select-3 '\c myapp \\\ SELECT * from myApp;' some-name:some-name_pass@10-87-33-78.self-healing-12550 '' .pod.cluster.local + local command_id=select-3 + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=some-name:some-name_pass@10-87-33-78.self-healing-12550 + local postfix= + local uri_suffix=.pod.cluster.local + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/self-healing/compare/select-3.sql + run_psql '\c myapp \\\ SELECT * from myApp;' some-name:some-name_pass@10-87-33-78.self-healing-12550 postgres .pod.cluster.local + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=some-name:some-name_pass@10-87-33-78.self-healing-12550 + local driver=postgres + local suffix=.pod.cluster.local ++ kubectl_bin -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.THOY7JOOV7 +++ mktemp ++ local LAST_ERR=/tmp/tmp.ijwffqzZN9 ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++ kubectl -n self-healing-12550 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.THOY7JOOV7 ++ cat /tmp/tmp.ijwffqzZN9 ++ rm /tmp/tmp.THOY7JOOV7 /tmp/tmp.ijwffqzZN9 ++ return 0 + local client_container=pg-client-76df9df876-smpmr + kubectl_bin exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@10-87-33-78.self-healing-12550.pod.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.o9zyVawY4T ++ mktemp + local LAST_ERR=/tmp/tmp.0poT6zh5pk + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl exec pg-client-76df9df876-smpmr -n self-healing-12550 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@10-87-33-78.self-healing-12550.pod.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.o9zyVawY4T + cat /tmp/tmp.0poT6zh5pk + rm /tmp/tmp.o9zyVawY4T /tmp/tmp.0poT6zh5pk + return 0 + '[' '!' -s /tmp/tmp.MHCciBTf3t/select-3.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/self-healing/compare/select-3.sql /tmp/tmp.MHCciBTf3t/select-3.sql + kubectl delete NetworkChaos --all networkchaos.chaos-mesh.org "chaos-cluster-network-loss-12003" deleted + kubectl delete PodChaos --all podchaos.chaos-mesh.org "chaos-cluster-pod-failure-3557" deleted podchaos.chaos-mesh.org "chaos-cluster-pod-kill-21780" deleted podchaos.chaos-mesh.org "chaos-cluster-pod-kill-30574" deleted + sleep 5 + destroy_chaos_mesh self-healing-12550 + local chaos_mesh_ns=self-healing-12550 + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + helm del chaos-mesh --namespace self-healing-12550 release "chaos-mesh" uninstalled + destroy self-healing-12550 + grep -v level=debug ++ get_operator_pod + grep -v 'Getting tasks for pod' ++ kubectl_bin get pods --selector=name=postgres-operator -o 'jsonpath={.items[].metadata.name}' + grep -v 'Getting pods from source' +++ mktemp + grep -v level=info + grep -v 'the object has been modified' + /usr/bin/sed -r 's/"ts":[0-9.]+//; s^limits-[0-9.]+/^^g' + grep -v 'get backup status: Job.batch' + sort -u ++ local LAST_OUT=/tmp/tmp.l3pf21xETj + tee /tmp/tmp.MHCciBTf3t/operator.log +++ mktemp ++ local LAST_ERR=/tmp/tmp.PEnnJQNSWS ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox ++ kubectl get pods --selector=name=postgres-operator -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.l3pf21xETj ++ cat /tmp/tmp.PEnnJQNSWS ++ rm /tmp/tmp.l3pf21xETj /tmp/tmp.PEnnJQNSWS ++ return 0 + kubectl_bin logs postgres-operator-b56d4cc6-bv28j -c operator ++ mktemp + local LAST_OUT=/tmp/tmp.9Sh93kI1bM ++ mktemp + local LAST_ERR=/tmp/tmp.vI8A6eDT0t + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl logs postgres-operator-b56d4cc6-bv28j -c operator + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.9Sh93kI1bM + cat /tmp/tmp.vI8A6eDT0t + rm /tmp/tmp.9Sh93kI1bM /tmp/tmp.vI8A6eDT0t + return 0 ] { } }, ] } }, { } }, ] { } }, { } ] } { } }, ] } ] { } }, }, { ] { } }, ] ] ], { } }, }, { }, { },{ }] }], ] { } }, , ], { } }, }], { } }, }], } ], } }, } }, } }, { } }, }, 2024/05/24 20:45:05 INF 1 (localhost:4150) connecting to nsqd 2024/05/24 20:45:56 INF 2 (localhost:4150) connecting to nsqd 2024/05/24 20:45:57 INF 3 (localhost:4150) connecting to nsqd 2024/05/24 20:46:03 INF 4 (localhost:4150) connecting to nsqd 2024/05/24 20:46:30 INF 5 (localhost:4150) connecting to nsqd 2024/05/24 20:46:30 INF 6 (localhost:4150) connecting to nsqd 2024/05/24 20:46:31 INF 7 (localhost:4150) connecting to nsqd "accessModes": [ "affinity": "affinity": { "affinity": { "podAntiAffinity": { "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": "some-name-pgbr-repo" "command": [ "configMap": { "configMap": { "configMapKeyRef": { "containerName": "database", "containerPort": 2022, "containerPort": 5432, "containerPort": 8009, "containers": [ "containers": [{ "cpu": "1", "cpu": "200m", "cpu": "500m", "crunchydata" "crunchy-pgbouncer": "true", "crunchy-pgbouncer": "true", "crunchy-pgbouncer": "true", "defaultMode": 288 "defaultMode": 288, "defaultMode": 288, "defaultMode": 420, "deployment-name": "some-name" "deployment-name": "some-name-repl1" "deployment-name": "some-name-repl1","pgo-version": "1.7.0","name": "some-name-replica","pg-cluster": "some-name" "deployment-name": "some-name-repl2" "divisor": "1m", "dnsPolicy": "ClusterFirst" "downwardAPI": { "emptyDir": { "emptyDir": { "emptyDir": { "emptyDir": { "env": [ "env": [{ "exec": { "fieldPath": "metadata.annotations" "fieldPath": "metadata.labels" "fieldPath": "metadata.labels['crunchy-pgha-scope']" "fieldPath": "metadata.namespace" "fieldRef": { "fieldRef": { "fsGroup": 2, I0524 20:43:57.214805 1 shared_informer.go:240] Waiting for caches to sync for namespace I0524 20:43:57.315242 1 shared_informer.go:247] Caches are synced for namespace I0524 20:43:57.434230 1 shared_informer.go:240] Waiting for caches to sync for self-healing-12550 I0524 20:43:57.534512 1 shared_informer.go:247] Caches are synced for self-healing-12550 "image": "perconalab/percona-postgresql-operator:main-ppg14-pgbackrest", "image": "perconalab/percona-postgresql-operator:main-ppg14-pgbackrest-repo", "image": "perconalab/percona-postgresql-operator:main-ppg14-pgbouncer", "image": "perconalab/percona-postgresql-operator:main-ppg14-postgres-ha", "imagePullPolicy": "IfNotPresent" "imagePullPolicy": "IfNotPresent", "initialDelaySeconds": 15 "initialDelaySeconds": 30, "items": [ "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": "tls.crt", "key": "tls.key", "key": "vendor", "kind": "Deployment", "kind": "Job", "kind": "PersistentVolumeClaim", "kind": "Service", "labels": { "labels": { "labels": { "labelSelector": { "livenessProbe": { "matchExpressions": [ "matchLabels": { "matchLabels": { "maxSurge": 1 "maxUnavailable": 1, "medium": "Memory", "medium": "Memory" "medium": "Memory", "medium": "Memory", "medium": "Memory", "memory": "128Mi" "memory": "256Mi" "memory": "48Mi" "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": "/pgconf/tls", "mountPath": "/pgconf/tls/pgbouncer", "mountPath": "/pgconf/tls-replication", "mountPath": "/pgdata", "mountPath": "/sshd", "mountPath": "/sshd", "mountPath": "/tmp", "mountPath": "/tmp", "mountPath": "/tmp" "name": "backrest", "name": "backrest-backup-some-name", "name": "backrestrepo", "name": "backrestrepo", "name": "BACKREST_SKIP_CREATE_STANZA", "name": "cluster1-replication-ssl-keypair", "name": "cluster1-ssl-ca" "name": "cluster1-ssl-ca" "name": "cluster1-ssl-keypair" "name": "cluster1-ssl-keypair" "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": "pgbouncer" "name": "pgbouncer", "name": "pgbouncer-conf", "name": "pgbouncer-conf", "name": "pgconf-volume" "name": "pgconf-volume", "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": "root-volume" "name": "root-volume", "name": "some-name", "name": "some-name", "name": "some-name-backrest-shared-repo", "name": "some-name-backrest-shared-repo" "name": "some-name-backrest-shared-repo", "name": "some-name-backrest-shared-repo", "name": "some-name-backrest-shared-repo", "name": "some-name-pgbouncer", "name": "some-name-pgbouncer", "name": "some-name-pgbouncer", "name": "some-name-pgbouncer", "name": "some-name-pgbouncer-cm" "name": "some-name-pgbouncer-secret", "name": "some-name-pgbouncer-secret", "name": "some-name-pgbr-repo", "name": "some-name","pg-cluster": "some-name","deployment-name": "some-name","pgouser": "admin","crunchy-pgha-scope": "some-name","pgo-version": "1.7.0" "name": "some-name-pgha-config", "name": "some-name-pgha-config", "name": "some-name-repl1", "name": "some-name-repl1", "name": "some-name-repl2", "name": "some-name-repl2", "name": "some-name-replica","pg-cluster": "some-name","deployment-name": "some-name-repl2","pgo-version": "1.7.0" "name": "some-name-stanza-create", "name": "ssh-config", "name": "ssh-config", "name": "ssh-config", "name": "ssh-config", "name": "sshd", "name": "sshd", "name": "sshd", "name": "sshd", "name": "tls-pgbouncer" "name": "tls-pgbouncer", "name": "tls-replication" "name": "tls-replication", "name": "tls-server" "name": "tls-server", "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" "path": "tls-replication.crt" "path": "tls-replication.key" "periodSeconds": 15, "persistentVolumeClaim": { "persistentVolumeClaim":{"claimName":"some-name"} "persistentVolumeClaim":{"claimName":"some-name-repl1"} "persistentVolumeClaim":{"claimName":"some-name-repl2"} "pg-cluster": "some-name" "pg-cluster": "some-name", "pg-cluster": "some-name" "pg-cluster": "some-name", "pg-cluster": "some-name" "pg-cluster": "some-name", "pg-cluster": "some-name","deployment-name": "some-name-repl2","pgo-version": "1.7.0","name": "some-name-replica" "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", "pgouser": "admin","crunchy-pgha-scope": "some-name","pgo-version": "1.7.0","name": "some-name","pg-cluster": "some-name","deployment-name": "some-name" "pgo-version": "1.7.0","name": "some-name-replica","pg-cluster": "some-name","deployment-name": "some-name-repl1" "pg-pod-anti-affinity": "preferred", "pg-pod-anti-affinity": "preferred", "podAffinityTerm": { "podAntiAffinity": { "podAntiAffinity": { "podAntiAffinity": { "port": 2022, "ports": [{ "ports": [{ "preferredDuringSchedulingIgnoredDuringExecution": [ "privileged": false, "projected": { "projected": { "projected": { "projected": { "sources": [] } "protocol": "TCP", "protocol": "TCP", "readinessProbe": { "readOnly": false "readOnly": false "readOnly": false "readOnlyRootFilesystem": true "readOnly": true "readOnly": true "readOnly": true "ReadWriteOnce" "replicas": 0, "replicas": 1, "replicas": 3, "requests": { "requests": { "resourceFieldRef": { "resource": "limits.cpu" "resource": "limits.memory" "resource": "requests.cpu" "resource": "requests.memory" "resources": { "resources": { "restartPolicy": "Always", "restartPolicy": "Never" "rollingUpdate": { "runAsNonRoot": true "secret": { "secret": { "secret": { "secret": { "secret": { "secretKeyRef": { "secretName": "some-name-backrest-repo-config" "secretName": "some-name-backrest-repo-config", "secretName": "some-name-backrest-repo-config" "secretName": "some-name-backrest-repo-config", "secretName": "some-name-postgres-secret" "secretName": "some-name-primaryuser-secret" "secretName": "some-name-some-name-secret" "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": "some-name-backrest-shared-repo", "service-name": "some-name-backrest-shared-repo", "service-name": "some-name-pgbouncer", "service-name": "some-name-pgbouncer", "service-name": "some-name-pgbouncer", "sessionAffinity": "None" "sizeLimit": "128Ki" "sizeLimit": "16Mi" "sizeLimit": "1Mi" "sizeLimit": "2Mi" "sizeLimit": "64Mi" "sizeLimit": "64Mi" "some-name" "sources": [ "sources": [ "sources": [ "spec": { "spec": { "spec": { "storage": "1Gi" "strategy": { "targetPort": 2022, "template": { time="2024-05-24T20:43:56Z" 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.7.0 time="2024-05-24T20:45:09Z" level=error msg="get deployment some-name-repl1: deployments.apps \"some-name-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.7.0 time="2024-05-24T20:45:14Z" level=error msg="get deployment some-name-repl2: deployments.apps \"some-name-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.7.0 time="2024-05-24T20:45:56Z" level=error msg="Error completing workflow some-name-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.7.0 time="2024-05-24T20:45:56Z" level=error msg="pgtasks.pg.percona.com \"some-name-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.7.0 time="2024-05-24T20:46:31Z" level=warning msg="crv1 pgreplica some-name-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.7.0 time="2024-05-24T20:46:31Z" level=warning msg="crv1 pgreplica some-name-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.7.0 time="2024-05-24T20:47:57Z" level=error func="github.com/percona/percona-postgresql-operator/internal/operator/config.(*LocalDB).apply()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/config/localdb.go:255" version=1.7.0 time="2024-05-24T20:47:57Z" level=error msg="Internal error occurred: error executing command in container: failed to exec in container: failed to start exec \"51e95982455f287952b37938dd3c7c4e6e98ccbfc91abf9c6273973ca2b58d13\": OCI runtime exec failed: exec failed: unable to start container process: exec: \"/opt/crunchy/bin/postgres-ha/common/pgha-reload-local.sh\": stat /opt/crunchy/bin/postgres-ha/common/pgha-reload-local.sh: no such file or directory: unknown" func="github.com/percona/percona-postgresql-operator/internal/kubeapi.ExecToPodThroughAPI()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/kubeapi/exec.go:76" version=1.7.0 time="2024-05-24T20:47:57Z" level=error msg="Internal error occurred: error executing command in container: failed to exec in container: failed to start exec \"51e95982455f287952b37938dd3c7c4e6e98ccbfc91abf9c6273973ca2b58d13\": OCI runtime exec failed: exec failed: unable to start container process: exec: \"/opt/crunchy/bin/postgres-ha/common/pgha-reload-local.sh\": stat /opt/crunchy/bin/postgres-ha/common/pgha-reload-local.sh: no such file or directory: unknown" func="github.com/percona/percona-postgresql-operator/internal/operator/config.(*LocalDB).Sync.func2()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/config/localdb.go:177" version=1.7.0 "timeoutSeconds": 10 "topologyKey": "kubernetes.io/hostname" "type": "ClusterIP", "type": "RollingUpdate", "value": "" "value": "5432" "value": "5432" "value": "/backrestrepo/some-name-backrest-shared-repo" "value": "/backrestrepo/some-name-backrest-shared-repo" "value": "backup" "value": "crunchy-pgha-scope" "value": "db" "value": "db" "value": " --db-host=10.87.32.56 --db-path=/pgdata/some-name" "value": "false" "value": "false" "valueFrom": { "value": "INFO" "value": "pgbackrest" "value": "pgbackrest-repo" "value": "/pgdata/some-name" "value": "/pgdata/some-name" "value": "/pgdata/some-name-repl1" "value": "/pgdata/some-name-repl1" "value": "/pgdata/some-name-repl2" "value": "/pgdata/some-name-repl2" "value": "posix" "value": "posix" "value": "postgres" "values": [ "value": "some-name" "value": "some-name-backrest-shared-repo" "value": "some-name-backrest-shared-repo-6f8f947dbc-8mv7z" "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.87.32.56 --db-path=/pgdata/some-name" "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": [{ "volumes": [ "volumes": [{ "weight": 1, + destroy_operator + kubectl_bin delete -f /tmp/tmp.MHCciBTf3t/operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.ro2JCdGZPm ++ mktemp + local LAST_ERR=/tmp/tmp.DcLBOEmCE0 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl delete -f /tmp/tmp.MHCciBTf3t/operator.yaml + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl delete -f /tmp/tmp.MHCciBTf3t/operator.yaml + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl delete -f /tmp/tmp.MHCciBTf3t/operator.yaml + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.ro2JCdGZPm + cat /tmp/tmp.DcLBOEmCE0 Error from server (NotFound): error when deleting "/tmp/tmp.MHCciBTf3t/operator.yaml": serviceaccounts "pgo-deployer-sa" not found Error from server (NotFound): error when deleting "/tmp/tmp.MHCciBTf3t/operator.yaml": clusterroles.rbac.authorization.k8s.io "pgo-deployer-cr" not found Error from server (NotFound): error when deleting "/tmp/tmp.MHCciBTf3t/operator.yaml": configmaps "pgo-deployer-cm" not found Error from server (NotFound): error when deleting "/tmp/tmp.MHCciBTf3t/operator.yaml": clusterrolebindings.rbac.authorization.k8s.io "pgo-deployer-crb" not found Error from server (NotFound): error when deleting "/tmp/tmp.MHCciBTf3t/operator.yaml": jobs.batch "pgo-deploy" not found + rm /tmp/tmp.ro2JCdGZPm /tmp/tmp.DcLBOEmCE0 + return 1 + true + yq w -d4 /tmp/tmp.MHCciBTf3t/operator.yaml 'spec.template.spec.containers[0].env[0].value' uninstall + kubectl_bin apply -f /tmp/tmp.MHCciBTf3t/operator-destroy.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.5tltCntc7p ++ mktemp + local LAST_ERR=/tmp/tmp.MyjAy8l2Wv + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl apply -f /tmp/tmp.MHCciBTf3t/operator-destroy.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.5tltCntc7p 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.MyjAy8l2Wv + rm /tmp/tmp.5tltCntc7p /tmp/tmp.MyjAy8l2Wv + return 0 + wait_job_completion pgo-deploy true + local job=pgo-deploy + local mandatory=true + local ns=self-healing-12550 + retry=0 + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' pgo-deploy+ retry=0 ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 3 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 4 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 5 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 6 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 7 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 8 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 9 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 10 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 11 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 12 -ge 600 ']' ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n self-healing-12550 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + kubectl_bin delete -f /tmp/tmp.MHCciBTf3t/operator-destroy.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.aKpqp6biyI ++ mktemp + local LAST_ERR=/tmp/tmp.YRueSpPetL + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl delete -f /tmp/tmp.MHCciBTf3t/operator-destroy.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.aKpqp6biyI 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.YRueSpPetL + rm /tmp/tmp.aKpqp6biyI /tmp/tmp.YRueSpPetL + return 0 + kubectl_bin get ns + egrep -v '^kube-|^default|Terminating|openshift|^NAME' ++ mktemp + awk '{print$1}' + xargs kubectl delete ns --grace-period=0 --force=true + local LAST_OUT=/tmp/tmp.ojbOGpBB0S ++ mktemp + local LAST_ERR=/tmp/tmp.YWmr2Zk8GE + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + kubectl get ns + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.ojbOGpBB0S + cat /tmp/tmp.YWmr2Zk8GE + rm /tmp/tmp.ojbOGpBB0S /tmp/tmp.YWmr2Zk8GE + 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 "self-healing-12550" force deleted + kubectl_bin delete clusterrolebindings pgo-cluster-role pgo-deployer-cr ++ mktemp + local LAST_OUT=/tmp/tmp.VrEgvDgjpF ++ mktemp + local LAST_ERR=/tmp/tmp.5h7PJglwDr + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + 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-776-0087ef129-2-sandbox + 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-776-0087ef129-2-sandbox + kubectl delete clusterrolebindings pgo-cluster-role pgo-deployer-cr + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.VrEgvDgjpF + cat /tmp/tmp.5h7PJglwDr 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.VrEgvDgjpF /tmp/tmp.5h7PJglwDr + return 1 + true + kubectl_bin delete clusterroles pgo-cluster-role pgo-deployer-cr ++ mktemp + local LAST_OUT=/tmp/tmp.dD8QtjKKFa ++ mktemp + local LAST_ERR=/tmp/tmp.g47TbDDU8R + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-2-sandbox + 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-776-0087ef129-2-sandbox + 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-776-0087ef129-2-sandbox + kubectl delete clusterroles pgo-cluster-role pgo-deployer-cr + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.dD8QtjKKFa + cat /tmp/tmp.g47TbDDU8R 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.dD8QtjKKFa /tmp/tmp.g47TbDDU8R + return 1 + true + rm -rf /tmp/tmp.MHCciBTf3t