which: no gsed in (/root/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/snapd/snap/bin) mkdir -p e2e-tests/reports e2e-tests/logs ========================================================================================= test session starts ========================================================================================== platform linux -- Python 3.14.6, pytest-9.1.1, pluggy-1.6.0 -- /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/.venv/bin/python cachedir: .pytest_cache metadata: {'Python': '3.14.6', 'Platform': 'Linux-6.18.6-200.fc43.x86_64-x86_64-with-glibc2.42', 'Packages': {'pytest': '9.1.1', 'pluggy': '1.6.0'}, 'Plugins': {'html': '4.2.0', 'dependency': '0.6.1', 'json-report': '1.5.0', 'metadata': '3.1.1'}, 'CI': 'true', 'BUILD_NUMBER': '2', 'BUILD_ID': '2', 'BUILD_URL': 'https://cloud.cd.percona.com/job/cloud-psmdb-operator/job/PR-2491/2/', 'NODE_NAME': 'hcloud-ir3nxfnaccwe6fha', 'JOB_NAME': 'cloud-psmdb-operator/PR-2491', 'BUILD_TAG': 'jenkins-cloud-psmdb-operator-PR-2491-2', 'EXECUTOR_NUMBER': '0', 'JENKINS_URL': 'https://cloud.cd.percona.com/', 'WORKSPACE': '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491', 'GIT_COMMIT': '6cfab0ed6bdcd3601b0c48816a22ee4ab446b92a', 'GIT_URL': 'https://github.com/percona/percona-server-mongodb-operator.git', 'GIT_BRANCH': 'PR-2491'} rootdir: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491 configfile: pyproject.toml plugins: html-4.2.0, dependency-0.6.1, json-report-1.5.0, metadata-3.1.1 collecting ... collected 1 item e2e-tests/test_pytest_wrapper.py::test_bash_wrapper[clustersync] [11:08:51.739197] WARNING kubectl error: Warning: version difference between client (1.36) and server (1.33) exceeds the supported minor version skew of +/-1 [11:08:53.125714] INFO Environment variables: KUBE_VERSION=1.33 PLATFORM=gke ARCH= EKS= GKE=1 AKS= OPENSHIFT= KIND= MINIKUBE= RANCHER= API=psmdb.percona.com/v1 REGISTRY_NAME=docker.io GIT_COMMIT=6cfab0ed6bdcd3601b0c48816a22ee4ab446b92a GIT_BRANCH=PR-2491 OPERATOR_VERSION=1.24.0 IMAGE=docker.io/perconalab/percona-server-mongodb-operator:PR-2491-6cfab0ed6 IMAGE_MONGOD=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 IMAGE_MONGOD_CHAIN=docker.io/perconalab/percona-server-mongodb-operator:main-mongod6.0 docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 IMAGE_SEARCH=docker.io/perconalab/percona-server-mongodb-operator:main-mongot IMAGE_BACKUP=docker.io/perconalab/percona-server-mongodb-operator:main-backup IMAGE_PMM_CLIENT=docker.io/percona/pmm-client:2.44.1-1 IMAGE_PMM_SERVER=docker.io/perconalab/pmm-server:dev-latest IMAGE_PMM3_CLIENT=docker.io/perconalab/pmm-client:3-dev-latest IMAGE_PMM3_SERVER=docker.io/perconalab/pmm-server:3-dev-latest IMAGE_LOGCOLLECTOR=docker.io/perconalab/fluentbit:main-logcollector IMAGE_CLUSTERSYNC=docker.io/percona/percona-clustersync-mongodb:0.9.0 IMAGE_AWS_CLI=docker.io/amazon/aws-cli:2.34.60 CERT_MANAGER_VER=1.21.0 CHAOS_MESH_VER=2.7.1 MINIO_VER=5.4.0 PMM_SERVER_VER=9.9.9 CLEAN_NAMESPACE=1 DELETE_CRD_ON_START=1 SKIP_DELETE=0 SKIP_BACKUPS_TO_AWS_GCP_AZURE= UPDATE_COMPARE_FILES=0 Warning: version difference between client (1.36) and server (1.33) exceeds the supported minor version skew of +/-1 Debug logging disabled. + source_cluster=source-cluster + target_cluster=target-cluster + sync_cr=sync + clustersync_source_secret=clustersync-source-creds + desc 'create infra' + set +o xtrace ----------------------------------------------------------------------------------- create infra ----------------------------------------------------------------------------------- + create_infra clustersync-15270 + local ns=clustersync-15270 + echo clustersync-15270 + [[ 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-2491/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.Yw1N5zKJCt ++ mktemp + local LAST_ERR=/tmp/tmp.sQ8YtGq8qW + local exit_status=0 + local timeout=4 + args=('delete' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/deploy/crd.yaml' '--ignore-not-found' '--wait=false') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Yw1N5zKJCt + cat /tmp/tmp.sQ8YtGq8qW + rm /tmp/tmp.Yw1N5zKJCt /tmp/tmp.sQ8YtGq8qW + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/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.rBdufCCB5r ++ mktemp + local LAST_ERR=/tmp/tmp.lelZAnYQiq + local exit_status=0 + local timeout=4 + args=('wait' '--for=delete' 'crd' 'perconaservermongodbbackups.psmdb.percona.com') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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.rBdufCCB5r + cat /tmp/tmp.lelZAnYQiq + rm /tmp/tmp.rBdufCCB5r /tmp/tmp.lelZAnYQiq + return 0 + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + kubectl get perconaservermongodbclustersyncs.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbclustersyncs.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbclustersyncs" + kubectl patch perconaservermongodbclustersyncs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbclustersyncs" + : + kubectl_bin wait --for=delete crd perconaservermongodbclustersyncs.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.K0PyLX8meB ++ mktemp + local LAST_ERR=/tmp/tmp.apKpw76r0W + local exit_status=0 + local timeout=4 + args=('wait' '--for=delete' 'crd' 'perconaservermongodbclustersyncs.psmdb.percona.com') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete crd perconaservermongodbclustersyncs.psmdb.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.K0PyLX8meB + cat /tmp/tmp.apKpw76r0W + rm /tmp/tmp.K0PyLX8meB /tmp/tmp.apKpw76r0W + 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.3dUbYmG0Br ++ mktemp + local LAST_ERR=/tmp/tmp.gLisYcECpK + local exit_status=0 + local timeout=4 + args=('wait' '--for=delete' 'crd' 'perconaservermongodbrestores.psmdb.percona.com') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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.3dUbYmG0Br + cat /tmp/tmp.gLisYcECpK + rm /tmp/tmp.3dUbYmG0Br /tmp/tmp.gLisYcECpK + return 0 + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + grep -v NAMESPACE + kubectl get perconaservermongodbs.psmdb.percona.com --all-namespaces -o wide + 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.uEGJupRkkf ++ mktemp + local LAST_ERR=/tmp/tmp.XZ4L1D6SzO + local exit_status=0 + local timeout=4 + args=('wait' '--for=delete' 'crd' 'perconaservermongodbs.psmdb.percona.com') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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.uEGJupRkkf + cat /tmp/tmp.XZ4L1D6SzO + rm /tmp/tmp.uEGJupRkkf /tmp/tmp.XZ4L1D6SzO + 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-2491/deploy/cw-rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.DcFh4h2Fhf ++ mktemp + local LAST_ERR=/tmp/tmp.4gbyyOMjLw + local exit_status=0 + local timeout=4 + args=('delete' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/deploy/cw-rbac.yaml' '--ignore-not-found') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/deploy/cw-rbac.yaml --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.DcFh4h2Fhf + cat /tmp/tmp.4gbyyOMjLw + rm /tmp/tmp.DcFh4h2Fhf /tmp/tmp.4gbyyOMjLw + return 0 + check_crd_for_deletion PR-2491-6cfab0ed6 + local git_tag=PR-2491-6cfab0ed6 ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-2491-6cfab0ed6/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.WpmhouOvrn +++ mktemp ++ local LAST_ERR=/tmp/tmp.ucfxylWsTm ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'crd/null' '-o' 'jsonpath={.status.conditions[-1].type}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ 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.WpmhouOvrn ++ cat /tmp/tmp.ucfxylWsTm 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.WpmhouOvrn ++ cat /tmp/tmp.ucfxylWsTm 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.WpmhouOvrn ++ cat /tmp/tmp.ucfxylWsTm Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 8 ++ cat /tmp/tmp.WpmhouOvrn ++ cat /tmp/tmp.ucfxylWsTm Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.WpmhouOvrn /tmp/tmp.ucfxylWsTm ++ return 1 + [[ '' == Terminating ]] + '[' -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}' ++ grep chaos-mesh.org ++ kubectl get crd ++ 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 + : ++ grep chaos-mesh ++ kubectl get clusterrole ++ 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 + grep -E -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + [[ -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 + awk '{print$1}' + xargs kubectl delete ns ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.C7yccx367k ++ mktemp + local LAST_OUT=/tmp/tmp.MKV84V7nuC + local LAST_ERR=/tmp/tmp.BAVVB1JwpN + local exit_status=0 + local timeout=4 + args=('get' 'ns') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 ++ mktemp + for i in $(seq 0 2) + set +e + kubectl get ns + local LAST_ERR=/tmp/tmp.DKeKMLekHP + local exit_status=0 + local timeout=4 + args=('delete' 'namespace' 'psmdb-operator' '--ignore-not-found') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + 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.C7yccx367k + cat /tmp/tmp.BAVVB1JwpN + rm /tmp/tmp.C7yccx367k /tmp/tmp.BAVVB1JwpN + 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.MKV84V7nuC + cat /tmp/tmp.DKeKMLekHP + rm /tmp/tmp.MKV84V7nuC /tmp/tmp.DKeKMLekHP + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.sSkFwk4lS8 ++ mktemp + local LAST_ERR=/tmp/tmp.EXYijJ9Ij2 + local exit_status=0 + local timeout=4 + args=('wait' '--for=delete' 'namespace' 'psmdb-operator') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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.sSkFwk4lS8 + cat /tmp/tmp.EXYijJ9Ij2 + rm /tmp/tmp.sSkFwk4lS8 /tmp/tmp.EXYijJ9Ij2 + 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.5BegjIGBb1 ++ mktemp + local LAST_ERR=/tmp/tmp.zSRwFURg7O + local exit_status=0 + local timeout=4 + args=('create' 'namespace' 'psmdb-operator') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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.5BegjIGBb1 namespace/psmdb-operator created + cat /tmp/tmp.zSRwFURg7O + rm /tmp/tmp.5BegjIGBb1 /tmp/tmp.zSRwFURg7O + return 0 + set_kube_ctx psmdb-operator + local namespace=psmdb-operator ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.gCDZJoIPYT +++ mktemp ++ local LAST_ERR=/tmp/tmp.7kYuEQnkN8 ++ local exit_status=0 ++ local timeout=4 ++ args=('config' 'current-context') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ 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.gCDZJoIPYT ++ cat /tmp/tmp.7kYuEQnkN8 ++ rm /tmp/tmp.gCDZJoIPYT /tmp/tmp.7kYuEQnkN8 ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-c_jen-psmdb-2491-6cfab0ed6-2-cluster4 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.iedFxPYv32 ++ mktemp + local LAST_ERR=/tmp/tmp.gglp8Pxi5S + local exit_status=0 + local timeout=4 + args=('config' 'set-context' 'gke_cloud-dev-112233_us-central1-c_jen-psmdb-2491-6cfab0ed6-2-cluster4' '--namespace=psmdb-operator') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-c_jen-psmdb-2491-6cfab0ed6-2-cluster4 --namespace=psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.iedFxPYv32 Context "gke_cloud-dev-112233_us-central1-c_jen-psmdb-2491-6cfab0ed6-2-cluster4" modified. + cat /tmp/tmp.gglp8Pxi5S + rm /tmp/tmp.iedFxPYv32 /tmp/tmp.gglp8Pxi5S + return 0 + deploy_operator + desc 'start PSMDB operator: docker.io/perconalab/percona-server-mongodb-operator:PR-2491-6cfab0ed6' + set +o xtrace ----------------------------------------------------------------------------------- start PSMDB operator: docker.io/perconalab/percona-server-mongodb-operator:PR-2491-6cfab0ed6 ----------------------------------------------------------------------------------- + local cr_file + '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/clustersync/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.11A8rRrtYD ++ mktemp + local LAST_ERR=/tmp/tmp.96tBAGlSvp + local exit_status=0 + local timeout=4 + args=('apply' '--server-side' '--force-conflicts' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/deploy/crd.yaml') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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-2491/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.11A8rRrtYD customresourcedefinition.apiextensions.k8s.io/perconaservermongodbbackups.psmdb.percona.com serverside-applied customresourcedefinition.apiextensions.k8s.io/perconaservermongodbclustersyncs.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.96tBAGlSvp + rm /tmp/tmp.11A8rRrtYD /tmp/tmp.96tBAGlSvp + 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-2491/deploy/cw-rbac.yaml + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.rBkzmaHGBZ ++ mktemp + local LAST_ERR=/tmp/tmp.wFAyZlCbst + local exit_status=0 + local timeout=4 + args=('apply' '-n' 'psmdb-operator' '-f' '-') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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.rBkzmaHGBZ 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.wFAyZlCbst + rm /tmp/tmp.rBkzmaHGBZ /tmp/tmp.wFAyZlCbst + return 0 + yq eval $'\n\t\t\t(.spec.template.spec.containers[].image = "docker.io/perconalab/percona-server-mongodb-operator:PR-2491-6cfab0ed6") |\n\t\t\t((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") |\n\t\t\t((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/deploy/cw-operator.yaml + add_arch_to_podspecs - + kubectl_bin apply -n psmdb-operator -f - + arch_scheduling_enabled + [[ -n '' ]] + cat - ++ mktemp + local LAST_OUT=/tmp/tmp.wvaCo09O5X ++ mktemp + local LAST_ERR=/tmp/tmp.25xufgr6WG + local exit_status=0 + local timeout=4 + args=('apply' '-n' 'psmdb-operator' '-f' '-') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -n psmdb-operator -f - + return + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.wvaCo09O5X deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.25xufgr6WG + rm /tmp/tmp.wvaCo09O5X /tmp/tmp.25xufgr6WG + 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.ZFbTiY1lvE +++ mktemp ++ local LAST_ERR=/tmp/tmp.fFuYs2x1sb ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'pods' '--selector=name=percona-server-mongodb-operator' '-o' 'jsonpath={.items[].metadata.name}' '-n' 'psmdb-operator') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ 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.ZFbTiY1lvE ++ cat /tmp/tmp.fFuYs2x1sb ++ rm /tmp/tmp.ZFbTiY1lvE /tmp/tmp.fFuYs2x1sb ++ return 0 + wait_operator_pod percona-server-mongodb-operator-78964f6749-t7khh + local pod=percona-server-mongodb-operator-78964f6749-t7khh + set +o xtrace waiting for pod/percona-server-mongodb-operator-78964f6749-t7khh 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.bjuJ9ZVFKq +++ mktemp ++ local LAST_ERR=/tmp/tmp.XqWMTYDRDB ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'pods' '--selector=name=percona-server-mongodb-operator' '-o' 'jsonpath={.items[].metadata.name}' '-n' 'psmdb-operator') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ 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.bjuJ9ZVFKq ++ cat /tmp/tmp.XqWMTYDRDB ++ rm /tmp/tmp.bjuJ9ZVFKq /tmp/tmp.XqWMTYDRDB ++ return 0 + kubectl_bin logs -n psmdb-operator percona-server-mongodb-operator-78964f6749-t7khh ++ mktemp + local LAST_OUT=/tmp/tmp.oGKdMq7IRu ++ mktemp + local LAST_ERR=/tmp/tmp.2KPK4QPMTn + local exit_status=0 + local timeout=4 + args=('logs' '-n' 'psmdb-operator' 'percona-server-mongodb-operator-78964f6749-t7khh') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl logs -n psmdb-operator percona-server-mongodb-operator-78964f6749-t7khh + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.oGKdMq7IRu + cat /tmp/tmp.2KPK4QPMTn + rm /tmp/tmp.oGKdMq7IRu /tmp/tmp.2KPK4QPMTn + return 0 2026-08-04T11:09:56.460Z INFO setup Manager starting up {"gitCommit": "6cfab0ed6bdcd3601b0c48816a22ee4ab446b92a", "gitBranch": "PR-2491-6cfab0ed6", "buildTime": "", "goVersion": "go1.26.5", "os": "linux", "arch": "amd64"} + create_namespace clustersync-15270 + local namespace=clustersync-15270 + 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 ++ awk '{print $1}' ++ grep chaos-mesh.org + 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 + [[ -n '' ]] + xargs kubectl delete ns + awk '{print$1}' ++ mktemp + desc 'cleaned up old namespaces clustersync-15270' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces clustersync-15270 ----------------------------------------------------------------------------------- + grep -E -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + kubectl_bin delete namespace clustersync-15270 --ignore-not-found + local LAST_OUT=/tmp/tmp.iAh5snRGOS ++ mktemp ++ mktemp + local LAST_ERR=/tmp/tmp.1CgE13XUQO + local exit_status=0 + local timeout=4 + args=('get' 'ns') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local LAST_OUT=/tmp/tmp.DTTaSRI9Sk ++ mktemp ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl get ns + local LAST_ERR=/tmp/tmp.0ba7Ls5jS2 + local exit_status=0 + local timeout=4 + args=('delete' 'namespace' 'clustersync-15270' '--ignore-not-found') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete namespace clustersync-15270 --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.iAh5snRGOS + cat /tmp/tmp.1CgE13XUQO + rm /tmp/tmp.iAh5snRGOS /tmp/tmp.1CgE13XUQO + 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.DTTaSRI9Sk + cat /tmp/tmp.0ba7Ls5jS2 + rm /tmp/tmp.DTTaSRI9Sk /tmp/tmp.0ba7Ls5jS2 + return 0 + kubectl_bin wait --for=delete namespace clustersync-15270 ++ mktemp + local LAST_OUT=/tmp/tmp.nDjK9Pxxse ++ mktemp + local LAST_ERR=/tmp/tmp.RMr10H6oMU + local exit_status=0 + local timeout=4 + args=('wait' '--for=delete' 'namespace' 'clustersync-15270') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete namespace clustersync-15270 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.nDjK9Pxxse + cat /tmp/tmp.RMr10H6oMU + rm /tmp/tmp.nDjK9Pxxse /tmp/tmp.RMr10H6oMU + return 0 + desc 'create namespace clustersync-15270' + set +o xtrace ----------------------------------------------------------------------------------- create namespace clustersync-15270 ----------------------------------------------------------------------------------- + kubectl_bin create namespace clustersync-15270 ++ mktemp + local LAST_OUT=/tmp/tmp.KxVU0KFUps ++ mktemp + local LAST_ERR=/tmp/tmp.P02a78dAUW + local exit_status=0 + local timeout=4 + args=('create' 'namespace' 'clustersync-15270') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl create namespace clustersync-15270 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.KxVU0KFUps namespace/clustersync-15270 created + cat /tmp/tmp.P02a78dAUW + rm /tmp/tmp.KxVU0KFUps /tmp/tmp.P02a78dAUW + return 0 + set_kube_ctx clustersync-15270 + local namespace=clustersync-15270 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.k85oJfgpkB +++ mktemp ++ local LAST_ERR=/tmp/tmp.HKWpjcn4c7 ++ local exit_status=0 ++ local timeout=4 ++ args=('config' 'current-context') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ 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.k85oJfgpkB ++ cat /tmp/tmp.HKWpjcn4c7 ++ rm /tmp/tmp.k85oJfgpkB /tmp/tmp.HKWpjcn4c7 ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-c_jen-psmdb-2491-6cfab0ed6-2-cluster4 --namespace=clustersync-15270 ++ mktemp + local LAST_OUT=/tmp/tmp.ivnBGTvdWU ++ mktemp + local LAST_ERR=/tmp/tmp.2OR9ANnmiI + local exit_status=0 + local timeout=4 + args=('config' 'set-context' 'gke_cloud-dev-112233_us-central1-c_jen-psmdb-2491-6cfab0ed6-2-cluster4' '--namespace=clustersync-15270') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-c_jen-psmdb-2491-6cfab0ed6-2-cluster4 --namespace=clustersync-15270 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ivnBGTvdWU Context "gke_cloud-dev-112233_us-central1-c_jen-psmdb-2491-6cfab0ed6-2-cluster4" modified. + cat /tmp/tmp.2OR9ANnmiI + rm /tmp/tmp.ivnBGTvdWU /tmp/tmp.2OR9ANnmiI + return 0 + desc 'deploy minio (storage for target-cluster backups)' + set +o xtrace ----------------------------------------------------------------------------------- deploy minio (storage for target-cluster backups) ----------------------------------------------------------------------------------- + deploy_minio + local cert_secret= + local service_name=minio-service + desc 'install MinIO: minio-service' + set +o xtrace ----------------------------------------------------------------------------------- install MinIO: minio-service ----------------------------------------------------------------------------------- + helm uninstall minio-service + : + 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 + local endpoint=http://minio-service:9000 + minio_args=('--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/' '--set' 'securityContext.enabled=false' '--set' 'persistence.size=2G' '--set' 'fullnameOverride=minio-service' '--set' 'serviceAccount.create=true' '--set' 'serviceAccount.name=minio-service-sa') + local minio_args + arch_scheduling_enabled + [[ -n '' ]] + [[ -n '' ]] + 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/ --set securityContext.enabled=false --set persistence.size=2G --set fullnameOverride=minio-service --set serviceAccount.create=true --set serviceAccount.name=minio-service-sa 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/ --set securityContext.enabled=false --set persistence.size=2G --set fullnameOverride=minio-service --set serviceAccount.create=true --set serviceAccount.name=minio-service-sa minio/minio NAME: minio-service LAST DEPLOYED: Tue Aug 4 11:10:32 2026 NAMESPACE: clustersync-15270 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.clustersync-15270.cluster.local To access MinIO from localhost, run the below commands: 1. export POD_NAME=$(kubectl get pods --namespace clustersync-15270 -l "release=minio-service" -o jsonpath="{.items[0].metadata.name}") 2. kubectl port-forward $POD_NAME 9000 --namespace clustersync-15270 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 clustersync-15270 minio-service -o jsonpath="{.data.rootUser}" | base64 --decode):$(kubectl get secret --namespace clustersync-15270 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.o5SoUCqcZI +++ mktemp ++ local LAST_ERR=/tmp/tmp.2RaG7y8rWw ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'pods' '--selector=release=minio-service' '-o' 'jsonpath={.items[].metadata.name}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ 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.o5SoUCqcZI ++ cat /tmp/tmp.2RaG7y8rWw ++ rm /tmp/tmp.o5SoUCqcZI /tmp/tmp.2RaG7y8rWw ++ return 0 + local MINIO_POD=minio-service-6d5f646cdc-tz97v + wait_pod minio-service-6d5f646cdc-tz97v + local pod=minio-service-6d5f646cdc-tz97v + set +o xtrace waiting for pod/minio-service-6d5f646cdc-tz97v to be ready.OK + '[' -n psmdb-operator ']' + kubectl_bin create svc -n psmdb-operator externalname minio-service --external-name=minio-service.clustersync-15270.svc.cluster.local --tcp=9000 service/minio-service created + create_minio_bucket operator-testing http://minio-service:9000 + local bucket=operator-testing + local endpoint=http://minio-service:9000 + aws_cli_minio http://minio-service:9000 s3 mb s3://operator-testing + local endpoint=http://minio-service:9000 + shift + kubectl_bin run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url http://minio-service:9000 s3 mb s3://operator-testing ++ mktemp + local LAST_OUT=/tmp/tmp.ChB0jrktxB ++ mktemp + local LAST_ERR=/tmp/tmp.w2MCgb6mmP + local exit_status=0 + local timeout=4 + args=('run' '-i' '--rm' 'aws-cli' '--image=docker.io/amazon/aws-cli:2.34.60' '--restart=Never' '--env=AWS_ACCESS_KEY_ID=some-access-key' '--env=AWS_SECRET_ACCESS_KEY=some-secret-key' '--env=AWS_DEFAULT_REGION=us-east-1' '--' '--no-verify-ssl' '--endpoint-url' 'http://minio-service:9000' 's3' 'mb' 's3://operator-testing') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --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.ChB0jrktxB make_bucket: operator-testing pod "aws-cli" deleted from clustersync-15270 namespace + cat /tmp/tmp.w2MCgb6mmP 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. + rm /tmp/tmp.ChB0jrktxB /tmp/tmp.w2MCgb6mmP + return 0 + desc 'apply users secrets, minio secret and start client' + set +o xtrace ----------------------------------------------------------------------------------- apply users secrets, minio secret and start client ----------------------------------------------------------------------------------- + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/clustersync/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/conf/minio-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/conf/client.yml ++ mktemp + local LAST_OUT=/tmp/tmp.O2HBErs9m9 ++ mktemp + local LAST_ERR=/tmp/tmp.nmwagtvpn6 + local exit_status=0 + local timeout=4 + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/clustersync/conf/secrets.yml' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/conf/minio-secret.yml' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/conf/client.yml') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/clustersync/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/conf/minio-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/conf/client.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.O2HBErs9m9 secret/source-users created secret/target-users created secret/clustersync-source-creds created secret/minio-secret created deployment.apps/psmdb-client created + cat /tmp/tmp.nmwagtvpn6 + rm /tmp/tmp.O2HBErs9m9 /tmp/tmp.nmwagtvpn6 + return 0 + desc 'deploy source-cluster' + set +o xtrace ----------------------------------------------------------------------------------- deploy source-cluster ----------------------------------------------------------------------------------- + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/clustersync/conf/source-cluster.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/clustersync/conf/source-cluster.yml + kubectl_bin apply -f - ++ mktemp + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/clustersync/conf/source-cluster.yml + yq eval '(.spec | select(.image == null)).image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0"' + yq eval '(.spec | select(has("pmm"))).pmm.image = "docker.io/percona/pmm-client:2.44.1-1"' + yq eval '(.spec | select(has("initImage"))).initImage = "docker.io/perconalab/percona-server-mongodb-operator:PR-2491-6cfab0ed6"' + yq eval '(.spec | select(has("backup"))).backup.image = "docker.io/perconalab/percona-server-mongodb-operator:main-backup"' + local LAST_OUT=/tmp/tmp.vXTobyq3bV ++ mktemp + [[ -n docker.io/perconalab/fluentbit:main-logcollector ]] + IMAGE_LOGCOLLECTOR=docker.io/perconalab/fluentbit:main-logcollector + yq eval '(.spec | select(has("logcollector"))).logcollector.image = strenv(IMAGE_LOGCOLLECTOR)' + yq eval '(.spec | select(has("search"))).search.image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongot"' + /usr/sbin/sed -e s/NAME_SPACE/clustersync-15270/g + add_arch_to_psmdb - + arch_scheduling_enabled + [[ -n '' ]] + cat - + yq eval '.spec.upgradeOptions.apply="Never"' + local LAST_ERR=/tmp/tmp.yChv5y87TQ + local exit_status=0 + local timeout=4 + args=('apply' '-f' '-') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + return + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.vXTobyq3bV perconaservermongodb.psmdb.percona.com/source-cluster created + cat /tmp/tmp.yChv5y87TQ + rm /tmp/tmp.vXTobyq3bV /tmp/tmp.yChv5y87TQ + return 0 + desc 'deploy target-cluster' + set +o xtrace ----------------------------------------------------------------------------------- deploy target-cluster ----------------------------------------------------------------------------------- + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/clustersync/conf/target-cluster.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/clustersync/conf/target-cluster.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/clustersync/conf/target-cluster.yml ++ mktemp + yq eval '(.spec | select(has("pmm"))).pmm.image = "docker.io/percona/pmm-client:2.44.1-1"' + yq eval '(.spec | select(has("initImage"))).initImage = "docker.io/perconalab/percona-server-mongodb-operator:PR-2491-6cfab0ed6"' + yq eval '(.spec | select(.image == null)).image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0"' + yq eval '(.spec | select(has("backup"))).backup.image = "docker.io/perconalab/percona-server-mongodb-operator:main-backup"' + local LAST_OUT=/tmp/tmp.Idw5oo0TLe ++ mktemp + yq eval '(.spec | select(has("search"))).search.image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongot"' + [[ -n docker.io/perconalab/fluentbit:main-logcollector ]] + IMAGE_LOGCOLLECTOR=docker.io/perconalab/fluentbit:main-logcollector + yq eval '(.spec | select(has("logcollector"))).logcollector.image = strenv(IMAGE_LOGCOLLECTOR)' + yq eval '.spec.upgradeOptions.apply="Never"' + add_arch_to_psmdb - + /usr/sbin/sed -e s/NAME_SPACE/clustersync-15270/g + local LAST_ERR=/tmp/tmp.jzKUcfe8fg + local exit_status=0 + local timeout=4 + args=('apply' '-f' '-') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + cat - + for i in $(seq 0 2) + set +e + kubectl apply -f - + return + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Idw5oo0TLe perconaservermongodb.psmdb.percona.com/target-cluster created + cat /tmp/tmp.jzKUcfe8fg + rm /tmp/tmp.Idw5oo0TLe /tmp/tmp.jzKUcfe8fg + return 0 + desc 'wait for source-cluster ready' + set +o xtrace ----------------------------------------------------------------------------------- wait for source-cluster ready ----------------------------------------------------------------------------------- + wait_for_running source-cluster-rs0 1 + local name=source-cluster-rs0 + let last_pod=0 + : + local check_cluster_readiness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=source-cluster ++ seq 0 0 + for i in $(seq 0 $last_pod) + [[ 0 -eq 0 ]] ++ kubectl_bin get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.j7T84t0MHS +++ mktemp ++ local LAST_ERR=/tmp/tmp.o9FH7SFfce ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'source-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.j7T84t0MHS ++ cat /tmp/tmp.o9FH7SFfce ++ rm /tmp/tmp.j7T84t0MHS /tmp/tmp.o9FH7SFfce ++ return 0 + [[ '' == true ]] + wait_pod source-cluster-rs0-0 + local pod=source-cluster-rs0-0 + set +o xtrace waiting for pod/source-cluster-rs0-0 to be ready.......................OK ++ kubectl_bin get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.hokjUTZjdV +++ mktemp ++ local LAST_ERR=/tmp/tmp.EP75T94MfM ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'source-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.hokjUTZjdV ++ cat /tmp/tmp.EP75T94MfM ++ rm /tmp/tmp.hokjUTZjdV /tmp/tmp.EP75T94MfM ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.dGSre0wd0T +++ mktemp ++ local LAST_ERR=/tmp/tmp.bpKN926YdG ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'source-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.dGSre0wd0T ++ cat /tmp/tmp.bpKN926YdG ++ rm /tmp/tmp.dGSre0wd0T /tmp/tmp.bpKN926YdG ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster source-cluster to be ready................................................................................ + wait_for_running source-cluster-cfg 1 false + local name=source-cluster-cfg + let last_pod=0 + : + local check_cluster_readiness=false + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=cfg + local cluster_name=source-cluster ++ seq 0 0 + for i in $(seq 0 $last_pod) + [[ 0 -eq 0 ]] ++ kubectl_bin get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.7KWHnZ1qAw +++ mktemp ++ local LAST_ERR=/tmp/tmp.lGRjUmCIbp ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'source-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="cfg")].arbiter.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.7KWHnZ1qAw ++ cat /tmp/tmp.lGRjUmCIbp ++ rm /tmp/tmp.7KWHnZ1qAw /tmp/tmp.lGRjUmCIbp ++ return 0 + [[ '' == true ]] + wait_pod source-cluster-cfg-0 + local pod=source-cluster-cfg-0 + set +o xtrace waiting for pod/source-cluster-cfg-0 to be ready.OK ++ kubectl_bin get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.gltnqur46T +++ mktemp ++ local LAST_ERR=/tmp/tmp.ULjkOoA43P ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'source-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="cfg")].nonvoting.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.gltnqur46T ++ cat /tmp/tmp.ULjkOoA43P ++ rm /tmp/tmp.gltnqur46T /tmp/tmp.ULjkOoA43P ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.XlVIecILGU +++ mktemp ++ local LAST_ERR=/tmp/tmp.ZotoEyAJ4F ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'source-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="cfg")].hidden.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.XlVIecILGU ++ cat /tmp/tmp.ZotoEyAJ4F ++ rm /tmp/tmp.XlVIecILGU /tmp/tmp.ZotoEyAJ4F ++ return 0 + [[ '' == true ]] + sleep 10 + [[ false == true ]] + wait_for_running source-cluster-mongos 1 false + local name=source-cluster-mongos + let last_pod=0 + : + local check_cluster_readiness=false + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=mongos + local cluster_name=source-cluster ++ seq 0 0 + for i in $(seq 0 $last_pod) + [[ 0 -eq 0 ]] ++ kubectl_bin get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.9lOoi0SVCl +++ mktemp ++ local LAST_ERR=/tmp/tmp.UZCs9Sw9cH ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'source-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="mongos")].arbiter.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.9lOoi0SVCl ++ cat /tmp/tmp.UZCs9Sw9cH ++ rm /tmp/tmp.9lOoi0SVCl /tmp/tmp.UZCs9Sw9cH ++ return 0 + [[ '' == true ]] + wait_pod source-cluster-mongos-0 + local pod=source-cluster-mongos-0 + set +o xtrace waiting for pod/source-cluster-mongos-0 to be ready.OK ++ kubectl_bin get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.OeVZxVjvUv +++ mktemp ++ local LAST_ERR=/tmp/tmp.w3g1ScoOMw ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'source-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="mongos")].nonvoting.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.OeVZxVjvUv ++ cat /tmp/tmp.w3g1ScoOMw ++ rm /tmp/tmp.OeVZxVjvUv /tmp/tmp.w3g1ScoOMw ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.NvZSI5RMi1 +++ mktemp ++ local LAST_ERR=/tmp/tmp.F12Shk4Gk5 ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'source-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="mongos")].hidden.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb source-cluster -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.NvZSI5RMi1 ++ cat /tmp/tmp.F12Shk4Gk5 ++ rm /tmp/tmp.NvZSI5RMi1 /tmp/tmp.F12Shk4Gk5 ++ return 0 + [[ '' == true ]] + sleep 10 + [[ false == true ]] + wait_cluster_consistency source-cluster + local cluster_name=source-cluster + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster source-cluster to be ready' waiting for cluster source-cluster to be ready++ kubectl_bin get psmdb source-cluster -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.HBFZ5sQi9S +++ mktemp ++ local LAST_ERR=/tmp/tmp.SBqEu97UQ6 ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'source-cluster' '-o' 'jsonpath={.status.state}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb source-cluster -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.HBFZ5sQi9S ++ cat /tmp/tmp.SBqEu97UQ6 ++ rm /tmp/tmp.HBFZ5sQi9S /tmp/tmp.SBqEu97UQ6 ++ return 0 + [[ ready == ready ]] + echo .OK .OK + desc 'wait for target-cluster ready (which has 2 shards vs source'\''s 1 shard)' + set +o xtrace ----------------------------------------------------------------------------------- wait for target-cluster ready (which has 2 shards vs source's 1 shard) ----------------------------------------------------------------------------------- + wait_for_running target-cluster-rs0 1 + local name=target-cluster-rs0 + let last_pod=0 + : + local check_cluster_readiness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=target-cluster ++ seq 0 0 + for i in $(seq 0 $last_pod) + [[ 0 -eq 0 ]] ++ kubectl_bin get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.pXYoYOhVfT +++ mktemp ++ local LAST_ERR=/tmp/tmp.pNMeEBrb8A ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'target-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.pXYoYOhVfT ++ cat /tmp/tmp.pNMeEBrb8A ++ rm /tmp/tmp.pXYoYOhVfT /tmp/tmp.pNMeEBrb8A ++ return 0 + [[ '' == true ]] + wait_pod target-cluster-rs0-0 + local pod=target-cluster-rs0-0 + set +o xtrace waiting for pod/target-cluster-rs0-0 to be ready.OK ++ kubectl_bin get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.CafBmLOAfS +++ mktemp ++ local LAST_ERR=/tmp/tmp.Kbhb1zQMgR ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'target-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.CafBmLOAfS ++ cat /tmp/tmp.Kbhb1zQMgR ++ rm /tmp/tmp.CafBmLOAfS /tmp/tmp.Kbhb1zQMgR ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Bi79ZKrKTs +++ mktemp ++ local LAST_ERR=/tmp/tmp.3Yes2C62ZQ ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'target-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.Bi79ZKrKTs ++ cat /tmp/tmp.3Yes2C62ZQ ++ rm /tmp/tmp.Bi79ZKrKTs /tmp/tmp.3Yes2C62ZQ ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster target-cluster to be ready + wait_for_running target-cluster-rs1 1 false + local name=target-cluster-rs1 + let last_pod=0 + : + local check_cluster_readiness=false + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs1 + local cluster_name=target-cluster ++ seq 0 0 + for i in $(seq 0 $last_pod) + [[ 0 -eq 0 ]] ++ kubectl_bin get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs1")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.b3kPwoChfz +++ mktemp ++ local LAST_ERR=/tmp/tmp.RlGe9IqhMp ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'target-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs1")].arbiter.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs1")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.b3kPwoChfz ++ cat /tmp/tmp.RlGe9IqhMp ++ rm /tmp/tmp.b3kPwoChfz /tmp/tmp.RlGe9IqhMp ++ return 0 + [[ '' == true ]] + wait_pod target-cluster-rs1-0 + local pod=target-cluster-rs1-0 + set +o xtrace waiting for pod/target-cluster-rs1-0 to be ready.OK ++ kubectl_bin get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs1")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.LrJJmvvyUn +++ mktemp ++ local LAST_ERR=/tmp/tmp.iNLOu0ccRK ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'target-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs1")].nonvoting.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs1")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.LrJJmvvyUn ++ cat /tmp/tmp.iNLOu0ccRK ++ rm /tmp/tmp.LrJJmvvyUn /tmp/tmp.iNLOu0ccRK ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs1")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.3iB1H6pp6D +++ mktemp ++ local LAST_ERR=/tmp/tmp.CVsEKrO0Ny ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'target-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs1")].hidden.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="rs1")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.3iB1H6pp6D ++ cat /tmp/tmp.CVsEKrO0Ny ++ rm /tmp/tmp.3iB1H6pp6D /tmp/tmp.CVsEKrO0Ny ++ return 0 + [[ '' == true ]] + sleep 10 + [[ false == true ]] + wait_for_running target-cluster-cfg 1 false + local name=target-cluster-cfg + let last_pod=0 + : + local check_cluster_readiness=false + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=cfg + local cluster_name=target-cluster ++ seq 0 0 + for i in $(seq 0 $last_pod) + [[ 0 -eq 0 ]] ++ kubectl_bin get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ZkSxDtKCh2 +++ mktemp ++ local LAST_ERR=/tmp/tmp.P61MCG4gcC ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'target-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="cfg")].arbiter.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.ZkSxDtKCh2 ++ cat /tmp/tmp.P61MCG4gcC ++ rm /tmp/tmp.ZkSxDtKCh2 /tmp/tmp.P61MCG4gcC ++ return 0 + [[ '' == true ]] + wait_pod target-cluster-cfg-0 + local pod=target-cluster-cfg-0 + set +o xtrace waiting for pod/target-cluster-cfg-0 to be ready.OK ++ kubectl_bin get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.YN8yinPz1z +++ mktemp ++ local LAST_ERR=/tmp/tmp.BwTdSusZe9 ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'target-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="cfg")].nonvoting.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.YN8yinPz1z ++ cat /tmp/tmp.BwTdSusZe9 ++ rm /tmp/tmp.YN8yinPz1z /tmp/tmp.BwTdSusZe9 ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.E4YeF4IUy1 +++ mktemp ++ local LAST_ERR=/tmp/tmp.WvlA1aebY9 ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'target-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="cfg")].hidden.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.E4YeF4IUy1 ++ cat /tmp/tmp.WvlA1aebY9 ++ rm /tmp/tmp.E4YeF4IUy1 /tmp/tmp.WvlA1aebY9 ++ return 0 + [[ '' == true ]] + sleep 10 + [[ false == true ]] + wait_for_running target-cluster-mongos 1 false + local name=target-cluster-mongos + let last_pod=0 + : + local check_cluster_readiness=false + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=mongos + local cluster_name=target-cluster ++ seq 0 0 + for i in $(seq 0 $last_pod) + [[ 0 -eq 0 ]] ++ kubectl_bin get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.hQ9NyZMDQS +++ mktemp ++ local LAST_ERR=/tmp/tmp.BO2lxhvSzU ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'target-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="mongos")].arbiter.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.hQ9NyZMDQS ++ cat /tmp/tmp.BO2lxhvSzU ++ rm /tmp/tmp.hQ9NyZMDQS /tmp/tmp.BO2lxhvSzU ++ return 0 + [[ '' == true ]] + wait_pod target-cluster-mongos-0 + local pod=target-cluster-mongos-0 + set +o xtrace waiting for pod/target-cluster-mongos-0 to be ready.OK ++ kubectl_bin get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.QsP3X8XB5E +++ mktemp ++ local LAST_ERR=/tmp/tmp.mrVENKYD8R ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'target-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="mongos")].nonvoting.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.QsP3X8XB5E ++ cat /tmp/tmp.mrVENKYD8R ++ rm /tmp/tmp.QsP3X8XB5E /tmp/tmp.mrVENKYD8R ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.xJySEbIMwB +++ mktemp ++ local LAST_ERR=/tmp/tmp.VCqX1o3Kbx ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'target-cluster' '-o' 'jsonpath={.spec.replsets[?(@.name=="mongos")].hidden.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb target-cluster -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.xJySEbIMwB ++ cat /tmp/tmp.VCqX1o3Kbx ++ rm /tmp/tmp.xJySEbIMwB /tmp/tmp.VCqX1o3Kbx ++ return 0 + [[ '' == true ]] + sleep 10 + [[ false == true ]] + wait_cluster_consistency target-cluster + local cluster_name=target-cluster + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster target-cluster to be ready' waiting for cluster target-cluster to be ready++ kubectl_bin get psmdb target-cluster -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.BAoZrxqfq4 +++ mktemp ++ local LAST_ERR=/tmp/tmp.bAEKuYKnLo ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb' 'target-cluster' '-o' 'jsonpath={.status.state}') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb target-cluster -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.BAoZrxqfq4 ++ cat /tmp/tmp.bAEKuYKnLo ++ rm /tmp/tmp.BAoZrxqfq4 /tmp/tmp.bAEKuYKnLo ++ return 0 + [[ ready == ready ]] + echo .OK .OK + desc 'read PCSM source credentials from secret/clustersync-source-creds' + set +o xtrace ----------------------------------------------------------------------------------- read PCSM source credentials from secret/clustersync-source-creds ----------------------------------------------------------------------------------- ++ getSecretData clustersync-source-creds username ++ local secretName=clustersync-source-creds ++ local dataKey=username +++ kubectl get secrets/clustersync-source-creds '--template={{.data.username}}' +++ base64 -d ++ local data=source ++ echo source + source_user=source ++ getSecretData clustersync-source-creds password ++ local secretName=clustersync-source-creds ++ local dataKey=password +++ kubectl get secrets/clustersync-source-creds '--template={{.data.password}}' +++ base64 -d ++ local data=mys3cretpAss ++ echo mys3cretpAss + source_pass=mys3cretpAss + desc 'create '\''source'\'' user on source-cluster (for PCSM)' + set +o xtrace ----------------------------------------------------------------------------------- create 'source' user on source-cluster (for PCSM) ----------------------------------------------------------------------------------- + mongosh_on_mongos source-cluster userAdmin userAdmin123456 'db.getSiblingDB('\''admin'\'').createUser({user:'\''source'\'',pwd:'\''mys3cretpAss'\'',roles:[{role:'\''backup'\'',db:'\''admin'\''},{role:'\''clusterMonitor'\'',db:'\''admin'\''},{role:'\''readAnyDatabase'\'',db:'\''admin'\''}]})' + local cluster=source-cluster + local user=userAdmin + local pass=userAdmin123456 + local 'script=db.getSiblingDB('\''admin'\'').createUser({user:'\''source'\'',pwd:'\''mys3cretpAss'\'',roles:[{role:'\''backup'\'',db:'\''admin'\''},{role:'\''clusterMonitor'\'',db:'\''admin'\''},{role:'\''readAnyDatabase'\'',db:'\''admin'\''}]})' + kubectl_bin exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://userAdmin:userAdmin123456@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB('\''admin'\'').createUser({user:'\''source'\'',pwd:'\''mys3cretpAss'\'',roles:[{role:'\''backup'\'',db:'\''admin'\''},{role:'\''clusterMonitor'\'',db:'\''admin'\''},{role:'\''readAnyDatabase'\'',db:'\''admin'\''}]})' ++ mktemp + local LAST_OUT=/tmp/tmp.OyAMNsQj48 ++ mktemp + local LAST_ERR=/tmp/tmp.JuA0KJts1b + local exit_status=0 + local timeout=4 + args=('exec' 'source-cluster-mongos-0' '-c' 'mongos' '--' 'env' 'HOME=/data/db' 'mongosh' 'mongodb://userAdmin:userAdmin123456@%2Ftmp%2Fmongodb-27017.sock/admin' '--quiet' '--eval' 'db.getSiblingDB('\''admin'\'').createUser({user:'\''source'\'',pwd:'\''mys3cretpAss'\'',roles:[{role:'\''backup'\'',db:'\''admin'\''},{role:'\''clusterMonitor'\'',db:'\''admin'\''},{role:'\''readAnyDatabase'\'',db:'\''admin'\''}]})') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://userAdmin:userAdmin123456@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB('\''admin'\'').createUser({user:'\''source'\'',pwd:'\''mys3cretpAss'\'',roles:[{role:'\''backup'\'',db:'\''admin'\''},{role:'\''clusterMonitor'\'',db:'\''admin'\''},{role:'\''readAnyDatabase'\'',db:'\''admin'\''}]})' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.OyAMNsQj48 { ok: 1, '$clusterTime': { clusterTime: Timestamp({ t: 1785842295, i: 2 }), signature: { hash: Binary.createFromBase64('69saYfiQ7AB9PeUKZuPKHfpw0qM=', 0), keyId: Long('7670133183391727640') } }, operationTime: Timestamp({ t: 1785842295, i: 2 }) } + cat /tmp/tmp.JuA0KJts1b + rm /tmp/tmp.OyAMNsQj48 /tmp/tmp.JuA0KJts1b + return 0 + desc 'verify '\''source'\'' user authenticates' + set +o xtrace ----------------------------------------------------------------------------------- verify 'source' user authenticates ----------------------------------------------------------------------------------- + mongosh_on_mongos source-cluster source mys3cretpAss 'db.runCommand({connectionStatus: 1}).authInfo' + local cluster=source-cluster + local user=source + local pass=mys3cretpAss + local 'script=db.runCommand({connectionStatus: 1}).authInfo' + kubectl_bin exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://source:mys3cretpAss@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.runCommand({connectionStatus: 1}).authInfo' ++ mktemp + local LAST_OUT=/tmp/tmp.QqprJKXZjD ++ mktemp + local LAST_ERR=/tmp/tmp.7NaoMFBPHd + local exit_status=0 + local timeout=4 + args=('exec' 'source-cluster-mongos-0' '-c' 'mongos' '--' 'env' 'HOME=/data/db' 'mongosh' 'mongodb://source:mys3cretpAss@%2Ftmp%2Fmongodb-27017.sock/admin' '--quiet' '--eval' 'db.runCommand({connectionStatus: 1}).authInfo') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://source:mys3cretpAss@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.runCommand({connectionStatus: 1}).authInfo' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.QqprJKXZjD { authenticatedUsers: [ { user: 'source', db: 'admin' } ], authenticatedUserRoles: [ { role: 'backup', db: 'admin' }, { role: 'clusterMonitor', db: 'admin' }, { role: 'readAnyDatabase', db: 'admin' } ] } + cat /tmp/tmp.7NaoMFBPHd + rm /tmp/tmp.QqprJKXZjD /tmp/tmp.7NaoMFBPHd + return 0 + desc 'create '\''myApp'\'' user on source-cluster (workload writer/reader)' + set +o xtrace ----------------------------------------------------------------------------------- create 'myApp' user on source-cluster (workload writer/reader) ----------------------------------------------------------------------------------- + mongosh_on_mongos source-cluster userAdmin userAdmin123456 'db.getSiblingDB('\''admin'\'').createUser({user:'\''myApp'\'',pwd:'\''myPass'\'',roles:[{db:'\''myApp'\'',role:'\''readWrite'\''}]})' + local cluster=source-cluster + local user=userAdmin + local pass=userAdmin123456 + local 'script=db.getSiblingDB('\''admin'\'').createUser({user:'\''myApp'\'',pwd:'\''myPass'\'',roles:[{db:'\''myApp'\'',role:'\''readWrite'\''}]})' + kubectl_bin exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://userAdmin:userAdmin123456@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB('\''admin'\'').createUser({user:'\''myApp'\'',pwd:'\''myPass'\'',roles:[{db:'\''myApp'\'',role:'\''readWrite'\''}]})' ++ mktemp + local LAST_OUT=/tmp/tmp.GD25xgYaQ2 ++ mktemp + local LAST_ERR=/tmp/tmp.C20Xd3Mw1u + local exit_status=0 + local timeout=4 + args=('exec' 'source-cluster-mongos-0' '-c' 'mongos' '--' 'env' 'HOME=/data/db' 'mongosh' 'mongodb://userAdmin:userAdmin123456@%2Ftmp%2Fmongodb-27017.sock/admin' '--quiet' '--eval' 'db.getSiblingDB('\''admin'\'').createUser({user:'\''myApp'\'',pwd:'\''myPass'\'',roles:[{db:'\''myApp'\'',role:'\''readWrite'\''}]})') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://userAdmin:userAdmin123456@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB('\''admin'\'').createUser({user:'\''myApp'\'',pwd:'\''myPass'\'',roles:[{db:'\''myApp'\'',role:'\''readWrite'\''}]})' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.GD25xgYaQ2 { ok: 1, '$clusterTime': { clusterTime: Timestamp({ t: 1785842308, i: 2 }), signature: { hash: Binary.createFromBase64('kpPafdAz9bOamsAYZRGD2GUcc1w=', 0), keyId: Long('7670133183391727640') } }, operationTime: Timestamp({ t: 1785842308, i: 2 }) } + cat /tmp/tmp.C20Xd3Mw1u + rm /tmp/tmp.GD25xgYaQ2 /tmp/tmp.C20Xd3Mw1u + return 0 + desc 'create '\''myApp'\'' user on target-cluster (verification reader)' + set +o xtrace ----------------------------------------------------------------------------------- create 'myApp' user on target-cluster (verification reader) ----------------------------------------------------------------------------------- + mongosh_on_mongos target-cluster userAdmin userAdmin123456 'db.getSiblingDB('\''admin'\'').createUser({user:'\''myApp'\'',pwd:'\''myPass'\'',roles:[{db:'\''myApp'\'',role:'\''readWrite'\''}]})' + local cluster=target-cluster + local user=userAdmin + local pass=userAdmin123456 + local 'script=db.getSiblingDB('\''admin'\'').createUser({user:'\''myApp'\'',pwd:'\''myPass'\'',roles:[{db:'\''myApp'\'',role:'\''readWrite'\''}]})' + kubectl_bin exec target-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://userAdmin:userAdmin123456@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB('\''admin'\'').createUser({user:'\''myApp'\'',pwd:'\''myPass'\'',roles:[{db:'\''myApp'\'',role:'\''readWrite'\''}]})' ++ mktemp + local LAST_OUT=/tmp/tmp.7s7seDLizX ++ mktemp + local LAST_ERR=/tmp/tmp.lX47jua0wl + local exit_status=0 + local timeout=4 + args=('exec' 'target-cluster-mongos-0' '-c' 'mongos' '--' 'env' 'HOME=/data/db' 'mongosh' 'mongodb://userAdmin:userAdmin123456@%2Ftmp%2Fmongodb-27017.sock/admin' '--quiet' '--eval' 'db.getSiblingDB('\''admin'\'').createUser({user:'\''myApp'\'',pwd:'\''myPass'\'',roles:[{db:'\''myApp'\'',role:'\''readWrite'\''}]})') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec target-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://userAdmin:userAdmin123456@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB('\''admin'\'').createUser({user:'\''myApp'\'',pwd:'\''myPass'\'',roles:[{db:'\''myApp'\'',role:'\''readWrite'\''}]})' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.7s7seDLizX { ok: 1, '$clusterTime': { clusterTime: Timestamp({ t: 1785842314, i: 2 }), signature: { hash: Binary.createFromBase64('oZr7awlK27PSclNohYmXO8o3sNs=', 0), keyId: Long('7670133449679699975') } }, operationTime: Timestamp({ t: 1785842314, i: 2 }) } + cat /tmp/tmp.lX47jua0wl + rm /tmp/tmp.7s7seDLizX /tmp/tmp.lX47jua0wl + return 0 + desc 'write initial data to source-cluster' + set +o xtrace ----------------------------------------------------------------------------------- write initial data to source-cluster ----------------------------------------------------------------------------------- + mongosh_on_mongos source-cluster myApp myPass 'db.getSiblingDB("myApp").test.insertOne({x: 100500})' + local cluster=source-cluster + local user=myApp + local pass=myPass + local 'script=db.getSiblingDB("myApp").test.insertOne({x: 100500})' + kubectl_bin exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB("myApp").test.insertOne({x: 100500})' ++ mktemp + local LAST_OUT=/tmp/tmp.ukmUXXsfxj ++ mktemp + local LAST_ERR=/tmp/tmp.wVTQy9rCsR + local exit_status=0 + local timeout=4 + args=('exec' 'source-cluster-mongos-0' '-c' 'mongos' '--' 'env' 'HOME=/data/db' 'mongosh' 'mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin' '--quiet' '--eval' 'db.getSiblingDB("myApp").test.insertOne({x: 100500})') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB("myApp").test.insertOne({x: 100500})' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ukmUXXsfxj { acknowledged: true, insertedId: ObjectId('6a71ca9178ddb278d360d9d1') } + cat /tmp/tmp.wVTQy9rCsR + rm /tmp/tmp.ukmUXXsfxj /tmp/tmp.wVTQy9rCsR + return 0 + desc 'wait for backup-agent on target-cluster' + set +o xtrace ----------------------------------------------------------------------------------- wait for backup-agent on target-cluster ----------------------------------------------------------------------------------- + wait_backup_agent target-cluster-rs0-0 + local agent_pod=target-cluster-rs0-0 + set +o xtrace waiting for pbm-agent to be ready in target-cluster-rs0-0...2026-08-04T11:16:25.000+0000 I listening for the commands + wait_backup_agent target-cluster-rs1-0 + local agent_pod=target-cluster-rs1-0 + set +o xtrace waiting for pbm-agent to be ready in target-cluster-rs1-0...2026-08-04T11:16:27.000+0000 I listening for the commands + wait_backup_agent target-cluster-cfg-0 + local agent_pod=target-cluster-cfg-0 + set +o xtrace waiting for pbm-agent to be ready in target-cluster-cfg-0...2026-08-04T11:15:24.000+0000 I listening for the commands + desc 'take a backup of target before clustersync starts (used for restore lease tests)' + set +o xtrace ----------------------------------------------------------------------------------- take a backup of target before clustersync starts (used for restore lease tests) ----------------------------------------------------------------------------------- + apply_backup_named initial-backup + local name=initial-backup + yq eval '.metadata.name = "initial-backup"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/clustersync/conf/backup-minio.yml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.fb8YH3ZJMp ++ mktemp + local LAST_ERR=/tmp/tmp.1rSoHsoqYU + local exit_status=0 + local timeout=4 + args=('apply' '-f' '-') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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.fb8YH3ZJMp perconaservermongodbbackup.psmdb.percona.com/initial-backup created + cat /tmp/tmp.1rSoHsoqYU + rm /tmp/tmp.fb8YH3ZJMp /tmp/tmp.1rSoHsoqYU + return 0 + wait_backup initial-backup ready + local backup_name=initial-backup + local target_state=ready + set +o xtrace waiting for initial-backup to reach ready state..............OK + desc 'apply ClusterSync CR with mode=running' + set +o xtrace ----------------------------------------------------------------------------------- apply ClusterSync CR with mode=running ----------------------------------------------------------------------------------- + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/clustersync/conf/clustersync.yml + /usr/sbin/sed -e 's|CLUSTERSYNC_IMAGE|docker.io/percona/percona-clustersync-mongodb:0.9.0|g' -e 's|NAME_SPACE|clustersync-15270|g' + add_arch_to_clustersync - + arch_scheduling_enabled + [[ -n '' ]] + cat - + kubectl_bin apply -f - ++ mktemp + return + local LAST_OUT=/tmp/tmp.8vUyZhgwCT ++ mktemp + local LAST_ERR=/tmp/tmp.A9eywkHv8A + local exit_status=0 + local timeout=4 + args=('apply' '-f' '-') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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.8vUyZhgwCT perconaservermongodbclustersync.psmdb.percona.com/sync created + cat /tmp/tmp.A9eywkHv8A + rm /tmp/tmp.8vUyZhgwCT /tmp/tmp.A9eywkHv8A + return 0 + desc 'wait for PCSM deployment to become available' + set +o xtrace ----------------------------------------------------------------------------------- wait for PCSM deployment to become available ----------------------------------------------------------------------------------- + kubectl_bin wait --for=condition=Available --timeout=5m deployment/sync-pcsm ++ mktemp + local LAST_OUT=/tmp/tmp.Mixn1bRYoq ++ mktemp + local LAST_ERR=/tmp/tmp.wPtqNEDCDB + local exit_status=0 + local timeout=4 + args=('wait' '--for=condition=Available' '--timeout=5m' 'deployment/sync-pcsm') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=condition=Available --timeout=5m deployment/sync-pcsm + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Mixn1bRYoq deployment.apps/sync-pcsm condition met + cat /tmp/tmp.wPtqNEDCDB + rm /tmp/tmp.Mixn1bRYoq /tmp/tmp.wPtqNEDCDB + return 0 + desc 'wait for PCSM state=running after initial sync' + set +o xtrace ----------------------------------------------------------------------------------- wait for PCSM state=running after initial sync ----------------------------------------------------------------------------------- + wait_pcsm_state running 600 + local expected=running + local timeout=600 + set +o xtrace waiting for pcsm state=running ok (state=running) + return 0 + desc 'verify initial data is replicated to target-cluster' + set +o xtrace ----------------------------------------------------------------------------------- verify initial data is replicated to target-cluster ----------------------------------------------------------------------------------- + wait_target_doc_count 1 300 + sleep 10 + local expected=1 + local timeout=300 + set +o xtrace waiting for target myApp.test count=1 ok (count=1) + return 0 + desc 'write data to source, verify it replicates' + set +o xtrace ----------------------------------------------------------------------------------- write data to source, verify it replicates ----------------------------------------------------------------------------------- + mongosh_on_mongos source-cluster myApp myPass 'db.getSiblingDB("myApp").test.insertOne({x: 100501})' + local cluster=source-cluster + local user=myApp + local pass=myPass + local 'script=db.getSiblingDB("myApp").test.insertOne({x: 100501})' + kubectl_bin exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB("myApp").test.insertOne({x: 100501})' ++ mktemp + local LAST_OUT=/tmp/tmp.OnvjOffDA6 ++ mktemp + local LAST_ERR=/tmp/tmp.pIEM3YfqGK + local exit_status=0 + local timeout=4 + args=('exec' 'source-cluster-mongos-0' '-c' 'mongos' '--' 'env' 'HOME=/data/db' 'mongosh' 'mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin' '--quiet' '--eval' 'db.getSiblingDB("myApp").test.insertOne({x: 100501})') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB("myApp").test.insertOne({x: 100501})' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.OnvjOffDA6 { acknowledged: true, insertedId: ObjectId('6a71cae1a51f36d7bc60d9d1') } + cat /tmp/tmp.pIEM3YfqGK + rm /tmp/tmp.OnvjOffDA6 /tmp/tmp.pIEM3YfqGK + return 0 + wait_target_doc_count 2 180 + sleep 10 + local expected=2 + local timeout=180 + set +o xtrace waiting for target myApp.test count=2 ok (count=2) + return 0 + desc 'write more data to source, verify it replicates' + set +o xtrace ----------------------------------------------------------------------------------- write more data to source, verify it replicates ----------------------------------------------------------------------------------- + mongosh_on_mongos source-cluster myApp myPass 'db.getSiblingDB("myApp").test.insertOne({x: 100502})' + local cluster=source-cluster + local user=myApp + local pass=myPass + local 'script=db.getSiblingDB("myApp").test.insertOne({x: 100502})' + kubectl_bin exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB("myApp").test.insertOne({x: 100502})' ++ mktemp + local LAST_OUT=/tmp/tmp.ejrjIzuTMM ++ mktemp + local LAST_ERR=/tmp/tmp.G4cNo16baF + local exit_status=0 + local timeout=4 + args=('exec' 'source-cluster-mongos-0' '-c' 'mongos' '--' 'env' 'HOME=/data/db' 'mongosh' 'mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin' '--quiet' '--eval' 'db.getSiblingDB("myApp").test.insertOne({x: 100502})') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB("myApp").test.insertOne({x: 100502})' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ejrjIzuTMM { acknowledged: true, insertedId: ObjectId('6a71caf885d46ab92f60d9d1') } + cat /tmp/tmp.G4cNo16baF + rm /tmp/tmp.ejrjIzuTMM /tmp/tmp.G4cNo16baF + return 0 + wait_target_doc_count 3 180 + sleep 10 + local expected=3 + local timeout=180 + set +o xtrace waiting for target myApp.test count=3 ok (count=3) + return 0 + desc 'transition: running -> paused' + set +o xtrace ----------------------------------------------------------------------------------- transition: running -> paused ----------------------------------------------------------------------------------- + patch_sync_mode paused + local mode=paused + desc 'patch sync mode=paused' + set +o xtrace ----------------------------------------------------------------------------------- patch sync mode=paused ----------------------------------------------------------------------------------- + kubectl_bin patch psmdb-clustersync sync --type=merge -p '{"spec":{"mode":"paused"}}' ++ mktemp + local LAST_OUT=/tmp/tmp.ygxyuiDNyV ++ mktemp + local LAST_ERR=/tmp/tmp.q6FftoeQVR + local exit_status=0 + local timeout=4 + args=('patch' 'psmdb-clustersync' 'sync' '--type=merge' '-p' '{"spec":{"mode":"paused"}}') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl patch psmdb-clustersync sync --type=merge -p '{"spec":{"mode":"paused"}}' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ygxyuiDNyV perconaservermongodbclustersync.psmdb.percona.com/sync patched + cat /tmp/tmp.q6FftoeQVR + rm /tmp/tmp.ygxyuiDNyV /tmp/tmp.q6FftoeQVR + return 0 + wait_pcsm_state paused 180 + local expected=paused + local timeout=180 + set +o xtrace waiting for pcsm state=paused ok (state=paused) + return 0 + wait_cr_status_state paused 120 + local expected=paused + local timeout=120 + set +o xtrace waiting for psmdb-clustersync/sync status.state=paused ok + return 0 + desc 'write data while paused, verify that target still has old data count' + set +o xtrace ----------------------------------------------------------------------------------- write data while paused, verify that target still has old data count ----------------------------------------------------------------------------------- + mongosh_on_mongos source-cluster myApp myPass 'db.getSiblingDB("myApp").test.insertOne({x: 100503})' + local cluster=source-cluster + local user=myApp + local pass=myPass + local 'script=db.getSiblingDB("myApp").test.insertOne({x: 100503})' + kubectl_bin exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB("myApp").test.insertOne({x: 100503})' ++ mktemp + local LAST_OUT=/tmp/tmp.7azExSqgsC ++ mktemp + local LAST_ERR=/tmp/tmp.lvhXLUpl7F + local exit_status=0 + local timeout=4 + args=('exec' 'source-cluster-mongos-0' '-c' 'mongos' '--' 'env' 'HOME=/data/db' 'mongosh' 'mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin' '--quiet' '--eval' 'db.getSiblingDB("myApp").test.insertOne({x: 100503})') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB("myApp").test.insertOne({x: 100503})' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.7azExSqgsC { acknowledged: true, insertedId: ObjectId('6a71cb1349409a421660d9d1') } + cat /tmp/tmp.lvhXLUpl7F + rm /tmp/tmp.7azExSqgsC /tmp/tmp.lvhXLUpl7F + return 0 + wait_target_doc_count 3 180 + sleep 10 + local expected=3 + local timeout=180 + set +o xtrace waiting for target myApp.test count=3 ok (count=3) + return 0 + desc 'transition: paused -> running' + set +o xtrace ----------------------------------------------------------------------------------- transition: paused -> running ----------------------------------------------------------------------------------- + patch_sync_mode running + local mode=running + desc 'patch sync mode=running' + set +o xtrace ----------------------------------------------------------------------------------- patch sync mode=running ----------------------------------------------------------------------------------- + kubectl_bin patch psmdb-clustersync sync --type=merge -p '{"spec":{"mode":"running"}}' ++ mktemp + local LAST_OUT=/tmp/tmp.AzAIe7xWdE ++ mktemp + local LAST_ERR=/tmp/tmp.VgcBFB0bi5 + local exit_status=0 + local timeout=4 + args=('patch' 'psmdb-clustersync' 'sync' '--type=merge' '-p' '{"spec":{"mode":"running"}}') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl patch psmdb-clustersync sync --type=merge -p '{"spec":{"mode":"running"}}' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.AzAIe7xWdE perconaservermongodbclustersync.psmdb.percona.com/sync patched + cat /tmp/tmp.VgcBFB0bi5 + rm /tmp/tmp.AzAIe7xWdE /tmp/tmp.VgcBFB0bi5 + return 0 + wait_pcsm_state running 300 + local expected=running + local timeout=300 + set +o xtrace waiting for pcsm state=running ok (state=running) + return 0 + wait_cr_status_state running 120 + local expected=running + local timeout=120 + set +o xtrace waiting for psmdb-clustersync/sync status.state=running ok + return 0 + desc 'write data while running, verify replication and existence of data written when sync was paused' + set +o xtrace ----------------------------------------------------------------------------------- write data while running, verify replication and existence of data written when sync was paused ----------------------------------------------------------------------------------- + mongosh_on_mongos source-cluster myApp myPass 'db.getSiblingDB("myApp").test.insertOne({x: 100504})' + local cluster=source-cluster + local user=myApp + local pass=myPass + local 'script=db.getSiblingDB("myApp").test.insertOne({x: 100504})' + kubectl_bin exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB("myApp").test.insertOne({x: 100504})' ++ mktemp + local LAST_OUT=/tmp/tmp.ukWLVjRfy3 ++ mktemp + local LAST_ERR=/tmp/tmp.DWu36BdCAP + local exit_status=0 + local timeout=4 + args=('exec' 'source-cluster-mongos-0' '-c' 'mongos' '--' 'env' 'HOME=/data/db' 'mongosh' 'mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin' '--quiet' '--eval' 'db.getSiblingDB("myApp").test.insertOne({x: 100504})') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB("myApp").test.insertOne({x: 100504})' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ukWLVjRfy3 { acknowledged: true, insertedId: ObjectId('6a71cb2e508c8637b660d9d1') } + cat /tmp/tmp.DWu36BdCAP + rm /tmp/tmp.ukWLVjRfy3 /tmp/tmp.DWu36BdCAP + return 0 + wait_target_doc_count 5 180 + sleep 10 + local expected=5 + local timeout=180 + set +o xtrace waiting for target myApp.test count=5 ok (count=5) + return 0 + desc 'lease test: backup CR applied while clustersync is running should stay in waiting' + set +o xtrace ----------------------------------------------------------------------------------- lease test: backup CR applied while clustersync is running should stay in waiting ----------------------------------------------------------------------------------- + apply_backup_named backup-during-sync + local name=backup-during-sync + yq eval '.metadata.name = "backup-during-sync"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/clustersync/conf/backup-minio.yml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.cfJGXydU8o ++ mktemp + local LAST_ERR=/tmp/tmp.4cPZWIvpMC + local exit_status=0 + local timeout=4 + args=('apply' '-f' '-') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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.cfJGXydU8o perconaservermongodbbackup.psmdb.percona.com/backup-during-sync created + cat /tmp/tmp.4cPZWIvpMC + rm /tmp/tmp.cfJGXydU8o /tmp/tmp.4cPZWIvpMC + return 0 + wait_kind_state psmdb-backup backup-during-sync waiting 120 + local kind=psmdb-backup + local name=backup-during-sync + local expected=waiting + local timeout=120 + set +o xtrace waiting for psmdb-backup/backup-during-sync state=waiting ok + return 0 + assert_state_stable psmdb-backup backup-during-sync waiting 30 + local kind=psmdb-backup + local name=backup-during-sync + local expected=waiting + local duration=30 + set +o xtrace asserting psmdb-backup/backup-during-sync stays in state=waiting for 30s...... ok + assert_event_present backup-during-sync ClusterSyncActive + local name=backup-during-sync + local reason=ClusterSyncActive + set +o xtrace event reason=ClusterSyncActive present on backup-during-sync (count=1) + desc 'delete during-sync CRs so they do not race with post-finalize checks' + set +o xtrace ----------------------------------------------------------------------------------- delete during-sync CRs so they do not race with post-finalize checks ----------------------------------------------------------------------------------- + kubectl_bin delete psmdb-backup backup-during-sync --ignore-not-found --wait=true ++ mktemp + local LAST_OUT=/tmp/tmp.VqXRzjwzOL ++ mktemp + local LAST_ERR=/tmp/tmp.7C9Bxg30d8 + local exit_status=0 + local timeout=4 + args=('delete' 'psmdb-backup' 'backup-during-sync' '--ignore-not-found' '--wait=true') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete psmdb-backup backup-during-sync --ignore-not-found --wait=true + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.VqXRzjwzOL perconaservermongodbbackup.psmdb.percona.com "backup-during-sync" deleted from clustersync-15270 namespace + cat /tmp/tmp.7C9Bxg30d8 + rm /tmp/tmp.VqXRzjwzOL /tmp/tmp.7C9Bxg30d8 + return 0 + desc 'transition: running -> finalized' + set +o xtrace ----------------------------------------------------------------------------------- transition: running -> finalized ----------------------------------------------------------------------------------- + patch_sync_mode finalized + local mode=finalized + desc 'patch sync mode=finalized' + set +o xtrace ----------------------------------------------------------------------------------- patch sync mode=finalized ----------------------------------------------------------------------------------- + kubectl_bin patch psmdb-clustersync sync --type=merge -p '{"spec":{"mode":"finalized"}}' ++ mktemp + local LAST_OUT=/tmp/tmp.1r4AJCfUdq ++ mktemp + local LAST_ERR=/tmp/tmp.Z4P92K3prK + local exit_status=0 + local timeout=4 + args=('patch' 'psmdb-clustersync' 'sync' '--type=merge' '-p' '{"spec":{"mode":"finalized"}}') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl patch psmdb-clustersync sync --type=merge -p '{"spec":{"mode":"finalized"}}' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.1r4AJCfUdq perconaservermongodbclustersync.psmdb.percona.com/sync patched + cat /tmp/tmp.Z4P92K3prK + rm /tmp/tmp.1r4AJCfUdq /tmp/tmp.Z4P92K3prK + return 0 + wait_pcsm_state finalized 300 + local expected=finalized + local timeout=300 + set +o xtrace waiting for pcsm state=finalized ok (state=finalized) + return 0 + wait_cr_status_state finalized 120 + local expected=finalized + local timeout=120 + set +o xtrace waiting for psmdb-clustersync/sync status.state=finalized ok + return 0 + desc 'write data after finalize, verify target count does not increase' + set +o xtrace ----------------------------------------------------------------------------------- write data after finalize, verify target count does not increase ----------------------------------------------------------------------------------- + mongosh_on_mongos source-cluster myApp myPass 'db.getSiblingDB("myApp").test.insertOne({x: 100505})' + local cluster=source-cluster + local user=myApp + local pass=myPass + local 'script=db.getSiblingDB("myApp").test.insertOne({x: 100505})' + kubectl_bin exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB("myApp").test.insertOne({x: 100505})' ++ mktemp + local LAST_OUT=/tmp/tmp.EDLIaYTUqm ++ mktemp + local LAST_ERR=/tmp/tmp.7DI3HUES4h + local exit_status=0 + local timeout=4 + args=('exec' 'source-cluster-mongos-0' '-c' 'mongos' '--' 'env' 'HOME=/data/db' 'mongosh' 'mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin' '--quiet' '--eval' 'db.getSiblingDB("myApp").test.insertOne({x: 100505})') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec source-cluster-mongos-0 -c mongos -- env HOME=/data/db mongosh mongodb://myApp:myPass@%2Ftmp%2Fmongodb-27017.sock/admin --quiet --eval 'db.getSiblingDB("myApp").test.insertOne({x: 100505})' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.EDLIaYTUqm { acknowledged: true, insertedId: ObjectId('6a71cb74c85f6ae55360d9d1') } + cat /tmp/tmp.7DI3HUES4h + rm /tmp/tmp.EDLIaYTUqm /tmp/tmp.7DI3HUES4h + return 0 + wait_target_doc_count 5 10 + sleep 10 + local expected=5 + local timeout=10 + set +o xtrace waiting for target myApp.test count=5 ok (count=5) + return 0 + desc 'lease test: backup CR applied after finalize should complete (clustersync lease released)' + set +o xtrace ----------------------------------------------------------------------------------- lease test: backup CR applied after finalize should complete (clustersync lease released) ----------------------------------------------------------------------------------- + apply_backup_named backup-after-finalize + local name=backup-after-finalize + yq eval '.metadata.name = "backup-after-finalize"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/clustersync/conf/backup-minio.yml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.JvhlWYFtkm ++ mktemp + local LAST_ERR=/tmp/tmp.Yn82c9bAuN + local exit_status=0 + local timeout=4 + args=('apply' '-f' '-') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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.JvhlWYFtkm perconaservermongodbbackup.psmdb.percona.com/backup-after-finalize created + cat /tmp/tmp.Yn82c9bAuN + rm /tmp/tmp.JvhlWYFtkm /tmp/tmp.Yn82c9bAuN + return 0 + wait_backup backup-after-finalize ready + local backup_name=backup-after-finalize + local target_state=ready + set +o xtrace waiting for backup-after-finalize to reach ready state.................OK + desc 'lease test: restore CR applied after finalize should complete (clustersync lease released)' + set +o xtrace ----------------------------------------------------------------------------------- lease test: restore CR applied after finalize should complete (clustersync lease released) ----------------------------------------------------------------------------------- + apply_restore_named restore-after-finalize initial-backup + local name=restore-after-finalize + local backup=initial-backup + yq eval '.metadata.name = "restore-after-finalize" | .spec.backupName = "initial-backup"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/clustersync/conf/restore.yml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.IYLgOM4Gvy ++ mktemp + local LAST_ERR=/tmp/tmp.1B3oW60mWE + local exit_status=0 + local timeout=4 + args=('apply' '-f' '-') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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.IYLgOM4Gvy perconaservermongodbrestore.psmdb.percona.com/restore-after-finalize created + cat /tmp/tmp.1B3oW60mWE + rm /tmp/tmp.IYLgOM4Gvy /tmp/tmp.1B3oW60mWE + return 0 + wait_kind_state psmdb-restore restore-after-finalize ready 1800 + local kind=psmdb-restore + local name=restore-after-finalize + local expected=ready + local timeout=1800 + set +o xtrace waiting for psmdb-restore/restore-after-finalize state=ready....... ok + return 0 + destroy clustersync-15270 + local namespace=clustersync-15270 + 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.Fl7JUl2B3y +++ mktemp ++ local LAST_ERR=/tmp/tmp.b954Nq25Kq ++ local exit_status=0 ++ local timeout=4 ++ args=('get' 'psmdb-backup' '--no-headers') ++ local args ++ transformed_files=() ++ local transformed_files ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] +++ 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.Fl7JUl2B3y ++ cat /tmp/tmp.b954Nq25Kq ++ rm /tmp/tmp.Fl7JUl2B3y /tmp/tmp.b954Nq25Kq ++ return 0 + '[' 2 '!=' 0 ']' + kubectl_bin get psmdb-backup ++ mktemp + local LAST_OUT=/tmp/tmp.mIbqwoRiHN ++ mktemp + local LAST_ERR=/tmp/tmp.9FhmoEN2Fm + local exit_status=0 + local timeout=4 + args=('get' 'psmdb-backup') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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.mIbqwoRiHN NAME CLUSTER STORAGE DESTINATION TYPE SIZE STATUS COMPLETED AGE backup-after-finalize target-cluster minio s3://operator-testing/2026-08-04T11:22:48Z logical 121.41KB ready 52s 81s initial-backup target-cluster minio s3://operator-testing/2026-08-04T11:18:49Z logical 107.82KB ready 4m54s 5m21s + cat /tmp/tmp.9FhmoEN2Fm + rm /tmp/tmp.mIbqwoRiHN /tmp/tmp.9FhmoEN2Fm + return 0 + kubectl_bin delete psmdb-backup --all ++ mktemp + local LAST_OUT=/tmp/tmp.gG8MsI6lXA ++ mktemp + local LAST_ERR=/tmp/tmp.DRrvIe7cTZ + local exit_status=0 + local timeout=4 + args=('delete' 'psmdb-backup' '--all') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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.gG8MsI6lXA perconaservermongodbbackup.psmdb.percona.com "backup-after-finalize" deleted from clustersync-15270 namespace perconaservermongodbbackup.psmdb.percona.com "initial-backup" deleted from clustersync-15270 namespace + cat /tmp/tmp.DRrvIe7cTZ + rm /tmp/tmp.gG8MsI6lXA /tmp/tmp.DRrvIe7cTZ + 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-2491/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.Y4CTznSpbl ++ mktemp + local LAST_ERR=/tmp/tmp.aka99YHjcj + local exit_status=0 + local timeout=4 + args=('delete' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/deploy/crd.yaml' '--ignore-not-found' '--wait=false') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Y4CTznSpbl customresourcedefinition.apiextensions.k8s.io "perconaservermongodbbackups.psmdb.percona.com" deleted customresourcedefinition.apiextensions.k8s.io "perconaservermongodbclustersyncs.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.aka99YHjcj + rm /tmp/tmp.Y4CTznSpbl /tmp/tmp.aka99YHjcj + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/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.02dJUxYzSd ++ mktemp + local LAST_ERR=/tmp/tmp.AXsenW2ptg + local exit_status=0 + local timeout=4 + args=('wait' '--for=delete' 'crd' 'perconaservermongodbbackups.psmdb.percona.com') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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.02dJUxYzSd + cat /tmp/tmp.AXsenW2ptg + rm /tmp/tmp.02dJUxYzSd /tmp/tmp.AXsenW2ptg + return 0 + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + kubectl get perconaservermongodbclustersyncs.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbclustersyncs.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbclustersyncs" + kubectl patch perconaservermongodbclustersyncs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbclustersyncs" + : + kubectl_bin wait --for=delete crd perconaservermongodbclustersyncs.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.6p6EUcLSTW ++ mktemp + local LAST_ERR=/tmp/tmp.uBd1o7DIZ3 + local exit_status=0 + local timeout=4 + args=('wait' '--for=delete' 'crd' 'perconaservermongodbclustersyncs.psmdb.percona.com') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete crd perconaservermongodbclustersyncs.psmdb.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.6p6EUcLSTW + cat /tmp/tmp.uBd1o7DIZ3 + rm /tmp/tmp.6p6EUcLSTW /tmp/tmp.uBd1o7DIZ3 + 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.KnTAHO62oa ++ mktemp + local LAST_ERR=/tmp/tmp.rbUib5379g + local exit_status=0 + local timeout=4 + args=('wait' '--for=delete' 'crd' 'perconaservermongodbrestores.psmdb.percona.com') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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.KnTAHO62oa + cat /tmp/tmp.rbUib5379g + rm /tmp/tmp.KnTAHO62oa /tmp/tmp.rbUib5379g + 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.Jxjac11hD5 ++ mktemp + local LAST_ERR=/tmp/tmp.N5uh70RFG5 + local exit_status=0 + local timeout=4 + args=('wait' '--for=delete' 'crd' 'perconaservermongodbs.psmdb.percona.com') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ 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.Jxjac11hD5 + cat /tmp/tmp.N5uh70RFG5 + rm /tmp/tmp.Jxjac11hD5 /tmp/tmp.N5uh70RFG5 + 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-2491/deploy/cw-rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.lt2kq18EHV ++ mktemp + local LAST_ERR=/tmp/tmp.LqX1MIKvRF + local exit_status=0 + local timeout=4 + args=('delete' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/deploy/cw-rbac.yaml' '--ignore-not-found') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/deploy/cw-rbac.yaml --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.lt2kq18EHV 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.LqX1MIKvRF + rm /tmp/tmp.lt2kq18EHV /tmp/tmp.LqX1MIKvRF + return 0 + destroy_cert_manager + [[ gke == rancher ]] + kubectl_bin delete -f https://github.com/cert-manager/cert-manager/releases/download/v1.21.0/cert-manager.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.rRAbN2toNk ++ mktemp + local LAST_ERR=/tmp/tmp.XeZEgNrNyr + local exit_status=0 + local timeout=4 + args=('delete' '-f' 'https://github.com/cert-manager/cert-manager/releases/download/v1.21.0/cert-manager.yaml') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete -f https://github.com/cert-manager/cert-manager/releases/download/v1.21.0/cert-manager.yaml + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.rRAbN2toNk + cat /tmp/tmp.XeZEgNrNyr Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/cert-manager.yaml + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.rRAbN2toNk + cat /tmp/tmp.XeZEgNrNyr Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/cert-manager.yaml + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.rRAbN2toNk + cat /tmp/tmp.XeZEgNrNyr Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/cert-manager.yaml": validatingwebhookconfigurations.admissionregistration.k8s.io "cert-manager-webhook" not found + sleep 8 + cat /tmp/tmp.rRAbN2toNk + cat /tmp/tmp.XeZEgNrNyr Error from server (NotFound): error when deleting "https://github.com/cert-manager/cert-manager/releases/download/v1.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/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.21.0/cert-manager.yaml": validatingwebhookconfigurations.admissionregistration.k8s.io "cert-manager-webhook" not found + rm /tmp/tmp.rRAbN2toNk /tmp/tmp.XeZEgNrNyr + return 1 + true + [[ -n '' ]] + '[' -n psmdb-operator ']' + kubectl_bin delete --grace-period=0 --force=true namespace clustersync-15270 + rm -rf /tmp/tmp.oUr7dyEKmw + kubectl_bin delete --grace-period=0 --force=true namespace psmdb-operator ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.O8yzzHcs3O ++ mktemp + desc 'test passed' + set +o xtrace ----------------------------------------------------------------------------------- test passed ----------------------------------------------------------------------------------- + local LAST_ERR=/tmp/tmp.Ywuvps2aSo + local exit_status=0 + local timeout=4 + args=('delete' '--grace-period=0' '--force=true' 'namespace' 'clustersync-15270') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + local LAST_OUT=/tmp/tmp.xIbjviQj1i + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ mktemp ++ seq 0 2 + local LAST_ERR=/tmp/tmp.EuS1dNfOkP + local exit_status=0 + local timeout=4 + args=('delete' '--grace-period=0' '--force=true' 'namespace' 'psmdb-operator') + local args + transformed_files=() + local transformed_files + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete --grace-period=0 --force=true namespace clustersync-15270 + for i in $(seq 0 2) + set +e + kubectl delete --grace-period=0 --force=true namespace psmdb-operator ==================================================================================================== [PASSED] e2e-tests/test_pytest_wrapper.py::test_bash_wrapper ==================================================================================================== ---------------------------------------------- generated xml file: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/reports/clustersync.xml ----------------------------------------------- ----------------------------------------- Generated html report: file:///mnt/jenkins/workspace/cloud-psmdb-operator_PR-2491/e2e-tests/reports/clustersync.html ----------------------------------------- ==================================================================================== 1 passed in 975.46s (0:16:15) ===================================================================================== + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.xIbjviQj1i namespace "psmdb-operator" force deleted + cat /tmp/tmp.EuS1dNfOkP Warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. + rm /tmp/tmp.xIbjviQj1i /tmp/tmp.EuS1dNfOkP + return 0 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.O8yzzHcs3O namespace "clustersync-15270" force deleted + cat /tmp/tmp.Ywuvps2aSo Warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. + rm /tmp/tmp.O8yzzHcs3O /tmp/tmp.Ywuvps2aSo + return 0