++ echo 'Log: /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/logs/operator-self-healing.log' Log: /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/logs/operator-self-healing.log ++ '[' -f /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/conf/cloud-secret.yml ']' ++ SKIP_BACKUPS_TO_AWS_GCP= ++ oc get projects error: the server doesn't have a resource type "projects" +++ kubectl version -o json +++ 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.14.4 ++ '[' v3 == v2 ']' + main + create_namespace operator-self-healing-21031 + local namespace=operator-self-healing-21031 + 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 ++ mktemp + xargs kubectl delete ns + awk '{print$1}' + local LAST_OUT=/tmp/tmp.HTwBIVFgNs ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.KmxFU3nChO + local LAST_ERR=/tmp/tmp.95oTqh9Tk4 + local exit_status=0 + local timeout=4 + set +o errexit ++ mktemp ++ seq 0 2 + local LAST_ERR=/tmp/tmp.adDTRLTKrR + local exit_status=0 + local timeout=4 + set +o errexit + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl get ns ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-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.HTwBIVFgNs + cat /tmp/tmp.95oTqh9Tk4 + rm /tmp/tmp.HTwBIVFgNs /tmp/tmp.95oTqh9Tk4 + return 0 + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl delete clusterrolebindings pgo-cluster-role pgo-deployer-cr chaos-mesh-chaos-controller-manager-cluster-level namespace "operator-self-healing-6683" deleted + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-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.KmxFU3nChO + cat /tmp/tmp.adDTRLTKrR 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.KmxFU3nChO /tmp/tmp.adDTRLTKrR + 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.ZfwIGBJm1f ++ mktemp + local LAST_ERR=/tmp/tmp.of7QE9396p + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-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-721-a67b3475b-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-721-a67b3475b-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.ZfwIGBJm1f + cat /tmp/tmp.of7QE9396p 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.ZfwIGBJm1f /tmp/tmp.of7QE9396p + return 1 + true + kubectl delete MutatingWebhookConfiguration/chaos-mesh-mutation ValidatingWebhookConfiguration/chaos-mesh-validation ValidatingWebhookConfiguration/validate-auth mutatingwebhookconfiguration.admissionregistration.k8s.io "chaos-mesh-mutation" deleted validatingwebhookconfiguration.admissionregistration.k8s.io "chaos-mesh-validation" deleted validatingwebhookconfiguration.admissionregistration.k8s.io "validate-auth" deleted + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + kubectl_bin delete namespace operator-self-healing-21031 ++ mktemp + local LAST_OUT=/tmp/tmp.poieFsOQuQ ++ mktemp + local LAST_ERR=/tmp/tmp.yWoF5YxsGE + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl delete namespace operator-self-healing-21031 + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl delete namespace operator-self-healing-21031 + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl delete namespace operator-self-healing-21031 + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.poieFsOQuQ + cat /tmp/tmp.yWoF5YxsGE Error from server (NotFound): namespaces "operator-self-healing-21031" not found + rm /tmp/tmp.poieFsOQuQ /tmp/tmp.yWoF5YxsGE + return 1 + : + wait_for_delete namespace/operator-self-healing-21031 + local res=namespace/operator-self-healing-21031 + set +o xtrace namespace/operator-self-healing-21031 - Error from server (NotFound): namespaces "operator-self-healing-21031" not found + kubectl_bin create namespace operator-self-healing-21031 ++ mktemp + local LAST_OUT=/tmp/tmp.X5Hm8wkM4N ++ mktemp + local LAST_ERR=/tmp/tmp.Qy1gdO9jb2 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl create namespace operator-self-healing-21031 + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.X5Hm8wkM4N namespace/operator-self-healing-21031 created + cat /tmp/tmp.Qy1gdO9jb2 + rm /tmp/tmp.X5Hm8wkM4N /tmp/tmp.Qy1gdO9jb2 + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.my36YpPfwY +++ mktemp ++ local LAST_ERR=/tmp/tmp.m679qt3OAv ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox ++ kubectl config current-context ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.my36YpPfwY ++ cat /tmp/tmp.m679qt3OAv ++ rm /tmp/tmp.my36YpPfwY /tmp/tmp.m679qt3OAv ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-c_jen-pg-721-a67b3475b-2-sandbox --namespace=operator-self-healing-21031 ++ mktemp + local LAST_OUT=/tmp/tmp.q2IEaExgiR ++ mktemp + local LAST_ERR=/tmp/tmp.wnqHhnOf79 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl config set-context gke_cloud-dev-112233_us-central1-c_jen-pg-721-a67b3475b-2-sandbox --namespace=operator-self-healing-21031 + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.q2IEaExgiR Context "gke_cloud-dev-112233_us-central1-c_jen-pg-721-a67b3475b-2-sandbox" modified. + cat /tmp/tmp.wnqHhnOf79 + rm /tmp/tmp.q2IEaExgiR /tmp/tmp.wnqHhnOf79 + return 0 + deploy_operator + local pull_secret_name= + local operator_manifest=/mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/operator.yaml + local namespace_mode=disabled + local action=install + local namespace=operator-self-healing-21031 + local dont_send_telemetry=false + local version_service_uri_override= + desc 'start operator' + set +o xtrace ----------------------------------------------------------------------------------- start operator ----------------------------------------------------------------------------------- + prepare_operator_yaml '' /mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/operator.yaml disabled install operator-self-healing-21031 false + local pull_secret_name= + local operator_manifest=/mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/operator.yaml + local namespace_mode=disabled + local operator_action=install + local namespace=operator-self-healing-21031 + local dont_send_telemetry=false + yq r -d2 /mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/operator.yaml 'data[values.yaml]' + /usr/bin/sed -e 's#^namespace: .*#namespace: "operator-self-healing-21031"#g' + /usr/bin/sed -e 's#pgo_operator_namespace: .*#pgo_operator_namespace: "operator-self-healing-21031"#g' + /usr/bin/sed -e 's#^disable_telemetry: .*#disable_telemetry: "false"#g' + /usr/bin/sed -e 's#namespace_mode: .*#namespace_mode: "disabled"#g' + cat /dev/fd/63 - ++ echo 'crunchy_debug: "true"' ++ cut -d: -f1 ++ echo perconalab/percona-postgresql-operator:PR-721-a67b3475b ++ echo perconalab/percona-postgresql-operator:PR-721-a67b3475b ++ cut -d: -f2 + /usr/bin/sed -e 's#pgo_image_prefix: .*#pgo_image_prefix: "perconalab/percona-postgresql-operator"#g' + /usr/bin/sed -e 's#pgo_image_tag: .*#pgo_image_tag: "PR-721-a67b3475b"#g' + [[ -n '' ]] + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + yq w -d3 - 'subjects[0].namespace' operator-self-healing-21031 + yq w -d4 - 'spec.template.spec.containers[0].image' perconalab/percona-postgresql-operator:PR-721-a67b3475b-pgo-deployer + yq w -d4 - 'spec.template.spec.containers[0].env[0].value' install + yq w '-d*' /mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/operator.yaml metadata.namespace operator-self-healing-21031 ++ cat /tmp/tmp.2ULeK4x3t5/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: "operator-self-healing-21031" namespace_mode: "disabled" pgo_image_prefix: "perconalab/percona-postgresql-operator" pgo_image_pull_policy: "Always" pgo_image_pull_secret: "" pgo_image_pull_secret_manifest: "" pgo_image_tag: "PR-721-a67b3475b" pgo_operator_namespace: "operator-self-healing-21031"' + [[ -n '' ]] + kubectl_bin apply -f /tmp/tmp.2ULeK4x3t5/operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.73g7Lo5OAQ ++ mktemp + local LAST_ERR=/tmp/tmp.RBAMOsgvWN + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl apply -f /tmp/tmp.2ULeK4x3t5/operator.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.73g7Lo5OAQ 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.RBAMOsgvWN + rm /tmp/tmp.73g7Lo5OAQ /tmp/tmp.RBAMOsgvWN + return 0 + wait_job_completion pgo-deploy true + local job=pgo-deploy + local mandatory=true + local ns=operator-self-healing-21031 + retry=0 + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' pgo-deploy+ retry=0 ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 3 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 4 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 5 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 6 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 7 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 8 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 9 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 10 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 11 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 12 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 13 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 14 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 15 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 16 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 17 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 18 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 19 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 20 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 21 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 22 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 23 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 24 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 25 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 26 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 27 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 28 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 29 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 30 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 31 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 32 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + kubectl_bin delete -f /tmp/tmp.2ULeK4x3t5/operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.pOhpv3AusP ++ mktemp + local LAST_ERR=/tmp/tmp.BwUiUvZdBe + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl delete -f /tmp/tmp.2ULeK4x3t5/operator.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.pOhpv3AusP 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.BwUiUvZdBe + rm /tmp/tmp.pOhpv3AusP /tmp/tmp.BwUiUvZdBe + return 0 ++ get_operator_pod +++ kubectl_bin get pods --selector=name=postgres-operator -o 'jsonpath={.items[].metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.Y0o6FBI2J2 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.rwbZYT37Ts +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-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.Y0o6FBI2J2 +++ cat /tmp/tmp.rwbZYT37Ts +++ rm /tmp/tmp.Y0o6FBI2J2 /tmp/tmp.rwbZYT37Ts +++ return 0 ++ echo postgres-operator-7bc87dfd55-tvdqr + wait_pod postgres-operator-7bc87dfd55-tvdqr + local pod=postgres-operator-7bc87dfd55-tvdqr + local ns= + set +o xtrace postgres-operator-7bc87dfd55-tvdqrtrue + [[ -n '' ]] + deploy_chaos_mesh operator-self-healing-21031 + local chaos_mesh_ns=operator-self-healing-21031 + 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 "chaos-mesh" has been removed from your repositories + 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=operator-self-healing-21031 --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=operator-self-healing-21031 NAME: chaos-mesh LAST DEPLOYED: Tue Apr 23 17:01:21 2024 NAMESPACE: operator-self-healing-21031 STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: 1. Make sure chaos-mesh components are running kubectl get pods --namespace operator-self-healing-21031 -l app.kubernetes.io/instance=chaos-mesh + sleep 10 + desc 'start cluster' + set +o xtrace ----------------------------------------------------------------------------------- start cluster ----------------------------------------------------------------------------------- + cluster=some-name-9499 + spinup_pgcluster some-name-9499 /mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/cr.yaml + local cluster=some-name-9499 + local config=/mnt/jenkins/workspace/cloud-pg-operator_PR-721/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-721/e2e-tests/conf/client.yml + local namespace=operator-self-healing-21031 + local root_via_pgbouncer= + desc 'create fresh PG cluster' + set +o xtrace ----------------------------------------------------------------------------------- create fresh PG cluster ----------------------------------------------------------------------------------- + create_user_secrets some-name-9499 operator-self-healing-21031 + local cluster=some-name-9499 + local namespace=operator-self-healing-21031 + yq r -d0 /mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/users-secret.yaml + yq w - metadata.name some-name-9499-users-secret + yq w - stringData.some-name some-name_pass + kubectl_bin -n operator-self-healing-21031 apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.QEi4nSCs3E ++ mktemp + local LAST_ERR=/tmp/tmp.xJCVV1CI6t + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl -n operator-self-healing-21031 apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.QEi4nSCs3E secret/some-name-9499-users-secret created + cat /tmp/tmp.xJCVV1CI6t + rm /tmp/tmp.QEi4nSCs3E /tmp/tmp.xJCVV1CI6t + return 0 + yq w - metadata.name some-name-9499-pmm-secret + yq r -d1 /mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/users-secret.yaml + kubectl_bin -n operator-self-healing-21031 apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.wpRwe7wVta ++ mktemp + local LAST_ERR=/tmp/tmp.YNe8k4LwwE + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl -n operator-self-healing-21031 apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.wpRwe7wVta secret/some-name-9499-pmm-secret created + cat /tmp/tmp.YNe8k4LwwE + rm /tmp/tmp.wpRwe7wVta /tmp/tmp.YNe8k4LwwE + return 0 + kubectl_bin -n operator-self-healing-21031 apply -f /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/conf/client.yml ++ mktemp + local LAST_OUT=/tmp/tmp.RZNODeMO69 ++ mktemp + local LAST_ERR=/tmp/tmp.az5k1mdm5U + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl -n operator-self-healing-21031 apply -f /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/conf/client.yml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.RZNODeMO69 deployment.apps/pg-client created + cat /tmp/tmp.az5k1mdm5U + rm /tmp/tmp.RZNODeMO69 /tmp/tmp.az5k1mdm5U + return 0 + apply_cluster /mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/cr.yaml some-name-9499 false false false false false false false false + local path=/mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/cr.yaml + local name=some-name-9499 + local backup=false + local restore_from=false + local restore_opts=false + local custom_config=false + local podAntiAffinity=false + local schedule=false + local schedule_type=false + local tls_only=false + local root_via_pgbouncer= + yq w /mnt/jenkins/workspace/cloud-pg-operator_PR-721/deploy/cr.yaml metadata.annotations.current-primary some-name-9499 + yq w - metadata.labels.crunchy-pgha-scope some-name-9499 + yq w - metadata.labels.deployment-name some-name-9499 + yq w - spec.database some-name-9499 + yq w - spec.keepData false + yq w - metadata.name some-name-9499 + yq w - spec.pgPrimary.image perconalab/percona-postgresql-operator:main-ppg14-postgres-ha + yq w - spec.keepBackups false + yq w - spec.clustername some-name-9499 + yq w - spec.name some-name-9499 + yq w - metadata.labels.pg-cluster some-name-9499 + yq w - metadata.labels.name some-name-9499 + yq w - spec.pgBadger.image perconalab/percona-postgresql-operator:main-ppg14-pgbadger + yq w - spec.user some-name + yq w - spec.secretsName some-name-9499-users-secret + yq w - spec.backup.image perconalab/percona-postgresql-operator:main-ppg14-pgbackrest + yq w - spec.pgBouncer.image perconalab/percona-postgresql-operator:main-ppg14-pgbouncer + yq w - spec.backup.backrestRepoImage perconalab/percona-postgresql-operator:main-ppg14-pgbackrest-repo + yq w - spec.pmm.image perconalab/pmm-client:2.41.0 + 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.2ULeK4x3t5/cr.yaml -n operator-self-healing-21031 ++ mktemp + local LAST_OUT=/tmp/tmp.lh7aU2zIKt ++ mktemp + local LAST_ERR=/tmp/tmp.THJsHFWUFC + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl apply -f /tmp/tmp.2ULeK4x3t5/cr.yaml -n operator-self-healing-21031 + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.lh7aU2zIKt perconapgcluster.pg.percona.com/some-name-9499 created + cat /tmp/tmp.THJsHFWUFC + rm /tmp/tmp.lh7aU2zIKt /tmp/tmp.THJsHFWUFC + return 0 + wait_deployment some-name-9499-backrest-shared-repo + local name=some-name-9499-backrest-shared-repo + local target_namespace=operator-self-healing-21031 + sleep 10 + set +o xtrace some-name-9499-backrest-shared-repo... + wait_deployment some-name-9499 + local name=some-name-9499 + local target_namespace=operator-self-healing-21031 + sleep 10 + set +o xtrace some-name-9499.......... + [[ false == \g\c\s\+* ]] + wait_job_completion some-name-9499-stanza-create false + local job=some-name-9499-stanza-create + local mandatory=false + local ns=operator-self-healing-21031 + retry=0 + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl -n operator-self-healing-21031 get job/some-name-9499-stanza-create -o 'jsonpath={.metadata.name}' some-name-9499-stanza-create+ retry=0 ++ kubectl_bin -n operator-self-healing-21031 get job/some-name-9499-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/some-name-9499-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/some-name-9499-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/some-name-9499-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/some-name-9499-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/some-name-9499-stanza-create -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + wait_job_completion backrest-backup-some-name-9499 + local job=backrest-backup-some-name-9499 + local mandatory=true + local ns=operator-self-healing-21031 + retry=0 + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' + sleep 1 + echo -n . .+ let retry+=1 + [[ 1 -ge 120 ]] + [[ 1 -ge 120 ]] + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' backrest-backup-some-name-9499+ retry=0 ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 3 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 4 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 5 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 6 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 7 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 8 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 9 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 10 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 11 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 12 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 13 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 14 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 15 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 16 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/backrest-backup-some-name-9499 -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + wait_cluster_consistency some-name-9499 + cluster_name=some-name-9499 + wait_cluster_status some-name-9499 'pgcluster Initialized' + local cluster_name=some-name-9499 + local 'target_status=pgcluster Initialized' + local target_namespace=operator-self-healing-21031 + local status_query= + case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in ++ kubectl_bin get perconapgcluster/some-name-9499 -o 'jsonpath={.metadata.labels.pgo-version}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.diKGzHGFjX +++ mktemp ++ local LAST_ERR=/tmp/tmp.wHhE84NkSP ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox ++ kubectl get perconapgcluster/some-name-9499 -o 'jsonpath={.metadata.labels.pgo-version}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.diKGzHGFjX ++ cat /tmp/tmp.wHhE84NkSP ++ rm /tmp/tmp.diKGzHGFjX /tmp/tmp.wHhE84NkSP ++ return 0 + status_query='kubectl_bin -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o jsonpath='\''{.status.PGCluster.state}'\''' + local retry=0 ++ eval kubectl_bin -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath='\''{.status.PGCluster.state}'\''' +++ kubectl_bin -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.status.PGCluster.state}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.VX1guq5sC2 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.Do4JyPzDZX +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox +++ kubectl -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.status.PGCluster.state}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.VX1guq5sC2 +++ cat /tmp/tmp.Do4JyPzDZX +++ rm /tmp/tmp.VX1guq5sC2 /tmp/tmp.Do4JyPzDZX +++ return 0 + [[ pgcluster Processed == \p\g\c\l\u\s\t\e\r\ \I\n\i\t\i\a\l\i\z\e\d ]] + let retry+=1 + '[' 1 -ge 24 ']' + echo 'waiting for cluster readyness' waiting for cluster readyness + sleep 10 ++ eval kubectl_bin -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath='\''{.status.PGCluster.state}'\''' +++ kubectl_bin -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.status.PGCluster.state}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.R5NeZDJAYY ++++ mktemp +++ local LAST_ERR=/tmp/tmp.g315kGPqeu +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox +++ kubectl -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.status.PGCluster.state}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.R5NeZDJAYY +++ cat /tmp/tmp.g315kGPqeu +++ rm /tmp/tmp.R5NeZDJAYY /tmp/tmp.g315kGPqeu +++ 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-9499 ++ local user=postgres ++ local cluster=some-name-9499 ++ local namespace=operator-self-healing-21031 +++ kubectl_bin -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.hf9tZxRt0f ++++ mktemp +++ local LAST_ERR=/tmp/tmp.D5mSiMCnfc +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox +++ kubectl -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.hf9tZxRt0f +++ cat /tmp/tmp.D5mSiMCnfc +++ rm /tmp/tmp.hf9tZxRt0f /tmp/tmp.D5mSiMCnfc +++ return 0 ++ [[ xsome-name-9499 == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name-9499 -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.IFvG6FMtBE ++++ mktemp +++ local LAST_ERR=/tmp/tmp.aQ3HtD5ZaT +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox +++ kubectl get perconapgcluster/some-name-9499 -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.IFvG6FMtBE +++ cat /tmp/tmp.aQ3HtD5ZaT +++ rm /tmp/tmp.IFvG6FMtBE /tmp/tmp.aQ3HtD5ZaT +++ return 0 +++ kubectl_bin -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.2yaYbWGCQQ ++++ mktemp +++ local LAST_ERR=/tmp/tmp.TOQyxMSGav +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox +++ kubectl -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.2yaYbWGCQQ +++ cat /tmp/tmp.TOQyxMSGav +++ rm /tmp/tmp.2yaYbWGCQQ /tmp/tmp.TOQyxMSGav +++ return 0 ++ [[ xsome-name-9499-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.3kaPXMOgjD +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.NymyNv6UfI ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox ++++ kubectl -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.3kaPXMOgjD ++++ cat /tmp/tmp.NymyNv6UfI ++++ rm /tmp/tmp.3kaPXMOgjD /tmp/tmp.NymyNv6UfI ++++ return 0 +++ kubectl_bin -n operator-self-healing-21031 get secret/some-name-9499-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.ePdN0qUPkh ++++ mktemp +++ local LAST_ERR=/tmp/tmp.F6ywTmup8Z +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox +++ kubectl -n operator-self-healing-21031 get secret/some-name-9499-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.ePdN0qUPkh +++ cat /tmp/tmp.F6ywTmup8Z +++ rm /tmp/tmp.ePdN0qUPkh /tmp/tmp.F6ywTmup8Z +++ 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-9499.operator-self-healing-21031 + local 'command=CREATE DATABASE myapp; \c myapp \\\ CREATE TABLE IF NOT EXISTS myApp (id int PRIMARY KEY);' + local uri=postgres:postgres_password@some-name-9499.operator-self-healing-21031 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n operator-self-healing-21031 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.f0p47BWmTU +++ mktemp ++ local LAST_ERR=/tmp/tmp.duV3PpJR6a ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox ++ kubectl -n operator-self-healing-21031 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.f0p47BWmTU ++ cat /tmp/tmp.duV3PpJR6a ++ rm /tmp/tmp.f0p47BWmTU /tmp/tmp.duV3PpJR6a ++ return 0 + local client_container=pg-client-76df9df876-gstnj + kubectl_bin exec pg-client-76df9df876-gstnj -n operator-self-healing-21031 -- 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-9499.operator-self-healing-21031.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.84OHZkY7wm ++ mktemp + local LAST_ERR=/tmp/tmp.rtM8f5Agga + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl exec pg-client-76df9df876-gstnj -n operator-self-healing-21031 -- 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-9499.operator-self-healing-21031.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.84OHZkY7wm + cat /tmp/tmp.rtM8f5Agga + rm /tmp/tmp.84OHZkY7wm /tmp/tmp.rtM8f5Agga + return 0 ++ get_psql_user_pass postgres some-name-9499 ++ local user=postgres ++ local cluster=some-name-9499 ++ local namespace=operator-self-healing-21031 +++ kubectl_bin -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.Vdi7ULhBmN ++++ mktemp +++ local LAST_ERR=/tmp/tmp.hhIB44elZw +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox +++ kubectl -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.Vdi7ULhBmN +++ cat /tmp/tmp.hhIB44elZw +++ rm /tmp/tmp.Vdi7ULhBmN /tmp/tmp.hhIB44elZw +++ return 0 ++ [[ xsome-name-9499 == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name-9499 -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.4O0ggtlJKN ++++ mktemp +++ local LAST_ERR=/tmp/tmp.pv2EgtnOes +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox +++ kubectl get perconapgcluster/some-name-9499 -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.4O0ggtlJKN +++ cat /tmp/tmp.pv2EgtnOes +++ rm /tmp/tmp.4O0ggtlJKN /tmp/tmp.pv2EgtnOes +++ return 0 +++ kubectl_bin -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.ttwFHjV2o6 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.IJ8kkykxU2 +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox +++ kubectl -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.ttwFHjV2o6 +++ cat /tmp/tmp.IJ8kkykxU2 +++ rm /tmp/tmp.ttwFHjV2o6 /tmp/tmp.IJ8kkykxU2 +++ return 0 ++ [[ xsome-name-9499-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.rOFZetM2Jj +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.sSYAqg91cb ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox ++++ kubectl -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.rOFZetM2Jj ++++ cat /tmp/tmp.sSYAqg91cb ++++ rm /tmp/tmp.rOFZetM2Jj /tmp/tmp.sSYAqg91cb ++++ return 0 +++ kubectl_bin -n operator-self-healing-21031 get secret/some-name-9499-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.vYL8cM25Fb ++++ mktemp +++ local LAST_ERR=/tmp/tmp.BfCKi5PZhO +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox +++ kubectl -n operator-self-healing-21031 get secret/some-name-9499-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.vYL8cM25Fb +++ cat /tmp/tmp.BfCKi5PZhO +++ rm /tmp/tmp.vYL8cM25Fb /tmp/tmp.BfCKi5PZhO +++ return 0 ++ echo postgres_password + run_psql '\c myapp \\\ INSERT INTO myApp (id) VALUES (100500)' postgres:postgres_password@some-name-9499.operator-self-healing-21031 + local 'command=\c myapp \\\ INSERT INTO myApp (id) VALUES (100500)' + local uri=postgres:postgres_password@some-name-9499.operator-self-healing-21031 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n operator-self-healing-21031 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.COIf2i5Dgy +++ mktemp ++ local LAST_ERR=/tmp/tmp.GKHK5Kk3ih ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox ++ kubectl -n operator-self-healing-21031 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.COIf2i5Dgy ++ cat /tmp/tmp.GKHK5Kk3ih ++ rm /tmp/tmp.COIf2i5Dgy /tmp/tmp.GKHK5Kk3ih ++ return 0 + local client_container=pg-client-76df9df876-gstnj + kubectl_bin exec pg-client-76df9df876-gstnj -n operator-self-healing-21031 -- 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-9499.operator-self-healing-21031.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.HqlWSUZIpk ++ mktemp + local LAST_ERR=/tmp/tmp.OP53qjrzNM + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl exec pg-client-76df9df876-gstnj -n operator-self-healing-21031 -- 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-9499.operator-self-healing-21031.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.HqlWSUZIpk + cat /tmp/tmp.OP53qjrzNM + rm /tmp/tmp.HqlWSUZIpk /tmp/tmp.OP53qjrzNM + return 0 ++ get_psql_user_pass postgres some-name-9499 ++ local user=postgres ++ local cluster=some-name-9499 ++ local namespace=operator-self-healing-21031 +++ kubectl_bin -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.6j5BInKpL6 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.Jj4eU5jVtf +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox +++ kubectl -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.6j5BInKpL6 +++ cat /tmp/tmp.Jj4eU5jVtf +++ rm /tmp/tmp.6j5BInKpL6 /tmp/tmp.Jj4eU5jVtf +++ return 0 ++ [[ xsome-name-9499 == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name-9499 -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.001vBo4cg0 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.eNsLQFq2TR +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox +++ kubectl get perconapgcluster/some-name-9499 -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.001vBo4cg0 +++ cat /tmp/tmp.eNsLQFq2TR +++ rm /tmp/tmp.001vBo4cg0 /tmp/tmp.eNsLQFq2TR +++ return 0 +++ kubectl_bin -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.YbtZuReFFA ++++ mktemp +++ local LAST_ERR=/tmp/tmp.3ljSRNwit3 +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox +++ kubectl -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.YbtZuReFFA +++ cat /tmp/tmp.3ljSRNwit3 +++ rm /tmp/tmp.YbtZuReFFA /tmp/tmp.3ljSRNwit3 +++ return 0 ++ [[ xsome-name-9499-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.smLh45l85z +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.Oeeax4EnyK ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox ++++ kubectl -n operator-self-healing-21031 get perconapgcluster/some-name-9499 -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.smLh45l85z ++++ cat /tmp/tmp.Oeeax4EnyK ++++ rm /tmp/tmp.smLh45l85z /tmp/tmp.Oeeax4EnyK ++++ return 0 +++ kubectl_bin -n operator-self-healing-21031 get secret/some-name-9499-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.qkrQWRP3pc ++++ mktemp +++ local LAST_ERR=/tmp/tmp.FVLEVfrghs +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox +++ kubectl -n operator-self-healing-21031 get secret/some-name-9499-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.qkrQWRP3pc +++ cat /tmp/tmp.FVLEVfrghs +++ rm /tmp/tmp.qkrQWRP3pc /tmp/tmp.FVLEVfrghs +++ 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-9499.operator-self-healing-21031 + 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-9499.operator-self-healing-21031 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n operator-self-healing-21031 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.GNZpIpNfSD +++ mktemp ++ local LAST_ERR=/tmp/tmp.Pbz9IsaBBd ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox ++ kubectl -n operator-self-healing-21031 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.GNZpIpNfSD ++ cat /tmp/tmp.Pbz9IsaBBd ++ rm /tmp/tmp.GNZpIpNfSD /tmp/tmp.Pbz9IsaBBd ++ return 0 + local client_container=pg-client-76df9df876-gstnj + kubectl_bin exec pg-client-76df9df876-gstnj -n operator-self-healing-21031 -- 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-9499.operator-self-healing-21031.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.9Glz0KHhd5 ++ mktemp + local LAST_ERR=/tmp/tmp.Ls5BXykTqu + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl exec pg-client-76df9df876-gstnj -n operator-self-healing-21031 -- 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-9499.operator-self-healing-21031.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.9Glz0KHhd5 + cat /tmp/tmp.Ls5BXykTqu + rm /tmp/tmp.9Glz0KHhd5 /tmp/tmp.Ls5BXykTqu + return 0 + sleep 10 ++ get_operator_pod +++ kubectl_bin get pods --selector=name=postgres-operator -o 'jsonpath={.items[].metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.EF3dQnFGNe ++++ mktemp +++ local LAST_ERR=/tmp/tmp.4z0gQ4KiyK +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-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.EF3dQnFGNe +++ cat /tmp/tmp.4z0gQ4KiyK +++ rm /tmp/tmp.EF3dQnFGNe /tmp/tmp.4z0gQ4KiyK +++ return 0 ++ echo postgres-operator-7bc87dfd55-tvdqr + kill_pod postgres-operator-7bc87dfd55-tvdqr + local pod=postgres-operator-7bc87dfd55-tvdqr + cat /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/conf/chaos-pod-kill.yml + yq w - metadata.name chaos-cluster-pod-kill-6981 + yq w - 'spec.selector.pods.operator-self-healing-21031[0]' postgres-operator-7bc87dfd55-tvdqr + yq w - metadata.namespace operator-self-healing-21031 + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.NRPHtsIU9Y ++ mktemp + local LAST_ERR=/tmp/tmp.V6EQsXU5Fl + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.NRPHtsIU9Y podchaos.chaos-mesh.org/chaos-cluster-pod-kill-6981 created + cat /tmp/tmp.V6EQsXU5Fl + rm /tmp/tmp.NRPHtsIU9Y /tmp/tmp.V6EQsXU5Fl + return 0 + sleep 5 + wait_deployment postgres-operator + local name=postgres-operator + local target_namespace=operator-self-healing-21031 + sleep 10 + set +o xtrace postgres-operator. + kubectl_bin patch perconapgcluster/some-name-9499 --type json -p '[{"op":"replace","path":"/spec/pgReplicas/hotStandby/size","value":0}]' ++ mktemp + local LAST_OUT=/tmp/tmp.kBOZdHo5WT ++ mktemp + local LAST_ERR=/tmp/tmp.k0nT0bklrm + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl patch perconapgcluster/some-name-9499 --type json -p '[{"op":"replace","path":"/spec/pgReplicas/hotStandby/size","value":0}]' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.kBOZdHo5WT perconapgcluster.pg.percona.com/some-name-9499 patched + cat /tmp/tmp.k0nT0bklrm + rm /tmp/tmp.kBOZdHo5WT /tmp/tmp.k0nT0bklrm + return 0 + wait_deployments_removal some-name-9499-replica 0 + local name=some-name-9499-replica + local target_size=0 + set +o xtrace .....++ get_operator_pod +++ kubectl_bin get pods --selector=name=postgres-operator -o 'jsonpath={.items[].metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.7781MHs6ZH ++++ mktemp +++ local LAST_ERR=/tmp/tmp.ZT02LWpK8O +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-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.7781MHs6ZH +++ cat /tmp/tmp.ZT02LWpK8O +++ rm /tmp/tmp.7781MHs6ZH /tmp/tmp.ZT02LWpK8O +++ return 0 ++ echo postgres-operator-7bc87dfd55-9gn9t + failure_pod postgres-operator-7bc87dfd55-9gn9t + local pod=postgres-operator-7bc87dfd55-9gn9t + cat /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/conf/chaos-pod-failure.yml + yq w - metadata.name chaos-cluster-pod-failure-8693 + kubectl_bin apply -f - + yq w - 'spec.selector.pods.operator-self-healing-21031[0]' postgres-operator-7bc87dfd55-9gn9t + yq w - metadata.namespace operator-self-healing-21031 ++ mktemp + local LAST_OUT=/tmp/tmp.fViQziwiUB ++ mktemp + local LAST_ERR=/tmp/tmp.TUzPN5Wo3l + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.fViQziwiUB podchaos.chaos-mesh.org/chaos-cluster-pod-failure-8693 created + cat /tmp/tmp.TUzPN5Wo3l + rm /tmp/tmp.fViQziwiUB /tmp/tmp.TUzPN5Wo3l + return 0 + sleep 10 + wait_deployment postgres-operator + local name=postgres-operator + local target_namespace=operator-self-healing-21031 + sleep 10 + set +o xtrace postgres-operator........... + kubectl_bin patch perconapgcluster/some-name-9499 --type json -p '[{"op":"replace","path":"/spec/pgReplicas/hotStandby/size","value":2}]' ++ mktemp + local LAST_OUT=/tmp/tmp.TIzdr7xwvy ++ mktemp + local LAST_ERR=/tmp/tmp.uhsPTjLpWx + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl patch perconapgcluster/some-name-9499 --type json -p '[{"op":"replace","path":"/spec/pgReplicas/hotStandby/size","value":2}]' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.TIzdr7xwvy perconapgcluster.pg.percona.com/some-name-9499 patched + cat /tmp/tmp.uhsPTjLpWx + rm /tmp/tmp.TIzdr7xwvy /tmp/tmp.uhsPTjLpWx + return 0 + wait_deployments_removal some-name-9499-replica 2 + local name=some-name-9499-replica + local target_size=2 + set +o xtrace .++ get_operator_pod +++ kubectl_bin get pods --selector=name=postgres-operator -o 'jsonpath={.items[].metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.XoSNQd8RxV ++++ mktemp +++ local LAST_ERR=/tmp/tmp.OKT37vBEyl +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-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.XoSNQd8RxV +++ cat /tmp/tmp.OKT37vBEyl +++ rm /tmp/tmp.XoSNQd8RxV /tmp/tmp.OKT37vBEyl +++ return 0 ++ echo postgres-operator-7bc87dfd55-9gn9t + network_loss postgres-operator-7bc87dfd55-9gn9t + local pod=postgres-operator-7bc87dfd55-9gn9t + yq w - metadata.name chaos-cluster-network-loss-10101 + yq w - metadata.namespace operator-self-healing-21031 + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-pg-operator_PR-721/e2e-tests/conf/chaos-network-loss.yml ++ mktemp + local LAST_OUT=/tmp/tmp.KnO46sxr4s ++ mktemp + yq w - 'spec.selector.pods.operator-self-healing-21031[0]' postgres-operator-7bc87dfd55-9gn9t + local LAST_ERR=/tmp/tmp.Id0Ws1x9hb + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.KnO46sxr4s networkchaos.chaos-mesh.org/chaos-cluster-network-loss-10101 created + cat /tmp/tmp.Id0Ws1x9hb + rm /tmp/tmp.KnO46sxr4s /tmp/tmp.Id0Ws1x9hb + return 0 + wait_deployment postgres-operator + local name=postgres-operator + local target_namespace=operator-self-healing-21031 + sleep 10 + set +o xtrace postgres-operator + kubectl_bin patch perconapgcluster/some-name-9499 --type json -p '[{"op":"replace","path":"/spec/pgReplicas/hotStandby/size","value":0}]' ++ mktemp + local LAST_OUT=/tmp/tmp.gxx6Zl4avr ++ mktemp + local LAST_ERR=/tmp/tmp.MpkeyxOZ2u + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl patch perconapgcluster/some-name-9499 --type json -p '[{"op":"replace","path":"/spec/pgReplicas/hotStandby/size","value":0}]' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.gxx6Zl4avr perconapgcluster.pg.percona.com/some-name-9499 patched + cat /tmp/tmp.MpkeyxOZ2u + rm /tmp/tmp.gxx6Zl4avr /tmp/tmp.MpkeyxOZ2u + return 0 + wait_deployments_removal some-name-9499-replica 0 + local name=some-name-9499-replica + local target_size=0 + set +o xtrace ......................................+ kubectl delete NetworkChaos --all networkchaos.chaos-mesh.org "chaos-cluster-network-loss-10101" deleted + kubectl delete PodChaos --all podchaos.chaos-mesh.org "chaos-cluster-pod-failure-8693" deleted podchaos.chaos-mesh.org "chaos-cluster-pod-kill-6981" deleted + sleep 5 + destroy_chaos_mesh operator-self-healing-21031 + local chaos_mesh_ns=operator-self-healing-21031 + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + helm del chaos-mesh --namespace operator-self-healing-21031 release "chaos-mesh" uninstalled + destroy operator-self-healing-21031 + grep -v level=info + grep -v level=debug + grep -v 'Getting tasks for pod' + grep -v 'the object has been modified' + tee /tmp/tmp.2ULeK4x3t5/operator.log + grep -v 'Getting pods from source' + /usr/bin/sed -r 's/"ts":[0-9.]+//; s^limits-[0-9.]+/^^g' + sort -u + grep -v 'get backup status: Job.batch' ++ get_operator_pod +++ kubectl_bin get pods --selector=name=postgres-operator -o 'jsonpath={.items[].metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.dW5qiDB5v7 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.aqGHIg04wd +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-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.dW5qiDB5v7 +++ cat /tmp/tmp.aqGHIg04wd +++ rm /tmp/tmp.dW5qiDB5v7 /tmp/tmp.aqGHIg04wd +++ return 0 ++ echo postgres-operator-7bc87dfd55-9gn9t + kubectl_bin logs postgres-operator-7bc87dfd55-9gn9t -c operator ++ mktemp + local LAST_OUT=/tmp/tmp.HvBcVuDtQE ++ mktemp + local LAST_ERR=/tmp/tmp.fY4C9hLd9v + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl logs postgres-operator-7bc87dfd55-9gn9t -c operator + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.HvBcVuDtQE + cat /tmp/tmp.fY4C9hLd9v + rm /tmp/tmp.HvBcVuDtQE /tmp/tmp.fY4C9hLd9v + return 0 ] { } }, ] } }, { } }, ] { } }, { } ] } { } }, ] ] { } }, }, { { } }, ] ], { } }, }, { }, { }], ], } { } }, } ], } }, } }, } { } }, }, 2024/04/23 17:05:16 INF 1 (localhost:4150) connecting to nsqd 2024/04/23 17:05:16 INF 2 (localhost:4150) connecting to nsqd 2024/04/23 17:05:35 ERR 1 (localhost:4150) IO error - EOF 2024/04/23 17:05:35 ERR 2 (localhost:4150) IO error - EOF 2024/04/23 17:05:35 INF 1 exiting router 2024/04/23 17:05:35 INF 1 (localhost:4150) beginning close 2024/04/23 17:05:35 INF 1 (localhost:4150) breaking out of writeLoop 2024/04/23 17:05:35 INF 1 (localhost:4150) clean close complete 2024/04/23 17:05:35 INF 1 (localhost:4150) finished draining, cleanup exiting 2024/04/23 17:05:35 INF 1 (localhost:4150) readLoop exiting 2024/04/23 17:05:35 INF 1 (localhost:4150) writeLoop exiting 2024/04/23 17:05:35 INF 2 exiting router 2024/04/23 17:05:35 INF 2 (localhost:4150) beginning close 2024/04/23 17:05:35 INF 2 (localhost:4150) breaking out of writeLoop 2024/04/23 17:05:35 INF 2 (localhost:4150) clean close complete 2024/04/23 17:05:35 INF 2 (localhost:4150) finished draining, cleanup exiting 2024/04/23 17:05:35 INF 2 (localhost:4150) readLoop exiting 2024/04/23 17:05:35 INF 2 (localhost:4150) writeLoop exiting 2024/04/23 17:06:21 INF 3 (localhost:4150) connecting to nsqd 2024/04/23 17:06:22 INF 4 (localhost:4150) connecting to nsqd 2024/04/23 17:06:27 INF 5 (localhost:4150) connecting to nsqd "accessModes": [ "affinity": { "allowPrivilegeEscalation": false, "annotations": {"keep-backups":"false","keep-data":"false"}, "apiVersion": "apps/v1", "apiVersion": "v1", "apiVersion": "v1", "command": [ "configMap": { "containerName": "database", "containerPort": 5432, "containerPort": 8009, "containers": [ "cpu": "500m", "crunchydata" "defaultMode": 288, "defaultMode": 420, "deployment-name": "some-name-9499-repl1" "deployment-name": "some-name-9499-repl2" "deployment-name": "some-name-9499-repl2","pgo-version": "1.6.0","name": "some-name-9499-replica","pg-cluster": "some-name-9499" "divisor": "1m", "dnsPolicy": "ClusterFirst" "downwardAPI": { "emptyDir": { "emptyDir": { "env": [{ "exec": { "fieldPath": "metadata.annotations" "fieldPath": "metadata.labels" "fieldPath": "metadata.labels['crunchy-pgha-scope']" "fieldPath": "metadata.namespace" "fieldRef": { "fieldRef": { I0423 17:05:03.595619 1 shared_informer.go:240] Waiting for caches to sync for namespace I0423 17:05:03.695933 1 shared_informer.go:247] Caches are synced for namespace I0423 17:05:03.819803 1 shared_informer.go:240] Waiting for caches to sync for operator-self-healing-21031 I0423 17:05:03.920486 1 shared_informer.go:247] Caches are synced for operator-self-healing-21031 I0423 17:06:21.644199 1 trace.go:205] Trace[798676980]: "Reflector ListAndWatch" name:pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/reflector.go:167 (23-Apr-2024 17:06:07.967) (total time: 13676ms): I0423 17:06:21.654935 1 trace.go:205] Trace[21858772]: "Reflector ListAndWatch" name:pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/reflector.go:167 (23-Apr-2024 17:06:07.492) (total time: 14162ms): I0423 17:06:21.655670 1 trace.go:205] Trace[403173912]: "Reflector ListAndWatch" name:pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/reflector.go:167 (23-Apr-2024 17:06:07.419) (total time: 14236ms): I0423 17:06:21.656639 1 trace.go:205] Trace[1079341111]: "Reflector ListAndWatch" name:pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/reflector.go:167 (23-Apr-2024 17:06:07.605) (total time: 14051ms): I0423 17:06:21.660519 1 trace.go:205] Trace[17048866]: "Reflector ListAndWatch" name:pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/reflector.go:167 (23-Apr-2024 17:06:07.280) (total time: 14380ms): I0423 17:06:21.669786 1 trace.go:205] Trace[1739278968]: "Reflector ListAndWatch" name:pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/reflector.go:167 (23-Apr-2024 17:06:07.640) (total time: 14029ms): I0423 17:06:21.673090 1 trace.go:205] Trace[326361286]: "Reflector ListAndWatch" name:pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/reflector.go:167 (23-Apr-2024 17:06:07.595) (total time: 14077ms): I0423 17:06:21.675645 1 trace.go:205] Trace[558454553]: "Reflector ListAndWatch" name:pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/reflector.go:167 (23-Apr-2024 17:06:07.475) (total time: 14199ms): "image": "perconalab/percona-postgresql-operator:main-ppg14-postgres-ha", "imagePullPolicy": "IfNotPresent" "initialDelaySeconds": 15 "initialDelaySeconds": 30, "items": [ "items": [ "key": "config", "key": "pg-cluster", "key": "pgo-pg-database", "key": "pg-pod-anti-affinity", "key": "tls.crt", "key": "tls.key", "key": "vendor", "kind": "Deployment", "kind": "PersistentVolumeClaim", "labels": { "labels": { "labelSelector": { "livenessProbe": { "matchExpressions": [ "matchLabels": { "maxSurge": 1 "maxUnavailable": 1, "medium": "Memory", "medium": "Memory" "medium": "Memory", "memory": "256Mi" "metadata": { "metadata": { "mountPath": "/dev/shm", "mountPath": "/etc/pgbackrest/conf.d", "mountPath": "/etc/podinfo", "mountPath": "/etc/ssh", "mountPath": "/pgconf", "mountPath": "/pgconf/pgreplicator", "mountPath": "/pgconf/pgsuper", "mountPath": "/pgconf/pguser", "mountPath": "/pgconf/tls", "mountPath": "/pgconf/tls-replication", "mountPath": "/pgdata", "mountPath": "/sshd", "mountPath": "/tmp", "name": "BACKREST_SKIP_CREATE_STANZA", "name": "cluster1-replication-ssl-keypair", "name": "cluster1-ssl-ca" "name": "cluster1-ssl-keypair" "name": "database", "name": "dshm" "name": "dshm", "name": "ENABLE_SSHD", "name": "LD_PRELOAD", "name": "MODE", "name": "NSS_WRAPPER_GROUP", "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-config" "name": "pgbackrest-config", "name": "PGBACKREST_DB_PATH", "name": "PGBACKREST_LOG_PATH", "name": "PGBACKREST_PG1_PORT", "name": "PGBACKREST_PG1_SOCKET_PATH", "name": "PGBACKREST_REPO1_HOST", "name": "PGBACKREST_REPO1_PATH", "name": "PGBACKREST_REPO1_TYPE", "name": "PGBACKREST_STANZA", "name": "pgconf-volume" "name": "pgconf-volume", "name": "pgdata", "name": "pgdata", "name": "PGHA_DATABASE", "name": "PGHA_PASSWORD_TYPE", "name": "PGHA_PGBACKREST", "name": "PGHA_PGBACKREST_LOCAL_GCS_STORAGE", "name": "PGHA_PGBACKREST_LOCAL_S3_STORAGE", "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": "podinfo" "name": "podinfo", "name": "postgres" "name": "primary-volume" "name": "primary-volume", "name": "report", "name": "root-volume" "name": "root-volume", "name": "some-name-9499-pgha-config", "name": "some-name-9499-repl1", "name": "some-name-9499-repl1", "name": "some-name-9499-repl2", "name": "some-name-9499-repl2", "name": "some-name-9499-replica","pg-cluster": "some-name-9499","deployment-name": "some-name-9499-repl1","pgo-version": "1.6.0" "name": "some-name-9499-replica","pg-cluster": "some-name-9499","deployment-name": "some-name-9499-repl2","pgo-version": "1.6.0" "name": "ssh-config", "name": "ssh-config", "name": "sshd", "name": "sshd", "name": "tls-replication" "name": "tls-replication", "name": "tls-server" "name": "tls-server", "name": "tmp" "name": "tmp", "name": "user-volume" "name": "user-volume", "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": "tls-replication.crt" "path": "tls-replication.key" "periodSeconds": 15, "persistentVolumeClaim":{"claimName":"some-name-9499-repl1"} "persistentVolumeClaim":{"claimName":"some-name-9499-repl2"} "pg-cluster": "some-name-9499" "pg-cluster": "some-name-9499", "pgo-pg-database": "true", "pgo-pg-database": "true", "pgo-version": "1.6.0","name": "some-name-9499-replica","pg-cluster": "some-name-9499","deployment-name": "some-name-9499-repl1" "pg-pod-anti-affinity": "preferred", "podAffinityTerm": { "podAntiAffinity": { "podAntiAffinity": { "ports": [{ "preferredDuringSchedulingIgnoredDuringExecution": [ "privileged": false, "projected": { "projected": { "projected": { "sources": [] } "protocol": "TCP", "readinessProbe": { "readOnly": false "readOnlyRootFilesystem": true "readOnly": true "readOnly": true "ReadWriteOnce" "replicas": 1, "requests": { "requests": { "resourceFieldRef": { "resource": "limits.cpu" "resource": "limits.memory" "resource": "requests.cpu" "resource": "requests.memory" "resources": { "resources": { "restartPolicy": "Always", "rollingUpdate": { "secret": { "secret": { "secretName": "some-name-9499-backrest-repo-config" "secretName": "some-name-9499-backrest-repo-config", "secretName": "some-name-9499-postgres-secret" "secretName": "some-name-9499-primaryuser-secret" "secretName": "some-name-9499-some-name-secret" "securityContext": { "securityContext": {"fsGroup": 26,"supplementalGroups": [1001]}, "selector": { "serviceAccountName": "pgo-pg", "sizeLimit": "16Mi" "sizeLimit": "2Mi" "sizeLimit": "64Mi" "some-name-9499" "sources": [ "sources": [ "spec": { "spec": { "storage": "1Gi" "strategy": { "template": { time="2024-04-23T17:05:03Z" level=warning msg="PGAdminStorage setting not set, will use PrimaryStorage setting" func="github.com/percona/percona-postgresql-operator/internal/config.(*PgoConfig).Validate()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/config/pgoconfig.go:337" version=1.6.0 time="2024-04-23T17:05:05Z" level=error msg="create pgcluster resource: create pgcluster resource: pgclusters.pg.percona.com \"some-name-9499\" already exists" func="github.com/percona/percona-postgresql-operator/percona/controllers/pgc.(*Controller).onAdd()" file="/go/src/github.com/percona/percona-postgresql-operator/percona/controllers/pgc/pgc.go:174" version=1.6.0 time="2024-04-23T17:05:16Z" level=warning msg="crv1 pgreplica some-name-9499-repl2 is already marked complete, will not recreate" func="github.com/percona/percona-postgresql-operator/internal/operator/cluster.ScaleBase()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/cluster/cluster.go:535" version=1.6.0 time="2024-04-23T17:05:17Z" level=warning msg="crv1 pgreplica some-name-9499-repl1 is already marked complete, will not recreate" func="github.com/percona/percona-postgresql-operator/internal/operator/cluster.ScaleBase()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/cluster/cluster.go:535" version=1.6.0 time="2024-04-23T17:06:06Z" level=error msg="Get \"https://10.155.32.1:443/apis/apps/v1/namespaces/operator-self-healing-21031/deployments?labelSelector=pg-cluster%3Dsome-name-9499%2Cpgo-pg-database\": http2: client connection lost" func="github.com/percona/percona-postgresql-operator/internal/controller/configmap.(*Controller).createPGHAConfigs()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/controller/configmap/synchandler.go:90" version=1.6.0 time="2024-04-23T17:06:06Z" level=error msg="Get \"https://10.155.32.1:443/apis/pg.percona.com/v1/namespaces/operator-self-healing-21031/pgclusters/some-name-9499\": http2: client connection lost" func="github.com/percona/percona-postgresql-operator/internal/controller/pod.(*Controller).onUpdate()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/controller/pod/podcontroller.go:103" version=1.6.0 time="2024-04-23T17:06:06Z" level=error msg="operator is unable to reconcile RBAC resource: Get \"https://10.155.32.1:443/api/v1/namespaces/operator-self-healing-21031/serviceaccounts/postgres-operator\": http2: client connection lost" func="github.com/percona/percona-postgresql-operator/internal/controller/manager.(*ControllerManager).reconcileRBAC()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/controller/manager/rbac.go:51" version=1.6.0 time="2024-04-23T17:06:06Z" level=error msg="update perconapgcluster: update pgcluster: update pgPrimary deployment: wait deployment: get deployment: Get \"https://10.155.32.1:443/apis/apps/v1/namespaces/operator-self-healing-21031/deployments/some-name-9499\": http2: client connection lost" func="github.com/percona/percona-postgresql-operator/percona/controllers/pgc.(*Controller).onUpdate()" file="/go/src/github.com/percona/percona-postgresql-operator/percona/controllers/pgc/pgc.go:542" version=1.6.0 time="2024-04-23T17:06:21Z" level=warning msg="crv1 pgreplica some-name-9499-repl1 is already marked complete, will not recreate" func="github.com/percona/percona-postgresql-operator/internal/operator/cluster.ScaleBase()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/cluster/cluster.go:535" version=1.6.0 time="2024-04-23T17:06:21Z" level=warning msg="crv1 pgreplica some-name-9499-repl2 is already marked complete, will not recreate" func="github.com/percona/percona-postgresql-operator/internal/operator/cluster.ScaleBase()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/cluster/cluster.go:535" version=1.6.0 "timeoutSeconds": 10 "topologyKey": "kubernetes.io/hostname" Trace[1079341111]: [14.051148754s] [14.051148754s] END Trace[1079341111]: ---"Objects listed" error: 14051ms (17:06:21.656) Trace[17048866]: [14.380208004s] [14.380208004s] END Trace[17048866]: ---"Objects listed" error: 14380ms (17:06:21.660) Trace[1739278968]: [14.029085655s] [14.029085655s] END Trace[1739278968]: ---"Objects listed" error: 14029ms (17:06:21.669) Trace[21858772]: [14.162829032s] [14.162829032s] END Trace[21858772]: ---"Objects listed" error: 14162ms (17:06:21.654) Trace[326361286]: [14.077780406s] [14.077780406s] END Trace[326361286]: ---"Objects listed" error: 14077ms (17:06:21.673) Trace[403173912]: [14.236030015s] [14.236030015s] END Trace[403173912]: ---"Objects listed" error: 14236ms (17:06:21.655) Trace[558454553]: [14.199764911s] [14.199764911s] END Trace[558454553]: ---"Objects listed" error: 14199ms (17:06:21.675) Trace[798676980]: [13.676677933s] [13.676677933s] END Trace[798676980]: ---"Objects listed" error: 13676ms (17:06:21.644) "type": "RollingUpdate", "value": "" "value": "5432" "value": "5432" "value": "/backrestrepo/some-name-9499-backrest-shared-repo" "value": "crunchy-pgha-scope" "value": "db" "value": "false" "value": "false" "valueFrom": { "value": "INFO" "value": "/pgdata/some-name-9499-repl1" "value": "/pgdata/some-name-9499-repl1" "value": "/pgdata/some-name-9499-repl2" "value": "/pgdata/some-name-9499-repl2" "value": "posix" "value": "postgres" "values": [ "value": "some-name-9499" "value": "some-name-9499-backrest-shared-repo" "value": "/tmp" "value": "/tmp" "value": "/tmp/nss_wrapper/postgres/group" "value": "/tmp/nss_wrapper/postgres/passwd" "value": "true" "value": "true" "value": "/usr/lib64/libnss_wrapper.so" "value": "{vendor: \"crunchydata\"}" "vendor": "crunchydata", "vendor": "crunchydata", "volumeMounts": [{ "volumes": [{ W0423 17:06:06.474745 1 reflector.go:442] pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/reflector.go:167: watch of *v1.Pgcluster ended with: an error on the server ("unable to decode an event from the watch stream: http2: client connection lost") has prevented the request from succeeding W0423 17:06:06.474830 1 reflector.go:442] pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/reflector.go:167: watch of *v1.PerconaPGCluster ended with: an error on the server ("unable to decode an event from the watch stream: http2: client connection lost") has prevented the request from succeeding W0423 17:06:06.474873 1 reflector.go:442] pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/reflector.go:167: watch of *v1.Pgtask ended with: an error on the server ("unable to decode an event from the watch stream: http2: client connection lost") has prevented the request from succeeding W0423 17:06:06.474890 1 reflector.go:442] pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/reflector.go:167: watch of *v1.Pgpolicy ended with: an error on the server ("unable to decode an event from the watch stream: http2: client connection lost") has prevented the request from succeeding W0423 17:06:06.474906 1 reflector.go:442] pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/reflector.go:167: watch of *v1.ConfigMap ended with: an error on the server ("unable to decode an event from the watch stream: http2: client connection lost") has prevented the request from succeeding W0423 17:06:06.474940 1 reflector.go:442] pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/reflector.go:167: watch of *v1.Pod ended with: an error on the server ("unable to decode an event from the watch stream: http2: client connection lost") has prevented the request from succeeding W0423 17:06:06.474971 1 reflector.go:442] pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/reflector.go:167: watch of *v1.Pgreplica ended with: an error on the server ("unable to decode an event from the watch stream: http2: client connection lost") has prevented the request from succeeding W0423 17:06:06.474997 1 reflector.go:442] pkg/mod/k8s.io/client-go@v0.23.0/tools/cache/reflector.go:167: watch of *v1.Job ended with: an error on the server ("unable to decode an event from the watch stream: http2: client connection lost") has prevented the request from succeeding "weight": 1, + destroy_operator + kubectl_bin delete -f /tmp/tmp.2ULeK4x3t5/operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.uGkw7JyP6c ++ mktemp + local LAST_ERR=/tmp/tmp.7QLFtoyhOE + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl delete -f /tmp/tmp.2ULeK4x3t5/operator.yaml + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl delete -f /tmp/tmp.2ULeK4x3t5/operator.yaml + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl delete -f /tmp/tmp.2ULeK4x3t5/operator.yaml + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.uGkw7JyP6c + cat /tmp/tmp.7QLFtoyhOE Error from server (NotFound): error when deleting "/tmp/tmp.2ULeK4x3t5/operator.yaml": serviceaccounts "pgo-deployer-sa" not found Error from server (NotFound): error when deleting "/tmp/tmp.2ULeK4x3t5/operator.yaml": clusterroles.rbac.authorization.k8s.io "pgo-deployer-cr" not found Error from server (NotFound): error when deleting "/tmp/tmp.2ULeK4x3t5/operator.yaml": configmaps "pgo-deployer-cm" not found Error from server (NotFound): error when deleting "/tmp/tmp.2ULeK4x3t5/operator.yaml": clusterrolebindings.rbac.authorization.k8s.io "pgo-deployer-crb" not found Error from server (NotFound): error when deleting "/tmp/tmp.2ULeK4x3t5/operator.yaml": jobs.batch "pgo-deploy" not found + rm /tmp/tmp.uGkw7JyP6c /tmp/tmp.7QLFtoyhOE + return 1 + true + yq w -d4 /tmp/tmp.2ULeK4x3t5/operator.yaml 'spec.template.spec.containers[0].env[0].value' uninstall + kubectl_bin apply -f /tmp/tmp.2ULeK4x3t5/operator-destroy.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.hKIvn753JI ++ mktemp + local LAST_ERR=/tmp/tmp.POG5exdd6x + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl apply -f /tmp/tmp.2ULeK4x3t5/operator-destroy.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.hKIvn753JI 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.POG5exdd6x + rm /tmp/tmp.hKIvn753JI /tmp/tmp.POG5exdd6x + return 0 + wait_job_completion pgo-deploy true + local job=pgo-deploy + local mandatory=true + local ns=operator-self-healing-21031 + retry=0 + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' pgo-deploy+ retry=0 ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 3 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 4 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 5 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 6 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 7 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 8 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 9 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 10 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 11 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 12 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 13 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 14 -ge 600 ']' ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n operator-self-healing-21031 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + kubectl_bin delete -f /tmp/tmp.2ULeK4x3t5/operator-destroy.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.pmCiJ6qdaj ++ mktemp + local LAST_ERR=/tmp/tmp.nhLgB7hzz5 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl delete -f /tmp/tmp.2ULeK4x3t5/operator-destroy.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.pmCiJ6qdaj 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.nhLgB7hzz5 + rm /tmp/tmp.pmCiJ6qdaj /tmp/tmp.nhLgB7hzz5 + return 0 + egrep -v '^kube-|^default|Terminating|openshift|^NAME' + awk '{print$1}' + kubectl_bin get ns + xargs kubectl delete ns --grace-period=0 --force=true ++ mktemp + local LAST_OUT=/tmp/tmp.uVb5rivSys ++ mktemp + local LAST_ERR=/tmp/tmp.Yo4Mc5G0lb + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-sandbox + kubectl get ns + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.uVb5rivSys + cat /tmp/tmp.Yo4Mc5G0lb + rm /tmp/tmp.uVb5rivSys /tmp/tmp.Yo4Mc5G0lb + 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 "operator-self-healing-21031" force deleted + kubectl_bin delete clusterrolebindings pgo-cluster-role pgo-deployer-cr ++ mktemp + local LAST_OUT=/tmp/tmp.pfI18SGC6h ++ mktemp + local LAST_ERR=/tmp/tmp.ipWKlaofgc + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-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-721-a67b3475b-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-721-a67b3475b-2-sandbox + kubectl delete clusterrolebindings pgo-cluster-role pgo-deployer-cr + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.pfI18SGC6h + cat /tmp/tmp.ipWKlaofgc 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.pfI18SGC6h /tmp/tmp.ipWKlaofgc + return 1 + true + kubectl_bin delete clusterroles pgo-cluster-role pgo-deployer-cr ++ mktemp + local LAST_OUT=/tmp/tmp.cgMy6WwgqM ++ mktemp + local LAST_ERR=/tmp/tmp.GbHJP8S6rH + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-721-a67b3475b-2-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-721-a67b3475b-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-721-a67b3475b-2-sandbox + kubectl delete clusterroles pgo-cluster-role pgo-deployer-cr + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.cgMy6WwgqM + cat /tmp/tmp.GbHJP8S6rH 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.cgMy6WwgqM /tmp/tmp.GbHJP8S6rH + return 1 + true + rm -rf /tmp/tmp.2ULeK4x3t5