Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/logs/pitr-to-new-cluster.log grep: warning: stray \ before - Warning: version difference between client (1.34) and server (1.31) exceeds the supported minor version skew of +/-1 Warning: version difference between client (1.34) and server (1.31) exceeds the supported minor version skew of +/-1 Warning: version difference between client (1.34) and server (1.31) exceeds the supported minor version skew of +/-1 + source_cluster=some-name-source + target_cluster=some-name-target + backup_name_minio=backup-minio + setup_infra + create_infra pitr-to-new-cluster-15939 + local ns=pitr-to-new-cluster-15939 + [[ 1 == 1 ]] + delete_crd + desc 'get and delete old CRDs and RBAC' + set +o xtrace ----------------------------------------------------------------------------------- get and delete old CRDs and RBAC ----------------------------------------------------------------------------------- + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.587sWa4nJ8 ++ mktemp + local LAST_ERR=/tmp/tmp.rBwBUdwmhx + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.587sWa4nJ8 customresourcedefinition.apiextensions.k8s.io "perconaservermongodbbackups.psmdb.percona.com" deleted customresourcedefinition.apiextensions.k8s.io "perconaservermongodbrestores.psmdb.percona.com" deleted customresourcedefinition.apiextensions.k8s.io "perconaservermongodbs.psmdb.percona.com" deleted + cat /tmp/tmp.rBwBUdwmhx + rm /tmp/tmp.587sWa4nJ8 /tmp/tmp.rBwBUdwmhx + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/deploy/crd.yaml ++ grep -v '\-\-\-' grep: warning: stray \ before - grep: warning: stray \ before - + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + kubectl get perconaservermongodbbackups.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbbackups.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' No resources found + kubectl patch perconaservermongodbbackups.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: resource(s) were provided, but no name was specified + : + kubectl_bin wait --for=delete crd perconaservermongodbbackups.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.SJ8xTskuH5 ++ mktemp + local LAST_ERR=/tmp/tmp.uncZcaX9Jw + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete crd perconaservermongodbbackups.psmdb.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.SJ8xTskuH5 + cat /tmp/tmp.uncZcaX9Jw + rm /tmp/tmp.SJ8xTskuH5 /tmp/tmp.uncZcaX9Jw + return 0 + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + kubectl get perconaservermongodbrestores.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbrestores.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbrestores" + kubectl patch perconaservermongodbrestores.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbrestores" + : + kubectl_bin wait --for=delete crd perconaservermongodbrestores.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.rRyyGDVnSR ++ mktemp + local LAST_ERR=/tmp/tmp.oYcDkQeKSD + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete crd perconaservermongodbrestores.psmdb.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.rRyyGDVnSR + cat /tmp/tmp.oYcDkQeKSD + rm /tmp/tmp.rRyyGDVnSR /tmp/tmp.oYcDkQeKSD + return 0 + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + kubectl get perconaservermongodbs.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbs.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' No resources found + kubectl patch perconaservermongodbs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbs" + : + kubectl_bin wait --for=delete crd perconaservermongodbs.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.POcK2DjbTE ++ mktemp + local LAST_ERR=/tmp/tmp.exS5jMTu7A + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete crd perconaservermongodbs.psmdb.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.POcK2DjbTE + cat /tmp/tmp.exS5jMTu7A + rm /tmp/tmp.POcK2DjbTE /tmp/tmp.exS5jMTu7A + return 0 + local rbac_yaml=rbac.yaml + '[' -n psmdb-operator ']' + rbac_yaml=cw-rbac.yaml + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/deploy/cw-rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.NblYF15Tsp ++ mktemp + local LAST_ERR=/tmp/tmp.GFxs7d9zoj + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/deploy/cw-rbac.yaml --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.NblYF15Tsp clusterrole.rbac.authorization.k8s.io "percona-server-mongodb-operator" deleted clusterrolebinding.rbac.authorization.k8s.io "service-account-percona-server-mongodb-operator" deleted + cat /tmp/tmp.GFxs7d9zoj + rm /tmp/tmp.NblYF15Tsp /tmp/tmp.GFxs7d9zoj + return 0 + check_crd_for_deletion PR-1850-e336896c + local git_tag=PR-1850-e336896c ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-1850-e336896c/deploy/crd.yaml ++ yq eval .metadata.name ++ /usr/sbin/sed s/---//g ++ /usr/sbin/sed ':a;N;$!ba;s/\n/ /g' + for crd_name in $(curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/${git_tag}/deploy/crd.yaml | yq eval '.metadata.name' | $sed 's/---//g' | $sed ':a;N;$!ba;s/\n/ /g') ++ kubectl_bin get crd/null -o 'jsonpath={.status.conditions[-1].type}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.1Q6fq5maAg +++ mktemp ++ local LAST_ERR=/tmp/tmp.3Z8irQqvm0 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get crd/null -o 'jsonpath={.status.conditions[-1].type}' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.1Q6fq5maAg ++ cat /tmp/tmp.3Z8irQqvm0 Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 0 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get crd/null -o 'jsonpath={.status.conditions[-1].type}' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.1Q6fq5maAg ++ cat /tmp/tmp.3Z8irQqvm0 Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 4 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get crd/null -o 'jsonpath={.status.conditions[-1].type}' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.1Q6fq5maAg ++ cat /tmp/tmp.3Z8irQqvm0 Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 8 ++ cat /tmp/tmp.1Q6fq5maAg ++ cat /tmp/tmp.3Z8irQqvm0 Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.1Q6fq5maAg /tmp/tmp.3Z8irQqvm0 ++ return 1 + [[ '' == \T\e\r\m\i\n\a\t\i\n\g ]] + '[' -n psmdb-operator ']' + create_namespace psmdb-operator + local namespace=psmdb-operator + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep validate-auth ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + kubectl_bin get ns + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' ++ mktemp + awk '{print$1}' + xargs kubectl delete ns + '[' -n '' ']' + desc 'cleaned up old namespaces psmdb-operator' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin delete namespace psmdb-operator --ignore-not-found + local LAST_OUT=/tmp/tmp.M8WMeWfx95 egrep: warning: egrep is obsolescent; using grep -E ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.ATWwilmVY5 ++ mktemp + local LAST_ERR=/tmp/tmp.rQAObHyJ6K + local exit_status=0 + local timeout=4 ++ seq 0 2 + local LAST_ERR=/tmp/tmp.JdBaYVyUw0 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl get ns + for i in $(seq 0 2) + set +e + kubectl delete namespace psmdb-operator --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.M8WMeWfx95 + cat /tmp/tmp.rQAObHyJ6K + rm /tmp/tmp.M8WMeWfx95 /tmp/tmp.rQAObHyJ6K + return 0 namespace "pitr-to-new-cluster-1307" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ATWwilmVY5 namespace "psmdb-operator" deleted + cat /tmp/tmp.JdBaYVyUw0 + rm /tmp/tmp.ATWwilmVY5 /tmp/tmp.JdBaYVyUw0 + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.OXiSnwHEaR ++ mktemp + local LAST_ERR=/tmp/tmp.vqzOQ7fhVy + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete namespace psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.OXiSnwHEaR + cat /tmp/tmp.vqzOQ7fhVy + rm /tmp/tmp.OXiSnwHEaR /tmp/tmp.vqzOQ7fhVy + return 0 + desc 'create namespace psmdb-operator' + set +o xtrace ----------------------------------------------------------------------------------- create namespace psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin create namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.O20Bgp4fev ++ mktemp + local LAST_ERR=/tmp/tmp.op56oarljF + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl create namespace psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.O20Bgp4fev namespace/psmdb-operator created + cat /tmp/tmp.op56oarljF + rm /tmp/tmp.O20Bgp4fev /tmp/tmp.op56oarljF + return 0 + set_kube_ctx psmdb-operator + local namespace=psmdb-operator ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.fSdw0Wasmt +++ mktemp ++ local LAST_ERR=/tmp/tmp.b2eNwKdU9g ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.fSdw0Wasmt ++ cat /tmp/tmp.b2eNwKdU9g ++ rm /tmp/tmp.fSdw0Wasmt /tmp/tmp.b2eNwKdU9g ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1850-e336896c-14-cluster5 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.mDgqt3vPv5 ++ mktemp + local LAST_ERR=/tmp/tmp.vp80ZdnGv5 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1850-e336896c-14-cluster5 --namespace=psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.mDgqt3vPv5 Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1850-e336896c-14-cluster5" modified. + cat /tmp/tmp.vp80ZdnGv5 + rm /tmp/tmp.mDgqt3vPv5 /tmp/tmp.vp80ZdnGv5 + return 0 + deploy_operator + desc 'start PSMDB operator: perconalab/percona-server-mongodb-operator:PR-1850-e336896c' + set +o xtrace ----------------------------------------------------------------------------------- start PSMDB operator: perconalab/percona-server-mongodb-operator:PR-1850-e336896c ----------------------------------------------------------------------------------- + local cr_file + '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.mhnsdX5db7 ++ mktemp + local LAST_ERR=/tmp/tmp.i5CevcMl1V + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.mhnsdX5db7 customresourcedefinition.apiextensions.k8s.io/perconaservermongodbbackups.psmdb.percona.com serverside-applied customresourcedefinition.apiextensions.k8s.io/perconaservermongodbrestores.psmdb.percona.com serverside-applied customresourcedefinition.apiextensions.k8s.io/perconaservermongodbs.psmdb.percona.com serverside-applied + cat /tmp/tmp.i5CevcMl1V + rm /tmp/tmp.mhnsdX5db7 /tmp/tmp.i5CevcMl1V + return 0 + '[' -n psmdb-operator ']' + apply_rbac cw-rbac + local operator_namespace=psmdb-operator + local rbac=cw-rbac + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/deploy/cw-rbac.yaml + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.TksxDdj0Va ++ mktemp + local LAST_ERR=/tmp/tmp.Ern0RtdN9g + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -n psmdb-operator -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.TksxDdj0Va clusterrole.rbac.authorization.k8s.io/percona-server-mongodb-operator created serviceaccount/percona-server-mongodb-operator created clusterrolebinding.rbac.authorization.k8s.io/service-account-percona-server-mongodb-operator created + cat /tmp/tmp.Ern0RtdN9g + rm /tmp/tmp.TksxDdj0Va /tmp/tmp.Ern0RtdN9g + return 0 + yq eval ' (.spec.template.spec.containers[].image = "perconalab/percona-server-mongodb-operator:PR-1850-e336896c") | ((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") | ((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/deploy/cw-operator.yaml + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.qUFB9AdoO2 ++ mktemp + local LAST_ERR=/tmp/tmp.DECZMQYM22 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -n psmdb-operator -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.qUFB9AdoO2 deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.DECZMQYM22 + rm /tmp/tmp.qUFB9AdoO2 /tmp/tmp.DECZMQYM22 + return 0 + sleep 20 ++ get_operator_pod ++ kubectl_bin get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' -n psmdb-operator +++ mktemp ++ local LAST_OUT=/tmp/tmp.3wemPSiwGz +++ mktemp ++ local LAST_ERR=/tmp/tmp.mAxtprwvhu ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' -n psmdb-operator ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.3wemPSiwGz ++ cat /tmp/tmp.mAxtprwvhu ++ rm /tmp/tmp.3wemPSiwGz /tmp/tmp.mAxtprwvhu ++ return 0 + wait_operator_pod percona-server-mongodb-operator-7dfb9458d-crlm9 + local pod=percona-server-mongodb-operator-7dfb9458d-crlm9 + set +o xtrace waiting for pod/percona-server-mongodb-operator-7dfb9458d-crlm9 to be ready.OK + echo 'Print operator info from log' Print operator info from log + grep 'Manager starting up' ++ get_operator_pod ++ kubectl_bin get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' -n psmdb-operator +++ mktemp ++ local LAST_OUT=/tmp/tmp.ULTD1sVznu +++ mktemp ++ local LAST_ERR=/tmp/tmp.tbkuB7lHGD ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' -n psmdb-operator ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.ULTD1sVznu ++ cat /tmp/tmp.tbkuB7lHGD ++ rm /tmp/tmp.ULTD1sVznu /tmp/tmp.tbkuB7lHGD ++ return 0 + kubectl_bin logs -n psmdb-operator percona-server-mongodb-operator-7dfb9458d-crlm9 ++ mktemp + local LAST_OUT=/tmp/tmp.q8Zq0KQryB ++ mktemp + local LAST_ERR=/tmp/tmp.26xzIAlGNF + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl logs -n psmdb-operator percona-server-mongodb-operator-7dfb9458d-crlm9 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.q8Zq0KQryB + cat /tmp/tmp.26xzIAlGNF + rm /tmp/tmp.q8Zq0KQryB /tmp/tmp.26xzIAlGNF + return 0 2025-11-30T20:08:16.266Z INFO setup Manager starting up {"gitCommit": "e336896c939a5ae7a170c12b1533a636fa716171", "gitBranch": "PR-1850-e336896c", "buildTime": "", "goVersion": "go1.25.4", "os": "linux", "arch": "amd64"} + create_namespace pitr-to-new-cluster-15939 + local namespace=pitr-to-new-cluster-15939 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep validate-auth ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + kubectl_bin get ns + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + awk '{print$1}' + '[' -n '' ']' + desc 'cleaned up old namespaces pitr-to-new-cluster-15939' ++ mktemp + set +o xtrace + xargs kubectl delete ns ----------------------------------------------------------------------------------- cleaned up old namespaces pitr-to-new-cluster-15939 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace pitr-to-new-cluster-15939 --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.To9TxhcN8K ++ mktemp egrep: warning: egrep is obsolescent; using grep -E + local LAST_OUT=/tmp/tmp.P6Ksvgl48b + local LAST_ERR=/tmp/tmp.HBuHyRSL7k + local exit_status=0 + local timeout=4 ++ mktemp ++ seq 0 2 + local LAST_ERR=/tmp/tmp.RLMbHKtHXR + local exit_status=0 + local timeout=4 + for i in $(seq 0 2) + set +e + kubectl get ns ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete namespace pitr-to-new-cluster-15939 --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.To9TxhcN8K + cat /tmp/tmp.HBuHyRSL7k + rm /tmp/tmp.To9TxhcN8K /tmp/tmp.HBuHyRSL7k + return 0 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.P6Ksvgl48b + cat /tmp/tmp.RLMbHKtHXR + rm /tmp/tmp.P6Ksvgl48b /tmp/tmp.RLMbHKtHXR + return 0 + kubectl_bin wait --for=delete namespace pitr-to-new-cluster-15939 ++ mktemp + local LAST_OUT=/tmp/tmp.gPjXeC7Qvy ++ mktemp + local LAST_ERR=/tmp/tmp.3Fnr1fBd2B + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete namespace pitr-to-new-cluster-15939 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.gPjXeC7Qvy + cat /tmp/tmp.3Fnr1fBd2B + rm /tmp/tmp.gPjXeC7Qvy /tmp/tmp.3Fnr1fBd2B + return 0 + desc 'create namespace pitr-to-new-cluster-15939' + set +o xtrace ----------------------------------------------------------------------------------- create namespace pitr-to-new-cluster-15939 ----------------------------------------------------------------------------------- + kubectl_bin create namespace pitr-to-new-cluster-15939 ++ mktemp + local LAST_OUT=/tmp/tmp.JsaA6cNCEV ++ mktemp + local LAST_ERR=/tmp/tmp.JQFFsmPwEN + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl create namespace pitr-to-new-cluster-15939 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.JsaA6cNCEV namespace/pitr-to-new-cluster-15939 created + cat /tmp/tmp.JQFFsmPwEN + rm /tmp/tmp.JsaA6cNCEV /tmp/tmp.JQFFsmPwEN + return 0 + set_kube_ctx pitr-to-new-cluster-15939 + local namespace=pitr-to-new-cluster-15939 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.VeCgHqEbK0 +++ mktemp ++ local LAST_ERR=/tmp/tmp.UVVzJsPlW2 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.VeCgHqEbK0 ++ cat /tmp/tmp.UVVzJsPlW2 ++ rm /tmp/tmp.VeCgHqEbK0 /tmp/tmp.UVVzJsPlW2 ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1850-e336896c-14-cluster5 --namespace=pitr-to-new-cluster-15939 ++ mktemp + local LAST_OUT=/tmp/tmp.rYoOjocpsF ++ mktemp + local LAST_ERR=/tmp/tmp.KJlqRJuebf + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1850-e336896c-14-cluster5 --namespace=pitr-to-new-cluster-15939 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.rYoOjocpsF Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1850-e336896c-14-cluster5" modified. + cat /tmp/tmp.KJlqRJuebf + rm /tmp/tmp.rYoOjocpsF /tmp/tmp.KJlqRJuebf + return 0 + deploy_minio + desc 'install Minio' + set +o xtrace ----------------------------------------------------------------------------------- install Minio ----------------------------------------------------------------------------------- + helm uninstall minio-service Error: uninstall: Release not loaded: minio-service: release: not found + : + helm repo remove minio "minio" has been removed from your repositories + helm repo add minio https://charts.min.io/ "minio" has been added to your repositories + retry 10 60 helm install minio-service --version 5.4.0 --set replicas=1 --set mode=standalone --set resources.requests.memory=256Mi --set rootUser=rootuser --set rootPassword=rootpass123 --set 'users[0].accessKey=some-access-key' --set 'users[0].secretKey=some-secret-key' --set 'users[0].policy=consoleAdmin' --set service.type=ClusterIP --set configPathmc=/tmp/.minio/ --set persistence.size=2G --set securityContext.enabled=false minio/minio + local max=10 + local delay=60 + shift 2 + local n=1 + helm install minio-service --version 5.4.0 --set replicas=1 --set mode=standalone --set resources.requests.memory=256Mi --set rootUser=rootuser --set rootPassword=rootpass123 --set 'users[0].accessKey=some-access-key' --set 'users[0].secretKey=some-secret-key' --set 'users[0].policy=consoleAdmin' --set service.type=ClusterIP --set configPathmc=/tmp/.minio/ --set persistence.size=2G --set securityContext.enabled=false minio/minio NAME: minio-service LAST DEPLOYED: Sun Nov 30 20:08:54 2025 NAMESPACE: pitr-to-new-cluster-15939 STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: MinIO can be accessed via port 9000 on the following DNS name from within your cluster: minio-service.pitr-to-new-cluster-15939.cluster.local To access MinIO from localhost, run the below commands: 1. export POD_NAME=$(kubectl get pods --namespace pitr-to-new-cluster-15939 -l "release=minio-service" -o jsonpath="{.items[0].metadata.name}") 2. kubectl port-forward $POD_NAME 9000 --namespace pitr-to-new-cluster-15939 Read more about port forwarding here: http://kubernetes.io/docs/user-guide/kubectl/kubectl_port-forward/ You can now access MinIO server on http://localhost:9000. Follow the below steps to connect to MinIO server with mc client: 1. Download the MinIO mc client - https://min.io/docs/minio/linux/reference/minio-mc.html#quickstart 2. export MC_HOST_minio-service-local=http://$(kubectl get secret --namespace pitr-to-new-cluster-15939 minio-service -o jsonpath="{.data.rootUser}" | base64 --decode):$(kubectl get secret --namespace pitr-to-new-cluster-15939 minio-service -o jsonpath="{.data.rootPassword}" | base64 --decode)@localhost:9000 3. mc ls minio-service-local ++ kubectl_bin get pods --selector=release=minio-service -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.8MgKdB6p3l +++ mktemp ++ local LAST_ERR=/tmp/tmp.TqPQNy0swf ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=release=minio-service -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.8MgKdB6p3l ++ cat /tmp/tmp.TqPQNy0swf ++ rm /tmp/tmp.8MgKdB6p3l /tmp/tmp.TqPQNy0swf ++ return 0 + MINIO_POD=minio-service-d9589b474-vv6bb + wait_pod minio-service-d9589b474-vv6bb + local pod=minio-service-d9589b474-vv6bb + set +o xtrace waiting for pod/minio-service-d9589b474-vv6bb to be ready.OK + '[' -n psmdb-operator ']' + kubectl_bin create svc -n psmdb-operator externalname minio-service --external-name=minio-service.pitr-to-new-cluster-15939.svc.cluster.local --tcp=9000 ++ mktemp + local LAST_OUT=/tmp/tmp.FSzdCC7Kbw ++ mktemp + local LAST_ERR=/tmp/tmp.72GWv1CTX3 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl create svc -n psmdb-operator externalname minio-service --external-name=minio-service.pitr-to-new-cluster-15939.svc.cluster.local --tcp=9000 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.FSzdCC7Kbw service/minio-service created + cat /tmp/tmp.72GWv1CTX3 + rm /tmp/tmp.FSzdCC7Kbw /tmp/tmp.72GWv1CTX3 + return 0 + create_minio_bucket operator-testing + local bucket=operator-testing + kubectl_bin run -i --rm aws-cli --image=perconalab/awscli --restart=Never -- bash -c 'AWS_ACCESS_KEY_ID=some-access-key AWS_SECRET_ACCESS_KEY=some-secret-key AWS_DEFAULT_REGION=us-east-1 /usr/bin/aws --endpoint-url http://minio-service:9000 s3 mb s3://operator-testing' ++ mktemp + local LAST_OUT=/tmp/tmp.ykJChogTOt ++ mktemp + local LAST_ERR=/tmp/tmp.wH7QY5QxsF + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl run -i --rm aws-cli --image=perconalab/awscli --restart=Never -- bash -c 'AWS_ACCESS_KEY_ID=some-access-key AWS_SECRET_ACCESS_KEY=some-secret-key AWS_DEFAULT_REGION=us-east-1 /usr/bin/aws --endpoint-url http://minio-service:9000 s3 mb s3://operator-testing' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ykJChogTOt make_bucket: operator-testing pod "aws-cli" deleted from pitr-to-new-cluster-15939 namespace + cat /tmp/tmp.wH7QY5QxsF All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt. If you don't see a command prompt, try pressing enter. warning: couldn't attach to pod/aws-cli, falling back to streaming logs: Internal error occurred: unable to upgrade connection: container aws-cli not found in pod aws-cli_pitr-to-new-cluster-15939 + rm /tmp/tmp.ykJChogTOt /tmp/tmp.wH7QY5QxsF + return 0 + desc 'create secrets and start client' + set +o xtrace ----------------------------------------------------------------------------------- create secrets and start client ----------------------------------------------------------------------------------- + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/conf/minio-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.jMcFHsbRKm ++ mktemp + local LAST_ERR=/tmp/tmp.2JUhKh8uey + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/conf/minio-secret.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.jMcFHsbRKm secret/some-users created deployment.apps/psmdb-client created secret/minio-secret created + cat /tmp/tmp.2JUhKh8uey + rm /tmp/tmp.jMcFHsbRKm /tmp/tmp.2JUhKh8uey + return 0 + setup_source_cluster + desc 'create PSMDB cluster: some-name-source' + set +o xtrace ----------------------------------------------------------------------------------- create PSMDB cluster: some-name-source ----------------------------------------------------------------------------------- + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/conf/some-name-source.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/conf/some-name-source.yml + kubectl_bin apply -f - ++ mktemp + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/conf/some-name-source.yml + yq eval '(.spec | select(.image == null)).image = "perconalab/percona-server-mongodb-operator:main-mongod8.0"' + yq eval '(.spec | select(has("pmm"))).pmm.image = "percona/pmm-client:2.44.1-1"' + yq eval '(.spec | select(has("initImage"))).initImage = "perconalab/percona-server-mongodb-operator:PR-1850-e336896c"' + yq eval '(.spec | select(has("backup"))).backup.image = "percona/percona-backup-mongodb:2.11.0"' + local LAST_OUT=/tmp/tmp.fLbQNZVX43 + yq eval '.spec.upgradeOptions.apply="Never"' ++ mktemp + local LAST_ERR=/tmp/tmp.PrQJQxDiwm + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.fLbQNZVX43 perconaservermongodb.psmdb.percona.com/some-name-source created + cat /tmp/tmp.PrQJQxDiwm + rm /tmp/tmp.fLbQNZVX43 /tmp/tmp.PrQJQxDiwm + return 0 + wait_for_running some-name-source-rs0 3 + local name=some-name-source-rs0 + let last_pod=2 + local check_cluster_readyness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=some-name-source ++ seq 0 2 + for i in $(seq 0 $last_pod) + [[ 0 -eq 2 ]] + wait_pod some-name-source-rs0-0 + local pod=some-name-source-rs0-0 + set +o xtrace waiting for pod/some-name-source-rs0-0 to be ready......OK + for i in $(seq 0 $last_pod) + [[ 1 -eq 2 ]] + wait_pod some-name-source-rs0-1 + local pod=some-name-source-rs0-1 + set +o xtrace waiting for pod/some-name-source-rs0-1 to be ready......OK + for i in $(seq 0 $last_pod) + [[ 2 -eq 2 ]] ++ kubectl_bin get psmdb some-name-source -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.RRWRhL4TVK +++ mktemp ++ local LAST_ERR=/tmp/tmp.x0DlXhqyWT ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-source -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.RRWRhL4TVK ++ cat /tmp/tmp.x0DlXhqyWT ++ rm /tmp/tmp.RRWRhL4TVK /tmp/tmp.x0DlXhqyWT ++ return 0 + [[ '' == \t\r\u\e ]] + wait_pod some-name-source-rs0-2 + local pod=some-name-source-rs0-2 + set +o xtrace waiting for pod/some-name-source-rs0-2 to be ready.....OK ++ kubectl_bin get psmdb some-name-source -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.fl9pb4T4Oq +++ mktemp ++ local LAST_ERR=/tmp/tmp.U4DyXIRg7e ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-source -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.fl9pb4T4Oq ++ cat /tmp/tmp.U4DyXIRg7e ++ rm /tmp/tmp.fl9pb4T4Oq /tmp/tmp.U4DyXIRg7e ++ return 0 + [[ '' == \t\r\u\e ]] ++ kubectl_bin get psmdb some-name-source -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.6mnbzFzPNI +++ mktemp ++ local LAST_ERR=/tmp/tmp.7IFwBwHje2 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-source -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.6mnbzFzPNI ++ cat /tmp/tmp.7IFwBwHje2 ++ rm /tmp/tmp.6mnbzFzPNI /tmp/tmp.7IFwBwHje2 ++ return 0 + [[ '' == \t\r\u\e ]] + sleep 10 + [[ true == \t\r\u\e ]] + set +x Waiting for cluster readyness + wait_backup_agent some-name-source-rs0-0 + local agent_pod=some-name-source-rs0-0 + set +o xtrace waiting for pbm-agent to be ready in some-name-source-rs0-0...2025-11-30T20:10:50.000+0000 I listening for the commands + wait_backup_agent some-name-source-rs0-1 + local agent_pod=some-name-source-rs0-1 + set +o xtrace waiting for pbm-agent to be ready in some-name-source-rs0-1...2025-11-30T20:10:51.000+0000 I listening for the commands + wait_backup_agent some-name-source-rs0-2 + local agent_pod=some-name-source-rs0-2 + set +o xtrace waiting for pbm-agent to be ready in some-name-source-rs0-2...2025-11-30T20:10:59.000+0000 I listening for the commands + create_user some-name-source + local cluster=some-name-source + log 'create user myApp' + set +o xtrace [2025-11-30T20:11:00+0000] create user myApp + run_mongo 'db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})' userAdmin:userAdmin123456@some-name-source-rs0.pitr-to-new-cluster-15939 mongodb + local 'command=db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})' + local uri=userAdmin:userAdmin123456@some-name-source-rs0.pitr-to-new-cluster-15939 + local driver=mongodb + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Fx9H2sZ3Un +++ mktemp ++ local LAST_ERR=/tmp/tmp.APlBoIdBzp ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.Fx9H2sZ3Un ++ cat /tmp/tmp.APlBoIdBzp ++ rm /tmp/tmp.Fx9H2sZ3Un /tmp/tmp.APlBoIdBzp ++ return 0 + local client_container=psmdb-client-696897d69b-wp4qj + local mongo_flag= + [[ userAdmin:userAdmin123456@some-name-source-rs0.pitr-to-new-cluster-15939 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n'\'' | mongo mongodb://userAdmin:userAdmin123456@some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.UHJRo4aFhR ++ mktemp + local LAST_ERR=/tmp/tmp.nr7CdL0V5s + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n'\'' | mongo mongodb://userAdmin:userAdmin123456@some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.UHJRo4aFhR Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("c615bacc-f98a-4be3-bef4-890a66de812c") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match Successfully added user: { "user" : "myApp", "roles" : [ { "db" : "myApp", "role" : "readWrite" } ] } bye + cat /tmp/tmp.nr7CdL0V5s + rm /tmp/tmp.UHJRo4aFhR /tmp/tmp.nr7CdL0V5s + return 0 + write_document some-name-source 100500 + local cluster=some-name-source + local x=100500 + log 'write document: 100500' + set +o xtrace [2025-11-30T20:11:04+0000] write document: 100500 + run_mongo 'use myApp\n db.test.insert({ x: 100500 })' myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 mongodb + local 'command=use myApp\n db.test.insert({ x: 100500 })' + local uri=myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 + local driver=mongodb + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.49rOVUlaY4 +++ mktemp ++ local LAST_ERR=/tmp/tmp.sTxLBT42dz ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.49rOVUlaY4 ++ cat /tmp/tmp.sTxLBT42dz ++ rm /tmp/tmp.49rOVUlaY4 /tmp/tmp.sTxLBT42dz ++ return 0 + local client_container=psmdb-client-696897d69b-wp4qj + local mongo_flag= + [[ myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb://myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.NAC7HWopw6 ++ mktemp + local LAST_ERR=/tmp/tmp.R1yRaHMdE3 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb://myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.NAC7HWopw6 Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("34f3c747-cf8c-47cd-8aba-48965f2b8cda") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db myApp WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.R1yRaHMdE3 + rm /tmp/tmp.NAC7HWopw6 /tmp/tmp.R1yRaHMdE3 + return 0 + sleep_with_log 360 'wait for PBM-1265 workaround' + local d=360 + local 'msg=wait for PBM-1265 workaround' + log 'wait for PBM-1265 workaround. sleeping for 360 seconds' + set +o xtrace [2025-11-30T20:11:07+0000] wait for PBM-1265 workaround. sleeping for 360 seconds + sleep 360 + compare_mongo_cmd find myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 + local command=find + local uri=myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2025-11-30T20:17:07+0000] running db.test.find() in myApp + [[ false == \t\r\u\e ]] + mongo_command=run_mongo + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 mongodb '' + egrep -v 'I NETWORK|W NETWORK|F NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 + local driver=mongodb + local suffix=.svc.cluster.local + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp egrep: warning: egrep is obsolescent; using grep -E ++ local LAST_OUT=/tmp/tmp.UQgcuBgDTg +++ mktemp ++ local LAST_ERR=/tmp/tmp.uQzWGrHzjT ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.UQgcuBgDTg ++ cat /tmp/tmp.uQzWGrHzjT ++ rm /tmp/tmp.UQgcuBgDTg /tmp/tmp.uQzWGrHzjT ++ return 0 + local client_container=psmdb-client-696897d69b-wp4qj + local mongo_flag= + [[ myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.ctYLwuvTQY ++ mktemp + local LAST_ERR=/tmp/tmp.BHlzDWDVcZ + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ctYLwuvTQY + cat /tmp/tmp.BHlzDWDVcZ + rm /tmp/tmp.ctYLwuvTQY /tmp/tmp.BHlzDWDVcZ + return 0 + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/compare/find.json /tmp/tmp.Z3WcvfRmD7/find + run_backup some-name-source backup-minio logical + local cluster=some-name-source + local name=backup-minio + local type=logical + desc 'run backup backup-minio-logical' + set +o xtrace ----------------------------------------------------------------------------------- run backup backup-minio-logical ----------------------------------------------------------------------------------- + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/conf/backup.yml + /usr/sbin/sed -e 's/name:/name: backup-minio-logical/' + /usr/sbin/sed -e 's/clusterName:/clusterName: some-name-source/' + /usr/sbin/sed -e 's/type:/type: logical/' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.xMUUlvbVEp ++ mktemp + local LAST_ERR=/tmp/tmp.r2SNIsk6aT + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.xMUUlvbVEp perconaservermongodbbackup.psmdb.percona.com/backup-minio-logical created + cat /tmp/tmp.r2SNIsk6aT + rm /tmp/tmp.xMUUlvbVEp /tmp/tmp.r2SNIsk6aT + return 0 + wait_backup backup-minio-logical + local backup_name=backup-minio-logical + local target_state=ready + set +o xtrace waiting for backup-minio-logical to reach ready state.......OK + sleep_with_log 70 'wait for oplog chunks to be uploaded' + local d=70 + local 'msg=wait for oplog chunks to be uploaded' + log 'wait for oplog chunks to be uploaded. sleeping for 70 seconds' + set +o xtrace [2025-11-30T20:17:25+0000] wait for oplog chunks to be uploaded. sleeping for 70 seconds + sleep 70 + run_backup some-name-source backup-minio physical + local cluster=some-name-source + local name=backup-minio + local type=physical + desc 'run backup backup-minio-physical' + set +o xtrace ----------------------------------------------------------------------------------- run backup backup-minio-physical ----------------------------------------------------------------------------------- + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/conf/backup.yml + /usr/sbin/sed -e 's/name:/name: backup-minio-physical/' + /usr/sbin/sed -e 's/clusterName:/clusterName: some-name-source/' + kubectl_bin apply -f - + /usr/sbin/sed -e 's/type:/type: physical/' ++ mktemp + local LAST_OUT=/tmp/tmp.V4uqW8UdsM ++ mktemp + local LAST_ERR=/tmp/tmp.IUd28mFFvg + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.V4uqW8UdsM perconaservermongodbbackup.psmdb.percona.com/backup-minio-physical created + cat /tmp/tmp.IUd28mFFvg + rm /tmp/tmp.V4uqW8UdsM /tmp/tmp.IUd28mFFvg + return 0 + wait_backup backup-minio-physical + local backup_name=backup-minio-physical + local target_state=ready + set +o xtrace waiting for backup-minio-physical to reach ready state......OK + desc 'write data for PiTR' + set +o xtrace ----------------------------------------------------------------------------------- write data for PiTR ----------------------------------------------------------------------------------- + write_document some-name-source 100501 + local cluster=some-name-source + local x=100501 + log 'write document: 100501' + set +o xtrace [2025-11-30T20:18:49+0000] write document: 100501 + run_mongo 'use myApp\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 mongodb + local 'command=use myApp\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 + local driver=mongodb + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.lF00T0PyRb +++ mktemp ++ local LAST_ERR=/tmp/tmp.wxwCkpxJAM ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.lF00T0PyRb ++ cat /tmp/tmp.wxwCkpxJAM ++ rm /tmp/tmp.lF00T0PyRb /tmp/tmp.wxwCkpxJAM ++ return 0 + local client_container=psmdb-client-696897d69b-wp4qj + local mongo_flag= + [[ myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.rJOl9G9XV3 ++ mktemp + local LAST_ERR=/tmp/tmp.STXRaofCH1 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.rJOl9G9XV3 Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("20a137a4-e434-43b2-8013-0741e878f813") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db myApp WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.STXRaofCH1 + rm /tmp/tmp.rJOl9G9XV3 /tmp/tmp.STXRaofCH1 + return 0 + write_document some-name-source 100502 + local cluster=some-name-source + local x=100502 + log 'write document: 100502' + set +o xtrace [2025-11-30T20:18:50+0000] write document: 100502 + run_mongo 'use myApp\n db.test.insert({ x: 100502 })' myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 mongodb + local 'command=use myApp\n db.test.insert({ x: 100502 })' + local uri=myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 + local driver=mongodb + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.tXOAjh0Qwa +++ mktemp ++ local LAST_ERR=/tmp/tmp.QNua7tTATI ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.tXOAjh0Qwa ++ cat /tmp/tmp.QNua7tTATI ++ rm /tmp/tmp.tXOAjh0Qwa /tmp/tmp.QNua7tTATI ++ return 0 + local client_container=psmdb-client-696897d69b-wp4qj + local mongo_flag= + [[ myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100502 })\n'\'' | mongo mongodb://myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.R3mzo3AxTo ++ mktemp + local LAST_ERR=/tmp/tmp.XB0IlqeF8T + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100502 })\n'\'' | mongo mongodb://myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.R3mzo3AxTo Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("5f309bfb-4995-41c3-bb6d-5667553b7e9d") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db myApp WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.XB0IlqeF8T + rm /tmp/tmp.R3mzo3AxTo /tmp/tmp.XB0IlqeF8T + return 0 + write_document some-name-source 100503 + local cluster=some-name-source + local x=100503 + log 'write document: 100503' + set +o xtrace [2025-11-30T20:18:53+0000] write document: 100503 + run_mongo 'use myApp\n db.test.insert({ x: 100503 })' myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 mongodb + local 'command=use myApp\n db.test.insert({ x: 100503 })' + local uri=myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 + local driver=mongodb + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.MfoMmYCszP +++ mktemp ++ local LAST_ERR=/tmp/tmp.ZKr4K9LxrU ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.MfoMmYCszP ++ cat /tmp/tmp.ZKr4K9LxrU ++ rm /tmp/tmp.MfoMmYCszP /tmp/tmp.ZKr4K9LxrU ++ return 0 + local client_container=psmdb-client-696897d69b-wp4qj + local mongo_flag= + [[ myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100503 })\n'\'' | mongo mongodb://myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.uri4oYr8ve ++ mktemp + local LAST_ERR=/tmp/tmp.ipUETX3IMR + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100503 })\n'\'' | mongo mongodb://myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.uri4oYr8ve Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("83c20250-860e-45d0-9e9d-60e70598f7f3") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db myApp WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.ipUETX3IMR + rm /tmp/tmp.uri4oYr8ve /tmp/tmp.ipUETX3IMR + return 0 + sleep_with_log 70 'wait for oplog chunks to be uploaded' + local d=70 + local 'msg=wait for oplog chunks to be uploaded' + log 'wait for oplog chunks to be uploaded. sleeping for 70 seconds' + set +o xtrace [2025-11-30T20:18:56+0000] wait for oplog chunks to be uploaded. sleeping for 70 seconds + sleep 70 + compare_mongo_cmd find myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 -2nd .svc.cluster.local myApp test 'sort( { x: 1 } )' + local command=find + local uri=myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 + local postfix=-2nd + local suffix=.svc.cluster.local + local database=myApp + local collection=test + local 'sort=sort( { x: 1 } )' + local tls=false + local 'full_command=db.test.find()' + [[ -n sort( { x: 1 } ) ]] + full_command='db.test.find().sort( { x: 1 } )' + log 'running db.test.find().sort( { x: 1 } ) in myApp' + set +o xtrace [2025-11-30T20:20:06+0000] running db.test.find().sort( { x: 1 } ) in myApp + [[ false == \t\r\u\e ]] + mongo_command=run_mongo + run_mongo 'use myApp\n db.test.find().sort( { x: 1 } )' myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 mongodb .svc.cluster.local + egrep -v 'I NETWORK|W NETWORK|F NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local 'command=use myApp\n db.test.find().sort( { x: 1 } )' + local uri=myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 + local driver=mongodb + local suffix=.svc.cluster.local + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp egrep: warning: egrep is obsolescent; using grep -E ++ local LAST_OUT=/tmp/tmp.Ki5kFT66et +++ mktemp ++ local LAST_ERR=/tmp/tmp.XrtrlzJHzn ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.Ki5kFT66et ++ cat /tmp/tmp.XrtrlzJHzn ++ rm /tmp/tmp.Ki5kFT66et /tmp/tmp.XrtrlzJHzn ++ return 0 + local client_container=psmdb-client-696897d69b-wp4qj + local mongo_flag= + [[ myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.find().sort( { x: 1 } )\n'\'' | mongo mongodb://myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.rhysMzmzCG ++ mktemp + local LAST_ERR=/tmp/tmp.QlfZQCZ9K6 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.find().sort( { x: 1 } )\n'\'' | mongo mongodb://myApp:myPass@some-name-source-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.rhysMzmzCG + cat /tmp/tmp.QlfZQCZ9K6 + rm /tmp/tmp.rhysMzmzCG /tmp/tmp.QlfZQCZ9K6 + return 0 + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/compare/find-2nd.json /tmp/tmp.Z3WcvfRmD7/find-2nd + log 'PiTR data is ready: OK' + set +o xtrace [2025-11-30T20:20:09+0000] PiTR data is ready: OK + setup_target_cluster + desc 'create PSMDB cluster: some-name-target' + set +o xtrace ----------------------------------------------------------------------------------- create PSMDB cluster: some-name-target ----------------------------------------------------------------------------------- + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/conf/some-name-target.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/conf/some-name-target.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/conf/some-name-target.yml + yq eval '(.spec | select(.image == null)).image = "perconalab/percona-server-mongodb-operator:main-mongod8.0"' ++ mktemp + yq eval '(.spec | select(has("pmm"))).pmm.image = "percona/pmm-client:2.44.1-1"' + yq eval '(.spec | select(has("initImage"))).initImage = "perconalab/percona-server-mongodb-operator:PR-1850-e336896c"' + local LAST_OUT=/tmp/tmp.HiFxLp71sm + yq eval '(.spec | select(has("backup"))).backup.image = "percona/percona-backup-mongodb:2.11.0"' + yq eval '.spec.upgradeOptions.apply="Never"' ++ mktemp + local LAST_ERR=/tmp/tmp.lcwEtbSu0R + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.HiFxLp71sm perconaservermongodb.psmdb.percona.com/some-name-target created + cat /tmp/tmp.lcwEtbSu0R + rm /tmp/tmp.HiFxLp71sm /tmp/tmp.lcwEtbSu0R + return 0 + wait_for_running some-name-target-rs0 3 + local name=some-name-target-rs0 + let last_pod=2 + local check_cluster_readyness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=some-name-target ++ seq 0 2 + for i in $(seq 0 $last_pod) + [[ 0 -eq 2 ]] + wait_pod some-name-target-rs0-0 + local pod=some-name-target-rs0-0 + set +o xtrace waiting for pod/some-name-target-rs0-0 to be ready.......OK + for i in $(seq 0 $last_pod) + [[ 1 -eq 2 ]] + wait_pod some-name-target-rs0-1 + local pod=some-name-target-rs0-1 + set +o xtrace waiting for pod/some-name-target-rs0-1 to be ready....OK + for i in $(seq 0 $last_pod) + [[ 2 -eq 2 ]] ++ kubectl_bin get psmdb some-name-target -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.7JFVbchxFy +++ mktemp ++ local LAST_ERR=/tmp/tmp.1Czfx54a4e ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-target -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.7JFVbchxFy ++ cat /tmp/tmp.1Czfx54a4e ++ rm /tmp/tmp.7JFVbchxFy /tmp/tmp.1Czfx54a4e ++ return 0 + [[ '' == \t\r\u\e ]] + wait_pod some-name-target-rs0-2 + local pod=some-name-target-rs0-2 + set +o xtrace waiting for pod/some-name-target-rs0-2 to be ready.........OK ++ kubectl_bin get psmdb some-name-target -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.iKinWLysgJ +++ mktemp ++ local LAST_ERR=/tmp/tmp.hH0QyCyxAo ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-target -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.iKinWLysgJ ++ cat /tmp/tmp.hH0QyCyxAo ++ rm /tmp/tmp.iKinWLysgJ /tmp/tmp.hH0QyCyxAo ++ return 0 + [[ '' == \t\r\u\e ]] ++ kubectl_bin get psmdb some-name-target -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.u2yWGUfEux +++ mktemp ++ local LAST_ERR=/tmp/tmp.5GMEfi8Bsy ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-target -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.u2yWGUfEux ++ cat /tmp/tmp.5GMEfi8Bsy ++ rm /tmp/tmp.u2yWGUfEux /tmp/tmp.5GMEfi8Bsy ++ return 0 + [[ '' == \t\r\u\e ]] + sleep 10 + [[ true == \t\r\u\e ]] + set +x Waiting for cluster readyness. + wait_backup_agent some-name-target-rs0-0 + local agent_pod=some-name-target-rs0-0 + set +o xtrace waiting for pbm-agent to be ready in some-name-target-rs0-0...2025-11-30T20:21:28.000+0000 I listening for the commands + wait_backup_agent some-name-target-rs0-1 + local agent_pod=some-name-target-rs0-1 + set +o xtrace waiting for pbm-agent to be ready in some-name-target-rs0-1...2025-11-30T20:21:34.000+0000 I listening for the commands + wait_backup_agent some-name-target-rs0-2 + local agent_pod=some-name-target-rs0-2 + set +o xtrace waiting for pbm-agent to be ready in some-name-target-rs0-2...2025-11-30T20:21:36.000+0000 I listening for the commands + wait_for_pbm_operations some-name-target + local cluster=some-name-target + set +o xtrace waiting for PBM operation to finish.OK + desc 'Case 1: Logical restore' + set +o xtrace ----------------------------------------------------------------------------------- Case 1: Logical restore ----------------------------------------------------------------------------------- + test_case_1 + run_restore some-name-target backup-minio logical + local cluster=some-name-target + local backup_name=backup-minio + local backup_type=logical ++ get_backup_dest backup-minio-logical ++ local backup_name=backup-minio-logical ++ kubectl_bin get psmdb-backup backup-minio-logical -o 'jsonpath={.status.destination}' ++ sed -e 's/.json$//' ++ sed 's|s3://||' ++ sed 's|azure://||' ++ sed 's|gs://||' +++ mktemp ++ local LAST_OUT=/tmp/tmp.W6ivN9ZpRi +++ mktemp ++ local LAST_ERR=/tmp/tmp.vyh8Yn4hW1 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb-backup backup-minio-logical -o 'jsonpath={.status.destination}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.W6ivN9ZpRi ++ cat /tmp/tmp.vyh8Yn4hW1 ++ rm /tmp/tmp.W6ivN9ZpRi /tmp/tmp.vyh8Yn4hW1 ++ return 0 + local destination=operator-testing/some-name-source/2025-11-30T20:17:13Z + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/conf/restore-backupsource.yml + /usr/sbin/sed -e 's/name:/name: restore-backup-minio-logical/' + /usr/sbin/sed -e 's/clusterName:/clusterName: some-name-target/' + /usr/sbin/sed -e 's/type:/type: logical/' + /usr/sbin/sed -e s/pitrType:/type:/ + /usr/sbin/sed -e 's|DESTINATION|operator-testing/some-name-source/2025-11-30T20:17:13Z|' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.P2FwBEgM1W ++ mktemp + local LAST_ERR=/tmp/tmp.v66EKFoNXn + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.P2FwBEgM1W perconaservermongodbrestore.psmdb.percona.com/restore-backup-minio-logical created + cat /tmp/tmp.v66EKFoNXn + rm /tmp/tmp.P2FwBEgM1W /tmp/tmp.v66EKFoNXn + return 0 + wait_restore backup-minio-logical some-name-target requested 0 + local backup_name=backup-minio-logical + local cluster_name=some-name-target + local target_state=requested + local wait_cluster_consistency=0 + local wait_time=1780 + local ok_if_ready=0 + set +o xtrace Waiting for the psmdb-restore/restore-backup-minio-logical object to be created.OK Waiting psmdb-restore/restore-backup-minio-logical to reach state "requested" .OK after 0 minutes + [[ 0 -eq 1 ]] + compare_pbm_config some-name-target source + local cluster=some-name-target + local compare_suffix=source + local container=backup-agent + local pbm_binary=pbm + [[ backup-agent == \m\o\n\g\o\d ]] + kubectl_bin exec some-name-target-rs0-0 -c backup-agent -- pbm config ++ mktemp + local LAST_OUT=/tmp/tmp.5Yxn9eWL6D ++ mktemp + local LAST_ERR=/tmp/tmp.mY3SBBWnWN + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec some-name-target-rs0-0 -c backup-agent -- pbm config + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.5Yxn9eWL6D + cat /tmp/tmp.mY3SBBWnWN + rm /tmp/tmp.5Yxn9eWL6D /tmp/tmp.mY3SBBWnWN + return 0 + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/compare/pbm_config_source.yml /tmp/tmp.Z3WcvfRmD7/pbm_config.yml + log 'Backup source is set as main storage during restore: OK' + set +o xtrace [2025-11-30T20:21:54+0000] Backup source is set as main storage during restore: OK ++ date +%s + local now_ts=1764534114 + wait_restore backup-minio-logical some-name-target ready + local backup_name=backup-minio-logical + local cluster_name=some-name-target + local target_state=ready + local wait_cluster_consistency=1 + local wait_time=1780 + local ok_if_ready=0 + set +o xtrace Waiting for the psmdb-restore/restore-backup-minio-logical object to be created.OK Waiting psmdb-restore/restore-backup-minio-logical to reach state "ready" .OK after 0 minutes + [[ 1 -eq 1 ]] + wait_cluster_consistency some-name-target + local cluster_name=some-name-target + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster readyness' waiting for cluster readyness++ kubectl_bin get psmdb some-name-target -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.cilu5FrcaB +++ mktemp ++ local LAST_ERR=/tmp/tmp.VMlr74wZoK ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-target -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.cilu5FrcaB ++ cat /tmp/tmp.VMlr74wZoK ++ rm /tmp/tmp.cilu5FrcaB /tmp/tmp.VMlr74wZoK ++ return 0 + [[ ready == \r\e\a\d\y ]] + echo .OK .OK + compare_pbm_config some-name-target target + local cluster=some-name-target + local compare_suffix=target + local container=backup-agent + local pbm_binary=pbm + [[ backup-agent == \m\o\n\g\o\d ]] + kubectl_bin exec some-name-target-rs0-0 -c backup-agent -- pbm config ++ mktemp + local LAST_OUT=/tmp/tmp.vpbipAH1Io ++ mktemp + local LAST_ERR=/tmp/tmp.Sw9Brk813I + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec some-name-target-rs0-0 -c backup-agent -- pbm config + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.vpbipAH1Io + cat /tmp/tmp.Sw9Brk813I + rm /tmp/tmp.vpbipAH1Io /tmp/tmp.Sw9Brk813I + return 0 + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/compare/pbm_config_target.yml /tmp/tmp.Z3WcvfRmD7/pbm_config.yml + log 'Main storage is reverted after backup-minio-logical: OK' + set +o xtrace [2025-11-30T20:22:13+0000] Main storage is reverted after backup-minio-logical: OK + wait_for_pbm_operations some-name-target + local cluster=some-name-target + set +o xtrace waiting for PBM operation to finish.OK + check_if_resync_triggered some-name-target 1764534114 + local cluster=some-name-target + local ts=1764534114 + log 'checking if resync is triggered after 1764534114' + set +o xtrace [2025-11-30T20:22:15+0000] checking if resync is triggered after 1764534114 ++ run_mongo 'use admin\n db.pbmCmd.countDocuments({cmd: '\''resync'\'', ts: { '\''$gt'\'': 1764534114 }})' backup:backup123456@some-name-target-rs0.pitr-to-new-cluster-15939 ++ local 'command=use admin\n db.pbmCmd.countDocuments({cmd: '\''resync'\'', ts: { '\''$gt'\'': 1764534114 }})' ++ local uri=backup:backup123456@some-name-target-rs0.pitr-to-new-cluster-15939 ++ local driver=mongodb+srv ++ local suffix=.svc.cluster.local +++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.Gb5A79QPAM ++++ mktemp +++ local LAST_ERR=/tmp/tmp.z6nK9VCyRL +++ local exit_status=0 +++ local timeout=4 ++++ seq 0 2 +++ for i in $(seq 0 2) +++ set +e +++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 -a -n 1 ']' +++ break +++ cat /tmp/tmp.Gb5A79QPAM +++ cat /tmp/tmp.z6nK9VCyRL +++ rm /tmp/tmp.Gb5A79QPAM /tmp/tmp.z6nK9VCyRL +++ return 0 ++ local client_container=psmdb-client-696897d69b-wp4qj ++ local mongo_flag= ++ [[ backup:backup123456@some-name-target-rs0.pitr-to-new-cluster-15939 == *cfg* ]] ++ replica_set=rs0 ++ kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use admin\n db.pbmCmd.countDocuments({cmd: '\''resync'\'', ts: { '\''$gt'\'': 1764534114 }})\n'\'' | mongo mongodb+srv://backup:backup123456@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' +++ mktemp ++ local LAST_OUT=/tmp/tmp.y7UgTs5Bqo +++ mktemp ++ local LAST_ERR=/tmp/tmp.192xgOxBQh ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use admin\n db.pbmCmd.countDocuments({cmd: '\''resync'\'', ts: { '\''$gt'\'': 1764534114 }})\n'\'' | mongo mongodb+srv://backup:backup123456@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.y7UgTs5Bqo ++ cat /tmp/tmp.192xgOxBQh command terminated with exit code 1 ++ sleep 0 ++ for i in $(seq 0 2) ++ set +e ++ kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use admin\n db.pbmCmd.countDocuments({cmd: '\''resync'\'', ts: { '\''$gt'\'': 1764534114 }})\n'\'' | mongo mongodb+srv://backup:backup123456@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.y7UgTs5Bqo ++ cat /tmp/tmp.192xgOxBQh command terminated with exit code 1 ++ sleep 4 ++ for i in $(seq 0 2) ++ set +e ++ kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use admin\n db.pbmCmd.countDocuments({cmd: '\''resync'\'', ts: { '\''$gt'\'': 1764534114 }})\n'\'' | mongo mongodb+srv://backup:backup123456@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.y7UgTs5Bqo ++ cat /tmp/tmp.192xgOxBQh command terminated with exit code 1 ++ sleep 8 ++ cat /tmp/tmp.y7UgTs5Bqo ++ cat /tmp/tmp.192xgOxBQh command terminated with exit code 1 ++ rm /tmp/tmp.y7UgTs5Bqo /tmp/tmp.192xgOxBQh ++ return 1 + local 'count=Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f7b85906-3913-419d-9691-8741c5628495") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got '\'':'\'' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("85091c26-09f3-435f-8b9a-91e130dd4088") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got '\'':'\'' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f3bd33b4-7ab1-442f-8b72-7dca01adbf3c") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got '\'':'\'' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f3bd33b4-7ab1-442f-8b72-7dca01adbf3c") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got '\'':'\'' : @(shell):1:45 bye' + [[ Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f7b85906-3913-419d-9691-8741c5628495") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("85091c26-09f3-435f-8b9a-91e130dd4088") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f3bd33b4-7ab1-442f-8b72-7dca01adbf3c") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f3bd33b4-7ab1-442f-8b72-7dca01adbf3c") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye -lt 1 ]] ./e2e-tests/pitr-to-new-cluster/run: line 91: [[: Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f7b85906-3913-419d-9691-8741c5628495") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("85091c26-09f3-435f-8b9a-91e130dd4088") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f3bd33b4-7ab1-442f-8b72-7dca01adbf3c") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f3bd33b4-7ab1-442f-8b72-7dca01adbf3c") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye: syntax error: invalid arithmetic operator (error token is ".4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f7b85906-3913-419d-9691-8741c5628495") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("85091c26-09f3-435f-8b9a-91e130dd4088") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f3bd33b4-7ab1-442f-8b72-7dca01adbf3c") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f3bd33b4-7ab1-442f-8b72-7dca01adbf3c") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye") + compare_mongo_cmd find myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 -2nd .svc.cluster.local myApp test 'sort( { x: 1 } )' + local command=find + local uri=myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 + local postfix=-2nd + local suffix=.svc.cluster.local + local database=myApp + local collection=test + local 'sort=sort( { x: 1 } )' + local tls=false + local 'full_command=db.test.find()' + [[ -n sort( { x: 1 } ) ]] + full_command='db.test.find().sort( { x: 1 } )' + log 'running db.test.find().sort( { x: 1 } ) in myApp' + set +o xtrace [2025-11-30T20:22:33+0000] running db.test.find().sort( { x: 1 } ) in myApp + [[ false == \t\r\u\e ]] + mongo_command=run_mongo + run_mongo 'use myApp\n db.test.find().sort( { x: 1 } )' myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 mongodb .svc.cluster.local + local 'command=use myApp\n db.test.find().sort( { x: 1 } )' + local uri=myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 + local driver=mongodb + local suffix=.svc.cluster.local + egrep -v 'I NETWORK|W NETWORK|F NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp egrep: warning: egrep is obsolescent; using grep -E ++ local LAST_OUT=/tmp/tmp.qohAmKbpZS +++ mktemp ++ local LAST_ERR=/tmp/tmp.Rb2Ph07yBn ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.qohAmKbpZS ++ cat /tmp/tmp.Rb2Ph07yBn ++ rm /tmp/tmp.qohAmKbpZS /tmp/tmp.Rb2Ph07yBn ++ return 0 + local client_container=psmdb-client-696897d69b-wp4qj + local mongo_flag= + [[ myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.find().sort( { x: 1 } )\n'\'' | mongo mongodb://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.mpHReRvTJ7 ++ mktemp + local LAST_ERR=/tmp/tmp.fp1iTAuUJx + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.find().sort( { x: 1 } )\n'\'' | mongo mongodb://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.mpHReRvTJ7 + cat /tmp/tmp.fp1iTAuUJx + rm /tmp/tmp.mpHReRvTJ7 /tmp/tmp.fp1iTAuUJx + return 0 + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/compare/find-2nd.json /tmp/tmp.Z3WcvfRmD7/find-2nd + log 'Data is restored from backup-minio-logical: OK' + set +o xtrace [2025-11-30T20:22:35+0000] Data is restored from backup-minio-logical: OK + desc 'Case 1: Logical restore: OK' + set +o xtrace ----------------------------------------------------------------------------------- Case 1: Logical restore: OK ----------------------------------------------------------------------------------- + desc 'Case 2: Physical restore' + set +o xtrace ----------------------------------------------------------------------------------- Case 2: Physical restore ----------------------------------------------------------------------------------- + test_case_2 + run_restore some-name-target backup-minio physical + local cluster=some-name-target + local backup_name=backup-minio + local backup_type=physical ++ get_backup_dest backup-minio-physical ++ local backup_name=backup-minio-physical ++ kubectl_bin get psmdb-backup backup-minio-physical -o 'jsonpath={.status.destination}' ++ sed -e 's/.json$//' ++ sed 's|s3://||' ++ sed 's|azure://||' +++ mktemp ++ sed 's|gs://||' ++ local LAST_OUT=/tmp/tmp.DG9FqDKHRY +++ mktemp ++ local LAST_ERR=/tmp/tmp.cAxjxKjh8b ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb-backup backup-minio-physical -o 'jsonpath={.status.destination}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.DG9FqDKHRY ++ cat /tmp/tmp.cAxjxKjh8b ++ rm /tmp/tmp.DG9FqDKHRY /tmp/tmp.cAxjxKjh8b ++ return 0 + local destination=operator-testing/some-name-source/2025-11-30T20:18:38Z + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/conf/restore-backupsource.yml + /usr/sbin/sed -e 's/name:/name: restore-backup-minio-physical/' + /usr/sbin/sed -e 's/clusterName:/clusterName: some-name-target/' + /usr/sbin/sed -e 's/type:/type: physical/' + /usr/sbin/sed -e 's|DESTINATION|operator-testing/some-name-source/2025-11-30T20:18:38Z|' + /usr/sbin/sed -e s/pitrType:/type:/ + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.1azOkEns8T ++ mktemp + local LAST_ERR=/tmp/tmp.KXQF1Rdk5r + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.1azOkEns8T perconaservermongodbrestore.psmdb.percona.com/restore-backup-minio-physical created + cat /tmp/tmp.KXQF1Rdk5r + rm /tmp/tmp.1azOkEns8T /tmp/tmp.KXQF1Rdk5r + return 0 + wait_restore backup-minio-physical some-name-target requested 0 + local backup_name=backup-minio-physical + local cluster_name=some-name-target + local target_state=requested + local wait_cluster_consistency=0 + local wait_time=1780 + local ok_if_ready=0 + set +o xtrace Waiting for the psmdb-restore/restore-backup-minio-physical object to be created.OK Waiting psmdb-restore/restore-backup-minio-physical to reach state "requested" ...OK after 2 minutes + [[ 0 -eq 1 ]] + compare_pbm_config some-name-target source mongod + local cluster=some-name-target + local compare_suffix=source + local container=mongod + local pbm_binary=pbm + [[ mongod == \m\o\n\g\o\d ]] + pbm_binary=/opt/percona/pbm + kubectl_bin exec some-name-target-rs0-0 -c mongod -- /opt/percona/pbm config ++ mktemp + local LAST_OUT=/tmp/tmp.62X2pWN7uS ++ mktemp + local LAST_ERR=/tmp/tmp.6LyRuu351a + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec some-name-target-rs0-0 -c mongod -- /opt/percona/pbm config + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.62X2pWN7uS + cat /tmp/tmp.6LyRuu351a + rm /tmp/tmp.62X2pWN7uS /tmp/tmp.6LyRuu351a + return 0 + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/compare/pbm_config_source.yml /tmp/tmp.Z3WcvfRmD7/pbm_config.yml + log 'Backup source is set as main storage during restore: OK' + set +o xtrace [2025-11-30T20:24:56+0000] Backup source is set as main storage during restore: OK ++ date +%s + local now_ts=1764534296 + wait_restore backup-minio-physical some-name-target ready + local backup_name=backup-minio-physical + local cluster_name=some-name-target + local target_state=ready + local wait_cluster_consistency=1 + local wait_time=1780 + local ok_if_ready=0 + set +o xtrace Waiting for the psmdb-restore/restore-backup-minio-physical object to be created.OK Waiting psmdb-restore/restore-backup-minio-physical to reach state "ready" ..OK after 1 minutes + [[ 1 -eq 1 ]] + wait_cluster_consistency some-name-target + local cluster_name=some-name-target + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster readyness' waiting for cluster readyness++ kubectl_bin get psmdb some-name-target -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.z0Rcr246Jh +++ mktemp ++ local LAST_ERR=/tmp/tmp.q37e7xWg2D ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-target -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.z0Rcr246Jh ++ cat /tmp/tmp.q37e7xWg2D ++ rm /tmp/tmp.z0Rcr246Jh /tmp/tmp.q37e7xWg2D ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 1 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name-target -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.rQce15Dvmn +++ mktemp ++ local LAST_ERR=/tmp/tmp.SGRDI5gnbH ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-target -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.rQce15Dvmn ++ cat /tmp/tmp.SGRDI5gnbH ++ rm /tmp/tmp.rQce15Dvmn /tmp/tmp.SGRDI5gnbH ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 2 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name-target -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.lntaasy77w +++ mktemp ++ local LAST_ERR=/tmp/tmp.DfDbzZmE5v ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-target -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.lntaasy77w ++ cat /tmp/tmp.DfDbzZmE5v ++ rm /tmp/tmp.lntaasy77w /tmp/tmp.DfDbzZmE5v ++ return 0 + [[ error == \r\e\a\d\y ]] + let retry+=1 + '[' 3 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name-target -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.fJPwEM3rgb +++ mktemp ++ local LAST_ERR=/tmp/tmp.Pw1tbxCoK5 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-target -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.fJPwEM3rgb ++ cat /tmp/tmp.Pw1tbxCoK5 ++ rm /tmp/tmp.fJPwEM3rgb /tmp/tmp.Pw1tbxCoK5 ++ return 0 + [[ error == \r\e\a\d\y ]] + let retry+=1 + '[' 4 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name-target -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.VjKwuSpFjX +++ mktemp ++ local LAST_ERR=/tmp/tmp.safQtTc9uZ ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-target -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.VjKwuSpFjX ++ cat /tmp/tmp.safQtTc9uZ ++ rm /tmp/tmp.VjKwuSpFjX /tmp/tmp.safQtTc9uZ ++ return 0 + [[ error == \r\e\a\d\y ]] + let retry+=1 + '[' 5 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name-target -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.36yUxG1HbO +++ mktemp ++ local LAST_ERR=/tmp/tmp.a6pm3xBzRR ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-target -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.36yUxG1HbO ++ cat /tmp/tmp.a6pm3xBzRR ++ rm /tmp/tmp.36yUxG1HbO /tmp/tmp.a6pm3xBzRR ++ return 0 + [[ error == \r\e\a\d\y ]] + let retry+=1 + '[' 6 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name-target -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.WAr6pVTnM3 +++ mktemp ++ local LAST_ERR=/tmp/tmp.lsxiSJc8R7 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-target -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.WAr6pVTnM3 ++ cat /tmp/tmp.lsxiSJc8R7 ++ rm /tmp/tmp.WAr6pVTnM3 /tmp/tmp.lsxiSJc8R7 ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 7 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name-target -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.PNkAxenxau +++ mktemp ++ local LAST_ERR=/tmp/tmp.fvQF9IPbo8 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-target -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.PNkAxenxau ++ cat /tmp/tmp.fvQF9IPbo8 ++ rm /tmp/tmp.PNkAxenxau /tmp/tmp.fvQF9IPbo8 ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 8 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name-target -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.UCjBV3I1wy +++ mktemp ++ local LAST_ERR=/tmp/tmp.OdTTp8xmLn ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-target -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.UCjBV3I1wy ++ cat /tmp/tmp.OdTTp8xmLn ++ rm /tmp/tmp.UCjBV3I1wy /tmp/tmp.OdTTp8xmLn ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 9 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name-target -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.y9rfVLmHb8 +++ mktemp ++ local LAST_ERR=/tmp/tmp.2TR5qfiPYI ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-target -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.y9rfVLmHb8 ++ cat /tmp/tmp.2TR5qfiPYI ++ rm /tmp/tmp.y9rfVLmHb8 /tmp/tmp.2TR5qfiPYI ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 10 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name-target -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.UNumhi3PGR +++ mktemp ++ local LAST_ERR=/tmp/tmp.WvINqacHEG ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-target -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.UNumhi3PGR ++ cat /tmp/tmp.WvINqacHEG ++ rm /tmp/tmp.UNumhi3PGR /tmp/tmp.WvINqacHEG ++ return 0 + [[ ready == \r\e\a\d\y ]] + echo .OK .OK + compare_pbm_config some-name-target target + local cluster=some-name-target + local compare_suffix=target + local container=backup-agent + local pbm_binary=pbm + [[ backup-agent == \m\o\n\g\o\d ]] + kubectl_bin exec some-name-target-rs0-0 -c backup-agent -- pbm config ++ mktemp + local LAST_OUT=/tmp/tmp.vg7FqKCbZW ++ mktemp + local LAST_ERR=/tmp/tmp.56tOradrlP + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec some-name-target-rs0-0 -c backup-agent -- pbm config + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.vg7FqKCbZW + cat /tmp/tmp.56tOradrlP + rm /tmp/tmp.vg7FqKCbZW /tmp/tmp.56tOradrlP + return 0 + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/compare/pbm_config_target.yml /tmp/tmp.Z3WcvfRmD7/pbm_config.yml + log 'Main storage is reverted after backup-minio-physical: OK' + set +o xtrace [2025-11-30T20:28:34+0000] Main storage is reverted after backup-minio-physical: OK + wait_for_pbm_operations some-name-target + local cluster=some-name-target + set +o xtrace waiting for PBM operation to finish.OK + check_if_resync_triggered some-name-target 1764534296 + local cluster=some-name-target + local ts=1764534296 + log 'checking if resync is triggered after 1764534296' + set +o xtrace [2025-11-30T20:28:36+0000] checking if resync is triggered after 1764534296 ++ run_mongo 'use admin\n db.pbmCmd.countDocuments({cmd: '\''resync'\'', ts: { '\''$gt'\'': 1764534296 }})' backup:backup123456@some-name-target-rs0.pitr-to-new-cluster-15939 ++ local 'command=use admin\n db.pbmCmd.countDocuments({cmd: '\''resync'\'', ts: { '\''$gt'\'': 1764534296 }})' ++ local uri=backup:backup123456@some-name-target-rs0.pitr-to-new-cluster-15939 ++ local driver=mongodb+srv ++ local suffix=.svc.cluster.local +++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.eRDl0IyppZ ++++ mktemp +++ local LAST_ERR=/tmp/tmp.GDRPbKhWjg +++ local exit_status=0 +++ local timeout=4 ++++ seq 0 2 +++ for i in $(seq 0 2) +++ set +e +++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 -a -n 1 ']' +++ break +++ cat /tmp/tmp.eRDl0IyppZ +++ cat /tmp/tmp.GDRPbKhWjg +++ rm /tmp/tmp.eRDl0IyppZ /tmp/tmp.GDRPbKhWjg +++ return 0 ++ local client_container=psmdb-client-696897d69b-wp4qj ++ local mongo_flag= ++ [[ backup:backup123456@some-name-target-rs0.pitr-to-new-cluster-15939 == *cfg* ]] ++ replica_set=rs0 ++ kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use admin\n db.pbmCmd.countDocuments({cmd: '\''resync'\'', ts: { '\''$gt'\'': 1764534296 }})\n'\'' | mongo mongodb+srv://backup:backup123456@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Yyt9pbPYlX +++ mktemp ++ local LAST_ERR=/tmp/tmp.7SE7io364x ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use admin\n db.pbmCmd.countDocuments({cmd: '\''resync'\'', ts: { '\''$gt'\'': 1764534296 }})\n'\'' | mongo mongodb+srv://backup:backup123456@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.Yyt9pbPYlX ++ cat /tmp/tmp.7SE7io364x command terminated with exit code 1 ++ sleep 0 ++ for i in $(seq 0 2) ++ set +e ++ kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use admin\n db.pbmCmd.countDocuments({cmd: '\''resync'\'', ts: { '\''$gt'\'': 1764534296 }})\n'\'' | mongo mongodb+srv://backup:backup123456@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.Yyt9pbPYlX ++ cat /tmp/tmp.7SE7io364x command terminated with exit code 1 ++ sleep 4 ++ for i in $(seq 0 2) ++ set +e ++ kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use admin\n db.pbmCmd.countDocuments({cmd: '\''resync'\'', ts: { '\''$gt'\'': 1764534296 }})\n'\'' | mongo mongodb+srv://backup:backup123456@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.Yyt9pbPYlX ++ cat /tmp/tmp.7SE7io364x command terminated with exit code 1 ++ sleep 8 ++ cat /tmp/tmp.Yyt9pbPYlX ++ cat /tmp/tmp.7SE7io364x command terminated with exit code 1 ++ rm /tmp/tmp.Yyt9pbPYlX /tmp/tmp.7SE7io364x ++ return 1 + local 'count=Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f8a30403-aaf7-44f4-9735-26ef4a88b10f") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got '\'':'\'' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("52e97407-33b4-4f81-af68-41e17a6e0a4a") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got '\'':'\'' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("5624394b-eb3d-4ac9-85c8-52c435e09fe2") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got '\'':'\'' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("5624394b-eb3d-4ac9-85c8-52c435e09fe2") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got '\'':'\'' : @(shell):1:45 bye' + [[ Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f8a30403-aaf7-44f4-9735-26ef4a88b10f") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("52e97407-33b4-4f81-af68-41e17a6e0a4a") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("5624394b-eb3d-4ac9-85c8-52c435e09fe2") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("5624394b-eb3d-4ac9-85c8-52c435e09fe2") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye -lt 1 ]] ./e2e-tests/pitr-to-new-cluster/run: line 91: [[: Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f8a30403-aaf7-44f4-9735-26ef4a88b10f") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("52e97407-33b4-4f81-af68-41e17a6e0a4a") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("5624394b-eb3d-4ac9-85c8-52c435e09fe2") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("5624394b-eb3d-4ac9-85c8-52c435e09fe2") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye: syntax error: invalid arithmetic operator (error token is ".4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f8a30403-aaf7-44f4-9735-26ef4a88b10f") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("52e97407-33b4-4f81-af68-41e17a6e0a4a") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("5624394b-eb3d-4ac9-85c8-52c435e09fe2") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("5624394b-eb3d-4ac9-85c8-52c435e09fe2") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db admin uncaught exception: SyntaxError: expected property name, got ':' : @(shell):1:45 bye") + compare_mongo_cmd find myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 -2nd .svc.cluster.local myApp test 'sort( { x: 1 } )' + local command=find + local uri=myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 + local postfix=-2nd + local suffix=.svc.cluster.local + local database=myApp + local collection=test + local 'sort=sort( { x: 1 } )' + local tls=false + local 'full_command=db.test.find()' + [[ -n sort( { x: 1 } ) ]] + full_command='db.test.find().sort( { x: 1 } )' + log 'running db.test.find().sort( { x: 1 } ) in myApp' + set +o xtrace [2025-11-30T20:28:55+0000] running db.test.find().sort( { x: 1 } ) in myApp + [[ false == \t\r\u\e ]] + mongo_command=run_mongo + run_mongo 'use myApp\n db.test.find().sort( { x: 1 } )' myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 mongodb .svc.cluster.local + egrep -v 'I NETWORK|W NETWORK|F NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local 'command=use myApp\n db.test.find().sort( { x: 1 } )' + local uri=myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 + local driver=mongodb + local suffix=.svc.cluster.local + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp egrep: warning: egrep is obsolescent; using grep -E ++ local LAST_OUT=/tmp/tmp.FYGWND1put +++ mktemp ++ local LAST_ERR=/tmp/tmp.fOopBcrOeP ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.FYGWND1put ++ cat /tmp/tmp.fOopBcrOeP ++ rm /tmp/tmp.FYGWND1put /tmp/tmp.fOopBcrOeP ++ return 0 + local client_container=psmdb-client-696897d69b-wp4qj + local mongo_flag= + [[ myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.find().sort( { x: 1 } )\n'\'' | mongo mongodb://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.sp6I0LttLS ++ mktemp + local LAST_ERR=/tmp/tmp.RntuU4MCLl + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.find().sort( { x: 1 } )\n'\'' | mongo mongodb://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.sp6I0LttLS + cat /tmp/tmp.RntuU4MCLl + rm /tmp/tmp.sp6I0LttLS /tmp/tmp.RntuU4MCLl + return 0 + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/compare/find-2nd.json /tmp/tmp.Z3WcvfRmD7/find-2nd + log 'Data is restored from backup-minio-physical: OK' + set +o xtrace [2025-11-30T20:28:57+0000] Data is restored from backup-minio-physical: OK + desc 'Case 2: Physical restore: OK' + set +o xtrace ----------------------------------------------------------------------------------- Case 2: Physical restore: OK ----------------------------------------------------------------------------------- + desc 'Case 3: Backup and restore on some-name-target' + set +o xtrace ----------------------------------------------------------------------------------- Case 3: Backup and restore on some-name-target ----------------------------------------------------------------------------------- + test_case_3 + local backup_name=target-backup-minio + write_document some-name-target 100504 + local cluster=some-name-target + local x=100504 + log 'write document: 100504' + set +o xtrace [2025-11-30T20:28:57+0000] write document: 100504 + run_mongo 'use myApp\n db.test.insert({ x: 100504 })' myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 mongodb + local 'command=use myApp\n db.test.insert({ x: 100504 })' + local uri=myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 + local driver=mongodb + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.QXRQhCHRdu +++ mktemp ++ local LAST_ERR=/tmp/tmp.vJpQCZOewH ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.QXRQhCHRdu ++ cat /tmp/tmp.vJpQCZOewH ++ rm /tmp/tmp.QXRQhCHRdu /tmp/tmp.vJpQCZOewH ++ return 0 + local client_container=psmdb-client-696897d69b-wp4qj + local mongo_flag= + [[ myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100504 })\n'\'' | mongo mongodb://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.JwyegiKjtX ++ mktemp + local LAST_ERR=/tmp/tmp.QFlFaDT5v5 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100504 })\n'\'' | mongo mongodb://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.JwyegiKjtX Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("d42522ba-f250-4e39-ae05-a81aa0f24689") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db myApp WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.QFlFaDT5v5 + rm /tmp/tmp.JwyegiKjtX /tmp/tmp.QFlFaDT5v5 + return 0 + run_backup some-name-target target-backup-minio logical + local cluster=some-name-target + local name=target-backup-minio + local type=logical + desc 'run backup target-backup-minio-logical' + set +o xtrace ----------------------------------------------------------------------------------- run backup target-backup-minio-logical ----------------------------------------------------------------------------------- + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/conf/backup.yml + /usr/sbin/sed -e 's/name:/name: target-backup-minio-logical/' + /usr/sbin/sed -e 's/clusterName:/clusterName: some-name-target/' + /usr/sbin/sed -e 's/type:/type: logical/' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.rQUaoOKI04 ++ mktemp + local LAST_ERR=/tmp/tmp.wUEuIBbMZ5 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.rQUaoOKI04 perconaservermongodbbackup.psmdb.percona.com/target-backup-minio-logical created + cat /tmp/tmp.wUEuIBbMZ5 + rm /tmp/tmp.rQUaoOKI04 /tmp/tmp.wUEuIBbMZ5 + return 0 + wait_backup target-backup-minio-logical + local backup_name=target-backup-minio-logical + local target_state=ready + set +o xtrace waiting for target-backup-minio-logical to reach ready state......OK + log 'checking target-backup-minio-logical in storage' + set +o xtrace [2025-11-30T20:29:13+0000] checking target-backup-minio-logical in storage + check_backup_in_storage target-backup-minio-logical minio rs0 myApp.test.gz + local backup=target-backup-minio-logical + local storage_type=minio + local replset=rs0 + local file=myApp.test.gz + local endpoint ++ get_backup_dest target-backup-minio-logical ++ local backup_name=target-backup-minio-logical ++ /usr/sbin/sed 's|https://engk8soperators.blob.core.windows.net/||' ++ kubectl_bin get psmdb-backup target-backup-minio-logical -o 'jsonpath={.status.destination}' ++ sed -e 's/.json$//' ++ sed 's|s3://||' ++ sed 's|azure://||' +++ mktemp ++ sed 's|gs://||' ++ local LAST_OUT=/tmp/tmp.5fSy7PX916 +++ mktemp ++ local LAST_ERR=/tmp/tmp.RXfG6B9nPB ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb-backup target-backup-minio-logical -o 'jsonpath={.status.destination}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.5fSy7PX916 ++ cat /tmp/tmp.RXfG6B9nPB ++ rm /tmp/tmp.5fSy7PX916 /tmp/tmp.RXfG6B9nPB ++ return 0 + backup_dest=operator-testing/some-name-target/2025-11-30T20:29:02Z + case ${storage_type} in + endpoint=minio-service + kubectl_bin run -i --rm aws-cli --image=perconalab/awscli --restart=Never -- /usr/bin/env AWS_ACCESS_KEY_ID=some-access-key AWS_SECRET_ACCESS_KEY=some-secret-key AWS_DEFAULT_REGION=us-east-1 /usr/bin/aws --endpoint-url http://minio-service:9000 s3 ls s3://operator-testing/some-name-target/2025-11-30T20:29:02Z/rs0/myApp.test.gz + grep myApp.test.gz ++ mktemp + local LAST_OUT=/tmp/tmp.4PmS8ibvSh ++ mktemp + local LAST_ERR=/tmp/tmp.Mu8FJH8ZRE + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl run -i --rm aws-cli --image=perconalab/awscli --restart=Never -- /usr/bin/env AWS_ACCESS_KEY_ID=some-access-key AWS_SECRET_ACCESS_KEY=some-secret-key AWS_DEFAULT_REGION=us-east-1 /usr/bin/aws --endpoint-url http://minio-service:9000 s3 ls s3://operator-testing/some-name-target/2025-11-30T20:29:02Z/rs0/myApp.test.gz + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.4PmS8ibvSh + cat /tmp/tmp.Mu8FJH8ZRE + rm /tmp/tmp.4PmS8ibvSh /tmp/tmp.Mu8FJH8ZRE + return 0 2025-11-30 20:29:06 118 myApp.test.gz + log 'target-backup-minio is uploaded to correct storage: OK' + set +o xtrace [2025-11-30T20:29:18+0000] target-backup-minio is uploaded to correct storage: OK + log 'enabling PiTR on some-name-target' + set +o xtrace [2025-11-30T20:29:18+0000] enabling PiTR on some-name-target + kubectl_bin patch psmdb some-name-target --type=merge --patch '{"spec": {"backup": {"pitr": {"enabled": true}}}}' ++ mktemp + local LAST_OUT=/tmp/tmp.Tov6zeUkOp ++ mktemp + local LAST_ERR=/tmp/tmp.BLVb8hq885 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl patch psmdb some-name-target --type=merge --patch '{"spec": {"backup": {"pitr": {"enabled": true}}}}' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Tov6zeUkOp perconaservermongodb.psmdb.percona.com/some-name-target patched + cat /tmp/tmp.BLVb8hq885 + rm /tmp/tmp.Tov6zeUkOp /tmp/tmp.BLVb8hq885 + return 0 + write_document some-name-target 100505 + local cluster=some-name-target + local x=100505 + log 'write document: 100505' + set +o xtrace [2025-11-30T20:29:19+0000] write document: 100505 + run_mongo 'use myApp\n db.test.insert({ x: 100505 })' myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 mongodb + local 'command=use myApp\n db.test.insert({ x: 100505 })' + local uri=myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 + local driver=mongodb + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.91mmT0XAL6 +++ mktemp ++ local LAST_ERR=/tmp/tmp.rmVZmK5EJ7 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.91mmT0XAL6 ++ cat /tmp/tmp.rmVZmK5EJ7 ++ rm /tmp/tmp.91mmT0XAL6 /tmp/tmp.rmVZmK5EJ7 ++ return 0 + local client_container=psmdb-client-696897d69b-wp4qj + local mongo_flag= + [[ myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100505 })\n'\'' | mongo mongodb://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.73yGgatLpJ ++ mktemp + local LAST_ERR=/tmp/tmp.eKZb2hwAOn + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100505 })\n'\'' | mongo mongodb://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.73yGgatLpJ Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("cd66a8a6-c458-438c-b7fa-3432088371b0") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db myApp WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.eKZb2hwAOn + rm /tmp/tmp.73yGgatLpJ /tmp/tmp.eKZb2hwAOn + return 0 + write_document some-name-target 100506 + local cluster=some-name-target + local x=100506 + log 'write document: 100506' + set +o xtrace [2025-11-30T20:29:21+0000] write document: 100506 + run_mongo 'use myApp\n db.test.insert({ x: 100506 })' myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 mongodb + local 'command=use myApp\n db.test.insert({ x: 100506 })' + local uri=myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 + local driver=mongodb + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.i9j4flq0st +++ mktemp ++ local LAST_ERR=/tmp/tmp.UTapff8FpC ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.i9j4flq0st ++ cat /tmp/tmp.UTapff8FpC ++ rm /tmp/tmp.i9j4flq0st /tmp/tmp.UTapff8FpC ++ return 0 + local client_container=psmdb-client-696897d69b-wp4qj + local mongo_flag= + [[ myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100506 })\n'\'' | mongo mongodb://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.BIi89JcVau ++ mktemp + local LAST_ERR=/tmp/tmp.MKhzRzWNnA + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100506 })\n'\'' | mongo mongodb://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.BIi89JcVau Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("21bdbafd-b7d9-40a4-b1e8-afc4fcdd00f1") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db myApp WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.MKhzRzWNnA + rm /tmp/tmp.BIi89JcVau /tmp/tmp.MKhzRzWNnA + return 0 + write_document some-name-target 100507 + local cluster=some-name-target + local x=100507 + log 'write document: 100507' + set +o xtrace [2025-11-30T20:29:24+0000] write document: 100507 + run_mongo 'use myApp\n db.test.insert({ x: 100507 })' myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 mongodb + local 'command=use myApp\n db.test.insert({ x: 100507 })' + local uri=myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 + local driver=mongodb + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.zLeAKYtl4X +++ mktemp ++ local LAST_ERR=/tmp/tmp.BalimAOMUz ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.zLeAKYtl4X ++ cat /tmp/tmp.BalimAOMUz ++ rm /tmp/tmp.zLeAKYtl4X /tmp/tmp.BalimAOMUz ++ return 0 + local client_container=psmdb-client-696897d69b-wp4qj + local mongo_flag= + [[ myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100507 })\n'\'' | mongo mongodb://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.RfK7YdYUzC ++ mktemp + local LAST_ERR=/tmp/tmp.n8lQxgu9h1 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100507 })\n'\'' | mongo mongodb://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.RfK7YdYUzC Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("0f2b5935-774b-4fc5-9cfd-57d4321fd0a6") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db myApp WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.n8lQxgu9h1 + rm /tmp/tmp.RfK7YdYUzC /tmp/tmp.n8lQxgu9h1 + return 0 + sleep_with_log 3 'wait for data to be replicated' + local d=3 + local 'msg=wait for data to be replicated' + log 'wait for data to be replicated. sleeping for 3 seconds' + set +o xtrace [2025-11-30T20:29:27+0000] wait for data to be replicated. sleeping for 3 seconds + sleep 3 + compare_mongo_cmd find myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 -3rd .svc.cluster.local myApp test 'sort( { x: 1 } )' + local command=find + local uri=myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 + local postfix=-3rd + local suffix=.svc.cluster.local + local database=myApp + local collection=test + local 'sort=sort( { x: 1 } )' + local tls=false + local 'full_command=db.test.find()' + [[ -n sort( { x: 1 } ) ]] + full_command='db.test.find().sort( { x: 1 } )' + log 'running db.test.find().sort( { x: 1 } ) in myApp' + set +o xtrace [2025-11-30T20:29:30+0000] running db.test.find().sort( { x: 1 } ) in myApp + [[ false == \t\r\u\e ]] + mongo_command=run_mongo + run_mongo 'use myApp\n db.test.find().sort( { x: 1 } )' myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 mongodb .svc.cluster.local + local 'command=use myApp\n db.test.find().sort( { x: 1 } )' + egrep -v 'I NETWORK|W NETWORK|F NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local uri=myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 + local driver=mongodb + local suffix=.svc.cluster.local + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp egrep: warning: egrep is obsolescent; using grep -E ++ local LAST_OUT=/tmp/tmp.zqx9RD8bs8 +++ mktemp ++ local LAST_ERR=/tmp/tmp.jPqjzM0Ktt ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.zqx9RD8bs8 ++ cat /tmp/tmp.jPqjzM0Ktt ++ rm /tmp/tmp.zqx9RD8bs8 /tmp/tmp.jPqjzM0Ktt ++ return 0 + local client_container=psmdb-client-696897d69b-wp4qj + local mongo_flag= + [[ myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.find().sort( { x: 1 } )\n'\'' | mongo mongodb://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.1VCa1DHU8T ++ mktemp + local LAST_ERR=/tmp/tmp.YWFJTYwkZa + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.find().sort( { x: 1 } )\n'\'' | mongo mongodb://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.1VCa1DHU8T + cat /tmp/tmp.YWFJTYwkZa + rm /tmp/tmp.1VCa1DHU8T /tmp/tmp.YWFJTYwkZa + return 0 + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/compare/find-3rd.json /tmp/tmp.Z3WcvfRmD7/find-3rd + log 'Data is ready for PiTR: OK' + set +o xtrace [2025-11-30T20:29:32+0000] Data is ready for PiTR: OK + sleep_with_log 70 'wait for oplog chunks to be uploaded' + local d=70 + local 'msg=wait for oplog chunks to be uploaded' + log 'wait for oplog chunks to be uploaded. sleeping for 70 seconds' + set +o xtrace [2025-11-30T20:29:32+0000] wait for oplog chunks to be uploaded. sleeping for 70 seconds + sleep 70 +++ get_latest_restorable_time some-name-target-rs0 +++ local cluster=some-name-target-rs0 +++ local first_timestamp +++ local second_timestamp +++ local retry=0 +++ [[ '' != '' ]] ++++ kubectl_bin exec some-name-target-rs0-0 -c backup-agent -- pbm status -o json ++++ jq '.backups.pitrChunks.pitrChunks | last | .range.end' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.nmWqNmFb3B +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.2pL9Ph43CA ++++ local exit_status=0 ++++ local timeout=4 +++++ seq 0 2 ++++ for i in $(seq 0 2) ++++ set +e ++++ kubectl exec some-name-target-rs0-0 -c backup-agent -- pbm status -o json ++++ exit_status=0 ++++ set -e ++++ '[' 0 '!=' 0 -a -n 1 ']' ++++ break ++++ cat /tmp/tmp.nmWqNmFb3B ++++ cat /tmp/tmp.2pL9Ph43CA ++++ rm /tmp/tmp.nmWqNmFb3B /tmp/tmp.2pL9Ph43CA ++++ return 0 +++ first_timestamp=null +++ sleep 5 +++ [[ null != '' ]] +++ [[ null != \n\u\l\l ]] +++ let retry+=1 +++ [[ 1 -gt 30 ]] +++ [[ null != '' ]] +++ [[ null != \n\u\l\l ]] ++++ kubectl_bin exec some-name-target-rs0-0 -c backup-agent -- pbm status -o json ++++ jq '.backups.pitrChunks.pitrChunks | last | .range.end' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.JW2Cq2SDRu +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.0s4dWViZKD ++++ local exit_status=0 ++++ local timeout=4 +++++ seq 0 2 ++++ for i in $(seq 0 2) ++++ set +e ++++ kubectl exec some-name-target-rs0-0 -c backup-agent -- pbm status -o json ++++ exit_status=0 ++++ set -e ++++ '[' 0 '!=' 0 -a -n 1 ']' ++++ break ++++ cat /tmp/tmp.JW2Cq2SDRu ++++ cat /tmp/tmp.0s4dWViZKD ++++ rm /tmp/tmp.JW2Cq2SDRu /tmp/tmp.0s4dWViZKD ++++ return 0 +++ first_timestamp=1764534648 +++ sleep 5 +++ [[ 1764534648 != '' ]] +++ [[ 1764534648 != \n\u\l\l ]] ++++ kubectl_bin exec some-name-target-rs0-0 -c backup-agent -- pbm status -o json ++++ jq '.backups.pitrChunks.pitrChunks | last | .range.end' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.IfzeDiJDQY +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.HjcaF6tzvd ++++ local exit_status=0 ++++ local timeout=4 +++++ seq 0 2 ++++ for i in $(seq 0 2) ++++ set +e ++++ kubectl exec some-name-target-rs0-0 -c backup-agent -- pbm status -o json ++++ exit_status=0 ++++ set -e ++++ '[' 0 '!=' 0 -a -n 1 ']' ++++ break ++++ cat /tmp/tmp.IfzeDiJDQY ++++ cat /tmp/tmp.HjcaF6tzvd ++++ rm /tmp/tmp.IfzeDiJDQY /tmp/tmp.HjcaF6tzvd ++++ return 0 +++ second_timestamp=1764534648 +++ let retry+=1 +++ [[ 2 -gt 30 ]] +++ [[ 1764534648 != '' ]] +++ [[ 1764534648 != \n\u\l\l ]] +++ [[ 1764534648 == 1764534648 ]] +++ /usr/sbin/date -u -d @1764534648 +%Y-%m-%dT%H:%M:%SZ ++ format_pitr_target 2025-11-30T20:30:48Z ++ local target=2025-11-30T20:30:48Z ++ echo 2025-11-30T20:30:48Z ++ sed 's/T/ /' ++ sed s/Z// + local 'pitrTarget=2025-11-30 20:30:48' + log 'dropping collection: myApp.test' + set +o xtrace [2025-11-30T20:30:57+0000] dropping collection: myApp.test + run_mongo 'use myApp\n db.test.drop()' myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 + local 'command=use myApp\n db.test.drop()' + local uri=myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 + local driver=mongodb+srv + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.i6ByHYNj4e +++ mktemp ++ local LAST_ERR=/tmp/tmp.OSu1I6kePA ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.i6ByHYNj4e ++ cat /tmp/tmp.OSu1I6kePA ++ rm /tmp/tmp.i6ByHYNj4e /tmp/tmp.OSu1I6kePA ++ return 0 + local client_container=psmdb-client-696897d69b-wp4qj + local mongo_flag= + [[ myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.drop()\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.Z3cIo56xMe ++ mktemp + local LAST_ERR=/tmp/tmp.NsOlQhS5As + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.drop()\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Z3cIo56xMe Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-target-rs0-0.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-2.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017,some-name-target-rs0-1.some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("df7f7fc2-0112-434a-81e2-48ff54517923") } Percona Server for MongoDB server version: v8.0.12-4 WARNING: shell and server versions do not match switched to db myApp true bye + cat /tmp/tmp.NsOlQhS5As + rm /tmp/tmp.Z3cIo56xMe /tmp/tmp.NsOlQhS5As + return 0 + log 'PiTR target is 2025-11-30 20:30:48' + set +o xtrace [2025-11-30T20:31:00+0000] PiTR target is 2025-11-30 20:30:48 + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/conf/restore-target.yml + /usr/sbin/sed -e 's/date:/date: 2025-11-30 20:30:48/' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.tICKC3jh7U ++ mktemp + local LAST_ERR=/tmp/tmp.NzxsrZ2HtX + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.tICKC3jh7U perconaservermongodbrestore.psmdb.percona.com/restore-target-backup-minio-logical created + cat /tmp/tmp.NzxsrZ2HtX + rm /tmp/tmp.tICKC3jh7U /tmp/tmp.NzxsrZ2HtX + return 0 + wait_restore target-backup-minio-logical some-name-target ready + local backup_name=target-backup-minio-logical + local cluster_name=some-name-target + local target_state=ready + local wait_cluster_consistency=1 + local wait_time=1780 + local ok_if_ready=0 + set +o xtrace Waiting for the psmdb-restore/restore-target-backup-minio-logical object to be created.OK Waiting psmdb-restore/restore-target-backup-minio-logical to reach state "ready" .OK after 0 minutes + [[ 1 -eq 1 ]] + wait_cluster_consistency some-name-target + local cluster_name=some-name-target + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster readyness' waiting for cluster readyness++ kubectl_bin get psmdb some-name-target -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.coYdwzkqZL +++ mktemp ++ local LAST_ERR=/tmp/tmp.pVor0PgMjb ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-target -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.coYdwzkqZL ++ cat /tmp/tmp.pVor0PgMjb ++ rm /tmp/tmp.coYdwzkqZL /tmp/tmp.pVor0PgMjb ++ return 0 + [[ ready == \r\e\a\d\y ]] + echo .OK .OK + compare_mongo_cmd find myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 -3rd .svc.cluster.local myApp test 'sort( { x: 1 } )' + local command=find + local uri=myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 + local postfix=-3rd + local suffix=.svc.cluster.local + local database=myApp + local collection=test + local 'sort=sort( { x: 1 } )' + local tls=false + local 'full_command=db.test.find()' + [[ -n sort( { x: 1 } ) ]] + full_command='db.test.find().sort( { x: 1 } )' + log 'running db.test.find().sort( { x: 1 } ) in myApp' + set +o xtrace [2025-11-30T20:31:26+0000] running db.test.find().sort( { x: 1 } ) in myApp + [[ false == \t\r\u\e ]] + mongo_command=run_mongo + run_mongo 'use myApp\n db.test.find().sort( { x: 1 } )' myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 mongodb .svc.cluster.local + egrep -v 'I NETWORK|W NETWORK|F NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + local 'command=use myApp\n db.test.find().sort( { x: 1 } )' + local uri=myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 + local driver=mongodb + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' egrep: warning: egrep is obsolescent; using grep -E +++ mktemp ++ local LAST_OUT=/tmp/tmp.TGrEzvPMYi +++ mktemp ++ local LAST_ERR=/tmp/tmp.DfxexRkiq2 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.TGrEzvPMYi ++ cat /tmp/tmp.DfxexRkiq2 ++ rm /tmp/tmp.TGrEzvPMYi /tmp/tmp.DfxexRkiq2 ++ return 0 + local client_container=psmdb-client-696897d69b-wp4qj + local mongo_flag= + [[ myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.find().sort( { x: 1 } )\n'\'' | mongo mongodb://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.zI2EX4fCha ++ mktemp + local LAST_ERR=/tmp/tmp.5d7XTuyP92 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-696897d69b-wp4qj -- bash -c 'printf '\''use myApp\n db.test.find().sort( { x: 1 } )\n'\'' | mongo mongodb://myApp:myPass@some-name-target-rs0.pitr-to-new-cluster-15939.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.zI2EX4fCha + cat /tmp/tmp.5d7XTuyP92 + rm /tmp/tmp.zI2EX4fCha /tmp/tmp.5d7XTuyP92 + return 0 + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/e2e-tests/pitr-to-new-cluster/compare/find-3rd.json /tmp/tmp.Z3WcvfRmD7/find-3rd + log 'Data is restored from target-backup-minio-logical: OK' + set +o xtrace [2025-11-30T20:31:28+0000] Data is restored from target-backup-minio-logical: OK + desc 'Case 3: Backup and restore on some-name-target: OK' + set +o xtrace ----------------------------------------------------------------------------------- Case 3: Backup and restore on some-name-target: OK ----------------------------------------------------------------------------------- + desc 'test passed' + set +o xtrace ----------------------------------------------------------------------------------- test passed ----------------------------------------------------------------------------------- + destroy pitr-to-new-cluster-15939 + local namespace=pitr-to-new-cluster-15939 + local ignore_logs=true + [[ 0 == 1 ]] + desc 'destroy cluster/operator and all other resources' + set +o xtrace ----------------------------------------------------------------------------------- destroy cluster/operator and all other resources ----------------------------------------------------------------------------------- + '[' true == false ']' + delete_backups + desc 'Delete psmdb-backup' + set +o xtrace ----------------------------------------------------------------------------------- Delete psmdb-backup ----------------------------------------------------------------------------------- ++ kubectl_bin get psmdb-backup --no-headers ++ wc -l +++ mktemp ++ local LAST_OUT=/tmp/tmp.Ic1TSaHJPK +++ mktemp ++ local LAST_ERR=/tmp/tmp.snYRHz4uqU ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb-backup --no-headers ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.Ic1TSaHJPK ++ cat /tmp/tmp.snYRHz4uqU ++ rm /tmp/tmp.Ic1TSaHJPK /tmp/tmp.snYRHz4uqU ++ return 0 + '[' 3 '!=' 0 ']' + kubectl_bin get psmdb-backup ++ mktemp + local LAST_OUT=/tmp/tmp.qxwiuolAFf ++ mktemp + local LAST_ERR=/tmp/tmp.eo8CwNYwaT + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl get psmdb-backup + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.qxwiuolAFf NAME CLUSTER STORAGE DESTINATION TYPE SIZE STATUS COMPLETED AGE backup-minio-logical some-name-source minio s3://operator-testing/some-name-source/2025-11-30T20:17:13Z logical 54.21KB ready 14m 14m backup-minio-physical some-name-source minio s3://operator-testing/some-name-source/2025-11-30T20:18:38Z physical 617.40KB ready 12m 12m target-backup-minio-logical some-name-target minio s3://operator-testing/some-name-target/2025-11-30T20:29:02Z logical 49.64KB ready 2m21s 2m27s + cat /tmp/tmp.eo8CwNYwaT + rm /tmp/tmp.qxwiuolAFf /tmp/tmp.eo8CwNYwaT + return 0 + kubectl_bin delete psmdb-backup --all ++ mktemp + local LAST_OUT=/tmp/tmp.2IHGXcOOk8 ++ mktemp + local LAST_ERR=/tmp/tmp.KCRp9NSLZ7 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete psmdb-backup --all + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.2IHGXcOOk8 perconaservermongodbbackup.psmdb.percona.com "backup-minio-logical" deleted from pitr-to-new-cluster-15939 namespace perconaservermongodbbackup.psmdb.percona.com "backup-minio-physical" deleted from pitr-to-new-cluster-15939 namespace perconaservermongodbbackup.psmdb.percona.com "target-backup-minio-logical" deleted from pitr-to-new-cluster-15939 namespace + cat /tmp/tmp.KCRp9NSLZ7 + rm /tmp/tmp.2IHGXcOOk8 /tmp/tmp.KCRp9NSLZ7 + return 0 + delete_crd + desc 'get and delete old CRDs and RBAC' + set +o xtrace ----------------------------------------------------------------------------------- get and delete old CRDs and RBAC ----------------------------------------------------------------------------------- + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.mvnpsB7rAq ++ mktemp + local LAST_ERR=/tmp/tmp.VfXcmhovGu + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.mvnpsB7rAq customresourcedefinition.apiextensions.k8s.io "perconaservermongodbbackups.psmdb.percona.com" deleted customresourcedefinition.apiextensions.k8s.io "perconaservermongodbrestores.psmdb.percona.com" deleted customresourcedefinition.apiextensions.k8s.io "perconaservermongodbs.psmdb.percona.com" deleted + cat /tmp/tmp.VfXcmhovGu + rm /tmp/tmp.mvnpsB7rAq /tmp/tmp.VfXcmhovGu + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/deploy/crd.yaml ++ grep -v '\-\-\-' grep: warning: stray \ before - grep: warning: stray \ before - + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + kubectl get perconaservermongodbbackups.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbbackups.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbbackups" + kubectl patch perconaservermongodbbackups.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbbackups" + : + kubectl_bin wait --for=delete crd perconaservermongodbbackups.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.pESSlD2PX6 ++ mktemp + local LAST_ERR=/tmp/tmp.dbxC1k8gRw + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete crd perconaservermongodbbackups.psmdb.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.pESSlD2PX6 + cat /tmp/tmp.dbxC1k8gRw + rm /tmp/tmp.pESSlD2PX6 /tmp/tmp.dbxC1k8gRw + return 0 + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + kubectl get perconaservermongodbrestores.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbrestores.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbrestores" + kubectl patch perconaservermongodbrestores.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbrestores" + : + kubectl_bin wait --for=delete crd perconaservermongodbrestores.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.GPF2SozSEK ++ mktemp + local LAST_ERR=/tmp/tmp.UbkXTwzcLz + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete crd perconaservermongodbrestores.psmdb.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.GPF2SozSEK + cat /tmp/tmp.UbkXTwzcLz + rm /tmp/tmp.GPF2SozSEK /tmp/tmp.UbkXTwzcLz + return 0 + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + kubectl get perconaservermongodbs.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbs.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbs" + kubectl patch perconaservermongodbs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbs" + : + kubectl_bin wait --for=delete crd perconaservermongodbs.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.5ijUCFYNoB ++ mktemp + local LAST_ERR=/tmp/tmp.a6CXuqgXEp + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete crd perconaservermongodbs.psmdb.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.5ijUCFYNoB + cat /tmp/tmp.a6CXuqgXEp + rm /tmp/tmp.5ijUCFYNoB /tmp/tmp.a6CXuqgXEp + return 0 + local rbac_yaml=rbac.yaml + '[' -n psmdb-operator ']' + rbac_yaml=cw-rbac.yaml + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/deploy/cw-rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.d83Iy0Fwcs ++ mktemp + local LAST_ERR=/tmp/tmp.rDAWAapsyd + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1850/deploy/cw-rbac.yaml --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.d83Iy0Fwcs clusterrole.rbac.authorization.k8s.io "percona-server-mongodb-operator" deleted clusterrolebinding.rbac.authorization.k8s.io "service-account-percona-server-mongodb-operator" deleted + cat /tmp/tmp.rDAWAapsyd + rm /tmp/tmp.d83Iy0Fwcs /tmp/tmp.rDAWAapsyd + return 0 + destroy_cert_manager + kubectl_bin delete -f https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.TIPW4JpUO8 ++ mktemp + local LAST_ERR=/tmp/tmp.oqq4uxGGuA + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete -f https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.TIPW4JpUO8 + cat /tmp/tmp.oqq4uxGGuA Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": namespaces "cert-manager" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "challenges.acme.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "orders.acme.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "certificaterequests.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "certificates.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "clusterissuers.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "issuers.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": serviceaccounts "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": serviceaccounts "cert-manager" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": serviceaccounts "cert-manager-webhook" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-issuers" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-clusterissuers" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-certificates" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-orders" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-challenges" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-ingress-shim" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-cluster-view" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-view" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-edit" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-approve:cert-manager-io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-certificatesigningrequests" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-webhook:subjectaccessreviews" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-issuers" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-clusterissuers" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-certificates" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-orders" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-challenges" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-ingress-shim" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-approve:cert-manager-io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-certificatesigningrequests" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-webhook:subjectaccessreviews" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": roles.rbac.authorization.k8s.io "cert-manager-cainjector:leaderelection" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": roles.rbac.authorization.k8s.io "cert-manager:leaderelection" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": roles.rbac.authorization.k8s.io "cert-manager-tokenrequest" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": roles.rbac.authorization.k8s.io "cert-manager-webhook:dynamic-serving" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": rolebindings.rbac.authorization.k8s.io "cert-manager-cainjector:leaderelection" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": rolebindings.rbac.authorization.k8s.io "cert-manager:leaderelection" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": rolebindings.rbac.authorization.k8s.io "cert-manager-tokenrequest" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": rolebindings.rbac.authorization.k8s.io "cert-manager-webhook:dynamic-serving" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": services "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": services "cert-manager" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": services "cert-manager-webhook" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": deployments.apps "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": deployments.apps "cert-manager" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": deployments.apps "cert-manager-webhook" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": mutatingwebhookconfigurations.admissionregistration.k8s.io "cert-manager-webhook" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": validatingwebhookconfigurations.admissionregistration.k8s.io "cert-manager-webhook" not found + sleep 0 + for i in $(seq 0 2) + set +e + kubectl delete -f https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.TIPW4JpUO8 + cat /tmp/tmp.oqq4uxGGuA Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": namespaces "cert-manager" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "challenges.acme.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "orders.acme.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "certificaterequests.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "certificates.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "clusterissuers.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "issuers.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": serviceaccounts "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": serviceaccounts "cert-manager" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": serviceaccounts "cert-manager-webhook" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-issuers" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-clusterissuers" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-certificates" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-orders" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-challenges" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-ingress-shim" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-cluster-view" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-view" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-edit" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-approve:cert-manager-io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-certificatesigningrequests" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-webhook:subjectaccessreviews" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-issuers" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-clusterissuers" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-certificates" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-orders" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-challenges" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-ingress-shim" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-approve:cert-manager-io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-certificatesigningrequests" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-webhook:subjectaccessreviews" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": roles.rbac.authorization.k8s.io "cert-manager-cainjector:leaderelection" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": roles.rbac.authorization.k8s.io "cert-manager:leaderelection" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": roles.rbac.authorization.k8s.io "cert-manager-tokenrequest" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": roles.rbac.authorization.k8s.io "cert-manager-webhook:dynamic-serving" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": rolebindings.rbac.authorization.k8s.io "cert-manager-cainjector:leaderelection" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": rolebindings.rbac.authorization.k8s.io "cert-manager:leaderelection" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": rolebindings.rbac.authorization.k8s.io "cert-manager-tokenrequest" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": rolebindings.rbac.authorization.k8s.io "cert-manager-webhook:dynamic-serving" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": services "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": services "cert-manager" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": services "cert-manager-webhook" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": deployments.apps "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": deployments.apps "cert-manager" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": deployments.apps "cert-manager-webhook" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": mutatingwebhookconfigurations.admissionregistration.k8s.io "cert-manager-webhook" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": validatingwebhookconfigurations.admissionregistration.k8s.io "cert-manager-webhook" not found + sleep 4 + for i in $(seq 0 2) + set +e + kubectl delete -f https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.TIPW4JpUO8 + cat /tmp/tmp.oqq4uxGGuA Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": namespaces "cert-manager" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "challenges.acme.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "orders.acme.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "certificaterequests.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "certificates.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "clusterissuers.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "issuers.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": serviceaccounts "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": serviceaccounts "cert-manager" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": serviceaccounts "cert-manager-webhook" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-issuers" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-clusterissuers" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-certificates" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-orders" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-challenges" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-ingress-shim" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-cluster-view" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-view" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-edit" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-approve:cert-manager-io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-certificatesigningrequests" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-webhook:subjectaccessreviews" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-issuers" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-clusterissuers" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-certificates" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-orders" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-challenges" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-ingress-shim" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-approve:cert-manager-io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-certificatesigningrequests" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-webhook:subjectaccessreviews" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": roles.rbac.authorization.k8s.io "cert-manager-cainjector:leaderelection" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": roles.rbac.authorization.k8s.io "cert-manager:leaderelection" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": roles.rbac.authorization.k8s.io "cert-manager-tokenrequest" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": roles.rbac.authorization.k8s.io "cert-manager-webhook:dynamic-serving" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": rolebindings.rbac.authorization.k8s.io "cert-manager-cainjector:leaderelection" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": rolebindings.rbac.authorization.k8s.io "cert-manager:leaderelection" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": rolebindings.rbac.authorization.k8s.io "cert-manager-tokenrequest" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": rolebindings.rbac.authorization.k8s.io "cert-manager-webhook:dynamic-serving" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": services "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": services "cert-manager" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": services "cert-manager-webhook" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": deployments.apps "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": deployments.apps "cert-manager" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": deployments.apps "cert-manager-webhook" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": mutatingwebhookconfigurations.admissionregistration.k8s.io "cert-manager-webhook" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": validatingwebhookconfigurations.admissionregistration.k8s.io "cert-manager-webhook" not found + sleep 8 + cat /tmp/tmp.TIPW4JpUO8 + cat /tmp/tmp.oqq4uxGGuA Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": namespaces "cert-manager" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "challenges.acme.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "orders.acme.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "certificaterequests.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "certificates.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "clusterissuers.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": customresourcedefinitions.apiextensions.k8s.io "issuers.cert-manager.io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": serviceaccounts "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": serviceaccounts "cert-manager" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": serviceaccounts "cert-manager-webhook" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-issuers" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-clusterissuers" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-certificates" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-orders" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-challenges" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-ingress-shim" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-cluster-view" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-view" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-edit" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-approve:cert-manager-io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-controller-certificatesigningrequests" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterroles.rbac.authorization.k8s.io "cert-manager-webhook:subjectaccessreviews" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-issuers" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-clusterissuers" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-certificates" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-orders" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-challenges" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-ingress-shim" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-approve:cert-manager-io" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-controller-certificatesigningrequests" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": clusterrolebindings.rbac.authorization.k8s.io "cert-manager-webhook:subjectaccessreviews" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": roles.rbac.authorization.k8s.io "cert-manager-cainjector:leaderelection" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": roles.rbac.authorization.k8s.io "cert-manager:leaderelection" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": roles.rbac.authorization.k8s.io "cert-manager-tokenrequest" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": roles.rbac.authorization.k8s.io "cert-manager-webhook:dynamic-serving" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": rolebindings.rbac.authorization.k8s.io "cert-manager-cainjector:leaderelection" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": rolebindings.rbac.authorization.k8s.io "cert-manager:leaderelection" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": rolebindings.rbac.authorization.k8s.io "cert-manager-tokenrequest" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": rolebindings.rbac.authorization.k8s.io "cert-manager-webhook:dynamic-serving" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": services "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": services "cert-manager" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": services "cert-manager-webhook" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": deployments.apps "cert-manager-cainjector" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": deployments.apps "cert-manager" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": deployments.apps "cert-manager-webhook" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": mutatingwebhookconfigurations.admissionregistration.k8s.io "cert-manager-webhook" not found Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.19.1/cert-manager.yaml": validatingwebhookconfigurations.admissionregistration.k8s.io "cert-manager-webhook" not found + rm /tmp/tmp.TIPW4JpUO8 /tmp/tmp.oqq4uxGGuA + return 1 + true + '[' -n '' ']' + '[' -n psmdb-operator ']' + kubectl_bin delete --grace-period=0 --force=true namespace pitr-to-new-cluster-15939 + rm -rf /tmp/tmp.Z3WcvfRmD7 + kubectl_bin delete --grace-period=0 --force=true namespace psmdb-operator ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.R7131HhYRY + local LAST_OUT=/tmp/tmp.A2yZhgtD2Y ++ mktemp ++ mktemp + local LAST_ERR=/tmp/tmp.PEOg1c30ys + local exit_status=0 + local timeout=4 + local LAST_ERR=/tmp/tmp.9Z4qCOQZJ1 + local exit_status=0 + local timeout=4 ++ seq 0 2 ++ seq 0 2 + for i in $(seq 0 2) + for i in $(seq 0 2) + set +e + set +e + kubectl delete --grace-period=0 --force=true namespace pitr-to-new-cluster-15939 + kubectl delete --grace-period=0 --force=true namespace psmdb-operator