++ echo 'Log: /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/logs/init-deploy.log' Log: /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/logs/init-deploy.log ++ '[' -f /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/cloud-secret.yml ']' ++ SKIP_BACKUPS_TO_AWS_GCP= ++ oc get projects error: the server doesn't have a resource type "projects" +++ kubectl version -o json +++ jq -r .serverVersion.gitVersion +++ grep '\-eks\-' WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1 ++ '[' ']' +++ kubectl version -o json +++ jq -r '.serverVersion.major + "." + .serverVersion.minor' +++ /usr/bin/sed -r 's/[^0-9.]+//g' WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1 ++ KUBE_VERSION=1.26 +++ helm version -c +++ /usr/bin/sed -re 's/.*SemVer:"([^"]+)".*/\1/; s/.*\bVersion:"([^"]+)".*/\1/' ++ HELM_VERSION=v3.15.1 ++ '[' v3 == v2 ']' + create_namespace init-deploy-17804 + local namespace=init-deploy-17804 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + kubectl_bin get ns + egrep -v '^kube-|^default|Terminating|openshift|^NAME' + cleanup_rbac + awk '{print$1}' + xargs kubectl delete ns + kubectl_bin delete clusterrolebindings pgo-cluster-role pgo-deployer-cr chaos-mesh-chaos-controller-manager-cluster-level ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.GtkvSufBu3 + local LAST_OUT=/tmp/tmp.WnJK2kxB4v ++ mktemp ++ mktemp + local LAST_ERR=/tmp/tmp.OmPW7T7r3f + local LAST_ERR=/tmp/tmp.iQ9kzmWvtq + local exit_status=0 + local exit_status=0 + local timeout=4 + local timeout=4 + set +o errexit + set +o errexit ++ seq 0 2 ++ seq 0 2 + for i in '$(seq 0 2)' + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl get ns + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-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.WnJK2kxB4v + cat /tmp/tmp.iQ9kzmWvtq E0527 16:46:56.823318 24039 memcache.go:287] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:46:56.935682 24039 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:46:57.043269 24039 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:46:57.150755 24039 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request + rm /tmp/tmp.WnJK2kxB4v /tmp/tmp.iQ9kzmWvtq + return 0 + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete clusterrolebindings pgo-cluster-role pgo-deployer-cr chaos-mesh-chaos-controller-manager-cluster-level E0527 16:46:57.841292 24076 memcache.go:287] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:46:58.052890 24076 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:46:58.161060 24076 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:46:58.282198 24076 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request error: resource(s) were provided, but no name was specified + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-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.GtkvSufBu3 + cat /tmp/tmp.OmPW7T7r3f E0527 16:47:03.638679 24178 memcache.go:287] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:47:03.804863 24178 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:47:03.981577 24178 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:47:04.138482 24178 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request 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.GtkvSufBu3 /tmp/tmp.OmPW7T7r3f + 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.YyS9g7coTe ++ mktemp + local LAST_ERR=/tmp/tmp.zJDF5c3bnN + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete clusterroles pgo-cluster-role pgo-deployer-cr chaos-mesh-chaos-controller-manager-target-namespace chaos-mesh-chaos-controller-manager-cluster-level + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete clusterroles pgo-cluster-role pgo-deployer-cr chaos-mesh-chaos-controller-manager-target-namespace chaos-mesh-chaos-controller-manager-cluster-level + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-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.YyS9g7coTe + cat /tmp/tmp.zJDF5c3bnN E0527 16:47:20.161423 24444 memcache.go:287] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:47:20.476092 24444 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:47:20.584644 24444 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:47:20.691647 24444 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request 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.YyS9g7coTe /tmp/tmp.zJDF5c3bnN + return 1 + true + kubectl delete MutatingWebhookConfiguration/chaos-mesh-mutation ValidatingWebhookConfiguration/chaos-mesh-validation ValidatingWebhookConfiguration/validate-auth E0527 16:47:29.726566 24582 memcache.go:287] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:47:29.945517 24582 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:47:30.051287 24582 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:47:30.157922 24582 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request Error from server (NotFound): mutatingwebhookconfigurations.admissionregistration.k8s.io "chaos-mesh-mutation" not found Error from server (NotFound): validatingwebhookconfigurations.admissionregistration.k8s.io "chaos-mesh-validation" not found Error from server (NotFound): validatingwebhookconfigurations.admissionregistration.k8s.io "validate-auth" not found + true + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + kubectl_bin delete namespace init-deploy-17804 ++ mktemp + local LAST_OUT=/tmp/tmp.zst7BAgVXI ++ mktemp + local LAST_ERR=/tmp/tmp.CxShGSFKSm + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete namespace init-deploy-17804 + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete namespace init-deploy-17804 + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete namespace init-deploy-17804 + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.zst7BAgVXI + cat /tmp/tmp.CxShGSFKSm E0527 16:47:37.510037 24705 memcache.go:287] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:47:37.621657 24705 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:47:37.729139 24705 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request E0527 16:47:37.836474 24705 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request Error from server (NotFound): namespaces "init-deploy-17804" not found + rm /tmp/tmp.zst7BAgVXI /tmp/tmp.CxShGSFKSm + return 1 + : + wait_for_delete namespace/init-deploy-17804 + local res=namespace/init-deploy-17804 + set +o xtrace namespace/init-deploy-17804 - Error from server (NotFound): namespaces "init-deploy-17804" not found + kubectl_bin create namespace init-deploy-17804 ++ mktemp + local LAST_OUT=/tmp/tmp.2VknXseYfL ++ mktemp + local LAST_ERR=/tmp/tmp.B5dpIP2zYt + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl create namespace init-deploy-17804 + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.2VknXseYfL namespace/init-deploy-17804 created + cat /tmp/tmp.B5dpIP2zYt + rm /tmp/tmp.2VknXseYfL /tmp/tmp.B5dpIP2zYt + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.MeLW9YmpYD +++ mktemp ++ local LAST_ERR=/tmp/tmp.PpLIPBj2YI ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl config current-context ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.MeLW9YmpYD ++ cat /tmp/tmp.PpLIPBj2YI ++ rm /tmp/tmp.MeLW9YmpYD /tmp/tmp.PpLIPBj2YI ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-c_jen-pg-776-0087ef129-5-sandbox --namespace=init-deploy-17804 ++ mktemp + local LAST_OUT=/tmp/tmp.qANHQjG9AF ++ mktemp + local LAST_ERR=/tmp/tmp.pzcRoWqcGU + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl config set-context gke_cloud-dev-112233_us-central1-c_jen-pg-776-0087ef129-5-sandbox --namespace=init-deploy-17804 + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.qANHQjG9AF Context "gke_cloud-dev-112233_us-central1-c_jen-pg-776-0087ef129-5-sandbox" modified. + cat /tmp/tmp.pzcRoWqcGU + rm /tmp/tmp.qANHQjG9AF /tmp/tmp.pzcRoWqcGU + return 0 + deploy_operator + local pull_secret_name= + local operator_manifest=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/operator.yaml + local namespace_mode=disabled + local action=install + local namespace=init-deploy-17804 + local dont_send_telemetry=false + local version_service_uri_override= + desc 'start operator' + set +o xtrace ----------------------------------------------------------------------------------- start operator ----------------------------------------------------------------------------------- + prepare_operator_yaml '' /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/operator.yaml disabled install init-deploy-17804 false + local pull_secret_name= + local operator_manifest=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/operator.yaml + local namespace_mode=disabled + local operator_action=install + local namespace=init-deploy-17804 + local dont_send_telemetry=false + yq r -d2 /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/operator.yaml 'data[values.yaml]' + /usr/bin/sed -e 's#^namespace: .*#namespace: "init-deploy-17804"#g' + /usr/bin/sed -e 's#pgo_operator_namespace: .*#pgo_operator_namespace: "init-deploy-17804"#g' + /usr/bin/sed -e 's#^disable_telemetry: .*#disable_telemetry: "false"#g' + cat /dev/fd/63 - + /usr/bin/sed -e 's#namespace_mode: .*#namespace_mode: "disabled"#g' ++ echo perconalab/percona-postgresql-operator:PR-776-0087ef129 ++ cut -d: -f2 ++ echo perconalab/percona-postgresql-operator:PR-776-0087ef129 ++ cut -d: -f1 ++ echo 'crunchy_debug: "true"' + /usr/bin/sed -e 's#pgo_image_tag: .*#pgo_image_tag: "PR-776-0087ef129"#g' + /usr/bin/sed -e 's#pgo_image_prefix: .*#pgo_image_prefix: "perconalab/percona-postgresql-operator"#g' + [[ -n '' ]] + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + yq w '-d*' /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/operator.yaml metadata.namespace init-deploy-17804 + yq w -d4 - 'spec.template.spec.containers[0].image' perconalab/percona-postgresql-operator:PR-776-0087ef129-pgo-deployer + yq w -d4 - 'spec.template.spec.containers[0].env[0].value' install + yq w -d3 - 'subjects[0].namespace' init-deploy-17804 ++ cat /tmp/tmp.ddEhLHSorE/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: "init-deploy-17804" namespace_mode: "disabled" pgo_image_prefix: "perconalab/percona-postgresql-operator" pgo_image_pull_policy: "Always" pgo_image_pull_secret: "" pgo_image_pull_secret_manifest: "" pgo_image_tag: "PR-776-0087ef129" pgo_operator_namespace: "init-deploy-17804"' + [[ -n '' ]] + kubectl_bin apply -f /tmp/tmp.ddEhLHSorE/operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.pM3lnmYZjw ++ mktemp + local LAST_ERR=/tmp/tmp.eovZRC4Pji + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl apply -f /tmp/tmp.ddEhLHSorE/operator.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.pM3lnmYZjw 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.eovZRC4Pji + rm /tmp/tmp.pM3lnmYZjw /tmp/tmp.eovZRC4Pji + return 0 + wait_job_completion pgo-deploy true + local job=pgo-deploy + local mandatory=true + local ns=init-deploy-17804 + retry=0 + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' pgo-deploy+ retry=0 ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 3 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 4 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 5 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 6 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 7 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 8 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 9 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 10 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 11 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 12 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 13 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 14 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 15 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 16 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 17 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 18 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 19 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 20 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 21 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 22 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 23 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 24 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 25 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 26 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 27 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 28 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 29 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 30 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 31 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 32 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 33 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 34 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 35 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 36 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 37 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 38 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 39 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 40 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 41 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 42 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 43 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 44 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 45 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 46 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 47 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 48 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + kubectl_bin delete -f /tmp/tmp.ddEhLHSorE/operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.hrJyycdd6x ++ mktemp + local LAST_ERR=/tmp/tmp.XLqxA8YwdE + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete -f /tmp/tmp.ddEhLHSorE/operator.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.hrJyycdd6x 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.XLqxA8YwdE + rm /tmp/tmp.hrJyycdd6x /tmp/tmp.XLqxA8YwdE + return 0 ++ get_operator_pod ++ kubectl_bin get pods --selector=name=postgres-operator -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.VQ4QtQoVPa +++ mktemp ++ local LAST_ERR=/tmp/tmp.Ucc2fMlk3T ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-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.VQ4QtQoVPa ++ cat /tmp/tmp.Ucc2fMlk3T ++ rm /tmp/tmp.VQ4QtQoVPa /tmp/tmp.Ucc2fMlk3T ++ return 0 + wait_pod postgres-operator-6c8df49b6-dt7tq + local pod=postgres-operator-6c8df49b6-dt7tq + local ns= + set +o xtrace postgres-operator-6c8df49b6-dt7tqtrue + [[ -n '' ]] + deploy_helm init-deploy-17804 + helm repo remove hashicorp Error: no repositories configured + : + helm repo add hashicorp https://helm.releases.hashicorp.com "hashicorp" has been added to your repositories + helm repo remove percona Error: no repo named "percona" found + : + helm repo add percona https://percona-charts.storage.googleapis.com/ "percona" has been added to your repositories + helm repo update Hang tight while we grab the latest from your chart repositories... ...Successfully got an update from the "hashicorp" chart repository ...Successfully got an update from the "percona" chart repository Update Complete. ⎈Happy Helming!⎈ + cluster=some-name + desc 'install PMM Server' + set +o xtrace ----------------------------------------------------------------------------------- install PMM Server ----------------------------------------------------------------------------------- + platform=kubernetes + helm del --purge monitoring Error: unknown flag: --purge + : + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + helm install monitoring --set imageTag=dev-latest --set imageRepo=perconalab/pmm-server --set platform=kubernetes https://percona-charts.storage.googleapis.com/pmm-server-9.9.9.tgz NAME: monitoring LAST DEPLOYED: Mon May 27 16:49:33 2024 NAMESPACE: init-deploy-17804 STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: PMM server can be accessed via HTTPS (port 443) on the following DNS name from within your cluster: endpoint: https://monitoring-service.init-deploy-17804.svc.cluster.local:443 login: admin password: admin + desc 'create first PG cluster' + set +o xtrace ----------------------------------------------------------------------------------- create first PG cluster ----------------------------------------------------------------------------------- + spinup_pgcluster some-name /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/conf/cr.yaml + local cluster=some-name + local config=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/conf/cr.yaml + local backup=false + local custom_config=false + local podAntiAffinity=false + local schedule=false + local schedule_type=false + local tls_only=false + local pgoClientFile=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/client.yml + local namespace=init-deploy-17804 + local root_via_pgbouncer= + desc 'create fresh PG cluster' + set +o xtrace ----------------------------------------------------------------------------------- create fresh PG cluster ----------------------------------------------------------------------------------- + create_user_secrets some-name init-deploy-17804 + local cluster=some-name + local namespace=init-deploy-17804 + yq w - metadata.name some-name-users-secret + yq w - stringData.some-name some-name_pass + kubectl_bin -n init-deploy-17804 apply -f - + yq r -d0 /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/users-secret.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.lGwMrI77X7 ++ mktemp + local LAST_ERR=/tmp/tmp.jB8dy95z6W + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.lGwMrI77X7 secret/some-name-users-secret created + cat /tmp/tmp.jB8dy95z6W + rm /tmp/tmp.lGwMrI77X7 /tmp/tmp.jB8dy95z6W + return 0 + yq r -d1 /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/users-secret.yaml + kubectl_bin -n init-deploy-17804 apply -f - + yq w - metadata.name some-name-pmm-secret ++ mktemp + local LAST_OUT=/tmp/tmp.PpttvU2aL2 ++ mktemp + local LAST_ERR=/tmp/tmp.rzI7eFAuyn + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.PpttvU2aL2 secret/some-name-pmm-secret created + cat /tmp/tmp.rzI7eFAuyn + rm /tmp/tmp.PpttvU2aL2 /tmp/tmp.rzI7eFAuyn + return 0 + kubectl_bin -n init-deploy-17804 apply -f /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/client.yml ++ mktemp + local LAST_OUT=/tmp/tmp.Q9bmK3STF5 ++ mktemp + local LAST_ERR=/tmp/tmp.fOjWuT2Atn + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 apply -f /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/client.yml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.Q9bmK3STF5 deployment.apps/pg-client created + cat /tmp/tmp.fOjWuT2Atn + rm /tmp/tmp.Q9bmK3STF5 /tmp/tmp.fOjWuT2Atn + return 0 + apply_cluster /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/conf/cr.yaml some-name false false false false false false false false + local path=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/conf/cr.yaml + local name=some-name + local backup=false + local restore_from=false + local restore_opts=false + local custom_config=false + local podAntiAffinity=false + local schedule=false + local schedule_type=false + local tls_only=false + local root_via_pgbouncer= + yq w /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/conf/cr.yaml metadata.annotations.current-primary some-name + yq w - metadata.labels.crunchy-pgha-scope some-name + yq w - metadata.labels.name some-name + yq w - spec.database some-name + yq w - metadata.name some-name + yq w - spec.clustername some-name + yq w - spec.pmm.image perconalab/pmm-client:2.41.2 + yq w - metadata.labels.pg-cluster some-name + yq w - spec.pgBouncer.image perconalab/percona-postgresql-operator:main-ppg14-pgbouncer + yq w - spec.name some-name + yq w - spec.pgBadger.image perconalab/percona-postgresql-operator:main-ppg14-pgbadger + yq w - spec.keepData false + yq w - spec.user some-name + yq w - metadata.labels.deployment-name some-name + yq w - spec.backup.backrestRepoImage perconalab/percona-postgresql-operator:main-ppg14-pgbackrest-repo + yq w - spec.secretsName some-name-users-secret + yq w - spec.pgPrimary.image perconalab/percona-postgresql-operator:main-ppg14-postgres-ha + yq w - spec.backup.image perconalab/percona-postgresql-operator:main-ppg14-pgbackrest + yq w - spec.keepBackups false + 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.ddEhLHSorE/cr.yaml -n init-deploy-17804 ++ mktemp + local LAST_OUT=/tmp/tmp.BpJjKjb33I ++ mktemp + local LAST_ERR=/tmp/tmp.vMI61Qar75 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl apply -f /tmp/tmp.ddEhLHSorE/cr.yaml -n init-deploy-17804 + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.BpJjKjb33I perconapgcluster.pg.percona.com/some-name created + cat /tmp/tmp.vMI61Qar75 + rm /tmp/tmp.BpJjKjb33I /tmp/tmp.vMI61Qar75 + return 0 + wait_deployment some-name-backrest-shared-repo + local name=some-name-backrest-shared-repo + local target_namespace=init-deploy-17804 + sleep 10 + set +o xtrace some-name-backrest-shared-repo...... + wait_deployment some-name + local name=some-name + local target_namespace=init-deploy-17804 + sleep 10 + set +o xtrace some-name..................... + [[ false == \g\c\s\+* ]] + wait_job_completion some-name-stanza-create false + local job=some-name-stanza-create + local mandatory=false + local ns=init-deploy-17804 + retry=0 + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' some-name-stanza-create+ retry=0 ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 3 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ not found == \n\o\t\ \f\o\u\n\d ]] + echo + wait_job_completion backrest-backup-some-name + local job=backrest-backup-some-name + local mandatory=true + local ns=init-deploy-17804 + retry=0 + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' backrest-backup-some-name+ retry=0 ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + wait_cluster_consistency some-name + cluster_name=some-name + wait_cluster_status some-name 'pgcluster Initialized' + local cluster_name=some-name + local 'target_status=pgcluster Initialized' + local target_namespace=init-deploy-17804 + local status_query= + case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in ++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.HLR5qiIyke +++ mktemp ++ local LAST_ERR=/tmp/tmp.ei3VtMvhO7 ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.HLR5qiIyke ++ cat /tmp/tmp.ei3VtMvhO7 ++ rm /tmp/tmp.HLR5qiIyke /tmp/tmp.ei3VtMvhO7 ++ return 0 + status_query='kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o jsonpath='\''{.status.PGCluster.state}'\''' + local retry=0 ++ eval kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath='\''{.status.PGCluster.state}'\''' +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.status.PGCluster.state}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.hFZ7MK7sJj ++++ mktemp +++ local LAST_ERR=/tmp/tmp.MelMManqwl +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.status.PGCluster.state}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.hFZ7MK7sJj +++ cat /tmp/tmp.MelMManqwl +++ rm /tmp/tmp.hFZ7MK7sJj /tmp/tmp.MelMManqwl +++ 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 init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath='\''{.status.PGCluster.state}'\''' +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.status.PGCluster.state}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.j4BtrrroUR ++++ mktemp +++ local LAST_ERR=/tmp/tmp.pn7chTEY6e +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.status.PGCluster.state}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.j4BtrrroUR +++ cat /tmp/tmp.pn7chTEY6e +++ rm /tmp/tmp.j4BtrrroUR /tmp/tmp.pn7chTEY6e +++ return 0 + [[ pgcluster Initialized == \p\g\c\l\u\s\t\e\r\ \I\n\i\t\i\a\l\i\z\e\d ]] + sleep 10 + desc 'write data' + set +o xtrace ----------------------------------------------------------------------------------- write data ----------------------------------------------------------------------------------- ++ get_psql_user_pass postgres some-name ++ local user=postgres ++ local cluster=some-name ++ local namespace=init-deploy-17804 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.FO5l29U0N2 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.BhIFlhoZNn +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.FO5l29U0N2 +++ cat /tmp/tmp.BhIFlhoZNn +++ rm /tmp/tmp.FO5l29U0N2 /tmp/tmp.BhIFlhoZNn +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.aAJaFSzWo3 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.FlnLMTF8fC +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.aAJaFSzWo3 +++ cat /tmp/tmp.FlnLMTF8fC +++ rm /tmp/tmp.aAJaFSzWo3 /tmp/tmp.FlnLMTF8fC +++ return 0 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.diw26sCWOc ++++ mktemp +++ local LAST_ERR=/tmp/tmp.B7nTeAFdx5 +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.diw26sCWOc +++ cat /tmp/tmp.B7nTeAFdx5 +++ rm /tmp/tmp.diw26sCWOc /tmp/tmp.B7nTeAFdx5 +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.yHlvUPuE2R +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.5NfLDqheGi ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.yHlvUPuE2R ++++ cat /tmp/tmp.5NfLDqheGi ++++ rm /tmp/tmp.yHlvUPuE2R /tmp/tmp.5NfLDqheGi ++++ return 0 +++ kubectl_bin -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.8VHobiRUEV ++++ mktemp +++ local LAST_ERR=/tmp/tmp.J3UNYSGutT +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.8VHobiRUEV +++ cat /tmp/tmp.J3UNYSGutT +++ rm /tmp/tmp.8VHobiRUEV /tmp/tmp.J3UNYSGutT +++ 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.init-deploy-17804 + local 'command=CREATE DATABASE myapp; \c myapp \\\ CREATE TABLE IF NOT EXISTS myApp (id int PRIMARY KEY);' + local uri=postgres:postgres_password@some-name.init-deploy-17804 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.QJ4VfPctf6 +++ mktemp ++ local LAST_ERR=/tmp/tmp.KDndgKgXx3 ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.QJ4VfPctf6 ++ cat /tmp/tmp.KDndgKgXx3 ++ rm /tmp/tmp.QJ4VfPctf6 /tmp/tmp.KDndgKgXx3 ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + kubectl_bin exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.3HrqE5wIIi ++ mktemp + local LAST_ERR=/tmp/tmp.bothcPO2Gy + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.3HrqE5wIIi + cat /tmp/tmp.bothcPO2Gy + rm /tmp/tmp.3HrqE5wIIi /tmp/tmp.bothcPO2Gy + return 0 ++ get_psql_user_pass postgres some-name ++ local user=postgres ++ local cluster=some-name ++ local namespace=init-deploy-17804 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.r2Gi3nFpTb ++++ mktemp +++ local LAST_ERR=/tmp/tmp.mbZXrE8tEo +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.r2Gi3nFpTb +++ cat /tmp/tmp.mbZXrE8tEo +++ rm /tmp/tmp.r2Gi3nFpTb /tmp/tmp.mbZXrE8tEo +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.K38tL029Ex ++++ mktemp +++ local LAST_ERR=/tmp/tmp.kstFFW4pHj +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.K38tL029Ex +++ cat /tmp/tmp.kstFFW4pHj +++ rm /tmp/tmp.K38tL029Ex /tmp/tmp.kstFFW4pHj +++ return 0 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.H7zThX5NWO ++++ mktemp +++ local LAST_ERR=/tmp/tmp.W0CvDG1kMB +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.H7zThX5NWO +++ cat /tmp/tmp.W0CvDG1kMB +++ rm /tmp/tmp.H7zThX5NWO /tmp/tmp.W0CvDG1kMB +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.Wl3sGc87Q5 +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.gadSZZ5lmD ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.Wl3sGc87Q5 ++++ cat /tmp/tmp.gadSZZ5lmD ++++ rm /tmp/tmp.Wl3sGc87Q5 /tmp/tmp.gadSZZ5lmD ++++ return 0 +++ kubectl_bin -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.zWRMNHgGNJ ++++ mktemp +++ local LAST_ERR=/tmp/tmp.zd3mNPbsAF +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.zWRMNHgGNJ +++ cat /tmp/tmp.zd3mNPbsAF +++ rm /tmp/tmp.zWRMNHgGNJ /tmp/tmp.zd3mNPbsAF +++ return 0 ++ echo postgres_password + run_psql '\c myapp \\\ INSERT INTO myApp (id) VALUES (100500)' postgres:postgres_password@some-name.init-deploy-17804 + local 'command=\c myapp \\\ INSERT INTO myApp (id) VALUES (100500)' + local uri=postgres:postgres_password@some-name.init-deploy-17804 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.hd33zzlXp8 +++ mktemp ++ local LAST_ERR=/tmp/tmp.RL6GGfumty ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.hd33zzlXp8 ++ cat /tmp/tmp.RL6GGfumty ++ rm /tmp/tmp.hd33zzlXp8 /tmp/tmp.RL6GGfumty ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + kubectl_bin exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.dzeCMOnaPk ++ mktemp + local LAST_ERR=/tmp/tmp.r0wuIww0fb + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.dzeCMOnaPk + cat /tmp/tmp.r0wuIww0fb + rm /tmp/tmp.dzeCMOnaPk /tmp/tmp.r0wuIww0fb + return 0 ++ get_psql_user_pass postgres some-name ++ local user=postgres ++ local cluster=some-name ++ local namespace=init-deploy-17804 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.zz7dp43Tva ++++ mktemp +++ local LAST_ERR=/tmp/tmp.iZBaZeTf1c +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.zz7dp43Tva +++ cat /tmp/tmp.iZBaZeTf1c +++ rm /tmp/tmp.zz7dp43Tva /tmp/tmp.iZBaZeTf1c +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.KFnAby0gDo ++++ mktemp +++ local LAST_ERR=/tmp/tmp.UmXfTAqVG9 +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.KFnAby0gDo +++ cat /tmp/tmp.UmXfTAqVG9 +++ rm /tmp/tmp.KFnAby0gDo /tmp/tmp.UmXfTAqVG9 +++ return 0 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.WGWvlBDTT8 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.b2Nx2CCDbj +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.WGWvlBDTT8 +++ cat /tmp/tmp.b2Nx2CCDbj +++ rm /tmp/tmp.WGWvlBDTT8 /tmp/tmp.b2Nx2CCDbj +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.ILkzOmX217 +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.kM9Yc9R0RQ ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.ILkzOmX217 ++++ cat /tmp/tmp.kM9Yc9R0RQ ++++ rm /tmp/tmp.ILkzOmX217 /tmp/tmp.kM9Yc9R0RQ ++++ return 0 +++ kubectl_bin -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.5cOjOOrMPD ++++ mktemp +++ local LAST_ERR=/tmp/tmp.7n3kwJ2Vpp +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.5cOjOOrMPD +++ cat /tmp/tmp.7n3kwJ2Vpp +++ rm /tmp/tmp.5cOjOOrMPD /tmp/tmp.7n3kwJ2Vpp +++ 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.init-deploy-17804 + 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.init-deploy-17804 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.3a6w3LDbeR +++ mktemp ++ local LAST_ERR=/tmp/tmp.inTphxki8x ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.3a6w3LDbeR ++ cat /tmp/tmp.inTphxki8x ++ rm /tmp/tmp.3a6w3LDbeR /tmp/tmp.inTphxki8x ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + kubectl_bin exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.1z7mNoDUNR ++ mktemp + local LAST_ERR=/tmp/tmp.HS6pIcNGx1 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.1z7mNoDUNR + cat /tmp/tmp.HS6pIcNGx1 + rm /tmp/tmp.1z7mNoDUNR /tmp/tmp.HS6pIcNGx1 + return 0 + sleep 10 + compare_kubectl deployment/some-name always + local resource=deployment/some-name + local postfix=always + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/deployment_some-namealways.yml + local new_result=/tmp/tmp.ddEhLHSorE/deployment_some-name.yml + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + kubectl_bin get -o yaml deployment/some-name + yq d - '**.creationTimestamp' ++ mktemp + yq d - '**.uid' + yq d - metadata.resourceVersion + yq d - '**.namespace' + yq d - 'metadata.annotations."k8s.v1.cni.cncf.io*"' + local LAST_OUT=/tmp/tmp.eZdIWvXaBa + yq d - metadata.selfLink + yq d - 'metadata.annotations."kubernetes.io/psp"' + yq d - 'metadata.annotations."batch.kubernetes.io/job-tracking"' + yq d - '**."batch.kubernetes.io/controller-uid"' ++ mktemp + yq d - 'spec.template.metadata.labels."batch.kubernetes.io/job-name"' + yq d - metadata.deletionTimestamp + yq d - '**.image' + yq d - 'metadata.annotations."cloud.google.com/neg"' + yq d - '**.clusterIP' + yq d - '**.creationTimestamp' + yq d - '**.procMount' + yq d - '**."kubernetes.io/pvc-protection"' + yq d - '**.(name==PODNAME)' + yq d - '**."percona.com/*"' + local LAST_ERR=/tmp/tmp.OMgi7aMl2d + local exit_status=0 + local timeout=4 + set +o errexit + yq d - '**.(name==suffix)' + yq d - '**.volumeName' + yq d - 'spec.volumeClaimTemplates.*.apiVersion' + yq d - '**.imagePullSecrets' + yq d - '**.(name==NAMESPACE)' + yq d - '**."volume.beta.kubernetes.io/storage-provisioner"' + yq d - 'spec.volumeClaimTemplates.*.kind' + yq d - '**.(volumeMode==Filesystem).volumeMode' + yq d - '**.ipFamilyPolicy' + yq d - '**.controller-uid' + yq d - '**.internalTrafficPolicy' + yq d - '**.nodePort' + yq d - '**.enableServiceLinks' + yq d - '**.healthCheckNodePort' + yq d - '**.allocateLoadBalancerNodePorts' + yq d - status + yq d - spec.nodeName ++ seq 0 2 + yq d - '**.clusterIPs' + yq d - '**.(name==COMMAND_OPTS)' + yq d - spec.podReplacementPolicy + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl get -o yaml deployment/some-name + yq d - spec.manualSelector + yq d - '**."volume.kubernetes.io/selected-node"' + yq d - 'metadata.ownerReferences.*.apiVersion' + yq d - '**.preemptionPolicy' + yq d - '**.ipFamilies' + yq d - '**.dataSource' + yq d - spec.volumeMode + yq d - '**.storageClassName' + yq d - '**.finalizers' + yq d - '**."volume.kubernetes.io/storage-provisioner"' + yq d - metadata.managedFields + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.eZdIWvXaBa + cat /tmp/tmp.OMgi7aMl2d + rm /tmp/tmp.eZdIWvXaBa /tmp/tmp.OMgi7aMl2d + return 0 + case $(yq r ${new_result} 'kind') in ++ yq r /tmp/tmp.ddEhLHSorE/deployment_some-name.yml kind + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/deployment_some-namealways.yml /tmp/tmp.ddEhLHSorE/deployment_some-name.yml + kubectl_bin patch perconapgcluster/some-name --type json -p '[ {"op":"replace","path":"/spec/backup/imagePullPolicy","value":"IfNotPresent"}, {"op":"replace","path":"/spec/pgBadger/imagePullPolicy","value":"IfNotPresent"}, {"op":"replace","path":"/spec/pgBouncer/imagePullPolicy","value":"IfNotPresent"}, {"op":"replace","path":"/spec/pgPrimary/imagePullPolicy","value":"IfNotPresent"}, {"op":"replace","path":"/spec/pmm/imagePullPolicy","value":"IfNotPresent"} ]' ++ mktemp + local LAST_OUT=/tmp/tmp.0PPc8vWhJu ++ mktemp + local LAST_ERR=/tmp/tmp.3AUnEuUL20 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl patch perconapgcluster/some-name --type json -p '[ {"op":"replace","path":"/spec/backup/imagePullPolicy","value":"IfNotPresent"}, {"op":"replace","path":"/spec/pgBadger/imagePullPolicy","value":"IfNotPresent"}, {"op":"replace","path":"/spec/pgBouncer/imagePullPolicy","value":"IfNotPresent"}, {"op":"replace","path":"/spec/pgPrimary/imagePullPolicy","value":"IfNotPresent"}, {"op":"replace","path":"/spec/pmm/imagePullPolicy","value":"IfNotPresent"} ]' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.0PPc8vWhJu perconapgcluster.pg.percona.com/some-name patched + cat /tmp/tmp.3AUnEuUL20 + rm /tmp/tmp.0PPc8vWhJu /tmp/tmp.3AUnEuUL20 + return 0 + sleep 240 + wait_cluster_consistency some-name + cluster_name=some-name + wait_cluster_status some-name 'pgcluster Initialized' + local cluster_name=some-name + local 'target_status=pgcluster Initialized' + local target_namespace=init-deploy-17804 + local status_query= + case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in ++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Ra5GCsXPxD +++ mktemp ++ local LAST_ERR=/tmp/tmp.ImQ1O0EPKu ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.Ra5GCsXPxD ++ cat /tmp/tmp.ImQ1O0EPKu ++ rm /tmp/tmp.Ra5GCsXPxD /tmp/tmp.ImQ1O0EPKu ++ return 0 + status_query='kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o jsonpath='\''{.status.PGCluster.state}'\''' + local retry=0 ++ eval kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath='\''{.status.PGCluster.state}'\''' +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.status.PGCluster.state}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.H5PLwv8ija ++++ mktemp +++ local LAST_ERR=/tmp/tmp.cSBGFfqEWT +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.status.PGCluster.state}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.H5PLwv8ija +++ cat /tmp/tmp.cSBGFfqEWT +++ rm /tmp/tmp.H5PLwv8ija /tmp/tmp.cSBGFfqEWT +++ return 0 + [[ pgcluster Initialized == \p\g\c\l\u\s\t\e\r\ \I\n\i\t\i\a\l\i\z\e\d ]] + compare_kubectl deployment/some-name notpresent + local resource=deployment/some-name + local postfix=notpresent + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/deployment_some-namenotpresent.yml + local new_result=/tmp/tmp.ddEhLHSorE/deployment_some-name.yml + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + yq d - metadata.managedFields + yq d - '**.creationTimestamp' + kubectl_bin get -o yaml deployment/some-name + yq d - '**.namespace' ++ mktemp + yq d - 'metadata.annotations."k8s.v1.cni.cncf.io*"' + yq d - '**.uid' + yq d - '**.creationTimestamp' + local LAST_OUT=/tmp/tmp.Kt8Yw9wA9m + yq d - '**.clusterIPs' + yq d - '**.procMount' + yq d - '**.storageClassName' + yq d - '**.image' + yq d - '**.clusterIP' + yq d - '**.dataSource' + yq d - '**.finalizers' ++ mktemp + yq d - '**."kubernetes.io/pvc-protection"' + local LAST_ERR=/tmp/tmp.KwaGIIcG9z + local exit_status=0 + local timeout=4 + set +o errexit + yq d - '**.volumeName' + yq d - '**.nodePort' + yq d - '**."volume.beta.kubernetes.io/storage-provisioner"' + yq d - '**."volume.kubernetes.io/storage-provisioner"' + yq d - '**.(name==suffix)' + yq d - '**.controller-uid' + yq d - '**.internalTrafficPolicy' + yq d - '**.allocateLoadBalancerNodePorts' + yq d - spec.nodeName + yq d - '**.imagePullSecrets' + yq d - '**.ipFamilies' + yq d - spec.volumeMode + yq d - spec.podReplacementPolicy + yq d - 'metadata.ownerReferences.*.apiVersion' + yq d - '**."batch.kubernetes.io/controller-uid"' + yq d - spec.manualSelector + yq d - '**.ipFamilyPolicy' + yq d - 'spec.template.metadata.labels."batch.kubernetes.io/job-name"' + yq d - '**."volume.kubernetes.io/selected-node"' ++ seq 0 2 + yq d - '**."percona.com/*"' + yq d - 'spec.volumeClaimTemplates.*.apiVersion' + yq d - '**.healthCheckNodePort' + yq d - '**.(name==NAMESPACE)' + yq d - status + yq d - '**.(name==PODNAME)' + yq d - '**.preemptionPolicy' + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl get -o yaml deployment/some-name + yq d - '**.(name==COMMAND_OPTS)' + yq d - '**.(volumeMode==Filesystem).volumeMode' + yq d - 'spec.volumeClaimTemplates.*.kind' + yq d - '**.enableServiceLinks' + yq d - 'metadata.annotations."batch.kubernetes.io/job-tracking"' + yq d - 'metadata.annotations."cloud.google.com/neg"' + yq d - 'metadata.annotations."kubernetes.io/psp"' + yq d - metadata.deletionTimestamp + yq d - metadata.selfLink + yq d - metadata.resourceVersion + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.Kt8Yw9wA9m + cat /tmp/tmp.KwaGIIcG9z + rm /tmp/tmp.Kt8Yw9wA9m /tmp/tmp.KwaGIIcG9z + return 0 + case $(yq r ${new_result} 'kind') in ++ yq r /tmp/tmp.ddEhLHSorE/deployment_some-name.yml kind + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/deployment_some-namenotpresent.yml /tmp/tmp.ddEhLHSorE/deployment_some-name.yml + kubectl delete PerconaPGCluster --ignore-not-found --all perconapgcluster.pg.percona.com "some-name" deleted + wait_for_delete deployment/some-name + local res=deployment/some-name + set +o xtrace deployment/some-name - .....Error from server (NotFound): deployments.apps "some-name" not found + wait_for_delete deployment/some-name-backrest-shared-repo + local res=deployment/some-name-backrest-shared-repo + set +o xtrace deployment/some-name-backrest-shared-repo - Error from server (NotFound): deployments.apps "some-name-backrest-shared-repo" not found + desc 'create second PG cluster' + set +o xtrace ----------------------------------------------------------------------------------- create second PG cluster ----------------------------------------------------------------------------------- + spinup_pgcluster some-name /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/cr.yaml + local cluster=some-name + local config=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/cr.yaml + local backup=false + local custom_config=false + local podAntiAffinity=false + local schedule=false + local schedule_type=false + local tls_only=false + local pgoClientFile=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/client.yml + local namespace=init-deploy-17804 + local root_via_pgbouncer= + desc 'create fresh PG cluster' + set +o xtrace ----------------------------------------------------------------------------------- create fresh PG cluster ----------------------------------------------------------------------------------- + create_user_secrets some-name init-deploy-17804 + local cluster=some-name + local namespace=init-deploy-17804 + yq w - metadata.name some-name-users-secret + yq w - stringData.some-name some-name_pass + yq r -d0 /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/users-secret.yaml + kubectl_bin -n init-deploy-17804 apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.RcK9erOAhH ++ mktemp + local LAST_ERR=/tmp/tmp.ZrsRkFanCk + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.RcK9erOAhH secret/some-name-users-secret created + cat /tmp/tmp.ZrsRkFanCk + rm /tmp/tmp.RcK9erOAhH /tmp/tmp.ZrsRkFanCk + return 0 + yq w - metadata.name some-name-pmm-secret + kubectl_bin -n init-deploy-17804 apply -f - + yq r -d1 /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/users-secret.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.rG8VBkigBk ++ mktemp + local LAST_ERR=/tmp/tmp.52BeFj5sSd + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.rG8VBkigBk secret/some-name-pmm-secret configured + cat /tmp/tmp.52BeFj5sSd + rm /tmp/tmp.rG8VBkigBk /tmp/tmp.52BeFj5sSd + return 0 + kubectl_bin -n init-deploy-17804 apply -f /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/client.yml ++ mktemp + local LAST_OUT=/tmp/tmp.H2ZJzs6sAE ++ mktemp + local LAST_ERR=/tmp/tmp.9S4Bx97SMX + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 apply -f /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/client.yml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.H2ZJzs6sAE deployment.apps/pg-client unchanged + cat /tmp/tmp.9S4Bx97SMX + rm /tmp/tmp.H2ZJzs6sAE /tmp/tmp.9S4Bx97SMX + return 0 + apply_cluster /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/cr.yaml some-name false false false false false false false false + local path=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/cr.yaml + local name=some-name + local backup=false + local restore_from=false + local restore_opts=false + local custom_config=false + local podAntiAffinity=false + local schedule=false + local schedule_type=false + local tls_only=false + local root_via_pgbouncer= + yq w /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/cr.yaml metadata.annotations.current-primary some-name + yq w - metadata.labels.deployment-name some-name + yq w - metadata.labels.name some-name + yq w - spec.name some-name + yq w - spec.database some-name + yq w - spec.keepData false + yq w - spec.keepBackups false + yq w - metadata.labels.pg-cluster some-name + yq w - spec.clustername some-name + yq w - spec.pgPrimary.image perconalab/percona-postgresql-operator:main-ppg14-postgres-ha + yq w - spec.secretsName some-name-users-secret + yq w - metadata.name some-name + yq w - spec.user some-name + yq w - spec.pgBouncer.image perconalab/percona-postgresql-operator:main-ppg14-pgbouncer + yq w - spec.backup.image perconalab/percona-postgresql-operator:main-ppg14-pgbackrest + yq w - spec.backup.backrestRepoImage perconalab/percona-postgresql-operator:main-ppg14-pgbackrest-repo + yq w - spec.pgBadger.image perconalab/percona-postgresql-operator:main-ppg14-pgbadger + yq w - metadata.labels.crunchy-pgha-scope some-name + yq w - spec.pmm.image perconalab/pmm-client:2.41.2 + case ${podAntiAffinity} in + case ${backup} in + [[ false != \f\a\l\s\e ]] + [[ false != \f\a\l\s\e ]] + [[ false == \t\r\u\e ]] + [[ '' == \t\r\u\e ]] + kubectl_bin apply -f /tmp/tmp.ddEhLHSorE/cr.yaml -n init-deploy-17804 ++ mktemp + local LAST_OUT=/tmp/tmp.WrkrTpevWg ++ mktemp + local LAST_ERR=/tmp/tmp.ekbZkiqix6 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl apply -f /tmp/tmp.ddEhLHSorE/cr.yaml -n init-deploy-17804 + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.WrkrTpevWg perconapgcluster.pg.percona.com/some-name created + cat /tmp/tmp.ekbZkiqix6 + rm /tmp/tmp.WrkrTpevWg /tmp/tmp.ekbZkiqix6 + return 0 + wait_deployment some-name-backrest-shared-repo + local name=some-name-backrest-shared-repo + local target_namespace=init-deploy-17804 + sleep 10 + set +o xtrace some-name-backrest-shared-repo... + wait_deployment some-name + local name=some-name + local target_namespace=init-deploy-17804 + sleep 10 + set +o xtrace some-name......... + [[ false == \g\c\s\+* ]] + wait_job_completion some-name-stanza-create false + local job=some-name-stanza-create + local mandatory=false + local ns=init-deploy-17804 + retry=0 + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' some-name-stanza-create+ retry=0 ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 3 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 4 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 5 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 6 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 7 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 8 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 9 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + wait_job_completion backrest-backup-some-name + local job=backrest-backup-some-name + local mandatory=true + local ns=init-deploy-17804 + retry=0 + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' + sleep 1 + echo -n . .+ let retry+=1 + [[ 1 -ge 120 ]] + [[ 1 -ge 120 ]] + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' backrest-backup-some-name+ retry=0 ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 3 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 4 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 5 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 6 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 7 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 8 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 9 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 10 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 11 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 12 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 13 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 14 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + wait_cluster_consistency some-name + cluster_name=some-name + wait_cluster_status some-name 'pgcluster Initialized' + local cluster_name=some-name + local 'target_status=pgcluster Initialized' + local target_namespace=init-deploy-17804 + local status_query= + case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in ++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.3RpfC6rdbr +++ mktemp ++ local LAST_ERR=/tmp/tmp.X1FHTHBDpL ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.3RpfC6rdbr ++ cat /tmp/tmp.X1FHTHBDpL ++ rm /tmp/tmp.3RpfC6rdbr /tmp/tmp.X1FHTHBDpL ++ return 0 + status_query='kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o jsonpath='\''{.status.PGCluster.state}'\''' + local retry=0 ++ eval kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath='\''{.status.PGCluster.state}'\''' +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.status.PGCluster.state}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.vJCvaOUI2F ++++ mktemp +++ local LAST_ERR=/tmp/tmp.5zALR1swOC +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.status.PGCluster.state}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.vJCvaOUI2F +++ cat /tmp/tmp.5zALR1swOC +++ rm /tmp/tmp.vJCvaOUI2F /tmp/tmp.5zALR1swOC +++ return 0 + [[ pgcluster Initialized == \p\g\c\l\u\s\t\e\r\ \I\n\i\t\i\a\l\i\z\e\d ]] + sleep 10 + desc 'write data' + set +o xtrace ----------------------------------------------------------------------------------- write data ----------------------------------------------------------------------------------- ++ get_psql_user_pass postgres some-name ++ local user=postgres ++ local cluster=some-name ++ local namespace=init-deploy-17804 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.JJte8rY4Ff ++++ mktemp +++ local LAST_ERR=/tmp/tmp.3q7i41W41p +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.JJte8rY4Ff +++ cat /tmp/tmp.3q7i41W41p +++ rm /tmp/tmp.JJte8rY4Ff /tmp/tmp.3q7i41W41p +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.Oc1VTwHGNO ++++ mktemp +++ local LAST_ERR=/tmp/tmp.itivkAjjYY +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.Oc1VTwHGNO +++ cat /tmp/tmp.itivkAjjYY +++ rm /tmp/tmp.Oc1VTwHGNO /tmp/tmp.itivkAjjYY +++ return 0 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.GApChTcr2a ++++ mktemp +++ local LAST_ERR=/tmp/tmp.J1BvV9PNCz +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.GApChTcr2a +++ cat /tmp/tmp.J1BvV9PNCz +++ rm /tmp/tmp.GApChTcr2a /tmp/tmp.J1BvV9PNCz +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.F9s93OW5z1 +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.HqbEPSRHIS ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.F9s93OW5z1 ++++ cat /tmp/tmp.HqbEPSRHIS ++++ rm /tmp/tmp.F9s93OW5z1 /tmp/tmp.HqbEPSRHIS ++++ return 0 +++ kubectl_bin -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.QYLazbvfjh ++++ mktemp +++ local LAST_ERR=/tmp/tmp.CPXLzFYrm1 +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.QYLazbvfjh +++ cat /tmp/tmp.CPXLzFYrm1 +++ rm /tmp/tmp.QYLazbvfjh /tmp/tmp.CPXLzFYrm1 +++ 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.init-deploy-17804 + local 'command=CREATE DATABASE myapp; \c myapp \\\ CREATE TABLE IF NOT EXISTS myApp (id int PRIMARY KEY);' + local uri=postgres:postgres_password@some-name.init-deploy-17804 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.TGirb63Kq9 +++ mktemp ++ local LAST_ERR=/tmp/tmp.bsJwnafgKJ ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.TGirb63Kq9 ++ cat /tmp/tmp.bsJwnafgKJ ++ rm /tmp/tmp.TGirb63Kq9 /tmp/tmp.bsJwnafgKJ ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + kubectl_bin exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.kmjRUfM6hp ++ mktemp + local LAST_ERR=/tmp/tmp.JDY97hYWS4 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.kmjRUfM6hp + cat /tmp/tmp.JDY97hYWS4 + rm /tmp/tmp.kmjRUfM6hp /tmp/tmp.JDY97hYWS4 + return 0 ++ get_psql_user_pass postgres some-name ++ local user=postgres ++ local cluster=some-name ++ local namespace=init-deploy-17804 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.PC7iWqqDDS ++++ mktemp +++ local LAST_ERR=/tmp/tmp.vMsYpsVIaM +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.PC7iWqqDDS +++ cat /tmp/tmp.vMsYpsVIaM +++ rm /tmp/tmp.PC7iWqqDDS /tmp/tmp.vMsYpsVIaM +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.aoGSlF8BiH ++++ mktemp +++ local LAST_ERR=/tmp/tmp.KWH1p3A9O2 +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.aoGSlF8BiH +++ cat /tmp/tmp.KWH1p3A9O2 +++ rm /tmp/tmp.aoGSlF8BiH /tmp/tmp.KWH1p3A9O2 +++ return 0 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.d5ycWugjjH ++++ mktemp +++ local LAST_ERR=/tmp/tmp.ATmSjOcUOa +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.d5ycWugjjH +++ cat /tmp/tmp.ATmSjOcUOa +++ rm /tmp/tmp.d5ycWugjjH /tmp/tmp.ATmSjOcUOa +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.jDzUzZ35LV +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.TC52yFRTCD ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.jDzUzZ35LV ++++ cat /tmp/tmp.TC52yFRTCD ++++ rm /tmp/tmp.jDzUzZ35LV /tmp/tmp.TC52yFRTCD ++++ return 0 +++ kubectl_bin -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.0kyRIwaH7G ++++ mktemp +++ local LAST_ERR=/tmp/tmp.MkbypgTi2M +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.0kyRIwaH7G +++ cat /tmp/tmp.MkbypgTi2M +++ rm /tmp/tmp.0kyRIwaH7G /tmp/tmp.MkbypgTi2M +++ return 0 ++ echo postgres_password + run_psql '\c myapp \\\ INSERT INTO myApp (id) VALUES (100500)' postgres:postgres_password@some-name.init-deploy-17804 + local 'command=\c myapp \\\ INSERT INTO myApp (id) VALUES (100500)' + local uri=postgres:postgres_password@some-name.init-deploy-17804 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.A9Zb2xOJ3k +++ mktemp ++ local LAST_ERR=/tmp/tmp.70UxlFtFFy ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.A9Zb2xOJ3k ++ cat /tmp/tmp.70UxlFtFFy ++ rm /tmp/tmp.A9Zb2xOJ3k /tmp/tmp.70UxlFtFFy ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + kubectl_bin exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.HCQc0BeTMZ ++ mktemp + local LAST_ERR=/tmp/tmp.shzlRbDiRr + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.HCQc0BeTMZ + cat /tmp/tmp.shzlRbDiRr + rm /tmp/tmp.HCQc0BeTMZ /tmp/tmp.shzlRbDiRr + return 0 ++ get_psql_user_pass postgres some-name ++ local user=postgres ++ local cluster=some-name ++ local namespace=init-deploy-17804 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.BUqVd1ARF8 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.1kzDD22qZg +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.BUqVd1ARF8 +++ cat /tmp/tmp.1kzDD22qZg +++ rm /tmp/tmp.BUqVd1ARF8 /tmp/tmp.1kzDD22qZg +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.rC4xHVPQbW ++++ mktemp +++ local LAST_ERR=/tmp/tmp.uX4wkNGYVa +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.rC4xHVPQbW +++ cat /tmp/tmp.uX4wkNGYVa +++ rm /tmp/tmp.rC4xHVPQbW /tmp/tmp.uX4wkNGYVa +++ return 0 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.cbJtagsbEM ++++ mktemp +++ local LAST_ERR=/tmp/tmp.mjRlNucaWJ +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.cbJtagsbEM +++ cat /tmp/tmp.mjRlNucaWJ +++ rm /tmp/tmp.cbJtagsbEM /tmp/tmp.mjRlNucaWJ +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.etbicZvuIG +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.LK3ROsqDXT ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.etbicZvuIG ++++ cat /tmp/tmp.LK3ROsqDXT ++++ rm /tmp/tmp.etbicZvuIG /tmp/tmp.LK3ROsqDXT ++++ return 0 +++ kubectl_bin -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.3LeGVokcXu ++++ mktemp +++ local LAST_ERR=/tmp/tmp.iEgSN85LrW +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.3LeGVokcXu +++ cat /tmp/tmp.iEgSN85LrW +++ rm /tmp/tmp.3LeGVokcXu /tmp/tmp.iEgSN85LrW +++ 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.init-deploy-17804 + 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.init-deploy-17804 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.hSOSOGcNpe +++ mktemp ++ local LAST_ERR=/tmp/tmp.ezxpepeqRg ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.hSOSOGcNpe ++ cat /tmp/tmp.ezxpepeqRg ++ rm /tmp/tmp.hSOSOGcNpe /tmp/tmp.ezxpepeqRg ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + kubectl_bin exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.nr22piX3Id ++ mktemp + local LAST_ERR=/tmp/tmp.nF9n5XBIat + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.nr22piX3Id + cat /tmp/tmp.nF9n5XBIat + rm /tmp/tmp.nr22piX3Id /tmp/tmp.nF9n5XBIat + return 0 + sleep 10 + compare_kubectl deployment/postgres-operator + local resource=deployment/postgres-operator + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/deployment_postgres-operator.yml + local new_result=/tmp/tmp.ddEhLHSorE/deployment_postgres-operator.yml + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + kubectl_bin get -o yaml deployment/postgres-operator + yq d - metadata.managedFields + yq d - '**.creationTimestamp' + yq d - '**.namespace' + yq d - 'metadata.annotations."k8s.v1.cni.cncf.io*"' + yq d - metadata.selfLink ++ mktemp + yq d - 'metadata.annotations."kubernetes.io/psp"' + yq d - '**."batch.kubernetes.io/controller-uid"' + yq d - '**.image' + local LAST_OUT=/tmp/tmp.upu5ag5JuN + yq d - 'metadata.annotations."batch.kubernetes.io/job-tracking"' + yq d - spec.volumeMode + yq d - spec.podReplacementPolicy + yq d - 'metadata.annotations."cloud.google.com/neg"' + yq d - 'spec.template.metadata.labels."batch.kubernetes.io/job-name"' ++ mktemp + yq d - '**.creationTimestamp' + yq d - spec.manualSelector + yq d - '**."volume.kubernetes.io/storage-provisioner"' + yq d - '**."volume.beta.kubernetes.io/storage-provisioner"' + yq d - '**.healthCheckNodePort' + yq d - '**."percona.com/*"' + yq d - spec.nodeName + yq d - '**."volume.kubernetes.io/selected-node"' + yq d - '**.(volumeMode==Filesystem).volumeMode' + local LAST_ERR=/tmp/tmp.ExW5cb35ao + yq d - '**.(name==PODNAME)' + local exit_status=0 + local timeout=4 + set +o errexit + yq d - 'spec.volumeClaimTemplates.*.kind' + yq d - '**.nodePort' + yq d - '**.imagePullSecrets' + yq d - '**.preemptionPolicy' + yq d - '**.ipFamilyPolicy' + yq d - '**."kubernetes.io/pvc-protection"' + yq d - '**.internalTrafficPolicy' + yq d - '**.enableServiceLinks' + yq d - '**.dataSource' + yq d - '**.procMount' + yq d - status + yq d - '**.storageClassName' + yq d - '**.(name==suffix)' + yq d - '**.(name==NAMESPACE)' + yq d - '**.finalizers' + yq d - 'spec.volumeClaimTemplates.*.apiVersion' + yq d - '**.ipFamilies' + yq d - '**.volumeName' + yq d - '**.(name==COMMAND_OPTS)' + yq d - 'metadata.ownerReferences.*.apiVersion' + yq d - '**.controller-uid' + yq d - '**.allocateLoadBalancerNodePorts' + yq d - '**.clusterIPs' + yq d - '**.clusterIP' ++ seq 0 2 + yq d - metadata.deletionTimestamp + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl get -o yaml deployment/postgres-operator + yq d - metadata.resourceVersion + yq d - '**.uid' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.upu5ag5JuN + cat /tmp/tmp.ExW5cb35ao + rm /tmp/tmp.upu5ag5JuN /tmp/tmp.ExW5cb35ao + return 0 + case $(yq r ${new_result} 'kind') in ++ yq r /tmp/tmp.ddEhLHSorE/deployment_postgres-operator.yml kind + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/deployment_postgres-operator.yml /tmp/tmp.ddEhLHSorE/deployment_postgres-operator.yml + compare_kubectl deployment/some-name + local resource=deployment/some-name + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/deployment_some-name.yml + local new_result=/tmp/tmp.ddEhLHSorE/deployment_some-name.yml + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + kubectl_bin get -o yaml deployment/some-name + yq d - metadata.managedFields + yq d - '**.namespace' + yq d - '**.uid' ++ mktemp + yq d - metadata.deletionTimestamp + yq d - 'metadata.annotations."k8s.v1.cni.cncf.io*"' + local LAST_OUT=/tmp/tmp.8hz7FdmcBW + yq d - 'metadata.annotations."batch.kubernetes.io/job-tracking"' ++ mktemp + yq d - 'metadata.annotations."kubernetes.io/psp"' + yq d - '**."batch.kubernetes.io/controller-uid"' + local LAST_ERR=/tmp/tmp.KmFAQsGevD + local exit_status=0 + local timeout=4 + set +o errexit + yq d - 'spec.template.metadata.labels."batch.kubernetes.io/job-name"' + yq d - '**.creationTimestamp' + yq d - '**.image' + yq d - 'metadata.annotations."cloud.google.com/neg"' + yq d - '**.clusterIP' ++ seq 0 2 + yq d - '**."kubernetes.io/pvc-protection"' + yq d - '**.clusterIPs' + yq d - metadata.selfLink + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl get -o yaml deployment/some-name + yq d - metadata.resourceVersion + yq d - '**.dataSource' + yq d - '**.procMount' + yq d - '**.volumeName' + yq d - '**."volume.beta.kubernetes.io/storage-provisioner"' + yq d - spec.volumeMode + yq d - '**."volume.kubernetes.io/selected-node"' + yq d - '**.storageClassName' + yq d - '**.finalizers' + yq d - '**."percona.com/*"' + yq d - spec.nodeName + yq d - '**."volume.kubernetes.io/storage-provisioner"' + yq d - status + yq d - spec.podReplacementPolicy + yq d - spec.manualSelector + yq d - '**.(name==COMMAND_OPTS)' + yq d - '**.(volumeMode==Filesystem).volumeMode' + yq d - '**.healthCheckNodePort' + yq d - '**.(name==PODNAME)' + yq d - '**.ipFamilies' + yq d - '**.allocateLoadBalancerNodePorts' + yq d - '**.creationTimestamp' + yq d - '**.nodePort' + yq d - '**.ipFamilyPolicy' + yq d - '**.internalTrafficPolicy' + yq d - '**.imagePullSecrets' + yq d - '**.enableServiceLinks' + yq d - '**.(name==suffix)' + yq d - '**.(name==NAMESPACE)' + yq d - 'spec.volumeClaimTemplates.*.apiVersion' + yq d - 'spec.volumeClaimTemplates.*.kind' + yq d - 'metadata.ownerReferences.*.apiVersion' + yq d - '**.controller-uid' + yq d - '**.preemptionPolicy' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.8hz7FdmcBW + cat /tmp/tmp.KmFAQsGevD + rm /tmp/tmp.8hz7FdmcBW /tmp/tmp.KmFAQsGevD + return 0 + case $(yq r ${new_result} 'kind') in ++ yq r /tmp/tmp.ddEhLHSorE/deployment_some-name.yml kind + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/deployment_some-name.yml /tmp/tmp.ddEhLHSorE/deployment_some-name.yml + compare_kubectl deployment/some-name-backrest-shared-repo + local resource=deployment/some-name-backrest-shared-repo + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/deployment_some-name-backrest-shared-repo.yml + local new_result=/tmp/tmp.ddEhLHSorE/deployment_some-name-backrest-shared-repo.yml + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + kubectl_bin get -o yaml deployment/some-name-backrest-shared-repo + yq d - metadata.managedFields + yq d - '**.creationTimestamp' + yq d - metadata.resourceVersion ++ mktemp + yq d - metadata.deletionTimestamp + yq d - 'metadata.annotations."k8s.v1.cni.cncf.io*"' + yq d - '**."batch.kubernetes.io/controller-uid"' + local LAST_OUT=/tmp/tmp.ZkjTHiJMYX + yq d - 'spec.template.metadata.labels."batch.kubernetes.io/job-name"' + yq d - '**.clusterIP' + yq d - '**.creationTimestamp' + yq d - '**.image' + yq d - 'metadata.annotations."batch.kubernetes.io/job-tracking"' + yq d - 'metadata.annotations."kubernetes.io/psp"' + yq d - 'metadata.annotations."cloud.google.com/neg"' + yq d - '**.dataSource' + yq d - '**.clusterIPs' + yq d - '**.finalizers' + yq d - '**.procMount' + yq d - metadata.selfLink + yq d - '**."kubernetes.io/pvc-protection"' + yq d - '**.storageClassName' + yq d - '**.uid' + yq d - '**.volumeName' ++ mktemp + yq d - spec.volumeMode + yq d - spec.nodeName + yq d - spec.podReplacementPolicy + yq d - '**."percona.com/*"' + yq d - '**."volume.kubernetes.io/storage-provisioner"' + yq d - '**.(volumeMode==Filesystem).volumeMode' + yq d - '**."volume.beta.kubernetes.io/storage-provisioner"' + yq d - '**.ipFamilyPolicy' + yq d - '**.allocateLoadBalancerNodePorts' + yq d - spec.manualSelector + yq d - '**."volume.kubernetes.io/selected-node"' + local LAST_ERR=/tmp/tmp.gieUmwibxC + local exit_status=0 + local timeout=4 + set +o errexit + yq d - '**.nodePort' + yq d - '**.healthCheckNodePort' + yq d - '**.(name==COMMAND_OPTS)' + yq d - '**.(name==PODNAME)' + yq d - '**.imagePullSecrets' ++ seq 0 2 + yq d - '**.enableServiceLinks' + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl get -o yaml deployment/some-name-backrest-shared-repo + yq d - status + yq d - '**.(name==suffix)' + yq d - '**.namespace' + yq d - '**.(name==NAMESPACE)' + yq d - 'spec.volumeClaimTemplates.*.apiVersion' + yq d - 'spec.volumeClaimTemplates.*.kind' + yq d - 'metadata.ownerReferences.*.apiVersion' + yq d - '**.controller-uid' + yq d - '**.preemptionPolicy' + yq d - '**.ipFamilies' + yq d - '**.internalTrafficPolicy' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.ZkjTHiJMYX + cat /tmp/tmp.gieUmwibxC + rm /tmp/tmp.ZkjTHiJMYX /tmp/tmp.gieUmwibxC + return 0 + case $(yq r ${new_result} 'kind') in ++ yq r /tmp/tmp.ddEhLHSorE/deployment_some-name-backrest-shared-repo.yml kind + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/deployment_some-name-backrest-shared-repo.yml /tmp/tmp.ddEhLHSorE/deployment_some-name-backrest-shared-repo.yml + compare_kubectl service/postgres-operator + local resource=service/postgres-operator + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/service_postgres-operator.yml + local new_result=/tmp/tmp.ddEhLHSorE/service_postgres-operator.yml + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + kubectl_bin get -o yaml service/postgres-operator + yq d - metadata.managedFields ++ mktemp + yq d - '**.namespace' + yq d - '**.uid' + yq d - metadata.resourceVersion + yq d - '**.creationTimestamp' + yq d - metadata.deletionTimestamp + local LAST_OUT=/tmp/tmp.Rt2Po1lLBw + yq d - 'metadata.annotations."kubernetes.io/psp"' + yq d - '**.procMount' + yq d - metadata.selfLink + yq d - '**.creationTimestamp' + yq d - 'metadata.annotations."k8s.v1.cni.cncf.io*"' + yq d - '**.image' + yq d - 'metadata.annotations."cloud.google.com/neg"' + yq d - 'metadata.annotations."batch.kubernetes.io/job-tracking"' + yq d - '**.clusterIP' + yq d - '**.(volumeMode==Filesystem).volumeMode' + yq d - '**.healthCheckNodePort' + yq d - '**.clusterIPs' + yq d - '**.nodePort' + yq d - '**.storageClassName' + yq d - '**.imagePullSecrets' + yq d - '**.finalizers' + yq d - 'metadata.ownerReferences.*.apiVersion' + yq d - '**.controller-uid' + yq d - 'spec.volumeClaimTemplates.*.kind' + yq d - '**.enableServiceLinks' + yq d - '**."kubernetes.io/pvc-protection"' ++ mktemp + yq d - '**.volumeName' + yq d - '**.(name==PODNAME)' + local LAST_ERR=/tmp/tmp.WQU5hB9F2E + local exit_status=0 + local timeout=4 + set +o errexit + yq d - '**."volume.beta.kubernetes.io/storage-provisioner"' + yq d - spec.nodeName + yq d - status + yq d - '**."volume.kubernetes.io/storage-provisioner"' + yq d - spec.volumeMode + yq d - spec.podReplacementPolicy + yq d - '**."percona.com/*"' + yq d - '**.(name==COMMAND_OPTS)' + yq d - '**.(name==NAMESPACE)' + yq d - '**."volume.kubernetes.io/selected-node"' + yq d - 'spec.volumeClaimTemplates.*.apiVersion' + yq d - spec.manualSelector + yq d - '**.(name==suffix)' + yq d - '**.dataSource' + yq d - '**.preemptionPolicy' + yq d - '**.ipFamilies' ++ seq 0 2 + yq d - '**.ipFamilyPolicy' + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl get -o yaml service/postgres-operator + yq d - '**.internalTrafficPolicy' + yq d - '**.allocateLoadBalancerNodePorts' + yq d - 'spec.template.metadata.labels."batch.kubernetes.io/job-name"' + yq d - '**."batch.kubernetes.io/controller-uid"' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.Rt2Po1lLBw + cat /tmp/tmp.WQU5hB9F2E + rm /tmp/tmp.Rt2Po1lLBw /tmp/tmp.WQU5hB9F2E + return 0 + case $(yq r ${new_result} 'kind') in ++ yq r /tmp/tmp.ddEhLHSorE/service_postgres-operator.yml kind ++ yq r /tmp/tmp.ddEhLHSorE/service_postgres-operator.yml metadata.annotations + [[ x{} == \x ]] ++ yq r /tmp/tmp.ddEhLHSorE/service_postgres-operator.yml metadata.annotations + [[ x{} == \x\{\} ]] + yq d -i /tmp/tmp.ddEhLHSorE/service_postgres-operator.yml metadata.annotations + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/service_postgres-operator.yml /tmp/tmp.ddEhLHSorE/service_postgres-operator.yml + compare_kubectl service/some-name + local resource=service/some-name + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/service_some-name.yml + local new_result=/tmp/tmp.ddEhLHSorE/service_some-name.yml + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + kubectl_bin get -o yaml service/some-name + yq d - metadata.managedFields + yq d - '**.creationTimestamp' + yq d - '**.uid' + yq d - metadata.selfLink + yq d - metadata.deletionTimestamp ++ mktemp + yq d - 'metadata.annotations."kubernetes.io/psp"' + yq d - 'metadata.annotations."k8s.v1.cni.cncf.io*"' + yq d - 'metadata.annotations."cloud.google.com/neg"' + local LAST_OUT=/tmp/tmp.9iaoOeJcZK + yq d - '**."batch.kubernetes.io/controller-uid"' ++ mktemp + yq d - 'metadata.annotations."batch.kubernetes.io/job-tracking"' + yq d - '**.creationTimestamp' + local LAST_ERR=/tmp/tmp.egbgwtiMif + local exit_status=0 + local timeout=4 + set +o errexit + yq d - '**.procMount' + yq d - 'spec.template.metadata.labels."batch.kubernetes.io/job-name"' + yq d - '**.volumeName' + yq d - '**.image' + yq d - '**.clusterIP' + yq d - '**.clusterIPs' + yq d - '**.storageClassName' + yq d - '**."volume.beta.kubernetes.io/storage-provisioner"' + yq d - '**.finalizers' + yq d - '**."kubernetes.io/pvc-protection"' + yq d - metadata.resourceVersion + yq d - '**.dataSource' + yq d - '**."volume.kubernetes.io/storage-provisioner"' + yq d - spec.volumeMode ++ seq 0 2 + yq d - '**."volume.kubernetes.io/selected-node"' + yq d - '**."percona.com/*"' + yq d - spec.nodeName + yq d - spec.podReplacementPolicy + yq d - spec.manualSelector + yq d - '**.(volumeMode==Filesystem).volumeMode' + yq d - '**.healthCheckNodePort' + yq d - '**.nodePort' + yq d - '**.imagePullSecrets' + yq d - '**.(name==suffix)' + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl get -o yaml service/some-name + yq d - '**.enableServiceLinks' + yq d - '**.allocateLoadBalancerNodePorts' + yq d - status + yq d - '**.(name==NAMESPACE)' + yq d - '**.(name==COMMAND_OPTS)' + yq d - '**.(name==PODNAME)' + yq d - '**.namespace' + yq d - 'spec.volumeClaimTemplates.*.apiVersion' + yq d - 'spec.volumeClaimTemplates.*.kind' + yq d - 'metadata.ownerReferences.*.apiVersion' + yq d - '**.controller-uid' + yq d - '**.preemptionPolicy' + yq d - '**.ipFamilies' + yq d - '**.ipFamilyPolicy' + yq d - '**.internalTrafficPolicy' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.9iaoOeJcZK + cat /tmp/tmp.egbgwtiMif + rm /tmp/tmp.9iaoOeJcZK /tmp/tmp.egbgwtiMif + return 0 + case $(yq r ${new_result} 'kind') in ++ yq r /tmp/tmp.ddEhLHSorE/service_some-name.yml kind ++ yq r /tmp/tmp.ddEhLHSorE/service_some-name.yml metadata.annotations + [[ x{} == \x ]] ++ yq r /tmp/tmp.ddEhLHSorE/service_some-name.yml metadata.annotations + [[ x{} == \x\{\} ]] + yq d -i /tmp/tmp.ddEhLHSorE/service_some-name.yml metadata.annotations + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/service_some-name.yml /tmp/tmp.ddEhLHSorE/service_some-name.yml + compare_kubectl service/some-name-backrest-shared-repo + local resource=service/some-name-backrest-shared-repo + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/service_some-name-backrest-shared-repo.yml + local new_result=/tmp/tmp.ddEhLHSorE/service_some-name-backrest-shared-repo.yml + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + kubectl_bin get -o yaml service/some-name-backrest-shared-repo + yq d - '**.creationTimestamp' + yq d - '**.namespace' ++ mktemp + yq d - metadata.resourceVersion + yq d - metadata.selfLink + yq d - 'metadata.annotations."k8s.v1.cni.cncf.io*"' + local LAST_OUT=/tmp/tmp.mCT9XUnzVR + yq d - 'metadata.annotations."kubernetes.io/psp"' + yq d - 'metadata.annotations."cloud.google.com/neg"' + yq d - 'metadata.annotations."batch.kubernetes.io/job-tracking"' + yq d - '**."batch.kubernetes.io/controller-uid"' + yq d - '**.clusterIPs' ++ mktemp + yq d - '**.procMount' + yq d - '**.storageClassName' + yq d - metadata.deletionTimestamp + yq d - '**.uid' + yq d - '**.finalizers' + yq d - '**.creationTimestamp' + yq d - '**.dataSource' + yq d - '**.volumeName' + yq d - '**.clusterIP' + yq d - '**."volume.beta.kubernetes.io/storage-provisioner"' + yq d - 'spec.template.metadata.labels."batch.kubernetes.io/job-name"' + yq d - '**.image' + local LAST_ERR=/tmp/tmp.RVNrBEPVdR + local exit_status=0 + local timeout=4 + set +o errexit + yq d - spec.manualSelector + yq d - '**."kubernetes.io/pvc-protection"' + yq d - '**.(name==COMMAND_OPTS)' + yq d - '**.healthCheckNodePort' + yq d - '**.imagePullSecrets' + yq d - '**.enableServiceLinks' + yq d - '**."volume.kubernetes.io/selected-node"' + yq d - '**."percona.com/*"' + yq d - '**.ipFamilyPolicy' + yq d - status + yq d - '**.(name==suffix)' + yq d - '**.allocateLoadBalancerNodePorts' + yq d - '**.(name==NAMESPACE)' + yq d - 'spec.volumeClaimTemplates.*.kind' + yq d - '**.nodePort' + yq d - 'spec.volumeClaimTemplates.*.apiVersion' + yq d - '**.(name==PODNAME)' + yq d - '**.controller-uid' + yq d - spec.nodeName + yq d - '**.preemptionPolicy' + yq d - spec.podReplacementPolicy + yq d - '**.ipFamilies' ++ seq 0 2 + for i in '$(seq 0 2)' + yq d - '**.(volumeMode==Filesystem).volumeMode' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl get -o yaml service/some-name-backrest-shared-repo + yq d - 'metadata.ownerReferences.*.apiVersion' + yq d - '**.internalTrafficPolicy' + yq d - spec.volumeMode + yq d - '**."volume.kubernetes.io/storage-provisioner"' + yq d - metadata.managedFields + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.mCT9XUnzVR + cat /tmp/tmp.RVNrBEPVdR + rm /tmp/tmp.mCT9XUnzVR /tmp/tmp.RVNrBEPVdR + return 0 + case $(yq r ${new_result} 'kind') in ++ yq r /tmp/tmp.ddEhLHSorE/service_some-name-backrest-shared-repo.yml kind ++ yq r /tmp/tmp.ddEhLHSorE/service_some-name-backrest-shared-repo.yml metadata.annotations + [[ x{} == \x ]] ++ yq r /tmp/tmp.ddEhLHSorE/service_some-name-backrest-shared-repo.yml metadata.annotations + [[ x{} == \x\{\} ]] + yq d -i /tmp/tmp.ddEhLHSorE/service_some-name-backrest-shared-repo.yml metadata.annotations + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/service_some-name-backrest-shared-repo.yml /tmp/tmp.ddEhLHSorE/service_some-name-backrest-shared-repo.yml + compare_kubectl deployment/some-name-pgbouncer + local resource=deployment/some-name-pgbouncer + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/deployment_some-name-pgbouncer.yml + local new_result=/tmp/tmp.ddEhLHSorE/deployment_some-name-pgbouncer.yml + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + yq d - metadata.managedFields + yq d - '**.creationTimestamp' + yq d - '**.namespace' + yq d - '**.uid' + yq d - metadata.resourceVersion + yq d - metadata.selfLink + yq d - 'spec.template.metadata.labels."batch.kubernetes.io/job-name"' + yq d - 'metadata.annotations."cloud.google.com/neg"' + yq d - 'metadata.annotations."kubernetes.io/psp"' + yq d - 'metadata.annotations."batch.kubernetes.io/job-tracking"' + yq d - '**."batch.kubernetes.io/controller-uid"' + yq d - '**.clusterIP' + yq d - '**.clusterIPs' + yq d - '**.creationTimestamp' + yq d - '**.volumeName' + yq d - '**.image' + yq d - '**.dataSource' + yq d - '**."volume.beta.kubernetes.io/storage-provisioner"' + yq d - 'metadata.annotations."k8s.v1.cni.cncf.io*"' + yq d - '**.procMount' + yq d - '**."volume.kubernetes.io/storage-provisioner"' + yq d - '**.finalizers' + yq d - '**."kubernetes.io/pvc-protection"' + yq d - spec.podReplacementPolicy + yq d - spec.volumeMode + yq d - spec.manualSelector + yq d - spec.nodeName + yq d - '**.nodePort' + yq d - '**.imagePullSecrets' + yq d - '**."volume.kubernetes.io/selected-node"' + yq d - '**.(name==suffix)' + yq d - '**."percona.com/*"' + yq d - '**.(name==NAMESPACE)' + yq d - '**.(volumeMode==Filesystem).volumeMode' + yq d - metadata.deletionTimestamp + yq d - 'spec.volumeClaimTemplates.*.apiVersion' + yq d - '**.healthCheckNodePort' + yq d - '**.ipFamilyPolicy' + yq d - '**.enableServiceLinks' + yq d - '**.internalTrafficPolicy' + yq d - '**.(name==COMMAND_OPTS)' + yq d - status + yq d - '**.(name==PODNAME)' + yq d - '**.storageClassName' + yq d - '**.allocateLoadBalancerNodePorts' + yq d - 'spec.volumeClaimTemplates.*.kind' + yq d - 'metadata.ownerReferences.*.apiVersion' + yq d - '**.controller-uid' + yq d - '**.preemptionPolicy' + kubectl_bin get -o yaml deployment/some-name-pgbouncer + yq d - '**.ipFamilies' ++ mktemp + local LAST_OUT=/tmp/tmp.nhTi8rvyrF ++ mktemp + local LAST_ERR=/tmp/tmp.kJxqhmEGyY + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl get -o yaml deployment/some-name-pgbouncer + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.nhTi8rvyrF + cat /tmp/tmp.kJxqhmEGyY + rm /tmp/tmp.nhTi8rvyrF /tmp/tmp.kJxqhmEGyY + return 0 + case $(yq r ${new_result} 'kind') in ++ yq r /tmp/tmp.ddEhLHSorE/deployment_some-name-pgbouncer.yml kind + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/deployment_some-name-pgbouncer.yml /tmp/tmp.ddEhLHSorE/deployment_some-name-pgbouncer.yml + compare_kubectl service/some-name-pgbouncer + local resource=service/some-name-pgbouncer + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/service_some-name-pgbouncer.yml + local new_result=/tmp/tmp.ddEhLHSorE/service_some-name-pgbouncer.yml + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + kubectl_bin get -o yaml service/some-name-pgbouncer + yq d - metadata.managedFields + yq d - '**.creationTimestamp' + yq d - metadata.selfLink + yq d - metadata.resourceVersion ++ mktemp + yq d - metadata.deletionTimestamp + yq d - '**.creationTimestamp' + yq d - '**."batch.kubernetes.io/controller-uid"' + yq d - '**.clusterIP' + yq d - '**.clusterIPs' + yq d - '**.storageClassName' + yq d - 'spec.template.metadata.labels."batch.kubernetes.io/job-name"' + yq d - '**.finalizers' + yq d - '**.image' + local LAST_OUT=/tmp/tmp.5ZDnoGH0qv + yq d - '**.dataSource' + yq d - '**.procMount' + yq d - 'metadata.annotations."cloud.google.com/neg"' + yq d - 'metadata.annotations."batch.kubernetes.io/job-tracking"' + yq d - '**."kubernetes.io/pvc-protection"' + yq d - 'metadata.annotations."kubernetes.io/psp"' + yq d - '**.volumeName' + yq d - '**."volume.kubernetes.io/storage-provisioner"' + yq d - '**."volume.beta.kubernetes.io/storage-provisioner"' + yq d - spec.nodeName + yq d - spec.podReplacementPolicy + yq d - spec.manualSelector + yq d - spec.volumeMode + yq d - '**."percona.com/*"' + yq d - '**.(volumeMode==Filesystem).volumeMode' ++ mktemp + yq d - status + yq d - '**.healthCheckNodePort' + local LAST_ERR=/tmp/tmp.BudKAeJfNj + local exit_status=0 + local timeout=4 + set +o errexit + yq d - '**.nodePort' + yq d - '**.imagePullSecrets' + yq d - '**.(name==suffix)' + yq d - '**."volume.kubernetes.io/selected-node"' + yq d - '**.internalTrafficPolicy' + yq d - '**.(name==PODNAME)' + yq d - 'metadata.annotations."k8s.v1.cni.cncf.io*"' ++ seq 0 2 + yq d - '**.enableServiceLinks' + yq d - '**.preemptionPolicy' + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl get -o yaml service/some-name-pgbouncer + yq d - '**.(name==NAMESPACE)' + yq d - '**.(name==COMMAND_OPTS)' + yq d - 'spec.volumeClaimTemplates.*.apiVersion' + yq d - 'spec.volumeClaimTemplates.*.kind' + yq d - '**.namespace' + yq d - 'metadata.ownerReferences.*.apiVersion' + yq d - '**.controller-uid' + yq d - '**.uid' + yq d - '**.ipFamilies' + yq d - '**.ipFamilyPolicy' + yq d - '**.allocateLoadBalancerNodePorts' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.5ZDnoGH0qv + cat /tmp/tmp.BudKAeJfNj + rm /tmp/tmp.5ZDnoGH0qv /tmp/tmp.BudKAeJfNj + return 0 + case $(yq r ${new_result} 'kind') in ++ yq r /tmp/tmp.ddEhLHSorE/service_some-name-pgbouncer.yml kind ++ yq r /tmp/tmp.ddEhLHSorE/service_some-name-pgbouncer.yml metadata.annotations + [[ x{} == \x ]] ++ yq r /tmp/tmp.ddEhLHSorE/service_some-name-pgbouncer.yml metadata.annotations + [[ x{} == \x\{\} ]] + yq d -i /tmp/tmp.ddEhLHSorE/service_some-name-pgbouncer.yml metadata.annotations + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/service_some-name-pgbouncer.yml /tmp/tmp.ddEhLHSorE/service_some-name-pgbouncer.yml + desc 'checking essential users access' + set +o xtrace ----------------------------------------------------------------------------------- checking essential users access ----------------------------------------------------------------------------------- ++ get_psql_user_pass postgres some-name ++ local user=postgres ++ local cluster=some-name ++ local namespace=init-deploy-17804 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.vNqqjnfIdh ++++ mktemp +++ local LAST_ERR=/tmp/tmp.zpv3HlnfiT +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.vNqqjnfIdh +++ cat /tmp/tmp.zpv3HlnfiT +++ rm /tmp/tmp.vNqqjnfIdh /tmp/tmp.zpv3HlnfiT +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.6Lea040sh4 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.6FSie4rnnv +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.6Lea040sh4 +++ cat /tmp/tmp.6FSie4rnnv +++ rm /tmp/tmp.6Lea040sh4 /tmp/tmp.6FSie4rnnv +++ return 0 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.N5ILlScALO ++++ mktemp +++ local LAST_ERR=/tmp/tmp.Myl4iSxhuf +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.N5ILlScALO +++ cat /tmp/tmp.Myl4iSxhuf +++ rm /tmp/tmp.N5ILlScALO /tmp/tmp.Myl4iSxhuf +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.V3wuPTdZxs +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.sBpETTaPNj ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.V3wuPTdZxs ++++ cat /tmp/tmp.sBpETTaPNj ++++ rm /tmp/tmp.V3wuPTdZxs /tmp/tmp.sBpETTaPNj ++++ return 0 +++ kubectl_bin -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.IQiKXvVWIP ++++ mktemp +++ local LAST_ERR=/tmp/tmp.zlt3E9ubWS +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.IQiKXvVWIP +++ cat /tmp/tmp.zlt3E9ubWS +++ rm /tmp/tmp.IQiKXvVWIP /tmp/tmp.zlt3E9ubWS +++ return 0 ++ echo postgres_password + compare_psql_cmd select-1 '\c myapp \\\ SELECT * from myApp;' postgres:postgres_password@some-name.init-deploy-17804 + local command_id=select-1 + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=postgres:postgres_password@some-name.init-deploy-17804 + local postfix= + local uri_suffix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/select-1.sql + run_psql '\c myapp \\\ SELECT * from myApp;' postgres:postgres_password@some-name.init-deploy-17804 postgres '' + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=postgres:postgres_password@some-name.init-deploy-17804 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ZFGDsMmfVM +++ mktemp ++ local LAST_ERR=/tmp/tmp.5ZX7rAf5F0 ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.ZFGDsMmfVM ++ cat /tmp/tmp.5ZX7rAf5F0 ++ rm /tmp/tmp.ZFGDsMmfVM /tmp/tmp.5ZX7rAf5F0 ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + kubectl_bin exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@some-name.init-deploy-17804.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.dvmhb8QVID ++ mktemp + local LAST_ERR=/tmp/tmp.tVdcm7CuxA + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@some-name.init-deploy-17804.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.dvmhb8QVID + cat /tmp/tmp.tVdcm7CuxA + rm /tmp/tmp.dvmhb8QVID /tmp/tmp.tVdcm7CuxA + return 0 + '[' '!' -s /tmp/tmp.ddEhLHSorE/select-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/select-1.sql /tmp/tmp.ddEhLHSorE/select-1.sql ++ get_psql_user_pass some-name some-name ++ local user=some-name ++ local cluster=some-name ++ local namespace=init-deploy-17804 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.M9dEHSYfuT ++++ mktemp +++ local LAST_ERR=/tmp/tmp.Rqbhmfa7H3 +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.M9dEHSYfuT +++ cat /tmp/tmp.Rqbhmfa7H3 +++ rm /tmp/tmp.M9dEHSYfuT /tmp/tmp.Rqbhmfa7H3 +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.cMnbP7AnqT ++++ mktemp +++ local LAST_ERR=/tmp/tmp.cin3o6cWsf +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.cMnbP7AnqT +++ cat /tmp/tmp.cin3o6cWsf +++ rm /tmp/tmp.cMnbP7AnqT /tmp/tmp.cin3o6cWsf +++ return 0 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.HGAxCsp1pN ++++ mktemp +++ local LAST_ERR=/tmp/tmp.dvq1HWCYQ1 +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.HGAxCsp1pN +++ cat /tmp/tmp.dvq1HWCYQ1 +++ rm /tmp/tmp.HGAxCsp1pN /tmp/tmp.dvq1HWCYQ1 +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.5PoSYbcdG5 +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.zCksEHlNws ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.5PoSYbcdG5 ++++ cat /tmp/tmp.zCksEHlNws ++++ rm /tmp/tmp.5PoSYbcdG5 /tmp/tmp.zCksEHlNws ++++ return 0 +++ kubectl_bin -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.some-name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.7651RD1BIE ++++ mktemp +++ local LAST_ERR=/tmp/tmp.ZbDAlVQmh2 +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.some-name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.7651RD1BIE +++ cat /tmp/tmp.ZbDAlVQmh2 +++ rm /tmp/tmp.7651RD1BIE /tmp/tmp.ZbDAlVQmh2 +++ return 0 ++ echo some-name_pass + compare_psql_cmd select-1 '\c myapp \\\ SELECT * from myApp;' some-name:some-name_pass@some-name.init-deploy-17804 + local command_id=select-1 + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=some-name:some-name_pass@some-name.init-deploy-17804 + local postfix= + local uri_suffix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/select-1.sql + run_psql '\c myapp \\\ SELECT * from myApp;' some-name:some-name_pass@some-name.init-deploy-17804 postgres '' + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=some-name:some-name_pass@some-name.init-deploy-17804 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ljINwrPd1U +++ mktemp ++ local LAST_ERR=/tmp/tmp.SjJs43puLR ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.ljINwrPd1U ++ cat /tmp/tmp.SjJs43puLR ++ rm /tmp/tmp.ljINwrPd1U /tmp/tmp.SjJs43puLR ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + kubectl_bin exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@some-name.init-deploy-17804.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.DmSkYcN1ja ++ mktemp + local LAST_ERR=/tmp/tmp.aOeegdkX92 + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@some-name.init-deploy-17804.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.DmSkYcN1ja + cat /tmp/tmp.aOeegdkX92 + rm /tmp/tmp.DmSkYcN1ja /tmp/tmp.aOeegdkX92 + return 0 + '[' '!' -s /tmp/tmp.ddEhLHSorE/select-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/select-1.sql /tmp/tmp.ddEhLHSorE/select-1.sql ++ get_psql_user_pass pgbouncer some-name ++ local user=pgbouncer ++ local cluster=some-name ++ local namespace=init-deploy-17804 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.O43zLvQvjF ++++ mktemp +++ local LAST_ERR=/tmp/tmp.zMhzRZNdRG +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.O43zLvQvjF +++ cat /tmp/tmp.zMhzRZNdRG +++ rm /tmp/tmp.O43zLvQvjF /tmp/tmp.zMhzRZNdRG +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.AIJxDjELOS ++++ mktemp +++ local LAST_ERR=/tmp/tmp.i23M12bkaL +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.AIJxDjELOS +++ cat /tmp/tmp.i23M12bkaL +++ rm /tmp/tmp.AIJxDjELOS /tmp/tmp.i23M12bkaL +++ return 0 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.mFrPAHW8ZX ++++ mktemp +++ local LAST_ERR=/tmp/tmp.ZBwHodZvbL +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.mFrPAHW8ZX +++ cat /tmp/tmp.ZBwHodZvbL +++ rm /tmp/tmp.mFrPAHW8ZX /tmp/tmp.ZBwHodZvbL +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.astYaofuPn +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.iYUbkG8SfQ ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.astYaofuPn ++++ cat /tmp/tmp.iYUbkG8SfQ ++++ rm /tmp/tmp.astYaofuPn /tmp/tmp.iYUbkG8SfQ ++++ return 0 +++ kubectl_bin -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.pgbouncer}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.5Kv5e6DbaP ++++ mktemp +++ local LAST_ERR=/tmp/tmp.yse7ygzfBw +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.pgbouncer}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.5Kv5e6DbaP +++ cat /tmp/tmp.yse7ygzfBw +++ rm /tmp/tmp.5Kv5e6DbaP /tmp/tmp.yse7ygzfBw +++ return 0 ++ echo pgbouncer_password + compare_psql_cmd show-1 'SHOW DATABASES' pgbouncer:pgbouncer_password@some-name-pgbouncer.init-deploy-17804 + local command_id=show-1 + local 'command=SHOW DATABASES' + local uri=pgbouncer:pgbouncer_password@some-name-pgbouncer.init-deploy-17804 + local postfix= + local uri_suffix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/show-1.sql + run_psql 'SHOW DATABASES' pgbouncer:pgbouncer_password@some-name-pgbouncer.init-deploy-17804 postgres '' + local 'command=SHOW DATABASES' + local uri=pgbouncer:pgbouncer_password@some-name-pgbouncer.init-deploy-17804 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.8VHaxLaKfq +++ mktemp ++ local LAST_ERR=/tmp/tmp.NRge5vLkgE ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.8VHaxLaKfq ++ cat /tmp/tmp.NRge5vLkgE ++ rm /tmp/tmp.8VHaxLaKfq /tmp/tmp.NRge5vLkgE ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + kubectl_bin exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- bash -c 'printf '\''SHOW DATABASES\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://pgbouncer:pgbouncer_password@some-name-pgbouncer.init-deploy-17804.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.IWxGYtQjXs ++ mktemp + local LAST_ERR=/tmp/tmp.RLerVUDJvh + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- bash -c 'printf '\''SHOW DATABASES\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://pgbouncer:pgbouncer_password@some-name-pgbouncer.init-deploy-17804.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.IWxGYtQjXs + cat /tmp/tmp.RLerVUDJvh + rm /tmp/tmp.IWxGYtQjXs /tmp/tmp.RLerVUDJvh + return 0 + '[' '!' -s /tmp/tmp.ddEhLHSorE/show-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/show-1.sql /tmp/tmp.ddEhLHSorE/show-1.sql + kubectl_bin patch perconapgcluster/some-name --type json -p '[ {"op":"replace","path":"/spec/pgBouncer/exposePostgresUser","value":true} ]' ++ mktemp + local LAST_OUT=/tmp/tmp.3oQALU13B4 ++ mktemp + local LAST_ERR=/tmp/tmp.DcvesZXzwb + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl patch perconapgcluster/some-name --type json -p '[ {"op":"replace","path":"/spec/pgBouncer/exposePostgresUser","value":true} ]' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.3oQALU13B4 perconapgcluster.pg.percona.com/some-name patched + cat /tmp/tmp.DcvesZXzwb + rm /tmp/tmp.3oQALU13B4 /tmp/tmp.DcvesZXzwb + return 0 + sleep 15 ++ get_psql_user_pass postgres some-name ++ local user=postgres ++ local cluster=some-name ++ local namespace=init-deploy-17804 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.fBPUKDwZdK ++++ mktemp +++ local LAST_ERR=/tmp/tmp.KMargAxz4I +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.fBPUKDwZdK +++ cat /tmp/tmp.KMargAxz4I +++ rm /tmp/tmp.fBPUKDwZdK /tmp/tmp.KMargAxz4I +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.Ya58ZTPEQF ++++ mktemp +++ local LAST_ERR=/tmp/tmp.al9rszW9NA +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.Ya58ZTPEQF +++ cat /tmp/tmp.al9rszW9NA +++ rm /tmp/tmp.Ya58ZTPEQF /tmp/tmp.al9rszW9NA +++ return 0 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.mCHghdqfqU ++++ mktemp +++ local LAST_ERR=/tmp/tmp.VNWLf8XWpd +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.mCHghdqfqU +++ cat /tmp/tmp.VNWLf8XWpd +++ rm /tmp/tmp.mCHghdqfqU /tmp/tmp.VNWLf8XWpd +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.lRw55bqSRB +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.Z0wT9GKT1h ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.lRw55bqSRB ++++ cat /tmp/tmp.Z0wT9GKT1h ++++ rm /tmp/tmp.lRw55bqSRB /tmp/tmp.Z0wT9GKT1h ++++ return 0 +++ kubectl_bin -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.1I217c0ye8 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.9OKcJg6l0y +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.1I217c0ye8 +++ cat /tmp/tmp.9OKcJg6l0y +++ rm /tmp/tmp.1I217c0ye8 /tmp/tmp.9OKcJg6l0y +++ return 0 ++ echo postgres_password + compare_psql_cmd select-1 '\c myapp \\\ SELECT * from myApp;' postgres:postgres_password@some-name-pgbouncer.init-deploy-17804 + local command_id=select-1 + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=postgres:postgres_password@some-name-pgbouncer.init-deploy-17804 + local postfix= + local uri_suffix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/select-1.sql + run_psql '\c myapp \\\ SELECT * from myApp;' postgres:postgres_password@some-name-pgbouncer.init-deploy-17804 postgres '' + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=postgres:postgres_password@some-name-pgbouncer.init-deploy-17804 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.7qZ6r1E4v7 +++ mktemp ++ local LAST_ERR=/tmp/tmp.619KFjQskj ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.7qZ6r1E4v7 ++ cat /tmp/tmp.619KFjQskj ++ rm /tmp/tmp.7qZ6r1E4v7 /tmp/tmp.619KFjQskj ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + kubectl_bin exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@some-name-pgbouncer.init-deploy-17804.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.8nuVgC7Pkp ++ mktemp + local LAST_ERR=/tmp/tmp.P3xrRJ4Abc + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@some-name-pgbouncer.init-deploy-17804.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.8nuVgC7Pkp + cat /tmp/tmp.P3xrRJ4Abc + rm /tmp/tmp.8nuVgC7Pkp /tmp/tmp.P3xrRJ4Abc + return 0 + '[' '!' -s /tmp/tmp.ddEhLHSorE/select-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/select-1.sql /tmp/tmp.ddEhLHSorE/select-1.sql ++ get_psql_user_pass some-name some-name ++ local user=some-name ++ local cluster=some-name ++ local namespace=init-deploy-17804 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.SZOjonHPqD ++++ mktemp +++ local LAST_ERR=/tmp/tmp.auU2bJ8tw7 +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.SZOjonHPqD +++ cat /tmp/tmp.auU2bJ8tw7 +++ rm /tmp/tmp.SZOjonHPqD /tmp/tmp.auU2bJ8tw7 +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.BkWYUvHPbE ++++ mktemp +++ local LAST_ERR=/tmp/tmp.FWwJx7ia8a +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.BkWYUvHPbE +++ cat /tmp/tmp.FWwJx7ia8a +++ rm /tmp/tmp.BkWYUvHPbE /tmp/tmp.FWwJx7ia8a +++ return 0 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.qjyNBYWOdX ++++ mktemp +++ local LAST_ERR=/tmp/tmp.oBvxBgbE5R +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.qjyNBYWOdX +++ cat /tmp/tmp.oBvxBgbE5R +++ rm /tmp/tmp.qjyNBYWOdX /tmp/tmp.oBvxBgbE5R +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.CpKqvzuRIZ +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.CdcNdhLGf7 ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.CpKqvzuRIZ ++++ cat /tmp/tmp.CdcNdhLGf7 ++++ rm /tmp/tmp.CpKqvzuRIZ /tmp/tmp.CdcNdhLGf7 ++++ return 0 +++ kubectl_bin -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.some-name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.kFhaEcKLLS ++++ mktemp +++ local LAST_ERR=/tmp/tmp.Fk7qIMTFXi +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.some-name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.kFhaEcKLLS +++ cat /tmp/tmp.Fk7qIMTFXi +++ rm /tmp/tmp.kFhaEcKLLS /tmp/tmp.Fk7qIMTFXi +++ return 0 ++ echo some-name_pass + compare_psql_cmd select-1 '\c myapp \\\ SELECT * from myApp;' some-name:some-name_pass@some-name-pgbouncer.init-deploy-17804 + local command_id=select-1 + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=some-name:some-name_pass@some-name-pgbouncer.init-deploy-17804 + local postfix= + local uri_suffix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/select-1.sql + run_psql '\c myapp \\\ SELECT * from myApp;' some-name:some-name_pass@some-name-pgbouncer.init-deploy-17804 postgres '' + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=some-name:some-name_pass@some-name-pgbouncer.init-deploy-17804 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.IRFjiue9fi +++ mktemp ++ local LAST_ERR=/tmp/tmp.ksSYyZfXLW ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.IRFjiue9fi ++ cat /tmp/tmp.ksSYyZfXLW ++ rm /tmp/tmp.IRFjiue9fi /tmp/tmp.ksSYyZfXLW ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + kubectl_bin exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@some-name-pgbouncer.init-deploy-17804.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.zl0AwUHDHK ++ mktemp + local LAST_ERR=/tmp/tmp.SsMh1j5twM + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://some-name:some-name_pass@some-name-pgbouncer.init-deploy-17804.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.zl0AwUHDHK + cat /tmp/tmp.SsMh1j5twM + rm /tmp/tmp.zl0AwUHDHK /tmp/tmp.SsMh1j5twM + return 0 + '[' '!' -s /tmp/tmp.ddEhLHSorE/select-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/select-1.sql /tmp/tmp.ddEhLHSorE/select-1.sql + kubectl_bin patch perconapgcluster/some-name --type json -p '[ {"op":"replace","path":"/spec/pgBouncer/exposePostgresUser","value":false} ]' ++ mktemp + local LAST_OUT=/tmp/tmp.cgnL3D90Xe ++ mktemp + local LAST_ERR=/tmp/tmp.mZIMcz6Srd + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl patch perconapgcluster/some-name --type json -p '[ {"op":"replace","path":"/spec/pgBouncer/exposePostgresUser","value":false} ]' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.cgnL3D90Xe perconapgcluster.pg.percona.com/some-name patched + cat /tmp/tmp.mZIMcz6Srd + rm /tmp/tmp.cgnL3D90Xe /tmp/tmp.mZIMcz6Srd + return 0 + sleep 15 ++ get_psql_user_pass postgres some-name ++ local user=postgres ++ local cluster=some-name ++ local namespace=init-deploy-17804 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.wsnBYtt1eH ++++ mktemp +++ local LAST_ERR=/tmp/tmp.jVOM0pq75G +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.wsnBYtt1eH +++ cat /tmp/tmp.jVOM0pq75G +++ rm /tmp/tmp.wsnBYtt1eH /tmp/tmp.jVOM0pq75G +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.VJ5oSFKt5R ++++ mktemp +++ local LAST_ERR=/tmp/tmp.NalqzCMEid +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.VJ5oSFKt5R +++ cat /tmp/tmp.NalqzCMEid +++ rm /tmp/tmp.VJ5oSFKt5R /tmp/tmp.NalqzCMEid +++ return 0 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.x4Ntfz07M7 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.5yyWu2K1ub +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.x4Ntfz07M7 +++ cat /tmp/tmp.5yyWu2K1ub +++ rm /tmp/tmp.x4Ntfz07M7 /tmp/tmp.5yyWu2K1ub +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.SytdXtdwUF +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.bkOrFKRmer ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.SytdXtdwUF ++++ cat /tmp/tmp.bkOrFKRmer ++++ rm /tmp/tmp.SytdXtdwUF /tmp/tmp.bkOrFKRmer ++++ return 0 +++ kubectl_bin -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.Gs42aU29Kh ++++ mktemp +++ local LAST_ERR=/tmp/tmp.hIo3Rr2n8n +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.Gs42aU29Kh +++ cat /tmp/tmp.hIo3Rr2n8n +++ rm /tmp/tmp.Gs42aU29Kh /tmp/tmp.hIo3Rr2n8n +++ return 0 ++ echo postgres_password + compare_psql select-2 '\c myapp \\\ SELECT * from myApp;' postgres:postgres_password@some-name-pgbouncer.init-deploy-17804 allow + local command_id=select-2 + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=postgres:postgres_password@some-name-pgbouncer.init-deploy-17804 + local sslmode=allow + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/select-2.sql + run_psql_ssl '\c myapp \\\ SELECT * from myApp;' postgres:postgres_password@some-name-pgbouncer.init-deploy-17804 postgres '' allow + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=postgres:postgres_password@some-name-pgbouncer.init-deploy-17804 + local driver=postgres ++ kubectl_bin get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.GZUH66aZJn +++ mktemp ++ local LAST_ERR=/tmp/tmp.hihLQxVbRQ ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.GZUH66aZJn ++ cat /tmp/tmp.hihLQxVbRQ ++ rm /tmp/tmp.GZUH66aZJn /tmp/tmp.hihLQxVbRQ ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + local sslmode=allow + kubectl_bin exec pg-client-76df9df876-7pdvj -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | PGSSLMODE=allow PGSSLROOTCERT=/tmp/tls/ca.crt psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@some-name-pgbouncer.init-deploy-17804' ++ mktemp + local LAST_OUT=/tmp/tmp.DDCCqb57aS ++ mktemp + local LAST_ERR=/tmp/tmp.TRkKPKyuXu + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | PGSSLMODE=allow PGSSLROOTCERT=/tmp/tls/ca.crt psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@some-name-pgbouncer.init-deploy-17804' + exit_status=2 + [[ 2 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | PGSSLMODE=allow PGSSLROOTCERT=/tmp/tls/ca.crt psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@some-name-pgbouncer.init-deploy-17804' + exit_status=2 + [[ 2 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | PGSSLMODE=allow PGSSLROOTCERT=/tmp/tls/ca.crt psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@some-name-pgbouncer.init-deploy-17804' + exit_status=2 + [[ 2 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.DDCCqb57aS + cat /tmp/tmp.TRkKPKyuXu psql: error: FATAL: SSL required FATAL: no such user command terminated with exit code 2 + rm /tmp/tmp.DDCCqb57aS /tmp/tmp.TRkKPKyuXu + return 2 + true + '[' '!' -s /tmp/tmp.ddEhLHSorE/select-2.sql ']' + sleep 20 + run_psql_ssl '\c myapp \\\ SELECT * from myApp;' postgres:postgres_password@some-name-pgbouncer.init-deploy-17804 postgres '' allow + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=postgres:postgres_password@some-name-pgbouncer.init-deploy-17804 + local driver=postgres ++ kubectl_bin get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.VHQACKKdQn +++ mktemp ++ local LAST_ERR=/tmp/tmp.zpccz6M2wO ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.VHQACKKdQn ++ cat /tmp/tmp.zpccz6M2wO ++ rm /tmp/tmp.VHQACKKdQn /tmp/tmp.zpccz6M2wO ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + local sslmode=allow + kubectl_bin exec pg-client-76df9df876-7pdvj -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | PGSSLMODE=allow PGSSLROOTCERT=/tmp/tls/ca.crt psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@some-name-pgbouncer.init-deploy-17804' ++ mktemp + local LAST_OUT=/tmp/tmp.5IDDJORYW2 ++ mktemp + local LAST_ERR=/tmp/tmp.UhNVTCYEnj + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | PGSSLMODE=allow PGSSLROOTCERT=/tmp/tls/ca.crt psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@some-name-pgbouncer.init-deploy-17804' + exit_status=2 + [[ 2 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | PGSSLMODE=allow PGSSLROOTCERT=/tmp/tls/ca.crt psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@some-name-pgbouncer.init-deploy-17804' + exit_status=2 + [[ 2 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | PGSSLMODE=allow PGSSLROOTCERT=/tmp/tls/ca.crt psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@some-name-pgbouncer.init-deploy-17804' + exit_status=2 + [[ 2 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.5IDDJORYW2 + cat /tmp/tmp.UhNVTCYEnj psql: error: FATAL: SSL required FATAL: no such user command terminated with exit code 2 + rm /tmp/tmp.5IDDJORYW2 /tmp/tmp.UhNVTCYEnj + return 2 + true + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/select-2.sql /tmp/tmp.ddEhLHSorE/select-2.sql ++ which aws + [[ -n /usr/local/bin/aws ]] + desc 'Starting to test private registry' + set +o xtrace ----------------------------------------------------------------------------------- Starting to test private registry ----------------------------------------------------------------------------------- + kubectl delete PerconaPGCluster --ignore-not-found --all perconapgcluster.pg.percona.com "some-name" deleted + wait_for_delete deployment/some-name + local res=deployment/some-name + set +o xtrace deployment/some-name - ....Error from server (NotFound): deployments.apps "some-name" not found + wait_for_delete deployment/some-name-backrest-shared-repo + local res=deployment/some-name-backrest-shared-repo + set +o xtrace deployment/some-name-backrest-shared-repo - Error from server (NotFound): deployments.apps "some-name-backrest-shared-repo" not found + kubectl delete --ignore-not-found deployment/postgres-operator deployment.apps "postgres-operator" deleted + wait_for_delete deployment/postgres-operator + local res=deployment/postgres-operator + set +o xtrace deployment/postgres-operator - Error from server (NotFound): deployments.apps "postgres-operator" not found + kubectl delete --ignore-not-found job/pgo-deploy + wait_for_delete job/pgo-deploy + local res=job/pgo-deploy + set +o xtrace job/pgo-deploy - Error from server (NotFound): jobs.batch "pgo-deploy" not found + kubectl delete sa pgo-deployer-sa pgo-default postgres-operator --ignore-not-found serviceaccount "pgo-default" deleted serviceaccount "postgres-operator" deleted + set +x secret/ecr created + export IMAGE_APISERVER=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:PR-776-0087ef129-pgo-apiserver + IMAGE_APISERVER=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:PR-776-0087ef129-pgo-apiserver + export IMAGE_PGOEVENT=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:PR-776-0087ef129-pgo-event + IMAGE_PGOEVENT=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:PR-776-0087ef129-pgo-event + export IMAGE_RMDATA=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:PR-776-0087ef129-pgo-rmdata + IMAGE_RMDATA=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:PR-776-0087ef129-pgo-rmdata + export IMAGE_SCHEDULER=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:PR-776-0087ef129-pgo-scheduler + IMAGE_SCHEDULER=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:PR-776-0087ef129-pgo-scheduler + export IMAGE_OPERATOR=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:PR-776-0087ef129-postgres-operator + IMAGE_OPERATOR=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:PR-776-0087ef129-postgres-operator + export IMAGE_DEPLOYER=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:PR-776-0087ef129-pgo-deployer + IMAGE_DEPLOYER=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:PR-776-0087ef129-pgo-deployer + export IMAGE_PGBOUNCER=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-pgbouncer + IMAGE_PGBOUNCER=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-pgbouncer + export IMAGE_PG_HA=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-postgres-ha + IMAGE_PG_HA=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-postgres-ha + export IMAGE_BACKREST=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-pgbackrest + IMAGE_BACKREST=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-pgbackrest + export IMAGE_BACKREST_REPO=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-pgbackrest-repo + IMAGE_BACKREST_REPO=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-pgbackrest-repo + export IMAGE_PGBADGER=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-pgbadger + IMAGE_PGBADGER=119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-pgbadger + deploy_operator ecr + local pull_secret_name=ecr + local operator_manifest=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/operator.yaml + local namespace_mode=disabled + local action=install + local namespace=init-deploy-17804 + local dont_send_telemetry=false + local version_service_uri_override= + desc 'start operator' + set +o xtrace ----------------------------------------------------------------------------------- start operator ----------------------------------------------------------------------------------- + prepare_operator_yaml ecr /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/operator.yaml disabled install init-deploy-17804 false + local pull_secret_name=ecr + local operator_manifest=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/operator.yaml + local namespace_mode=disabled + local operator_action=install + local namespace=init-deploy-17804 + local dont_send_telemetry=false + yq r -d2 /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/operator.yaml 'data[values.yaml]' + /usr/bin/sed -e 's#^namespace: .*#namespace: "init-deploy-17804"#g' + /usr/bin/sed -e 's#pgo_operator_namespace: .*#pgo_operator_namespace: "init-deploy-17804"#g' + /usr/bin/sed -e 's#namespace_mode: .*#namespace_mode: "disabled"#g' + /usr/bin/sed -e 's#^disable_telemetry: .*#disable_telemetry: "false"#g' + cat /dev/fd/63 - ++ echo 119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:PR-776-0087ef129 ++ echo 'crunchy_debug: "true"' ++ cut -d: -f2 ++ cut -d: -f1 + /usr/bin/sed -e 's#pgo_image_tag: .*#pgo_image_tag: "PR-776-0087ef129"#g' ++ echo 119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:PR-776-0087ef129 + /usr/bin/sed -e 's#pgo_image_prefix: .*#pgo_image_prefix: "119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator"#g' + [[ -n ecr ]] + /usr/bin/sed -i /tmp/tmp.ddEhLHSorE/operator.ini -e 's#ccp_image_pull_secret: .*#ccp_image_pull_secret: "ecr"#g' + /usr/bin/sed -i /tmp/tmp.ddEhLHSorE/operator.ini -e 's#pgo_image_pull_secret: .*#pgo_image_pull_secret: "ecr"#g' + [[ GKE == \O\P\E\N\S\H\I\F\T ]] + yq w '-d*' /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/operator.yaml metadata.namespace init-deploy-17804 + yq w -d3 - 'subjects[0].namespace' init-deploy-17804 + yq w -d4 - 'spec.template.spec.containers[0].image' 119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:PR-776-0087ef129-pgo-deployer + yq w -d4 - 'spec.template.spec.containers[0].env[0].value' install ++ cat /tmp/tmp.ddEhLHSorE/operator.ini + yq w -d2 - -d2 'data[values.yaml]' 'crunchy_debug: "true" archive_mode: "true" archive_timeout: "60" ccp_image_pull_secret: "ecr" ccp_image_pull_secret_manifest: "" create_rbac: "true" delete_operator_namespace: "false" delete_watched_namespaces: "false" disable_telemetry: "false" namespace: "init-deploy-17804" namespace_mode: "disabled" pgo_image_prefix: "119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator" pgo_image_pull_policy: "Always" pgo_image_pull_secret: "ecr" pgo_image_pull_secret_manifest: "" pgo_image_tag: "PR-776-0087ef129" pgo_operator_namespace: "init-deploy-17804"' + [[ -n ecr ]] + yq w -i -d0 /tmp/tmp.ddEhLHSorE/operator.yaml 'imagePullSecrets[0].name' ecr + yq w -i -d4 /tmp/tmp.ddEhLHSorE/operator.yaml 'spec.template.spec.imagePullSecrets[0].name' ecr + kubectl_bin apply -f /tmp/tmp.ddEhLHSorE/operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.Q0yKPVjk2m ++ mktemp + local LAST_ERR=/tmp/tmp.03CmYRrXKT + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl apply -f /tmp/tmp.ddEhLHSorE/operator.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.Q0yKPVjk2m 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.03CmYRrXKT + rm /tmp/tmp.Q0yKPVjk2m /tmp/tmp.03CmYRrXKT + return 0 + wait_job_completion pgo-deploy true + local job=pgo-deploy + local mandatory=true + local ns=init-deploy-17804 + retry=0 + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' pgo-deploy+ retry=0 ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 3 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 4 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 5 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 6 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 7 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 8 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 9 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 10 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 11 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 12 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 13 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 14 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 15 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 16 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 17 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 18 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 19 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 20 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 21 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 22 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 23 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 24 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 25 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 26 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 27 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 28 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 29 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 30 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 31 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 32 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 33 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + kubectl_bin delete -f /tmp/tmp.ddEhLHSorE/operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.5H5oIo5QWD ++ mktemp + local LAST_ERR=/tmp/tmp.s03dNk9b0c + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete -f /tmp/tmp.ddEhLHSorE/operator.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.5H5oIo5QWD 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.s03dNk9b0c + rm /tmp/tmp.5H5oIo5QWD /tmp/tmp.s03dNk9b0c + return 0 ++ get_operator_pod ++ kubectl_bin get pods --selector=name=postgres-operator -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.INXwUsCwru +++ mktemp ++ local LAST_ERR=/tmp/tmp.FVwd53b7Fe ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-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.INXwUsCwru ++ cat /tmp/tmp.FVwd53b7Fe ++ rm /tmp/tmp.INXwUsCwru /tmp/tmp.FVwd53b7Fe ++ return 0 + wait_pod postgres-operator-5bcc8f9cdb-bp8wd + local pod=postgres-operator-5bcc8f9cdb-bp8wd + local ns= + set +o xtrace postgres-operator-5bcc8f9cdb-bp8wdtrue + [[ -n '' ]] + spinup_pgcluster some-name /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/cr.yaml false false false false false false /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/client.yml init-deploy-17804 true + local cluster=some-name + local config=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/cr.yaml + local backup=false + local custom_config=false + local podAntiAffinity=false + local schedule=false + local schedule_type=false + local tls_only=false + local pgoClientFile=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/client.yml + local namespace=init-deploy-17804 + local root_via_pgbouncer=true + desc 'create fresh PG cluster' + set +o xtrace ----------------------------------------------------------------------------------- create fresh PG cluster ----------------------------------------------------------------------------------- + create_user_secrets some-name init-deploy-17804 + local cluster=some-name + local namespace=init-deploy-17804 + yq r -d0 /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/users-secret.yaml + yq w - metadata.name some-name-users-secret + yq w - stringData.some-name some-name_pass + kubectl_bin -n init-deploy-17804 apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.hPUS7PDi7I ++ mktemp + local LAST_ERR=/tmp/tmp.jVwlPUwuCN + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.hPUS7PDi7I secret/some-name-users-secret created + cat /tmp/tmp.jVwlPUwuCN + rm /tmp/tmp.hPUS7PDi7I /tmp/tmp.jVwlPUwuCN + return 0 + yq w - metadata.name some-name-pmm-secret + yq r -d1 /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/users-secret.yaml + kubectl_bin -n init-deploy-17804 apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.bLzt3KUwbO ++ mktemp + local LAST_ERR=/tmp/tmp.KHnpSdBqdz + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 apply -f - + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.bLzt3KUwbO secret/some-name-pmm-secret configured + cat /tmp/tmp.KHnpSdBqdz + rm /tmp/tmp.bLzt3KUwbO /tmp/tmp.KHnpSdBqdz + return 0 + kubectl_bin -n init-deploy-17804 apply -f /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/client.yml ++ mktemp + local LAST_OUT=/tmp/tmp.tc3HFoAbsF ++ mktemp + local LAST_ERR=/tmp/tmp.DMBSGgY99T + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 apply -f /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/conf/client.yml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.tc3HFoAbsF deployment.apps/pg-client unchanged + cat /tmp/tmp.DMBSGgY99T + rm /tmp/tmp.tc3HFoAbsF /tmp/tmp.DMBSGgY99T + return 0 + apply_cluster /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/cr.yaml some-name false false false false false false false false true + local path=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/cr.yaml + local name=some-name + local backup=false + local restore_from=false + local restore_opts=false + local custom_config=false + local podAntiAffinity=false + local schedule=false + local schedule_type=false + local tls_only=false + local root_via_pgbouncer=true + yq w /mnt/jenkins/workspace/cloud-pg-operator_PR-776/deploy/cr.yaml metadata.annotations.current-primary some-name + yq w - metadata.labels.deployment-name some-name + yq w - metadata.labels.name some-name + yq w - spec.database some-name + yq w - spec.user some-name + yq w - spec.name some-name + yq w - spec.pgPrimary.image 119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-postgres-ha + yq w - spec.keepData false + yq w - spec.backup.image 119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-pgbackrest + yq w - spec.secretsName some-name-users-secret + yq w - spec.pgBadger.image 119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-pgbadger + yq w - spec.keepBackups false + yq w - spec.pgBouncer.image 119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-pgbouncer + yq w - metadata.labels.pg-cluster some-name + yq w - spec.backup.backrestRepoImage 119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-pgbackrest-repo + yq w - spec.pmm.image perconalab/pmm-client:2.41.2 + yq w - metadata.labels.crunchy-pgha-scope some-name + yq w - spec.clustername some-name + yq w - metadata.name some-name + case ${podAntiAffinity} in + case ${backup} in + [[ false != \f\a\l\s\e ]] + [[ false != \f\a\l\s\e ]] + [[ false == \t\r\u\e ]] + [[ true == \t\r\u\e ]] + yq w /tmp/tmp.ddEhLHSorE/cr.yaml spec.pgBouncer.exposePostgresUser true + mv /tmp/tmp.ddEhLHSorE/cr.root_pgb.yaml /tmp/tmp.ddEhLHSorE/cr.yaml + kubectl_bin apply -f /tmp/tmp.ddEhLHSorE/cr.yaml -n init-deploy-17804 ++ mktemp + local LAST_OUT=/tmp/tmp.PPMsRjsrnw ++ mktemp + local LAST_ERR=/tmp/tmp.Nm3ft8ry3U + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl apply -f /tmp/tmp.ddEhLHSorE/cr.yaml -n init-deploy-17804 + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.PPMsRjsrnw perconapgcluster.pg.percona.com/some-name created + cat /tmp/tmp.Nm3ft8ry3U + rm /tmp/tmp.PPMsRjsrnw /tmp/tmp.Nm3ft8ry3U + return 0 + wait_deployment some-name-backrest-shared-repo + local name=some-name-backrest-shared-repo + local target_namespace=init-deploy-17804 + sleep 10 + set +o xtrace some-name-backrest-shared-repo.... + wait_deployment some-name + local name=some-name + local target_namespace=init-deploy-17804 + sleep 10 + set +o xtrace some-name......... + [[ false == \g\c\s\+* ]] + wait_job_completion some-name-stanza-create false + local job=some-name-stanza-create + local mandatory=false + local ns=init-deploy-17804 + retry=0 + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' some-name-stanza-create+ retry=0 ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 3 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/some-name-stanza-create -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + wait_job_completion backrest-backup-some-name + local job=backrest-backup-some-name + local mandatory=true + local ns=init-deploy-17804 + retry=0 + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' + sleep 1 + echo -n . .+ let retry+=1 + [[ 1 -ge 120 ]] + [[ 1 -ge 120 ]] + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' backrest-backup-some-name+ retry=0 ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 3 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 4 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 5 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 6 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 7 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 8 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 9 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 10 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 11 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 12 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 13 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 14 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 15 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/backrest-backup-some-name -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + wait_cluster_consistency some-name + cluster_name=some-name + wait_cluster_status some-name 'pgcluster Initialized' + local cluster_name=some-name + local 'target_status=pgcluster Initialized' + local target_namespace=init-deploy-17804 + local status_query= + case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in ++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.qppYVcZoxR +++ mktemp ++ local LAST_ERR=/tmp/tmp.w4OY8Pn0ot ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.qppYVcZoxR ++ cat /tmp/tmp.w4OY8Pn0ot ++ rm /tmp/tmp.qppYVcZoxR /tmp/tmp.w4OY8Pn0ot ++ return 0 + status_query='kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o jsonpath='\''{.status.PGCluster.state}'\''' + local retry=0 ++ eval kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath='\''{.status.PGCluster.state}'\''' +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.status.PGCluster.state}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.tFnalRzshc ++++ mktemp +++ local LAST_ERR=/tmp/tmp.cMFaDfgndG +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.status.PGCluster.state}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.tFnalRzshc +++ cat /tmp/tmp.cMFaDfgndG +++ rm /tmp/tmp.tFnalRzshc /tmp/tmp.cMFaDfgndG +++ 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 init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath='\''{.status.PGCluster.state}'\''' +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.status.PGCluster.state}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.fNp2xinE3H ++++ mktemp +++ local LAST_ERR=/tmp/tmp.Qo7A3RSWGk +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.status.PGCluster.state}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.fNp2xinE3H +++ cat /tmp/tmp.Qo7A3RSWGk +++ rm /tmp/tmp.fNp2xinE3H /tmp/tmp.Qo7A3RSWGk +++ return 0 + [[ pgcluster Initialized == \p\g\c\l\u\s\t\e\r\ \I\n\i\t\i\a\l\i\z\e\d ]] + sleep 10 + desc 'write data' + set +o xtrace ----------------------------------------------------------------------------------- write data ----------------------------------------------------------------------------------- ++ get_psql_user_pass postgres some-name ++ local user=postgres ++ local cluster=some-name ++ local namespace=init-deploy-17804 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.7fOvDgAcqm ++++ mktemp +++ local LAST_ERR=/tmp/tmp.RlfUqDqNFb +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.7fOvDgAcqm +++ cat /tmp/tmp.RlfUqDqNFb +++ rm /tmp/tmp.7fOvDgAcqm /tmp/tmp.RlfUqDqNFb +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.6TDcVayUX7 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.Bch8Q7oPLj +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.6TDcVayUX7 +++ cat /tmp/tmp.Bch8Q7oPLj +++ rm /tmp/tmp.6TDcVayUX7 /tmp/tmp.Bch8Q7oPLj +++ return 0 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.b1HLhM3l7Y ++++ mktemp +++ local LAST_ERR=/tmp/tmp.pgBR3ozAOP +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.b1HLhM3l7Y +++ cat /tmp/tmp.pgBR3ozAOP +++ rm /tmp/tmp.b1HLhM3l7Y /tmp/tmp.pgBR3ozAOP +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.WkL8GrGHDk +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.ALOHLIW3F3 ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.WkL8GrGHDk ++++ cat /tmp/tmp.ALOHLIW3F3 ++++ rm /tmp/tmp.WkL8GrGHDk /tmp/tmp.ALOHLIW3F3 ++++ return 0 +++ kubectl_bin -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.lhTit0Gl1A ++++ mktemp +++ local LAST_ERR=/tmp/tmp.Hu6kBOQ4IR +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.lhTit0Gl1A +++ cat /tmp/tmp.Hu6kBOQ4IR +++ rm /tmp/tmp.lhTit0Gl1A /tmp/tmp.Hu6kBOQ4IR +++ 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.init-deploy-17804 + local 'command=CREATE DATABASE myapp; \c myapp \\\ CREATE TABLE IF NOT EXISTS myApp (id int PRIMARY KEY);' + local uri=postgres:postgres_password@some-name.init-deploy-17804 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.2hMBSEtwkB +++ mktemp ++ local LAST_ERR=/tmp/tmp.SZ374Sgu5i ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.2hMBSEtwkB ++ cat /tmp/tmp.SZ374Sgu5i ++ rm /tmp/tmp.2hMBSEtwkB /tmp/tmp.SZ374Sgu5i ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + kubectl_bin exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.bneqPGjFVz ++ mktemp + local LAST_ERR=/tmp/tmp.1alaz1LB2w + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.bneqPGjFVz + cat /tmp/tmp.1alaz1LB2w + rm /tmp/tmp.bneqPGjFVz /tmp/tmp.1alaz1LB2w + return 0 ++ get_psql_user_pass postgres some-name ++ local user=postgres ++ local cluster=some-name ++ local namespace=init-deploy-17804 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.7Ry9Hn9I2L ++++ mktemp +++ local LAST_ERR=/tmp/tmp.VPAStvFV8H +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.7Ry9Hn9I2L +++ cat /tmp/tmp.VPAStvFV8H +++ rm /tmp/tmp.7Ry9Hn9I2L /tmp/tmp.VPAStvFV8H +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.bsvUyxOmvM ++++ mktemp +++ local LAST_ERR=/tmp/tmp.sN68xNN6Vq +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.bsvUyxOmvM +++ cat /tmp/tmp.sN68xNN6Vq +++ rm /tmp/tmp.bsvUyxOmvM /tmp/tmp.sN68xNN6Vq +++ return 0 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.9Xq56QXfTh ++++ mktemp +++ local LAST_ERR=/tmp/tmp.zN2Ds2yCo9 +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.9Xq56QXfTh +++ cat /tmp/tmp.zN2Ds2yCo9 +++ rm /tmp/tmp.9Xq56QXfTh /tmp/tmp.zN2Ds2yCo9 +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.41tG7pWcPT +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.JFI8Kgcver ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.41tG7pWcPT ++++ cat /tmp/tmp.JFI8Kgcver ++++ rm /tmp/tmp.41tG7pWcPT /tmp/tmp.JFI8Kgcver ++++ return 0 +++ kubectl_bin -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.uqKVbiDlNG ++++ mktemp +++ local LAST_ERR=/tmp/tmp.FqLKjytsUo +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.uqKVbiDlNG +++ cat /tmp/tmp.FqLKjytsUo +++ rm /tmp/tmp.uqKVbiDlNG /tmp/tmp.FqLKjytsUo +++ return 0 ++ echo postgres_password + run_psql '\c myapp \\\ INSERT INTO myApp (id) VALUES (100500)' postgres:postgres_password@some-name.init-deploy-17804 + local 'command=\c myapp \\\ INSERT INTO myApp (id) VALUES (100500)' + local uri=postgres:postgres_password@some-name.init-deploy-17804 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.cvGhQe1bL9 +++ mktemp ++ local LAST_ERR=/tmp/tmp.GZE14qASxw ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.cvGhQe1bL9 ++ cat /tmp/tmp.GZE14qASxw ++ rm /tmp/tmp.cvGhQe1bL9 /tmp/tmp.GZE14qASxw ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + kubectl_bin exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.sQE2D1FTh5 ++ mktemp + local LAST_ERR=/tmp/tmp.5ekE8ee2Yp + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.sQE2D1FTh5 + cat /tmp/tmp.5ekE8ee2Yp + rm /tmp/tmp.sQE2D1FTh5 /tmp/tmp.5ekE8ee2Yp + return 0 ++ get_psql_user_pass postgres some-name ++ local user=postgres ++ local cluster=some-name ++ local namespace=init-deploy-17804 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.5kuZgR2Wpg ++++ mktemp +++ local LAST_ERR=/tmp/tmp.ZPdFUCRagL +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.5kuZgR2Wpg +++ cat /tmp/tmp.ZPdFUCRagL +++ rm /tmp/tmp.5kuZgR2Wpg /tmp/tmp.ZPdFUCRagL +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.2YSXoHeCAo ++++ mktemp +++ local LAST_ERR=/tmp/tmp.VySySb7xgS +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.2YSXoHeCAo +++ cat /tmp/tmp.VySySb7xgS +++ rm /tmp/tmp.2YSXoHeCAo /tmp/tmp.VySySb7xgS +++ return 0 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.lUGr6tg8fm ++++ mktemp +++ local LAST_ERR=/tmp/tmp.nUp8J6jVtD +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.lUGr6tg8fm +++ cat /tmp/tmp.nUp8J6jVtD +++ rm /tmp/tmp.lUGr6tg8fm /tmp/tmp.nUp8J6jVtD +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.2hfx6UaJWi +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.DtboObUzrF ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.2hfx6UaJWi ++++ cat /tmp/tmp.DtboObUzrF ++++ rm /tmp/tmp.2hfx6UaJWi /tmp/tmp.DtboObUzrF ++++ return 0 +++ kubectl_bin -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.OWYjEzFJ4B ++++ mktemp +++ local LAST_ERR=/tmp/tmp.EWkR6dGqwF +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.OWYjEzFJ4B +++ cat /tmp/tmp.EWkR6dGqwF +++ rm /tmp/tmp.OWYjEzFJ4B /tmp/tmp.EWkR6dGqwF +++ 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.init-deploy-17804 + 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.init-deploy-17804 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.fxsVIYTC9t +++ mktemp ++ local LAST_ERR=/tmp/tmp.F9jl6gLKzg ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.fxsVIYTC9t ++ cat /tmp/tmp.F9jl6gLKzg ++ rm /tmp/tmp.fxsVIYTC9t /tmp/tmp.F9jl6gLKzg ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + kubectl_bin exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.BKTG42X7Pc ++ mktemp + local LAST_ERR=/tmp/tmp.hRSiSfiuOE + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- 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.init-deploy-17804.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.BKTG42X7Pc + cat /tmp/tmp.hRSiSfiuOE + rm /tmp/tmp.BKTG42X7Pc /tmp/tmp.hRSiSfiuOE + return 0 + sleep 10 ++ get_psql_user_pass postgres some-name ++ local user=postgres ++ local cluster=some-name ++ local namespace=init-deploy-17804 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.t48wstGGT8 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.0M1e4DMcVW +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.metadata.name}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.t48wstGGT8 +++ cat /tmp/tmp.0M1e4DMcVW +++ rm /tmp/tmp.t48wstGGT8 /tmp/tmp.0M1e4DMcVW +++ return 0 ++ [[ xsome-name == \x ]] ++ case $(kubectl_bin get perconapgcluster/${cluster_name} -o jsonpath='{.metadata.labels.pgo-version}') in +++ kubectl_bin get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.JKfPzvD9JU ++++ mktemp +++ local LAST_ERR=/tmp/tmp.Um9oKeiNx8 +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl get perconapgcluster/some-name -o 'jsonpath={.metadata.labels.pgo-version}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.JKfPzvD9JU +++ cat /tmp/tmp.Um9oKeiNx8 +++ rm /tmp/tmp.JKfPzvD9JU /tmp/tmp.Um9oKeiNx8 +++ return 0 +++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.7bVBMNbWED ++++ mktemp +++ local LAST_ERR=/tmp/tmp.zTXciV72sq +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.7bVBMNbWED +++ cat /tmp/tmp.zTXciV72sq +++ rm /tmp/tmp.7bVBMNbWED /tmp/tmp.zTXciV72sq +++ return 0 ++ [[ xsome-name-users-secret == \x ]] +++ base64 -d ++++ kubectl_bin -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.gStMXyc1h9 +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.eI6TekSoyl ++++ local exit_status=0 ++++ local timeout=4 ++++ set +o errexit +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++++ kubectl -n init-deploy-17804 get perconapgcluster/some-name -o 'jsonpath={.spec.secretsName}' ++++ exit_status=0 ++++ [[ 0 != 0 ]] ++++ break ++++ set -o errexit ++++ cat /tmp/tmp.gStMXyc1h9 ++++ cat /tmp/tmp.eI6TekSoyl ++++ rm /tmp/tmp.gStMXyc1h9 /tmp/tmp.eI6TekSoyl ++++ return 0 +++ kubectl_bin -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.mg3BFFabec ++++ mktemp +++ local LAST_ERR=/tmp/tmp.d9LTvn7pYf +++ local exit_status=0 +++ local timeout=4 +++ set +o errexit ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox +++ kubectl -n init-deploy-17804 get secret/some-name-users-secret -o 'jsonpath={.data.postgres}' +++ exit_status=0 +++ [[ 0 != 0 ]] +++ break +++ set -o errexit +++ cat /tmp/tmp.mg3BFFabec +++ cat /tmp/tmp.d9LTvn7pYf +++ rm /tmp/tmp.mg3BFFabec /tmp/tmp.d9LTvn7pYf +++ return 0 ++ echo postgres_password + compare_psql_cmd select-1 '\c myapp \\\ SELECT * from myApp;' postgres:postgres_password@some-name-pgbouncer.init-deploy-17804 + local command_id=select-1 + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=postgres:postgres_password@some-name-pgbouncer.init-deploy-17804 + local postfix= + local uri_suffix= + local expected_result=/mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/select-1.sql + run_psql '\c myapp \\\ SELECT * from myApp;' postgres:postgres_password@some-name-pgbouncer.init-deploy-17804 postgres '' + local 'command=\c myapp \\\ SELECT * from myApp;' + local uri=postgres:postgres_password@some-name-pgbouncer.init-deploy-17804 + local driver=postgres + local suffix=.svc.cluster.local ++ kubectl_bin -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Qnt8rApjxx +++ mktemp ++ local LAST_ERR=/tmp/tmp.OrWfHRG8H5 ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox ++ kubectl -n init-deploy-17804 get pods --selector=name=pg-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ [[ 0 != 0 ]] ++ break ++ set -o errexit ++ cat /tmp/tmp.Qnt8rApjxx ++ cat /tmp/tmp.OrWfHRG8H5 ++ rm /tmp/tmp.Qnt8rApjxx /tmp/tmp.OrWfHRG8H5 ++ return 0 + local client_container=pg-client-76df9df876-7pdvj + kubectl_bin exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@some-name-pgbouncer.init-deploy-17804.svc.cluster.local' ++ mktemp + local LAST_OUT=/tmp/tmp.4oa2kUyLkH ++ mktemp + local LAST_ERR=/tmp/tmp.zSnpvLUgTE + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl exec pg-client-76df9df876-7pdvj -n init-deploy-17804 -- bash -c 'printf '\''\c myapp \\\ SELECT * from myApp;\n'\'' | psql -v ON_ERROR_STOP=1 -t -q postgres://postgres:postgres_password@some-name-pgbouncer.init-deploy-17804.svc.cluster.local' + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.4oa2kUyLkH + cat /tmp/tmp.zSnpvLUgTE + rm /tmp/tmp.4oa2kUyLkH /tmp/tmp.zSnpvLUgTE + return 0 + '[' '!' -s /tmp/tmp.ddEhLHSorE/select-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pg-operator_PR-776/e2e-tests/init-deploy/compare/select-1.sql /tmp/tmp.ddEhLHSorE/select-1.sql + destroy init-deploy-17804 + grep -v level=debug + grep -v 'Getting tasks for pod' ++ get_operator_pod + grep -v 'Getting pods from source' ++ kubectl_bin get pods --selector=name=postgres-operator -o 'jsonpath={.items[].metadata.name}' +++ mktemp + tee /tmp/tmp.ddEhLHSorE/operator.log + /usr/bin/sed -r 's/"ts":[0-9.]+//; s^limits-[0-9.]+/^^g' + grep -v 'the object has been modified' + grep -v 'get backup status: Job.batch' ++ local LAST_OUT=/tmp/tmp.8iTlDsug1j + sort -u + grep -v level=info +++ mktemp ++ local LAST_ERR=/tmp/tmp.pOfwhSejll ++ local exit_status=0 ++ local timeout=4 ++ set +o errexit +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-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.8iTlDsug1j ++ cat /tmp/tmp.pOfwhSejll ++ rm /tmp/tmp.8iTlDsug1j /tmp/tmp.pOfwhSejll ++ return 0 + kubectl_bin logs postgres-operator-5bcc8f9cdb-bp8wd -c operator ++ mktemp + local LAST_OUT=/tmp/tmp.mjl53f0nWf ++ mktemp + local LAST_ERR=/tmp/tmp.DCBht0ddZo + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl logs postgres-operator-5bcc8f9cdb-bp8wd -c operator + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.mjl53f0nWf + cat /tmp/tmp.DCBht0ddZo + rm /tmp/tmp.mjl53f0nWf /tmp/tmp.DCBht0ddZo + return 0 ] { } }, ] } }, { } }, ] { } }, { } ] } { } }, ] } ] { } }, }, { ] { } }, ] ] ], { } }, }, { }, { },{ }] }], ] { } }, , ], { } }, }], { } }, }], } ], } }, } }, } }, { } }, }, 2024/05/27 17:06:04 INF 1 (localhost:4150) connecting to nsqd 2024/05/27 17:06:56 INF 2 (localhost:4150) connecting to nsqd 2024/05/27 17:06:57 INF 3 (localhost:4150) connecting to nsqd 2024/05/27 17:07:04 INF 4 (localhost:4150) connecting to nsqd 2024/05/27 17:07:31 INF 5 (localhost:4150) connecting to nsqd 2024/05/27 17:07:31 INF 6 (localhost:4150) connecting to nsqd 2024/05/27 17:07:31 INF 7 (localhost:4150) connecting to nsqd "accessModes": [ "affinity": "affinity": { "affinity": { "podAntiAffinity": { "allowPrivilegeEscalation": false, "annotations": {"keep-backups":"false","keep-data":"false"}, "apiVersion": "apps/v1", "apiVersion": "batch/v1", "apiVersion": "v1", "apiVersion": "v1", "apiVersion": "v1", "backrest-command": "backup", "backrest-command": "stanza-create", "claimName": "some-name-pgbr-repo" "command": [ "configMap": { "configMap": { "configMapKeyRef": { "containerName": "database", "containerPort": 2022, "containerPort": 5432, "containerPort": 8009, "containers": [ "containers": [{ "cpu": "1", "cpu": "200m", "cpu": "500m", "crunchydata" "crunchy-pgbouncer": "true", "crunchy-pgbouncer": "true", "crunchy-pgbouncer": "true", "defaultMode": 288 "defaultMode": 288, "defaultMode": 288, "defaultMode": 420, "deployment-name": "some-name" "deployment-name": "some-name","pgouser": "admin","crunchy-pgha-scope": "some-name","pgo-version": "1.7.0","name": "some-name","pg-cluster": "some-name" "deployment-name": "some-name-repl1" "deployment-name": "some-name-repl2" "divisor": "1m", "dnsPolicy": "ClusterFirst" "downwardAPI": { "emptyDir": { "emptyDir": { "emptyDir": { "emptyDir": { "env": [ "env": [{ "exec": { "fieldPath": "metadata.annotations" "fieldPath": "metadata.labels" "fieldPath": "metadata.labels['crunchy-pgha-scope']" "fieldPath": "metadata.namespace" "fieldRef": { "fieldRef": { "fsGroup": 2, I0527 17:05:28.485841 1 shared_informer.go:240] Waiting for caches to sync for namespace I0527 17:05:28.586263 1 shared_informer.go:247] Caches are synced for namespace I0527 17:05:28.788318 1 shared_informer.go:240] Waiting for caches to sync for init-deploy-17804 I0527 17:05:28.989023 1 shared_informer.go:247] Caches are synced for init-deploy-17804 "image": "119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-pgbackrest", "image": "119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-pgbackrest-repo", "image": "119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-pgbouncer", "image": "119175775298.dkr.ecr.us-east-1.amazonaws.com/perconalab/percona-postgresql-operator:main-ppg14-postgres-ha", "imagePullPolicy": "IfNotPresent" "imagePullPolicy": "IfNotPresent", "initialDelaySeconds": 15 "initialDelaySeconds": 30, "items": [ "items": [ "items": [ "key": "config", "key": "config", "key": "crunchy-pgbouncer", "key": "init" "key": "password" "key": "pg-cluster", "key": "pgo-backrest", "key": "pgo-backrest-job", "key": "pgo-pg-database", "key": "pg-pod-anti-affinity", "key": "tls.crt", "key": "tls.key", "key": "vendor", "kind": "Deployment", "kind": "Job", "kind": "PersistentVolumeClaim", "kind": "Service", "labels": { "labels": { "labels": { "labelSelector": { "livenessProbe": { "matchExpressions": [ "matchLabels": { "matchLabels": { "maxSurge": 1 "maxUnavailable": 1, "medium": "Memory", "medium": "Memory" "medium": "Memory", "medium": "Memory", "medium": "Memory", "memory": "128Mi" "memory": "256Mi" "memory": "48Mi" "metadata": { "metadata": { "metadata": { "mountPath": "/backrestrepo", "mountPath": "/dev/shm", "mountPath": "/etc/pgbackrest" "mountPath": "/etc/pgbackrest/conf.d", "mountPath": "/etc/podinfo", "mountPath": "/etc/ssh", "mountPath": "/etc/ssh", "mountPath": "/home/pgbackrest" "mountPath": "/pgconf", "mountPath": "/pgconf/", "mountPath": "/pgconf/pgreplicator", "mountPath": "/pgconf/pgsuper", "mountPath": "/pgconf/pguser", "mountPath": "/pgconf/tls", "mountPath": "/pgconf/tls/pgbouncer", "mountPath": "/pgconf/tls-replication", "mountPath": "/pgdata", "mountPath": "/sshd", "mountPath": "/sshd", "mountPath": "/tmp", "mountPath": "/tmp", "mountPath": "/tmp" "name": "backrest", "name": "backrest-backup-some-name", "name": "backrestrepo", "name": "backrestrepo", "name": "BACKREST_SKIP_CREATE_STANZA", "name": "cluster1-replication-ssl-keypair", "name": "cluster1-ssl-ca" "name": "cluster1-ssl-ca" "name": "cluster1-ssl-keypair" "name": "cluster1-ssl-keypair" "name": "COMMAND", "name": "COMMAND_OPTS", "name": "database", "name": "dshm" "name": "dshm", "name": "ENABLE_SSHD", "name": "LD_PRELOAD", "name": "LD_PRELOAD", "name": "MODE", "name": "NAMESPACE", "name": "NSS_WRAPPER_GROUP", "name": "NSS_WRAPPER_GROUP", "name": "NSS_WRAPPER_PASSWD", "name": "NSS_WRAPPER_PASSWD", "name": "patroni" "name": "PATRONI_KUBERNETES_LABELS", "name": "PATRONI_KUBERNETES_NAMESPACE", "name": "PATRONI_KUBERNETES_SCOPE_LABEL", "name": "PATRONI_LOG_LEVEL", "name": "PATRONI_POSTGRESQL_DATA_DIR", "name": "PATRONI_SCOPE", "name": "pgbackrest" "name": "pgbackrest-conf", "name": "pgbackrest-conf", "name": "pgbackrest-config" "name": "pgbackrest-config", "name": "PGBACKREST_DB_HOST", "name": "PGBACKREST_DB_PATH", "name": "PGBACKREST_DB_PATH", "name": "pgbackrest-home", "name": "pgbackrest-home", "name": "PGBACKREST_LOG_PATH", "name": "PGBACKREST_LOG_PATH", "name": "PGBACKREST_PG1_PORT", "name": "PGBACKREST_PG1_PORT", "name": "PGBACKREST_PG1_SOCKET_PATH", "name": "PGBACKREST_PG1_SOCKET_PATH", "name": "PGBACKREST_REPO1_HOST", "name": "PGBACKREST_REPO1_PATH", "name": "PGBACKREST_REPO1_PATH", "name": "PGBACKREST_REPO1_TYPE", "name": "PGBACKREST_REPO1_TYPE", "name": "PGBACKREST_STANZA", "name": "PGBACKREST_STANZA", "name": "pgbouncer" "name": "pgbouncer", "name": "pgbouncer-conf", "name": "pgbouncer-conf", "name": "pgconf-volume" "name": "pgconf-volume", "name": "pgdata", "name": "pgdata", "name": "PGHA_DATABASE", "name": "PGHA_INIT", "name": "PGHA_PASSWORD_TYPE", "name": "PGHA_PGBACKREST", "name": "PGHA_PGBACKREST_LOCAL_GCS_STORAGE", "name": "PGHA_PGBACKREST_LOCAL_GCS_STORAGE", "name": "PGHA_PGBACKREST_LOCAL_S3_STORAGE", "name": "PGHA_PGBACKREST_LOCAL_S3_STORAGE", "name": "PGHA_PGBACKREST_S3_VERIFY_TLS", "name": "PGHA_PG_PORT", "name": "PGHA_REPLICA_REINIT_ON_START_FAIL", "name": "PGHA_STANDBY", "name": "PGHA_SYNC_REPLICATION", "name": "PGHA_TLS_ENABLED", "name": "PGHA_TLS_ONLY", "name": "PGHA_USER", "name": "PGHOST", "name": "PG_PASSWORD", "name": "PG_PRIMARY_SERVICE_NAME", "name": "PITR_TARGET", "name": "podinfo" "name": "podinfo", "name": "PODNAME", "name": "postgres" "name": "primary-volume" "name": "primary-volume", "name": "report", "name": "root-volume" "name": "root-volume", "name": "some-name", "name": "some-name", "name": "some-name-backrest-shared-repo", "name": "some-name-backrest-shared-repo" "name": "some-name-backrest-shared-repo", "name": "some-name-backrest-shared-repo", "name": "some-name-backrest-shared-repo", "name": "some-name-pgbouncer", "name": "some-name-pgbouncer", "name": "some-name-pgbouncer", "name": "some-name-pgbouncer", "name": "some-name-pgbouncer-cm" "name": "some-name-pgbouncer-secret", "name": "some-name-pgbouncer-secret", "name": "some-name-pgbr-repo", "name": "some-name","pg-cluster": "some-name","deployment-name": "some-name","pgouser": "admin","crunchy-pgha-scope": "some-name","pgo-version": "1.7.0" "name": "some-name-pgha-config", "name": "some-name-pgha-config", "name": "some-name-repl1", "name": "some-name-repl1", "name": "some-name-repl2", "name": "some-name-repl2", "name": "some-name-stanza-create", "name": "ssh-config", "name": "ssh-config", "name": "ssh-config", "name": "ssh-config", "name": "sshd", "name": "sshd", "name": "sshd", "name": "sshd", "name": "tls-pgbouncer" "name": "tls-pgbouncer", "name": "tls-replication" "name": "tls-replication", "name": "tls-server" "name": "tls-server", "name": "tmp" "name": "tmp" "name": "tmp", "name": "tmp", "name": "tmp", "name": "user-volume" "name": "user-volume", "nodePort": 0 "operator": "Exists" "operator": "In", "/opt/crunchy/bin/postgres-ha/health/pgha-liveness.sh" "/opt/crunchy/bin/postgres-ha/health/pgha-readiness.sh" "optional": true "path": "annotations" "path": "cpu_limit", "path": "cpu_request", "path": "labels" "path": "mem_limit", "path": "mem_request", "path": "ssh_config" "path": "ssh_config" "path": "tls-replication.crt" "path": "tls-replication.key" "periodSeconds": 15, "persistentVolumeClaim": { "persistentVolumeClaim":{"claimName":"some-name"} "persistentVolumeClaim":{"claimName":"some-name-repl1"} "persistentVolumeClaim":{"claimName":"some-name-repl2"} "pg-cluster": "some-name" "pg-cluster": "some-name", "pg-cluster": "some-name" "pg-cluster": "some-name", "pg-cluster": "some-name" "pg-cluster": "some-name", "pg-cluster": "some-name","deployment-name": "some-name-repl1","pgo-version": "1.7.0","name": "some-name-replica" "pgo-backrest-job": "true", "pgo-backrest-repo": "true" "pgo-backrest-repo": "true", "pgo-backrest-repo": "true" "pgo-backrest": "true", "pgo-pg-database": "true", "pgo-pg-database": "true", "pgo-version": "1.7.0","name": "some-name-replica","pg-cluster": "some-name","deployment-name": "some-name-repl1" "pgo-version": "1.7.0","name": "some-name-replica","pg-cluster": "some-name","deployment-name": "some-name-repl2" "pgo-version": "1.7.0","name": "some-name-replica","pg-cluster": "some-name","deployment-name": "some-name-repl2" "pg-pod-anti-affinity": "preferred", "pg-pod-anti-affinity": "preferred", "podAffinityTerm": { "podAntiAffinity": { "podAntiAffinity": { "podAntiAffinity": { "port": 2022, "ports": [{ "ports": [{ "preferredDuringSchedulingIgnoredDuringExecution": [ "privileged": false, "projected": { "projected": { "projected": { "projected": { "sources": [] } "protocol": "TCP", "protocol": "TCP", "readinessProbe": { "readOnly": false "readOnly": false "readOnly": false "readOnlyRootFilesystem": true "readOnly": true "readOnly": true "readOnly": true "ReadWriteOnce" "replicas": 0, "replicas": 1, "replicas": 3, "requests": { "requests": { "resourceFieldRef": { "resource": "limits.cpu" "resource": "limits.memory" "resource": "requests.cpu" "resource": "requests.memory" "resources": { "resources": { "restartPolicy": "Always", "restartPolicy": "Never" "rollingUpdate": { "runAsNonRoot": true "secret": { "secret": { "secret": { "secret": { "secret": { "secretKeyRef": { "secretName": "some-name-backrest-repo-config" "secretName": "some-name-backrest-repo-config", "secretName": "some-name-backrest-repo-config" "secretName": "some-name-backrest-repo-config", "secretName": "some-name-postgres-secret" "secretName": "some-name-primaryuser-secret" "secretName": "some-name-some-name-secret" "securityContext": { "securityContext": { "securityContext": {}, "securityContext": {"fsGroup": 26,"supplementalGroups": [1001]}, "securityContext": {"runAsNonRoot":true,"fsGroup":26}, "selector": { "selector": { "serviceAccountName": "pgo-backrest", "serviceAccountName": "pgo-default", "serviceAccountName": "pgo-pg", "service-name": "some-name-backrest-shared-repo", "service-name": "some-name-backrest-shared-repo", "service-name": "some-name-pgbouncer", "service-name": "some-name-pgbouncer", "service-name": "some-name-pgbouncer", "sessionAffinity": "None" "sizeLimit": "128Ki" "sizeLimit": "16Mi" "sizeLimit": "1Mi" "sizeLimit": "2Mi" "sizeLimit": "64Mi" "sizeLimit": "64Mi" "some-name" "sources": [ "sources": [ "sources": [ "spec": { "spec": { "spec": { "storage": "1Gi" "strategy": { "targetPort": 2022, "template": { time="2024-05-27T17:05:28Z" level=warning msg="PGAdminStorage setting not set, will use PrimaryStorage setting" func="github.com/percona/percona-postgresql-operator/internal/config.(*PgoConfig).Validate()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/config/pgoconfig.go:337" version=1.7.0 time="2024-05-27T17:06:07Z" level=error msg="get deployment some-name-repl1: deployments.apps \"some-name-repl1\" not found" func="github.com/percona/percona-postgresql-operator/percona/controllers/pgreplica.CreateReplicaResource()" file="/go/src/github.com/percona/percona-postgresql-operator/percona/controllers/pgreplica/pgreplica.go:40" version=1.7.0 time="2024-05-27T17:06:12Z" level=error msg="get deployment some-name-repl2: deployments.apps \"some-name-repl2\" not found" func="github.com/percona/percona-postgresql-operator/percona/controllers/pgreplica.CreateReplicaResource()" file="/go/src/github.com/percona/percona-postgresql-operator/percona/controllers/pgreplica/pgreplica.go:40" version=1.7.0 time="2024-05-27T17:06:56Z" level=error msg="Error completing workflow some-name-createcluster" func="github.com/percona/percona-postgresql-operator/internal/operator/task.completeWorkflow()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/task/workflow.go:48" version=1.7.0 time="2024-05-27T17:06:56Z" level=error msg="pgtasks.pg.percona.com \"some-name-createcluster\" not found" func="github.com/percona/percona-postgresql-operator/internal/operator/task.completeWorkflow()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/task/workflow.go:49" version=1.7.0 time="2024-05-27T17:06:56Z" level=warning msg="postgres user are exposed through PgBouncer" func="github.com/percona/percona-postgresql-operator/internal/operator/cluster.installPgBouncer()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/cluster/pgbouncer.go:861" version=1.7.0 time="2024-05-27T17:06:57Z" level=warning msg="postgres user are exposed through PgBouncer" func="github.com/percona/percona-postgresql-operator/internal/operator/cluster.installPgBouncer()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/cluster/pgbouncer.go:861" version=1.7.0 time="2024-05-27T17:07:31Z" level=warning msg="crv1 pgreplica some-name-repl1 is already marked complete, will not recreate" func="github.com/percona/percona-postgresql-operator/internal/operator/cluster.ScaleBase()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/cluster/cluster.go:535" version=1.7.0 time="2024-05-27T17:07:32Z" level=warning msg="crv1 pgreplica some-name-repl1 is already marked complete, will not recreate" func="github.com/percona/percona-postgresql-operator/internal/operator/cluster.ScaleBase()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/cluster/cluster.go:535" version=1.7.0 time="2024-05-27T17:07:32Z" level=warning msg="crv1 pgreplica some-name-repl2 is already marked complete, will not recreate" func="github.com/percona/percona-postgresql-operator/internal/operator/cluster.ScaleBase()" file="/go/src/github.com/percona/percona-postgresql-operator/internal/operator/cluster/cluster.go:535" version=1.7.0 "timeoutSeconds": 10 "topologyKey": "kubernetes.io/hostname" "type": "ClusterIP", "type": "RollingUpdate", "value": "" "value": "5432" "value": "5432" "value": "/backrestrepo/some-name-backrest-shared-repo" "value": "/backrestrepo/some-name-backrest-shared-repo" "value": "backup" "value": "crunchy-pgha-scope" "value": "db" "value": "db" "value": " --db-host=10.87.48.14 --db-path=/pgdata/some-name" "value": "false" "value": "false" "valueFrom": { "value": "INFO" "value": "pgbackrest" "value": "pgbackrest-repo" "value": "/pgdata/some-name" "value": "/pgdata/some-name" "value": "/pgdata/some-name-repl1" "value": "/pgdata/some-name-repl1" "value": "/pgdata/some-name-repl2" "value": "/pgdata/some-name-repl2" "value": "posix" "value": "posix" "value": "postgres" "values": [ "value": "some-name" "value": "some-name-backrest-shared-repo" "value": "some-name-backrest-shared-repo-68c8b7f74c-znptj" "value": "stanza-create" "value": "/tmp" "value": "/tmp" "value": "/tmp/nss_wrapper/pgbackrest-repo/group" "value": "/tmp/nss_wrapper/pgbackrest-repo/passwd" "value": "/tmp/nss_wrapper/postgres/group" "value": "/tmp/nss_wrapper/postgres/passwd" "value": "true" "value": "true" "value": "--type=full --db-host=10.87.48.14 --db-path=/pgdata/some-name" "value": "/usr/lib64/libnss_wrapper.so" "value": "/usr/lib64/libnss_wrapper.so" "value": "{vendor: \"crunchydata\"}" "vendor": "crunchydata" "vendor": "crunchydata", "vendor": "crunchydata" "vendor": "crunchydata", "vendor": "crunchydata" "vendor": "crunchydata", "volumeMounts": [ "volumeMounts": [{ "volumes": [ "volumes": [{ "weight": 1, + destroy_operator + kubectl_bin delete -f /tmp/tmp.ddEhLHSorE/operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.Z41dqHCg6K ++ mktemp + local LAST_ERR=/tmp/tmp.WBJ04OtHTf + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete -f /tmp/tmp.ddEhLHSorE/operator.yaml + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete -f /tmp/tmp.ddEhLHSorE/operator.yaml + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete -f /tmp/tmp.ddEhLHSorE/operator.yaml + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.Z41dqHCg6K + cat /tmp/tmp.WBJ04OtHTf Error from server (NotFound): error when deleting "/tmp/tmp.ddEhLHSorE/operator.yaml": serviceaccounts "pgo-deployer-sa" not found Error from server (NotFound): error when deleting "/tmp/tmp.ddEhLHSorE/operator.yaml": clusterroles.rbac.authorization.k8s.io "pgo-deployer-cr" not found Error from server (NotFound): error when deleting "/tmp/tmp.ddEhLHSorE/operator.yaml": configmaps "pgo-deployer-cm" not found Error from server (NotFound): error when deleting "/tmp/tmp.ddEhLHSorE/operator.yaml": clusterrolebindings.rbac.authorization.k8s.io "pgo-deployer-crb" not found Error from server (NotFound): error when deleting "/tmp/tmp.ddEhLHSorE/operator.yaml": jobs.batch "pgo-deploy" not found + rm /tmp/tmp.Z41dqHCg6K /tmp/tmp.WBJ04OtHTf + return 1 + true + yq w -d4 /tmp/tmp.ddEhLHSorE/operator.yaml 'spec.template.spec.containers[0].env[0].value' uninstall + kubectl_bin apply -f /tmp/tmp.ddEhLHSorE/operator-destroy.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.PtKVH8BrA0 ++ mktemp + local LAST_ERR=/tmp/tmp.inifANhsvJ + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl apply -f /tmp/tmp.ddEhLHSorE/operator-destroy.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.PtKVH8BrA0 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.inifANhsvJ + rm /tmp/tmp.PtKVH8BrA0 /tmp/tmp.inifANhsvJ + return 0 + wait_job_completion pgo-deploy true + local job=pgo-deploy + local mandatory=true + local ns=init-deploy-17804 + retry=0 + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' pgo-deploy+ retry=0 ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 1 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 2 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 3 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 4 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 5 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 6 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 7 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 8 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 9 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 10 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 11 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 12 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 13 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 14 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 15 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 16 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 17 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 18 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ '' == \1 ]] + sleep 1 + echo -n . .+ let retry+=1 + '[' 19 -ge 600 ']' ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.metadata.name}' ++ grep -io 'not found' + [[ '' == \n\o\t\ \f\o\u\n\d ]] ++ kubectl_bin -n init-deploy-17804 get job/pgo-deploy -o 'jsonpath={.status.succeeded}' + [[ 1 == \1 ]] + echo + kubectl_bin delete -f /tmp/tmp.ddEhLHSorE/operator-destroy.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.lwIQH3SGTt ++ mktemp + local LAST_ERR=/tmp/tmp.wsdJk8Wfji + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete -f /tmp/tmp.ddEhLHSorE/operator-destroy.yaml + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.lwIQH3SGTt 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.wsdJk8Wfji + rm /tmp/tmp.lwIQH3SGTt /tmp/tmp.wsdJk8Wfji + return 0 + kubectl_bin get ns + awk '{print$1}' + xargs kubectl delete ns --grace-period=0 --force=true + egrep -v '^kube-|^default|Terminating|openshift|^NAME' ++ mktemp + local LAST_OUT=/tmp/tmp.TyqMBR9ywF ++ mktemp + local LAST_ERR=/tmp/tmp.9wGp3a1iPF + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl get ns + exit_status=0 + [[ 0 != 0 ]] + break + set -o errexit + cat /tmp/tmp.TyqMBR9ywF + cat /tmp/tmp.9wGp3a1iPF + rm /tmp/tmp.TyqMBR9ywF /tmp/tmp.9wGp3a1iPF + 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 "init-deploy-17804" force deleted + kubectl_bin delete clusterrolebindings pgo-cluster-role pgo-deployer-cr ++ mktemp + local LAST_OUT=/tmp/tmp.MOYkET7bZh ++ mktemp + local LAST_ERR=/tmp/tmp.W7v2Gsw2Tz + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete clusterrolebindings pgo-cluster-role pgo-deployer-cr + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete clusterrolebindings pgo-cluster-role pgo-deployer-cr + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete clusterrolebindings pgo-cluster-role pgo-deployer-cr + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.MOYkET7bZh + cat /tmp/tmp.W7v2Gsw2Tz 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.MOYkET7bZh /tmp/tmp.W7v2Gsw2Tz + return 1 + true + kubectl_bin delete clusterroles pgo-cluster-role pgo-deployer-cr ++ mktemp + local LAST_OUT=/tmp/tmp.2RqmXPtHbn ++ mktemp + local LAST_ERR=/tmp/tmp.d0eAGDo7us + local exit_status=0 + local timeout=4 + set +o errexit ++ seq 0 2 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete clusterroles pgo-cluster-role pgo-deployer-cr + exit_status=1 + [[ 1 != 0 ]] + sleep 0 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete clusterroles pgo-cluster-role pgo-deployer-cr + exit_status=1 + [[ 1 != 0 ]] + sleep 4 + for i in '$(seq 0 2)' + KUBECONFIG=/tmp/jen-pg-776-0087ef129-5-sandbox + kubectl delete clusterroles pgo-cluster-role pgo-deployer-cr + exit_status=1 + [[ 1 != 0 ]] + sleep 8 + set -o errexit + cat /tmp/tmp.2RqmXPtHbn + cat /tmp/tmp.d0eAGDo7us 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.2RqmXPtHbn /tmp/tmp.d0eAGDo7us + return 1 + true + rm -rf /tmp/tmp.ddEhLHSorE