mkdir -p e2e-tests/reports e2e-tests/logs ========================================================================================= test session starts ========================================================================================== platform linux -- Python 3.14.10, pytest-9.1.1, pluggy-1.7.0 -- /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/.venv/bin/python cachedir: .pytest_cache metadata: {'Python': '3.14.10', 'Platform': 'Linux-7.1.10-200.fc44.x86_64-x86_64-with-glibc2.43', 'Packages': {'pytest': '9.1.1', 'pluggy': '1.7.0'}, 'Plugins': {'html': '4.2.0', 'json-report': '1.5.0', 'dependency': '0.6.1', 'metadata': '3.1.1'}, 'CI': 'true', 'BUILD_NUMBER': '9', 'BUILD_ID': '9', 'BUILD_URL': 'https://cloud.cd.percona.com/job/cloud-psmdb-operator/job/PR-2715/9/', 'NODE_NAME': 'hcloud-nialm8wqguv220jl', 'JOB_NAME': 'cloud-psmdb-operator/PR-2715', 'BUILD_TAG': 'jenkins-cloud-psmdb-operator-PR-2715-9', 'EXECUTOR_NUMBER': '0', 'JENKINS_URL': 'https://cloud.cd.percona.com/', 'WORKSPACE': '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715', 'GIT_COMMIT': '27e0b796072fe59ec1fa78fca82dc7491ddb9891', 'GIT_URL': 'https://github.com/percona/percona-server-mongodb-operator.git', 'GIT_BRANCH': 'PR-2715'} rootdir: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715 configfile: pyproject.toml plugins: html-4.2.0, json-report-1.5.0, dependency-0.6.1, metadata-3.1.1 collecting ... collected 1 item e2e-tests/test_pytest_wrapper.py::test_bash_wrapper[demand-backup-incremental-oss-s3] [06:02:47.139884] WARNING kubectl error: Warning: version difference between client (1.37) and server (1.34) exceeds the supported minor version skew of +/-1 [06:02:48.386042] INFO Environment variables: KUBE_VERSION=1.34 PLATFORM=gke ARCH= EKS= GKE=1 AKS= OPENSHIFT= KIND= MINIKUBE= RANCHER= API=psmdb.percona.com/v1 REGISTRY_NAME=docker.io GIT_COMMIT=27e0b796072fe59ec1fa78fca82dc7491ddb9891 GIT_BRANCH=PR-2715 OPERATOR_VERSION=1.24.0 IMAGE=docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960 IMAGE_MONGOD=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 IMAGE_MONGOD_CHAIN=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 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/perconalab/pmm-client:3-dev-latest IMAGE_PMM_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:1.0.0 IMAGE_AWS_CLI=docker.io/amazon/aws-cli:2.34.60 CERT_MANAGER_VER=1.21.0 CHAOS_MESH_VER=2.7.1 SEAWEEDFS_VER=4.47.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 Debug logging disabled. + '[' '!' -z '' ']' + create_infra demand-backup-incremental-oss-s3-25902 + local ns=demand-backup-incremental-oss-s3-25902 + echo demand-backup-incremental-oss-s3-25902 + destroy_cert_manager + [[ -n '' ]] + kubectl_bin delete mutatingwebhookconfiguration cert-manager-webhook --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.FIAQjlQWla ++ mktemp + local LAST_ERR=/tmp/tmp.D9YxYatPma + local exit_status=0 + local timeout=4 + local i + args=('delete' 'mutatingwebhookconfiguration' 'cert-manager-webhook' '--ignore-not-found') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ mutatingwebhookconfiguration == \- ]] + [[ mutatingwebhookconfiguration =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ cert-manager-webhook == \- ]] + [[ cert-manager-webhook =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete mutatingwebhookconfiguration cert-manager-webhook --ignore-not-found + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.FIAQjlQWla + cat /tmp/tmp.D9YxYatPma + rm /tmp/tmp.FIAQjlQWla /tmp/tmp.D9YxYatPma + return 0 + kubectl_bin delete validatingwebhookconfiguration cert-manager-webhook --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.97DEVvQ9SI ++ mktemp + local LAST_ERR=/tmp/tmp.zRQ2zrcFz0 + local exit_status=0 + local timeout=4 + local i + args=('delete' 'validatingwebhookconfiguration' 'cert-manager-webhook' '--ignore-not-found') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ validatingwebhookconfiguration == \- ]] + [[ validatingwebhookconfiguration =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ cert-manager-webhook == \- ]] + [[ cert-manager-webhook =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete validatingwebhookconfiguration cert-manager-webhook --ignore-not-found + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.97DEVvQ9SI + cat /tmp/tmp.zRQ2zrcFz0 + rm /tmp/tmp.97DEVvQ9SI /tmp/tmp.zRQ2zrcFz0 + return 0 + kubectl_bin delete -f https://github.com/cert-manager/cert-manager/releases/download/v1.21.0/cert-manager.yaml --ignore-not-found --wait=false + crds=('certificates.cert-manager.io' 'certificaterequests.cert-manager.io' 'issuers.cert-manager.io' 'clusterissuers.cert-manager.io' 'orders.acme.cert-manager.io' 'challenges.acme.cert-manager.io') + local crds + kubectl_bin delete crd certificates.cert-manager.io certificaterequests.cert-manager.io issuers.cert-manager.io clusterissuers.cert-manager.io orders.acme.cert-manager.io challenges.acme.cert-manager.io --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.XPCCus5ou5 ++ mktemp + local LAST_ERR=/tmp/tmp.B9GFsmogYS + local exit_status=0 + local timeout=4 + local i + args=('delete' 'crd' 'certificates.cert-manager.io' 'certificaterequests.cert-manager.io' 'issuers.cert-manager.io' 'clusterissuers.cert-manager.io' 'orders.acme.cert-manager.io' 'challenges.acme.cert-manager.io' '--ignore-not-found' '--wait=false') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ crd == \- ]] + [[ crd =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ certificates.cert-manager.io == \- ]] + [[ certificates.cert-manager.io =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ certificaterequests.cert-manager.io == \- ]] + [[ certificaterequests.cert-manager.io =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ issuers.cert-manager.io == \- ]] + [[ issuers.cert-manager.io =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ clusterissuers.cert-manager.io == \- ]] + [[ clusterissuers.cert-manager.io =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ orders.acme.cert-manager.io == \- ]] + [[ orders.acme.cert-manager.io =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ challenges.acme.cert-manager.io == \- ]] + [[ challenges.acme.cert-manager.io =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --wait=false == \- ]] + [[ --wait=false =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete crd certificates.cert-manager.io certificaterequests.cert-manager.io issuers.cert-manager.io clusterissuers.cert-manager.io orders.acme.cert-manager.io challenges.acme.cert-manager.io --ignore-not-found --wait=false + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.XPCCus5ou5 + cat /tmp/tmp.B9GFsmogYS + rm /tmp/tmp.XPCCus5ou5 /tmp/tmp.B9GFsmogYS + return 0 + kubectl_bin delete namespace cert-manager --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.XynpOrmqDt ++ mktemp + local LAST_ERR=/tmp/tmp.ja8Aur7bsB + local exit_status=0 + local timeout=4 + local i + args=('delete' 'namespace' 'cert-manager' '--ignore-not-found' '--wait=false') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ cert-manager == \- ]] + [[ cert-manager =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --wait=false == \- ]] + [[ --wait=false =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete namespace cert-manager --ignore-not-found --wait=false + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.XynpOrmqDt + cat /tmp/tmp.ja8Aur7bsB + rm /tmp/tmp.XynpOrmqDt /tmp/tmp.ja8Aur7bsB + return 0 + local remaining + local attempt ++ seq 1 60 + for attempt in $(seq 1 60) ++ kubectl_bin get mutatingwebhookconfiguration cert-manager-webhook --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.WR4tmTEGWU +++ mktemp ++ local LAST_ERR=/tmp/tmp.O0G1lWnsU4 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'mutatingwebhookconfiguration' 'cert-manager-webhook' '--ignore-not-found' '-o' 'name') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ mutatingwebhookconfiguration == \- ]] ++ [[ mutatingwebhookconfiguration =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ cert-manager-webhook == \- ]] ++ [[ cert-manager-webhook =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --ignore-not-found == \- ]] ++ [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ name == \- ]] ++ [[ name =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get mutatingwebhookconfiguration cert-manager-webhook --ignore-not-found -o name ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.WR4tmTEGWU ++ cat /tmp/tmp.O0G1lWnsU4 ++ rm /tmp/tmp.WR4tmTEGWU /tmp/tmp.O0G1lWnsU4 ++ return 0 + remaining= ++ kubectl_bin get validatingwebhookconfiguration cert-manager-webhook --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.5WJ4i2nudR +++ mktemp ++ local LAST_ERR=/tmp/tmp.GGsMjbRZZM ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'validatingwebhookconfiguration' 'cert-manager-webhook' '--ignore-not-found' '-o' 'name') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ validatingwebhookconfiguration == \- ]] ++ [[ validatingwebhookconfiguration =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ cert-manager-webhook == \- ]] ++ [[ cert-manager-webhook =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --ignore-not-found == \- ]] ++ [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ name == \- ]] ++ [[ name =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get validatingwebhookconfiguration cert-manager-webhook --ignore-not-found -o name ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.5WJ4i2nudR ++ cat /tmp/tmp.GGsMjbRZZM ++ rm /tmp/tmp.5WJ4i2nudR /tmp/tmp.GGsMjbRZZM ++ return 0 + remaining+= ++ kubectl_bin get crd certificates.cert-manager.io certificaterequests.cert-manager.io issuers.cert-manager.io clusterissuers.cert-manager.io orders.acme.cert-manager.io challenges.acme.cert-manager.io --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.Ru2YTIygh1 +++ mktemp ++ local LAST_ERR=/tmp/tmp.SWHudp0BUK ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'crd' 'certificates.cert-manager.io' 'certificaterequests.cert-manager.io' 'issuers.cert-manager.io' 'clusterissuers.cert-manager.io' 'orders.acme.cert-manager.io' 'challenges.acme.cert-manager.io' '--ignore-not-found' '-o' 'name') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ crd == \- ]] ++ [[ crd =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ certificates.cert-manager.io == \- ]] ++ [[ certificates.cert-manager.io =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ certificaterequests.cert-manager.io == \- ]] ++ [[ certificaterequests.cert-manager.io =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ issuers.cert-manager.io == \- ]] ++ [[ issuers.cert-manager.io =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ clusterissuers.cert-manager.io == \- ]] ++ [[ clusterissuers.cert-manager.io =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ orders.acme.cert-manager.io == \- ]] ++ [[ orders.acme.cert-manager.io =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ challenges.acme.cert-manager.io == \- ]] ++ [[ challenges.acme.cert-manager.io =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --ignore-not-found == \- ]] ++ [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ name == \- ]] ++ [[ name =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get crd certificates.cert-manager.io certificaterequests.cert-manager.io issuers.cert-manager.io clusterissuers.cert-manager.io orders.acme.cert-manager.io challenges.acme.cert-manager.io --ignore-not-found -o name ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.Ru2YTIygh1 ++ cat /tmp/tmp.SWHudp0BUK ++ rm /tmp/tmp.Ru2YTIygh1 /tmp/tmp.SWHudp0BUK ++ return 0 + remaining+= ++ kubectl_bin get namespace cert-manager --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.y328LbVIDl +++ mktemp ++ local LAST_ERR=/tmp/tmp.aoyWI2HciR ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'namespace' 'cert-manager' '--ignore-not-found' '-o' 'name') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ namespace == \- ]] ++ [[ namespace =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ cert-manager == \- ]] ++ [[ cert-manager =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --ignore-not-found == \- ]] ++ [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ name == \- ]] ++ [[ name =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get namespace cert-manager --ignore-not-found -o name ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.y328LbVIDl ++ cat /tmp/tmp.aoyWI2HciR ++ rm /tmp/tmp.y328LbVIDl /tmp/tmp.aoyWI2HciR ++ return 0 + remaining+= + [[ -z '' ]] + return 0 + [[ 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-2715/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.iB1ukK5N8G ++ mktemp + local LAST_ERR=/tmp/tmp.eGIPgd70zt + local exit_status=0 + local timeout=4 + local i + args=('delete' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml' '--ignore-not-found' '--wait=false') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --wait=false == \- ]] + [[ --wait=false =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.iB1ukK5N8G + cat /tmp/tmp.eGIPgd70zt + rm /tmp/tmp.iB1ukK5N8G /tmp/tmp.eGIPgd70zt + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/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" in group "psmdb.percona.com" + kubectl patch perconaservermongodbbackups.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbbackups" in group "psmdb.percona.com" + : + kubectl get crd perconaservermongodbbackups.psmdb.percona.com + 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" in group "psmdb.percona.com" + kubectl patch perconaservermongodbclustersyncs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbclustersyncs" in group "psmdb.percona.com" + : + kubectl get crd perconaservermongodbclustersyncs.psmdb.percona.com + 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 + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbrestores.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' + grep -v NAMESPACE error: the server doesn't have a resource type "perconaservermongodbrestores" in group "psmdb.percona.com" + kubectl patch perconaservermongodbrestores.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbrestores" in group "psmdb.percona.com" + : + kubectl get crd perconaservermongodbrestores.psmdb.percona.com + 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" in group "psmdb.percona.com" + kubectl patch perconaservermongodbs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbs" in group "psmdb.percona.com" + : + kubectl get crd perconaservermongodbs.psmdb.percona.com + local rbac_yaml=rbac.yaml + '[' -n psmdb-operator ']' + rbac_yaml=cw-rbac.yaml + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.RdiSCnoJAh ++ mktemp + local LAST_ERR=/tmp/tmp.MBFqxLqevO + local exit_status=0 + local timeout=4 + local i + args=('delete' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml' '--ignore-not-found' '--wait=false') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --wait=false == \- ]] + [[ --wait=false =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.RdiSCnoJAh + cat /tmp/tmp.MBFqxLqevO + rm /tmp/tmp.RdiSCnoJAh /tmp/tmp.MBFqxLqevO + return 0 + check_crd_for_deletion PR-2715 + local git_tag=PR-2715 ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-2715/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.kqoP2agIXV +++ mktemp ++ local LAST_ERR=/tmp/tmp.680N8oc5xi ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'crd/null' '-o' 'jsonpath={.status.conditions[-1].type}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ crd/null == \- ]] ++ [[ crd/null =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.status.conditions[-1].type} == \- ]] ++ [[ jsonpath={.status.conditions[-1].type} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get crd/null -o 'jsonpath={.status.conditions[-1].type}' ++ exit_status=1 ++ set -e ++ [[ 1 == 0 ]] ++ [[ 0 == 9 ]] ++ grep -q 'Error from server (NotFound)' /tmp/tmp.680N8oc5xi ++ break ++ cat /tmp/tmp.kqoP2agIXV ++ cat /tmp/tmp.680N8oc5xi Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.kqoP2agIXV /tmp/tmp.680N8oc5xi ++ 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}' ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + local 'ns_filter=^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + [[ -n '' ]] + kubectl_bin get ns + grep -E -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + awk '{print$1}' + [[ -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 + xargs kubectl delete ns ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.y6wpsbXxkN + local LAST_OUT=/tmp/tmp.WPBGskqS2A ++ mktemp ++ mktemp + local LAST_ERR=/tmp/tmp.kp9fEigvel + local exit_status=0 + local timeout=4 + local i + args=('get' 'ns') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ get == \- ]] + [[ get =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ns == \- ]] + [[ ns =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay + local LAST_ERR=/tmp/tmp.PTabFqMH3t + local exit_status=0 + local timeout=4 + local i + args=('delete' 'namespace' 'psmdb-operator' '--ignore-not-found') + local args + transformed_files=() ++ seq 0 9 + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-operator == \- ]] + [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl get ns + for attempt in $(seq 0 9) + set +e + kubectl delete namespace psmdb-operator --ignore-not-found + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.y6wpsbXxkN + cat /tmp/tmp.kp9fEigvel + rm /tmp/tmp.y6wpsbXxkN /tmp/tmp.kp9fEigvel + return 0 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.WPBGskqS2A + cat /tmp/tmp.PTabFqMH3t + rm /tmp/tmp.WPBGskqS2A /tmp/tmp.PTabFqMH3t + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.aJpkFV35du ++ mktemp + local LAST_ERR=/tmp/tmp.EnbmcWw70b + local exit_status=0 + local timeout=4 + local i + args=('wait' '--for=delete' 'namespace' 'psmdb-operator') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ wait == \- ]] + [[ wait =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --for=delete == \- ]] + [[ --for=delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-operator == \- ]] + [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl wait --for=delete namespace psmdb-operator + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.aJpkFV35du + cat /tmp/tmp.EnbmcWw70b + rm /tmp/tmp.aJpkFV35du /tmp/tmp.EnbmcWw70b + 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.OUdSx7pa9C ++ mktemp + local LAST_ERR=/tmp/tmp.W7U04Zifkk + local exit_status=0 + local timeout=4 + local i + args=('create' 'namespace' 'psmdb-operator') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ create == \- ]] + [[ create =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-operator == \- ]] + [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl create namespace psmdb-operator + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.OUdSx7pa9C namespace/psmdb-operator created + cat /tmp/tmp.W7U04Zifkk + rm /tmp/tmp.OUdSx7pa9C /tmp/tmp.W7U04Zifkk + return 0 + set_kube_ctx psmdb-operator + local namespace=psmdb-operator ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.9em1RwTBCM +++ mktemp ++ local LAST_ERR=/tmp/tmp.jTNNOGpjyb ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('config' 'current-context') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ config == \- ]] ++ [[ config =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ current-context == \- ]] ++ [[ current-context =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.9em1RwTBCM ++ cat /tmp/tmp.jTNNOGpjyb ++ rm /tmp/tmp.9em1RwTBCM /tmp/tmp.jTNNOGpjyb ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.2s7c2djW09 ++ mktemp + local LAST_ERR=/tmp/tmp.BS1LDuu6iq + local exit_status=0 + local timeout=4 + local i + args=('config' 'set-context' 'gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7' '--namespace=psmdb-operator') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ config == \- ]] + [[ config =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ set-context == \- ]] + [[ set-context =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7 == \- ]] + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --namespace=psmdb-operator == \- ]] + [[ --namespace=psmdb-operator =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7 --namespace=psmdb-operator + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.2s7c2djW09 Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7" modified. + cat /tmp/tmp.BS1LDuu6iq + rm /tmp/tmp.2s7c2djW09 /tmp/tmp.BS1LDuu6iq + return 0 + deploy_operator + desc 'start PSMDB operator: docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960' + set +o xtrace ----------------------------------------------------------------------------------- start PSMDB operator: docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960 ----------------------------------------------------------------------------------- + local cr_file + '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.SFSo0HeHNO ++ mktemp + local LAST_ERR=/tmp/tmp.58v9SwbfMj + local exit_status=0 + local timeout=4 + local i + args=('apply' '--server-side' '--force-conflicts' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --server-side == \- ]] + [[ --server-side =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --force-conflicts == \- ]] + [[ --force-conflicts =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.SFSo0HeHNO 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.58v9SwbfMj + rm /tmp/tmp.SFSo0HeHNO /tmp/tmp.58v9SwbfMj + 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-2715/deploy/cw-rbac.yaml + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.I51aV6JnAg ++ mktemp + local LAST_ERR=/tmp/tmp.7q63iFXsnq + local exit_status=0 + local timeout=4 + local i + args=('apply' '-n' 'psmdb-operator' '-f' '-') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-operator == \- ]] + [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ - == \- ]] + [[ 4 -gt 0 ]] + [[ -f =~ ^(-f|--filename)$ ]] ++ mktemp + stdin_manifest=/tmp/tmp.k7kM9dHxD3 + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.k7kM9dHxD3 + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -n psmdb-operator -f /tmp/tmp.k7kM9dHxD3 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.I51aV6JnAg 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.7q63iFXsnq + rm /tmp/tmp.I51aV6JnAg /tmp/tmp.7q63iFXsnq /tmp/tmp.k7kM9dHxD3 + return 0 + yq eval $'\n\t\t\t(.spec.template.spec.containers[].image = "docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960") |\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-2715/deploy/cw-operator.yaml + add_arch_to_podspecs - + arch_scheduling_enabled + [[ -n '' ]] + kubectl_bin apply -n psmdb-operator -f - + cat - ++ mktemp + local LAST_OUT=/tmp/tmp.547CVY3rY3 ++ mktemp + return + local LAST_ERR=/tmp/tmp.oJx4DBJJ32 + local exit_status=0 + local timeout=4 + local i + args=('apply' '-n' 'psmdb-operator' '-f' '-') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-operator == \- ]] + [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ - == \- ]] + [[ 4 -gt 0 ]] + [[ -f =~ ^(-f|--filename)$ ]] ++ mktemp + stdin_manifest=/tmp/tmp.zlu92rzskt + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.zlu92rzskt + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -n psmdb-operator -f /tmp/tmp.zlu92rzskt + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.547CVY3rY3 deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.oJx4DBJJ32 + rm /tmp/tmp.547CVY3rY3 /tmp/tmp.oJx4DBJJ32 /tmp/tmp.zlu92rzskt + 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.71XQomq6Yj +++ mktemp ++ local LAST_ERR=/tmp/tmp.TuWJVjNGh2 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=percona-server-mongodb-operator' '-o' 'jsonpath={.items[].metadata.name}' '-n' 'psmdb-operator') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=percona-server-mongodb-operator == \- ]] ++ [[ --selector=name=percona-server-mongodb-operator =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -n == \- ]] ++ [[ -n =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb-operator == \- ]] ++ [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ 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 ]] ++ break ++ cat /tmp/tmp.71XQomq6Yj ++ cat /tmp/tmp.TuWJVjNGh2 ++ rm /tmp/tmp.71XQomq6Yj /tmp/tmp.TuWJVjNGh2 ++ return 0 + wait_operator_pod percona-server-mongodb-operator-b57dc4869-bxqgd + local pod=percona-server-mongodb-operator-b57dc4869-bxqgd + set +o xtrace waiting for pod/percona-server-mongodb-operator-b57dc4869-bxqgd 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.bYhQfF70Hy +++ mktemp ++ local LAST_ERR=/tmp/tmp.hFXLMz7Qla ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=percona-server-mongodb-operator' '-o' 'jsonpath={.items[].metadata.name}' '-n' 'psmdb-operator') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=percona-server-mongodb-operator == \- ]] ++ [[ --selector=name=percona-server-mongodb-operator =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -n == \- ]] ++ [[ -n =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb-operator == \- ]] ++ [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ 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 ]] ++ break ++ cat /tmp/tmp.bYhQfF70Hy ++ cat /tmp/tmp.hFXLMz7Qla ++ rm /tmp/tmp.bYhQfF70Hy /tmp/tmp.hFXLMz7Qla ++ return 0 + kubectl_bin logs -n psmdb-operator percona-server-mongodb-operator-b57dc4869-bxqgd ++ mktemp + local LAST_OUT=/tmp/tmp.qVQHSgymEr ++ mktemp + local LAST_ERR=/tmp/tmp.FqZoQTrhdk + local exit_status=0 + local timeout=4 + local i + args=('logs' '-n' 'psmdb-operator' 'percona-server-mongodb-operator-b57dc4869-bxqgd') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ logs == \- ]] + [[ logs =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-operator == \- ]] + [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ percona-server-mongodb-operator-b57dc4869-bxqgd == \- ]] + [[ percona-server-mongodb-operator-b57dc4869-bxqgd =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl logs -n psmdb-operator percona-server-mongodb-operator-b57dc4869-bxqgd + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.qVQHSgymEr + cat /tmp/tmp.FqZoQTrhdk + rm /tmp/tmp.qVQHSgymEr /tmp/tmp.FqZoQTrhdk + return 0 2026-11-23T06:03:41.629Z INFO setup Manager starting up {"gitCommit": "27e0b796072fe59ec1fa78fca82dc7491ddb9891", "gitBranch": "PR-2715-27e0b7960", "buildTime": "", "goVersion": "go1.27.4", "os": "linux", "arch": "amd64"} + create_namespace demand-backup-incremental-oss-s3-25902 + local namespace=demand-backup-incremental-oss-s3-25902 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep validate-auth ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + local 'ns_filter=^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + [[ -n '' ]] + kubectl_bin get ns + grep -E -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' ++ mktemp + [[ -n '' ]] + desc 'cleaned up old namespaces demand-backup-incremental-oss-s3-25902' + awk '{print$1}' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces demand-backup-incremental-oss-s3-25902 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace demand-backup-incremental-oss-s3-25902 --ignore-not-found + xargs kubectl delete ns + local LAST_OUT=/tmp/tmp.QnydWbe1Rm ++ mktemp ++ mktemp + local LAST_ERR=/tmp/tmp.CWWIgvaKIN + local exit_status=0 + local timeout=4 + local i + args=('get' 'ns') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ get == \- ]] + [[ get =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ns == \- ]] + [[ ns =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + local LAST_OUT=/tmp/tmp.POKdg1w44Z + for attempt in $(seq 0 9) + set +e + kubectl get ns ++ mktemp + local LAST_ERR=/tmp/tmp.URNl6dpubA + local exit_status=0 + local timeout=4 + local i + args=('delete' 'namespace' 'demand-backup-incremental-oss-s3-25902' '--ignore-not-found') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ demand-backup-incremental-oss-s3-25902 == \- ]] + [[ demand-backup-incremental-oss-s3-25902 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete namespace demand-backup-incremental-oss-s3-25902 --ignore-not-found + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.QnydWbe1Rm + cat /tmp/tmp.CWWIgvaKIN + rm /tmp/tmp.QnydWbe1Rm /tmp/tmp.CWWIgvaKIN + return 0 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.POKdg1w44Z + cat /tmp/tmp.URNl6dpubA + rm /tmp/tmp.POKdg1w44Z /tmp/tmp.URNl6dpubA + return 0 + kubectl_bin wait --for=delete namespace demand-backup-incremental-oss-s3-25902 ++ mktemp + local LAST_OUT=/tmp/tmp.sm4NVfwbtQ ++ mktemp + local LAST_ERR=/tmp/tmp.AHnxLq0Vgn + local exit_status=0 + local timeout=4 + local i + args=('wait' '--for=delete' 'namespace' 'demand-backup-incremental-oss-s3-25902') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ wait == \- ]] + [[ wait =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --for=delete == \- ]] + [[ --for=delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ demand-backup-incremental-oss-s3-25902 == \- ]] + [[ demand-backup-incremental-oss-s3-25902 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl wait --for=delete namespace demand-backup-incremental-oss-s3-25902 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.sm4NVfwbtQ + cat /tmp/tmp.AHnxLq0Vgn + rm /tmp/tmp.sm4NVfwbtQ /tmp/tmp.AHnxLq0Vgn + return 0 + desc 'create namespace demand-backup-incremental-oss-s3-25902' + set +o xtrace ----------------------------------------------------------------------------------- create namespace demand-backup-incremental-oss-s3-25902 ----------------------------------------------------------------------------------- + kubectl_bin create namespace demand-backup-incremental-oss-s3-25902 ++ mktemp + local LAST_OUT=/tmp/tmp.sSr9AsySsL ++ mktemp + local LAST_ERR=/tmp/tmp.IxmZTuKtWG + local exit_status=0 + local timeout=4 + local i + args=('create' 'namespace' 'demand-backup-incremental-oss-s3-25902') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ create == \- ]] + [[ create =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ demand-backup-incremental-oss-s3-25902 == \- ]] + [[ demand-backup-incremental-oss-s3-25902 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl create namespace demand-backup-incremental-oss-s3-25902 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.sSr9AsySsL namespace/demand-backup-incremental-oss-s3-25902 created + cat /tmp/tmp.IxmZTuKtWG + rm /tmp/tmp.sSr9AsySsL /tmp/tmp.IxmZTuKtWG + return 0 + set_kube_ctx demand-backup-incremental-oss-s3-25902 + local namespace=demand-backup-incremental-oss-s3-25902 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.LPfC71vA6N +++ mktemp ++ local LAST_ERR=/tmp/tmp.9Zzyr8cr9e ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('config' 'current-context') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ config == \- ]] ++ [[ config =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ current-context == \- ]] ++ [[ current-context =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.LPfC71vA6N ++ cat /tmp/tmp.9Zzyr8cr9e ++ rm /tmp/tmp.LPfC71vA6N /tmp/tmp.9Zzyr8cr9e ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7 --namespace=demand-backup-incremental-oss-s3-25902 ++ mktemp + local LAST_OUT=/tmp/tmp.CoTLcAfnEY ++ mktemp + local LAST_ERR=/tmp/tmp.rNb3fBPJQD + local exit_status=0 + local timeout=4 + local i + args=('config' 'set-context' 'gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7' '--namespace=demand-backup-incremental-oss-s3-25902') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ config == \- ]] + [[ config =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ set-context == \- ]] + [[ set-context =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7 == \- ]] + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --namespace=demand-backup-incremental-oss-s3-25902 == \- ]] + [[ --namespace=demand-backup-incremental-oss-s3-25902 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7 --namespace=demand-backup-incremental-oss-s3-25902 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.CoTLcAfnEY Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7" modified. + cat /tmp/tmp.rNb3fBPJQD + rm /tmp/tmp.CoTLcAfnEY /tmp/tmp.rNb3fBPJQD + return 0 + apply_s3_storage_secrets + desc 'create secrets for cloud storages' + set +o xtrace ----------------------------------------------------------------------------------- create secrets for cloud storages ----------------------------------------------------------------------------------- + '[' -z '' ']' + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/s3-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/cloud-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.0aDSi0O8yu ++ mktemp + local LAST_ERR=/tmp/tmp.kVNNfMXQFQ + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/s3-secret.yml' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/cloud-secret.yml') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/s3-secret.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/s3-secret.yml =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/cloud-secret.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/cloud-secret.yml =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/s3-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/cloud-secret.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.0aDSi0O8yu secret/s3-secret created secret/aws-s3-secret created secret/alibaba-cloud-secret created secret/oci-secret created secret/gcp-cs-secret created secret/azure-secret created secret/gcp-cs-sa-key-secret created + cat /tmp/tmp.kVNNfMXQFQ + rm /tmp/tmp.0aDSi0O8yu /tmp/tmp.kVNNfMXQFQ + return 0 + desc 'Testing on not sharded cluster' + set +o xtrace ----------------------------------------------------------------------------------- Testing on not sharded cluster ----------------------------------------------------------------------------------- + log 'Creating PSMDB cluster' + set +o xtrace [2026-11-23T06:04:21+0000] Creating PSMDB cluster + cluster=some-name + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/conf/secrets.yml ++ mktemp + local LAST_OUT=/tmp/tmp.Fnc0Il6mYU ++ mktemp + local LAST_ERR=/tmp/tmp.EprfalYBg5 + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/conf/secrets.yml') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/conf/secrets.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/conf/secrets.yml =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/conf/secrets.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Fnc0Il6mYU secret/some-users created + cat /tmp/tmp.EprfalYBg5 + rm /tmp/tmp.Fnc0Il6mYU /tmp/tmp.EprfalYBg5 + return 0 + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/conf/some-name.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/conf/some-name.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/conf/some-name.yml + yq eval '(.spec | select(.image == null)).image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3"' ++ mktemp + yq eval '(.spec | select(has("pmm"))).pmm.image = "docker.io/perconalab/pmm-client:3-dev-latest"' + yq eval '(.spec | select(has("initImage"))).initImage = "docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960"' + yq eval '(.spec | select(has("backup"))).backup.image = "docker.io/perconalab/percona-server-mongodb-operator:main-backup"' + local LAST_OUT=/tmp/tmp.j1VsAJoods + [[ -n docker.io/perconalab/fluentbit:main-logcollector ]] + add_arch_to_psmdb - + 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"' + arch_scheduling_enabled + [[ -n '' ]] + cat - + yq eval '.spec.upgradeOptions.apply="Never"' + /usr/sbin/sed -e s/NAME_SPACE/demand-backup-incremental-oss-s3-25902/g ++ mktemp + local LAST_ERR=/tmp/tmp.6YTMc1D1Ys + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '-') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ - == \- ]] + [[ 2 -gt 0 ]] + [[ -f =~ ^(-f|--filename)$ ]] ++ mktemp + stdin_manifest=/tmp/tmp.tp5VpXDd9U + cat + return + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.tp5VpXDd9U + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -f /tmp/tmp.tp5VpXDd9U + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.j1VsAJoods perconaservermongodb.psmdb.percona.com/some-name created + cat /tmp/tmp.6YTMc1D1Ys + rm /tmp/tmp.j1VsAJoods /tmp/tmp.6YTMc1D1Ys /tmp/tmp.tp5VpXDd9U + return 0 + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client_with_tls.yml ++ mktemp + local LAST_OUT=/tmp/tmp.fscymGL3oa ++ mktemp + local LAST_ERR=/tmp/tmp.6QQUlP5feM + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client_with_tls.yml') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client_with_tls.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client_with_tls.yml =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client_with_tls.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.fscymGL3oa deployment.apps/psmdb-client created + cat /tmp/tmp.6QQUlP5feM + rm /tmp/tmp.fscymGL3oa /tmp/tmp.6QQUlP5feM + return 0 + log 'check if all pods started' + set +o xtrace [2026-11-23T06:04:26+0000] check if all pods started + wait_for_running some-name-rs0 3 + local name=some-name-rs0 + let last_pod=2 + local check_cluster_readiness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=some-name ++ seq 0 2 + for i in $(seq 0 $last_pod) + [[ 0 -eq 2 ]] + wait_pod some-name-rs0-0 + local pod=some-name-rs0-0 + set +o xtrace waiting for pod/some-name-rs0-0 to be ready...............OK + for i in $(seq 0 $last_pod) + [[ 1 -eq 2 ]] + wait_pod some-name-rs0-1 + local pod=some-name-rs0-1 + set +o xtrace waiting for pod/some-name-rs0-1 to be ready...........OK + for i in $(seq 0 $last_pod) + [[ 2 -eq 2 ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ddrhrzpu45 +++ mktemp ++ local LAST_ERR=/tmp/tmp.4NFTWgEK3h ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.ddrhrzpu45 ++ cat /tmp/tmp.4NFTWgEK3h ++ rm /tmp/tmp.ddrhrzpu45 /tmp/tmp.4NFTWgEK3h ++ return 0 + [[ '' == true ]] + wait_pod some-name-rs0-2 + local pod=some-name-rs0-2 + set +o xtrace waiting for pod/some-name-rs0-2 to be ready............OK ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.II4UDHTWEv +++ mktemp ++ local LAST_ERR=/tmp/tmp.J33g1wdgXH ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.II4UDHTWEv ++ cat /tmp/tmp.J33g1wdgXH ++ rm /tmp/tmp.II4UDHTWEv /tmp/tmp.J33g1wdgXH ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.p49AnpVD2T +++ mktemp ++ local LAST_ERR=/tmp/tmp.giqw0XOycR ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.p49AnpVD2T ++ cat /tmp/tmp.giqw0XOycR ++ rm /tmp/tmp.p49AnpVD2T /tmp/tmp.giqw0XOycR ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster some-name to be ready....................... + wait_cluster_consistency some-name + local cluster_name=some-name + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster some-name to be ready' waiting for cluster some-name to be ready++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ohNoEx5dhT +++ mktemp ++ local LAST_ERR=/tmp/tmp.LaJoEmTZxY ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.status.state}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.status.state} == \- ]] ++ [[ jsonpath={.status.state} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.ohNoEx5dhT ++ cat /tmp/tmp.LaJoEmTZxY ++ rm /tmp/tmp.ohNoEx5dhT /tmp/tmp.LaJoEmTZxY ++ return 0 + [[ ready == ready ]] + echo .OK .OK + log 'writing test data' + set +o xtrace [2026-11-23T06:06:52+0000] writing test data + run_mongo 'db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})' userAdmin:userAdmin123456@some-name-rs0.demand-backup-incremental-oss-s3-25902 + local 'command=db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})' + local uri=userAdmin:userAdmin123456@some-name-rs0.demand-backup-incremental-oss-s3-25902 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ userAdmin:userAdmin123456@some-name-rs0.demand-backup-incremental-oss-s3-25902 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Q1S38pQhSz +++ mktemp ++ local LAST_ERR=/tmp/tmp.Ch2tQJpKGs ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=psmdb-client' '-o' 'jsonpath={.items[].metadata.name}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=psmdb-client == \- ]] ++ [[ --selector=name=psmdb-client =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.Q1S38pQhSz ++ cat /tmp/tmp.Ch2tQJpKGs ++ rm /tmp/tmp.Q1S38pQhSz /tmp/tmp.Ch2tQJpKGs ++ return 0 + local client_container=psmdb-client-748949c7cd-xkqvq + kubectl_bin exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n'\'' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.kqPIWpXzaq ++ mktemp + local LAST_ERR=/tmp/tmp.35YQ1a5gMc + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-748949c7cd-xkqvq' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n'\'' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-748949c7cd-xkqvq == \- ]] + [[ psmdb-client-748949c7cd-xkqvq =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n'\'' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.kqPIWpXzaq Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local:27017,some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local:27017,some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("7b6b271f-bf79-4bab-9722-d209b00c47ad") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match Successfully added user: { "user" : "myApp", "roles" : [ { "db" : "myApp", "role" : "readWrite" } ] } bye + cat /tmp/tmp.35YQ1a5gMc + rm /tmp/tmp.kqPIWpXzaq /tmp/tmp.35YQ1a5gMc + return 0 + sleep 1 + run_mongo 'use myApp\n db.test.insert({ x: 100500 })' myApp:myPass@some-name-rs0.demand-backup-incremental-oss-s3-25902 + local 'command=use myApp\n db.test.insert({ x: 100500 })' + local uri=myApp:myPass@some-name-rs0.demand-backup-incremental-oss-s3-25902 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0.demand-backup-incremental-oss-s3-25902 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.hof9VY4oN0 +++ mktemp ++ local LAST_ERR=/tmp/tmp.GopOwlTlLP ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=psmdb-client' '-o' 'jsonpath={.items[].metadata.name}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=psmdb-client == \- ]] ++ [[ --selector=name=psmdb-client =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.hof9VY4oN0 ++ cat /tmp/tmp.GopOwlTlLP ++ rm /tmp/tmp.hof9VY4oN0 /tmp/tmp.GopOwlTlLP ++ return 0 + local client_container=psmdb-client-748949c7cd-xkqvq + kubectl_bin exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.R0kPW3Fwj7 ++ mktemp + local LAST_ERR=/tmp/tmp.QFc7HiQJTq + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-748949c7cd-xkqvq' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-748949c7cd-xkqvq == \- ]] + [[ psmdb-client-748949c7cd-xkqvq =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.insert({ x: 100500 })\n' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.insert({ x: 100500 })\n' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.R0kPW3Fwj7 Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local:27017,some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local:27017,some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("8b34a5d0-da29-4e22-a1d4-e8e778be4299") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match switched to db myApp WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.QFc7HiQJTq + rm /tmp/tmp.R0kPW3Fwj7 /tmp/tmp.QFc7HiQJTq + return 0 + sleep 5 + compare_mongo_cmd find myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902 + local command=find + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-23T06:07:03+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902 == *cfg* ]] + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Dsm9HCQl04 +++ mktemp ++ local LAST_ERR=/tmp/tmp.J0mmADvgzg ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=psmdb-client' '-o' 'jsonpath={.items[].metadata.name}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=psmdb-client == \- ]] ++ [[ --selector=name=psmdb-client =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.Dsm9HCQl04 ++ cat /tmp/tmp.J0mmADvgzg ++ rm /tmp/tmp.Dsm9HCQl04 /tmp/tmp.J0mmADvgzg ++ return 0 + local client_container=psmdb-client-748949c7cd-xkqvq + kubectl_bin exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.i4GJwumwnz ++ mktemp + local LAST_ERR=/tmp/tmp.F93m9qfhKW + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-748949c7cd-xkqvq' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-748949c7cd-xkqvq == \- ]] + [[ psmdb-client-748949c7cd-xkqvq =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.i4GJwumwnz + cat /tmp/tmp.F93m9qfhKW + rm /tmp/tmp.i4GJwumwnz /tmp/tmp.F93m9qfhKW + return 0 + compare_mongo_output find '' + local command=find + local postfix= + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/compare/find.json /tmp/tmp.C82nohQIYZ/find + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902 + local command=find + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-23T06:07:05+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902 == *cfg* ]] + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.zRix0D6xpq +++ mktemp ++ local LAST_ERR=/tmp/tmp.cGK4QFo0TV ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=psmdb-client' '-o' 'jsonpath={.items[].metadata.name}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=psmdb-client == \- ]] ++ [[ --selector=name=psmdb-client =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.zRix0D6xpq ++ cat /tmp/tmp.cGK4QFo0TV ++ rm /tmp/tmp.zRix0D6xpq /tmp/tmp.cGK4QFo0TV ++ return 0 + local client_container=psmdb-client-748949c7cd-xkqvq + kubectl_bin exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.xU6f2luHyq ++ mktemp + local LAST_ERR=/tmp/tmp.fT5R02Ny0H + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-748949c7cd-xkqvq' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-748949c7cd-xkqvq == \- ]] + [[ psmdb-client-748949c7cd-xkqvq =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.xU6f2luHyq + cat /tmp/tmp.fT5R02Ny0H + rm /tmp/tmp.xU6f2luHyq /tmp/tmp.fT5R02Ny0H + return 0 + compare_mongo_output find '' + local command=find + local postfix= + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/compare/find.json /tmp/tmp.C82nohQIYZ/find + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902 + local command=find + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-23T06:07:07+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902 == *cfg* ]] + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.xV4bepxyJk +++ mktemp ++ local LAST_ERR=/tmp/tmp.xehsNriepR ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=psmdb-client' '-o' 'jsonpath={.items[].metadata.name}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=psmdb-client == \- ]] ++ [[ --selector=name=psmdb-client =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.xV4bepxyJk ++ cat /tmp/tmp.xehsNriepR ++ rm /tmp/tmp.xV4bepxyJk /tmp/tmp.xehsNriepR ++ return 0 + local client_container=psmdb-client-748949c7cd-xkqvq + kubectl_bin exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.0vdIAkcOwh ++ mktemp + local LAST_ERR=/tmp/tmp.DIbGOD5B2g + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-748949c7cd-xkqvq' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-748949c7cd-xkqvq == \- ]] + [[ psmdb-client-748949c7cd-xkqvq =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.0vdIAkcOwh + cat /tmp/tmp.DIbGOD5B2g + rm /tmp/tmp.0vdIAkcOwh /tmp/tmp.DIbGOD5B2g + return 0 + compare_mongo_output find '' + local command=find + local postfix= + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/compare/find.json /tmp/tmp.C82nohQIYZ/find + return + log 'running backup' + set +o xtrace [2026-11-23T06:07:10+0000] running backup + backup_name_oss_s3=backup-oss-s3 + run_backup oss-s3 backup-oss-s3 incremental-base + local storage=oss-s3 + local backup_name=backup-oss-s3 + local type=incremental-base + log 'running backup backup-oss-s3' + set +o xtrace [2026-11-23T06:07:10+0000] running backup backup-oss-s3 + yq eval $'.metadata.name = "backup-oss-s3"\n\t\t\t| .spec.storageName = "oss-s3"\n\t\t\t| .spec.type = "incremental-base"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/conf/backup-oss-s3.yml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.WCf11FJNLG ++ mktemp + local LAST_ERR=/tmp/tmp.w5o5A657bC + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '-') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ - == \- ]] + [[ 2 -gt 0 ]] + [[ -f =~ ^(-f|--filename)$ ]] ++ mktemp + stdin_manifest=/tmp/tmp.r3Jb3Uz3x8 + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.r3Jb3Uz3x8 + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -f /tmp/tmp.r3Jb3Uz3x8 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.WCf11FJNLG perconaservermongodbbackup.psmdb.percona.com/backup-oss-s3 created + cat /tmp/tmp.w5o5A657bC + rm /tmp/tmp.WCf11FJNLG /tmp/tmp.w5o5A657bC /tmp/tmp.r3Jb3Uz3x8 + return 0 + wait_backup backup-oss-s3 + local backup_name=backup-oss-s3 + local target_state=ready + set +o xtrace waiting for backup-oss-s3 to reach ready state.........................................OK + check_backup_in_storage backup-oss-s3 alibaba-s3 rs0 + local backup=backup-oss-s3 + local storage_type=alibaba-s3 + local replset=rs0 + local file=filelist.pbm + local protocol=http + local endpoint ++ get_backup_dest backup-oss-s3 ++ local backup_name=backup-oss-s3 ++ /usr/sbin/sed 's|https://engk8soperators.blob.core.windows.net/||' ++ kubectl_bin get psmdb-backup backup-oss-s3 -o 'jsonpath={.status.destination}' ++ sed -e 's/.json$//' ++ sed 's|s3://||' ++ sed 's|azure://||' ++ sed 's|gs://||' ++ sed 's|oss://||' +++ mktemp ++ sed 's|oci://||' ++ local LAST_OUT=/tmp/tmp.iMPRN5jh1a +++ mktemp ++ local LAST_ERR=/tmp/tmp.NnBPPzLplS ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb-backup' 'backup-oss-s3' '-o' 'jsonpath={.status.destination}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb-backup == \- ]] ++ [[ psmdb-backup =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ backup-oss-s3 == \- ]] ++ [[ backup-oss-s3 =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.status.destination} == \- ]] ++ [[ jsonpath={.status.destination} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb-backup backup-oss-s3 -o 'jsonpath={.status.destination}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.iMPRN5jh1a ++ cat /tmp/tmp.NnBPPzLplS ++ rm /tmp/tmp.iMPRN5jh1a /tmp/tmp.NnBPPzLplS ++ return 0 + backup_dest=operator-testing/psmdb-demand-backup-incremental-oss-s3/2026-11-23T06:07:12Z + case ${storage_type} in ++ get_backup_storage_s3_field backup-oss-s3 endpointUrl ++ local backup_name=backup-oss-s3 ++ local field=endpointUrl ++ local cluster_name ++ local storage_name +++ get_backup_cluster_name backup-oss-s3 +++ local backup_name=backup-oss-s3 +++ kubectl_bin get psmdb-backup backup-oss-s3 -o 'jsonpath={.spec.clusterName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.nFASwfsmX0 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.5u1YGaTFhV +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-s3' '-o' 'jsonpath={.spec.clusterName}') +++ local args +++ transformed_files=() +++ local transformed_files +++ local stdin_manifest +++ for i in "${!args[@]}" +++ [[ get == \- ]] +++ [[ get =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ psmdb-backup == \- ]] +++ [[ psmdb-backup =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ backup-oss-s3 == \- ]] +++ [[ backup-oss-s3 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ -o == \- ]] +++ [[ -o =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ jsonpath={.spec.clusterName} == \- ]] +++ [[ jsonpath={.spec.clusterName} =~ ^(-f|--filename)=-$ ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ local attempt +++ local delay ++++ seq 0 9 +++ for attempt in $(seq 0 9) +++ set +e +++ kubectl get psmdb-backup backup-oss-s3 -o 'jsonpath={.spec.clusterName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.nFASwfsmX0 +++ cat /tmp/tmp.5u1YGaTFhV +++ rm /tmp/tmp.nFASwfsmX0 /tmp/tmp.5u1YGaTFhV +++ return 0 ++ cluster_name=some-name +++ get_backup_storage_name backup-oss-s3 +++ local backup_name=backup-oss-s3 +++ kubectl_bin get psmdb-backup backup-oss-s3 -o 'jsonpath={.spec.storageName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.Whn54vp5Rf ++++ mktemp +++ local LAST_ERR=/tmp/tmp.vCyujKpGmv +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-s3' '-o' 'jsonpath={.spec.storageName}') +++ local args +++ transformed_files=() +++ local transformed_files +++ local stdin_manifest +++ for i in "${!args[@]}" +++ [[ get == \- ]] +++ [[ get =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ psmdb-backup == \- ]] +++ [[ psmdb-backup =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ backup-oss-s3 == \- ]] +++ [[ backup-oss-s3 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ -o == \- ]] +++ [[ -o =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ jsonpath={.spec.storageName} == \- ]] +++ [[ jsonpath={.spec.storageName} =~ ^(-f|--filename)=-$ ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ local attempt +++ local delay ++++ seq 0 9 +++ for attempt in $(seq 0 9) +++ set +e +++ kubectl get psmdb-backup backup-oss-s3 -o 'jsonpath={.spec.storageName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.Whn54vp5Rf +++ cat /tmp/tmp.vCyujKpGmv +++ rm /tmp/tmp.Whn54vp5Rf /tmp/tmp.vCyujKpGmv +++ return 0 ++ storage_name=oss-s3 ++ kubectl_bin get psmdb some-name -o json ++ jq -r --arg storage oss-s3 --arg field endpointUrl '.spec.backup.storages[$storage].s3[$field]' +++ mktemp ++ local LAST_OUT=/tmp/tmp.DLVcPmmyPZ +++ mktemp ++ local LAST_ERR=/tmp/tmp.8VWWw3VoyH ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'json') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ json == \- ]] ++ [[ json =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o json ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.DLVcPmmyPZ ++ cat /tmp/tmp.8VWWw3VoyH ++ rm /tmp/tmp.DLVcPmmyPZ /tmp/tmp.8VWWw3VoyH ++ return 0 + endpoint=https://s3.oss-eu-central-1.aliyuncs.com ++ get_backup_storage_s3_field backup-oss-s3 region ++ local backup_name=backup-oss-s3 ++ local field=region ++ local cluster_name ++ local storage_name +++ get_backup_cluster_name backup-oss-s3 +++ local backup_name=backup-oss-s3 +++ kubectl_bin get psmdb-backup backup-oss-s3 -o 'jsonpath={.spec.clusterName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.TKp9a6MLMZ ++++ mktemp +++ local LAST_ERR=/tmp/tmp.IauV9spyGk +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-s3' '-o' 'jsonpath={.spec.clusterName}') +++ local args +++ transformed_files=() +++ local transformed_files +++ local stdin_manifest +++ for i in "${!args[@]}" +++ [[ get == \- ]] +++ [[ get =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ psmdb-backup == \- ]] +++ [[ psmdb-backup =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ backup-oss-s3 == \- ]] +++ [[ backup-oss-s3 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ -o == \- ]] +++ [[ -o =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ jsonpath={.spec.clusterName} == \- ]] +++ [[ jsonpath={.spec.clusterName} =~ ^(-f|--filename)=-$ ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ local attempt +++ local delay ++++ seq 0 9 +++ for attempt in $(seq 0 9) +++ set +e +++ kubectl get psmdb-backup backup-oss-s3 -o 'jsonpath={.spec.clusterName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.TKp9a6MLMZ +++ cat /tmp/tmp.IauV9spyGk +++ rm /tmp/tmp.TKp9a6MLMZ /tmp/tmp.IauV9spyGk +++ return 0 ++ cluster_name=some-name +++ get_backup_storage_name backup-oss-s3 +++ local backup_name=backup-oss-s3 +++ kubectl_bin get psmdb-backup backup-oss-s3 -o 'jsonpath={.spec.storageName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.Bfbfly7NqA ++++ mktemp +++ local LAST_ERR=/tmp/tmp.a5oKiU36bW +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-s3' '-o' 'jsonpath={.spec.storageName}') +++ local args +++ transformed_files=() +++ local transformed_files +++ local stdin_manifest +++ for i in "${!args[@]}" +++ [[ get == \- ]] +++ [[ get =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ psmdb-backup == \- ]] +++ [[ psmdb-backup =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ backup-oss-s3 == \- ]] +++ [[ backup-oss-s3 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ -o == \- ]] +++ [[ -o =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ jsonpath={.spec.storageName} == \- ]] +++ [[ jsonpath={.spec.storageName} =~ ^(-f|--filename)=-$ ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ local attempt +++ local delay ++++ seq 0 9 +++ for attempt in $(seq 0 9) +++ set +e +++ kubectl get psmdb-backup backup-oss-s3 -o 'jsonpath={.spec.storageName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.Bfbfly7NqA +++ cat /tmp/tmp.a5oKiU36bW +++ rm /tmp/tmp.Bfbfly7NqA /tmp/tmp.a5oKiU36bW +++ return 0 ++ storage_name=oss-s3 ++ kubectl_bin get psmdb some-name -o json ++ jq -r --arg storage oss-s3 --arg field region '.spec.backup.storages[$storage].s3[$field]' +++ mktemp ++ local LAST_OUT=/tmp/tmp.2j8SfF0ep4 +++ mktemp ++ local LAST_ERR=/tmp/tmp.UM9iWHhtaK ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'json') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ json == \- ]] ++ [[ json =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o json ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.2j8SfF0ep4 ++ cat /tmp/tmp.UM9iWHhtaK ++ rm /tmp/tmp.2j8SfF0ep4 /tmp/tmp.UM9iWHhtaK ++ return 0 + region=eu-central-1 + _aws_env_save + local trace_was_on=0 + [[ ehxB == *x* ]] + trace_was_on=1 + set +x + return 0 + setup_alibaba_cloud_s3_credentials eu-central-1 + local region=eu-central-1 + local secret_name=alibaba-cloud-secret + echo 'Setting up Alibaba Cloud S3-compatible credentials from secret: alibaba-cloud-secret' Setting up Alibaba Cloud S3-compatible credentials from secret: alibaba-cloud-secret + local trace_was_on=0 + [[ ehxB == *x* ]] + trace_was_on=1 + set +x + return 0 + check_backup_existence_aws operator-testing/psmdb-demand-backup-incremental-oss-s3/2026-11-23T06:07:12Z /rs0/filelist.pbm https://s3.oss-eu-central-1.aliyuncs.com alibaba-cloud-s3 ++ echo operator-testing/psmdb-demand-backup-incremental-oss-s3/2026-11-23T06:07:12Z ++ cut -d/ -f1 + bucket=operator-testing ++ echo operator-testing/psmdb-demand-backup-incremental-oss-s3/2026-11-23T06:07:12Z ++ cut -d/ -f2- + key_prefix=psmdb-demand-backup-incremental-oss-s3/2026-11-23T06:07:12Z + key=/rs0/filelist.pbm + endpoint=https://s3.oss-eu-central-1.aliyuncs.com + storage_name=alibaba-cloud-s3 + retry=0 + endpoint_arg=() + local endpoint_arg + [[ -n https://s3.oss-eu-central-1.aliyuncs.com ]] + endpoint_arg=(--endpoint-url "$endpoint") + aws --endpoint-url https://s3.oss-eu-central-1.aliyuncs.com s3api head-object --bucket operator-testing --key psmdb-demand-backup-incremental-oss-s3/2026-11-23T06:07:12Z/rs0/filelist.pbm + echo 'Backup operator-testing/psmdb-demand-backup-incremental-oss-s3/2026-11-23T06:07:12Z//rs0/filelist.pbm found in alibaba-cloud-s3' Backup operator-testing/psmdb-demand-backup-incremental-oss-s3/2026-11-23T06:07:12Z//rs0/filelist.pbm found in alibaba-cloud-s3 + _aws_env_restore + local trace_was_on=0 + [[ ehxB == *x* ]] + trace_was_on=1 + set +x + return 0 + log 'drop collection' + set +o xtrace [2026-11-23T06:08:39+0000] drop collection + run_mongo 'use myApp\n db.test.drop()' myApp:myPass@some-name-rs0.demand-backup-incremental-oss-s3-25902 + local 'command=use myApp\n db.test.drop()' + local uri=myApp:myPass@some-name-rs0.demand-backup-incremental-oss-s3-25902 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0.demand-backup-incremental-oss-s3-25902 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.rAqdgl8mK7 +++ mktemp ++ local LAST_ERR=/tmp/tmp.WGBCSsj7Db ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=psmdb-client' '-o' 'jsonpath={.items[].metadata.name}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=psmdb-client == \- ]] ++ [[ --selector=name=psmdb-client =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.rAqdgl8mK7 ++ cat /tmp/tmp.WGBCSsj7Db ++ rm /tmp/tmp.rAqdgl8mK7 /tmp/tmp.WGBCSsj7Db ++ return 0 + local client_container=psmdb-client-748949c7cd-xkqvq + kubectl_bin exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.drop()\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.eGh6t5M8Hi ++ mktemp + local LAST_ERR=/tmp/tmp.Q6CXCplfJK + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-748949c7cd-xkqvq' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.drop()\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-748949c7cd-xkqvq == \- ]] + [[ psmdb-client-748949c7cd-xkqvq =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.drop()\n' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.drop()\n' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.drop()\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.eGh6t5M8Hi Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local:27017,some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local:27017,some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("56288b62-598e-4318-b889-5c474065f44b") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match switched to db myApp true bye + cat /tmp/tmp.Q6CXCplfJK + rm /tmp/tmp.eGh6t5M8Hi /tmp/tmp.Q6CXCplfJK + return 0 + log 'check backup and restore -- backup-oss-s3' + set +o xtrace [2026-11-23T06:08:42+0000] check backup and restore -- backup-oss-s3 + log 'running restore' + set +o xtrace [2026-11-23T06:08:42+0000] running restore + run_restore backup-oss-s3 + local backup_name=backup-oss-s3 + local restore_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/conf/restore.yml + log 'running restore restore-backup-oss-s3' + set +o xtrace [2026-11-23T06:08:42+0000] running restore restore-backup-oss-s3 + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/conf/restore.yml + /usr/sbin/sed -e 's/name:/name: restore-backup-oss-s3/' + /usr/sbin/sed -e 's/backupName:/backupName: backup-oss-s3/' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.o4WQL3YPmH ++ mktemp + local LAST_ERR=/tmp/tmp.Ms5CnvZEwY + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '-') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ - == \- ]] + [[ 2 -gt 0 ]] + [[ -f =~ ^(-f|--filename)$ ]] ++ mktemp + stdin_manifest=/tmp/tmp.MRxN6aYBp2 + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.MRxN6aYBp2 + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -f /tmp/tmp.MRxN6aYBp2 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.o4WQL3YPmH perconaservermongodbrestore.psmdb.percona.com/restore-backup-oss-s3 created + cat /tmp/tmp.Ms5CnvZEwY + rm /tmp/tmp.o4WQL3YPmH /tmp/tmp.Ms5CnvZEwY /tmp/tmp.MRxN6aYBp2 + return 0 + run_recovery_check backup-oss-s3 + local backup_name=backup-oss-s3 + local compare_suffix=_restore + local is_sharded= + local tls= + wait_restore backup-oss-s3 some-name requested 0 3000 + local backup_name=backup-oss-s3 + local cluster_name=some-name + local target_state=requested + local wait_cluster_consistency=0 + local wait_time=3000 + local ok_if_ready=0 + set +o xtrace Waiting for the psmdb-restore/restore-backup-oss-s3 object to be created.OK Waiting psmdb-restore/restore-backup-oss-s3 to reach state "requested" ..OK after 1 minutes + [[ 0 -eq 1 ]] + echo + compare_kubectl statefulset/some-name-rs0 _restore + local resource=statefulset/some-name-rs0 + local postfix=_restore + local skip_generation_check= + local expected_result=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/compare/statefulset_some-name-rs0_restore.yml + local new_result=/tmp/tmp.C82nohQIYZ/statefulset_some-name-rs0.yml + [[ -n '' ]] + kubectl_bin get -o yaml statefulset/some-name-rs0 + yq eval $'\n\t\t\tdel(.metadata.ownerReferences[].apiVersion) |\n\t\t\tdel(.metadata.managedFields) |\n\t\t\tdel(.. | select(has("creationTimestamp")).creationTimestamp) |\n\t\t\tdel(.. | select(has("namespace")).namespace) |\n\t\t\tdel(.. | select(has("uid")).uid) |\n\t\t\tdel(.metadata.resourceVersion) |\n\t\t\tdel(.spec.template.spec.containers[].env[] | select(.name == "NAMESPACE")) |\n\t\t\tdel(.metadata.selfLink) |\n\t\t\tdel(.metadata.annotations."cloud.google.com/neg") |\n\t\t\tdel(.metadata.annotations."field.cattle.io/publicEndpoints") |\n\t\t\tdel(.metadata.annotations."metallb.io/ip-allocated-from-pool") |\n\t\t\tdel(.metadata.annotations."networking.gke.io/target-pool") |\n\t\t\tdel(.metadata.annotations."kubectl.kubernetes.io/last-applied-configuration") |\n\t\t\tdel(.. | select(has("image")).image) |\n\t\t\tdel(.. | select(has("clusterIP")).clusterIP) |\n\t\t\tdel(.. | select(has("clusterIPs")).clusterIPs) |\n\t\t\tdel(.. | select(has("dataSource")).dataSource) |\n\t\t\tdel(.. | select(has("procMount")).procMount) |\n\t\t\tdel(.. | select(has("storageClassName")).storageClassName) |\n\t\t\tdel(.. | select(has("finalizers")).finalizers) |\n\t\t\tdel(.. | select(has("kubernetes.io/pvc-protection"))."kubernetes.io/pvc-protection") |\n\t\t\tdel(.. | select(has("volumeName")).volumeName) |\n\t\t\tdel(.. | select(has("volume.beta.kubernetes.io/storage-provisioner"))."volume.beta.kubernetes.io/storage-provisioner") |\n\t\t\tdel(.. | select(has("volume.kubernetes.io/storage-provisioner"))."volume.kubernetes.io/storage-provisioner") |\n\t\t\tdel(.spec.volumeMode) |\n\t\t\tdel(.. | select(has("volume.kubernetes.io/selected-node"))."volume.kubernetes.io/selected-node") |\n\t\t\tdel(.. | select(has("percona.com/last-config-hash"))."percona.com/last-config-hash") |\n\t\t\tdel(.. | select(has("percona.com/configuration-hash"))."percona.com/configuration-hash") |\n\t\t\tdel(.. | select(has("percona.com/ssl-hash"))."percona.com/ssl-hash") |\n\t\t\tdel(.. | select(has("percona.com/ssl-internal-hash"))."percona.com/ssl-internal-hash") |\n\t\t\tdel(.. | select(has("percona.com/pbm-tls-hash"))."percona.com/pbm-tls-hash") |\n\t\t\tdel(.spec.volumeClaimTemplates[].spec.volumeMode | select(. == "Filesystem")) |\n\t\t\tdel(.. | select(has("healthCheckNodePort")).healthCheckNodePort) |\n\t\t\tdel(.. | select(has("nodePort")).nodePort) |\n\t\t\tdel(.status) |\n\t\t\t(.. | select(tag == "!!str")) |= sub("demand-backup-incremental-oss-s3-25902", "NAME_SPACE") |\n\t\t\tdel(.spec.volumeClaimTemplates[].apiVersion) |\n\t\t\tdel(.spec.volumeClaimTemplates[].kind) |\n\t\t\tdel(.spec.ipFamilies) |\n\t\t\tdel(.spec.ipFamilyPolicy) |\n\t\t\t(.. | select(. == "extensions/v1beta1")) = "apps/v1" |\n\t\t\t(.. | select(. == "batch/v1beta1")) = "batch/v1" ' - ++ mktemp + local LAST_OUT=/tmp/tmp.c6hppa4tbG ++ mktemp + local LAST_ERR=/tmp/tmp.6e3sGGc6G3 + local exit_status=0 + local timeout=4 + local i + args=('get' '-o' 'yaml' 'statefulset/some-name-rs0') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ get == \- ]] + [[ get =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -o == \- ]] + [[ -o =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ yaml == \- ]] + [[ yaml =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ statefulset/some-name-rs0 == \- ]] + [[ statefulset/some-name-rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl get -o yaml statefulset/some-name-rs0 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.c6hppa4tbG + cat /tmp/tmp.6e3sGGc6G3 + rm /tmp/tmp.c6hppa4tbG /tmp/tmp.6e3sGGc6G3 + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.C82nohQIYZ/statefulset_some-name-rs0.yml + arch_scheduling_enabled + [[ -n '' ]] + version_gt 1.22 ++ echo '1.34 >= 1.22' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + yq -i eval 'del(.spec.internalTrafficPolicy)' /tmp/tmp.C82nohQIYZ/statefulset_some-name-rs0.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.C82nohQIYZ/statefulset_some-name-rs0.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/compare/statefulset_some-name-rs0_restore.yml == */cronjob* ]] + '[' -n '' ']' + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/compare/statefulset_some-name-rs0_restore.yml /tmp/tmp.C82nohQIYZ/statefulset_some-name-rs0.yml + log 'compare_kubectl: statefulset/some-name-rs0 OK' + set +o xtrace [2026-11-23T06:10:20+0000] compare_kubectl: statefulset/some-name-rs0 OK + wait_restore backup-oss-s3 some-name ready 0 3000 + local backup_name=backup-oss-s3 + local cluster_name=some-name + local target_state=ready + local wait_cluster_consistency=0 + local wait_time=3000 + local ok_if_ready=0 + set +o xtrace Waiting for the psmdb-restore/restore-backup-oss-s3 object to be created.OK Waiting psmdb-restore/restore-backup-oss-s3 to reach state "ready" ...OK after 2 minutes + [[ 0 -eq 1 ]] + log 'Physical restore finished: OK' + set +o xtrace [2026-11-23T06:12:45+0000] Physical restore finished: OK ++ kubectl_bin get psmdb some-name -o yaml ++ yq '.metadata.annotations."percona.com/resync-pbm"' +++ mktemp ++ local LAST_OUT=/tmp/tmp.X1e7ZjpYEK +++ mktemp ++ local LAST_ERR=/tmp/tmp.Esk43DruoT ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'yaml') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ yaml == \- ]] ++ [[ yaml =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o yaml ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.X1e7ZjpYEK ++ cat /tmp/tmp.Esk43DruoT ++ rm /tmp/tmp.X1e7ZjpYEK /tmp/tmp.Esk43DruoT ++ return 0 + '[' true == null ']' + echo + local max_wait=120 + local error_grace=600 + local error_time=0 + local retry=0 + sleep 7 + echo -n 'waiting for cluster some-name to be ready after physical restore' waiting for cluster some-name to be ready after physical restore+ true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.aMsA220l6l +++ mktemp ++ local LAST_ERR=/tmp/tmp.03bbW9hrYT ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.status.state}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.status.state} == \- ]] ++ [[ jsonpath={.status.state} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.aMsA220l6l ++ cat /tmp/tmp.03bbW9hrYT ++ rm /tmp/tmp.aMsA220l6l /tmp/tmp.03bbW9hrYT ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=1 + [[ 1 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.FFvIfieEur +++ mktemp ++ local LAST_ERR=/tmp/tmp.haaH9Qmel0 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.status.state}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.status.state} == \- ]] ++ [[ jsonpath={.status.state} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.FFvIfieEur ++ cat /tmp/tmp.haaH9Qmel0 ++ rm /tmp/tmp.FFvIfieEur /tmp/tmp.haaH9Qmel0 ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=2 + [[ 2 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.W6W9lvJ3o3 +++ mktemp ++ local LAST_ERR=/tmp/tmp.N7iHAX1LYO ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.status.state}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.status.state} == \- ]] ++ [[ jsonpath={.status.state} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.W6W9lvJ3o3 ++ cat /tmp/tmp.N7iHAX1LYO ++ rm /tmp/tmp.W6W9lvJ3o3 /tmp/tmp.N7iHAX1LYO ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=3 + [[ 3 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.DcItvQmeCj +++ mktemp ++ local LAST_ERR=/tmp/tmp.WaFUbuPWj1 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.status.state}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.status.state} == \- ]] ++ [[ jsonpath={.status.state} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.DcItvQmeCj ++ cat /tmp/tmp.WaFUbuPWj1 ++ rm /tmp/tmp.DcItvQmeCj /tmp/tmp.WaFUbuPWj1 ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=4 + [[ 4 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.cjS1TICoqZ +++ mktemp ++ local LAST_ERR=/tmp/tmp.B7jiSvQQDC ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.status.state}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.status.state} == \- ]] ++ [[ jsonpath={.status.state} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.cjS1TICoqZ ++ cat /tmp/tmp.B7jiSvQQDC ++ rm /tmp/tmp.cjS1TICoqZ /tmp/tmp.B7jiSvQQDC ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=5 + [[ 5 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.2W2PllrEH6 +++ mktemp ++ local LAST_ERR=/tmp/tmp.yR16AA5evM ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.status.state}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.status.state} == \- ]] ++ [[ jsonpath={.status.state} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.2W2PllrEH6 ++ cat /tmp/tmp.yR16AA5evM ++ rm /tmp/tmp.2W2PllrEH6 /tmp/tmp.yR16AA5evM ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=6 + [[ 6 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.qUX8DxIU7l +++ mktemp ++ local LAST_ERR=/tmp/tmp.c8Yh43cfiG ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.status.state}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.status.state} == \- ]] ++ [[ jsonpath={.status.state} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.qUX8DxIU7l ++ cat /tmp/tmp.c8Yh43cfiG ++ rm /tmp/tmp.qUX8DxIU7l /tmp/tmp.c8Yh43cfiG ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=7 + [[ 7 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.BgJ0iidgib +++ mktemp ++ local LAST_ERR=/tmp/tmp.tNVc6Q8Da5 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.status.state}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.status.state} == \- ]] ++ [[ jsonpath={.status.state} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.BgJ0iidgib ++ cat /tmp/tmp.tNVc6Q8Da5 ++ rm /tmp/tmp.BgJ0iidgib /tmp/tmp.tNVc6Q8Da5 ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=8 + [[ 8 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.JfX3rRqP5P +++ mktemp ++ local LAST_ERR=/tmp/tmp.Z0qreUdhZ0 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.status.state}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.status.state} == \- ]] ++ [[ jsonpath={.status.state} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.JfX3rRqP5P ++ cat /tmp/tmp.Z0qreUdhZ0 ++ rm /tmp/tmp.JfX3rRqP5P /tmp/tmp.Z0qreUdhZ0 ++ return 0 + state=ready + [[ ready == ready ]] + break + echo .OK .OK + wait_for_pbm_operations some-name + local cluster=some-name + local max_retries=540 + set +o xtrace waiting for PBM operation to finish........OK + log 'Operator triggered PBM resync: OK' + set +o xtrace [2026-11-23T06:15:10+0000] Operator triggered PBM resync: OK + '[' -n '' ']' + compare_mongo_cmd find myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902 '' '' '' '' '' '' + local command=find + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-23T06:15:10+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902 mongodb '' '' '' + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902 == *cfg* ]] + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Ai5jxDdJPw +++ mktemp ++ local LAST_ERR=/tmp/tmp.wceMiWIs0n ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=psmdb-client' '-o' 'jsonpath={.items[].metadata.name}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=psmdb-client == \- ]] ++ [[ --selector=name=psmdb-client =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.Ai5jxDdJPw ++ cat /tmp/tmp.wceMiWIs0n ++ rm /tmp/tmp.Ai5jxDdJPw /tmp/tmp.wceMiWIs0n ++ return 0 + local client_container=psmdb-client-748949c7cd-xkqvq + kubectl_bin exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.jPgka5nha4 ++ mktemp + local LAST_ERR=/tmp/tmp.pL0FCTOghZ + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-748949c7cd-xkqvq' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-748949c7cd-xkqvq == \- ]] + [[ psmdb-client-748949c7cd-xkqvq =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.jPgka5nha4 + cat /tmp/tmp.pL0FCTOghZ + rm /tmp/tmp.jPgka5nha4 /tmp/tmp.pL0FCTOghZ + return 0 + compare_mongo_output find '' + local command=find + local postfix= + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/compare/find.json /tmp/tmp.C82nohQIYZ/find + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902 '' '' '' '' '' '' + local command=find + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-23T06:15:13+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902 == *cfg* ]] + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.VlE5VOgdL9 +++ mktemp ++ local LAST_ERR=/tmp/tmp.A2ZlR5O6ZQ ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=psmdb-client' '-o' 'jsonpath={.items[].metadata.name}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=psmdb-client == \- ]] ++ [[ --selector=name=psmdb-client =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.VlE5VOgdL9 ++ cat /tmp/tmp.A2ZlR5O6ZQ ++ rm /tmp/tmp.VlE5VOgdL9 /tmp/tmp.A2ZlR5O6ZQ ++ return 0 + local client_container=psmdb-client-748949c7cd-xkqvq + kubectl_bin exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.3a8Y6Z9eGo ++ mktemp + local LAST_ERR=/tmp/tmp.nnFdb8y1M7 + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-748949c7cd-xkqvq' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-748949c7cd-xkqvq == \- ]] + [[ psmdb-client-748949c7cd-xkqvq =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.3a8Y6Z9eGo + cat /tmp/tmp.nnFdb8y1M7 + rm /tmp/tmp.3a8Y6Z9eGo /tmp/tmp.nnFdb8y1M7 + return 0 + compare_mongo_output find '' + local command=find + local postfix= + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/compare/find.json /tmp/tmp.C82nohQIYZ/find + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902 '' '' '' '' '' '' + local command=find + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-23T06:15:15+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902 mongodb '' '' '' + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.cBybPALBZe +++ mktemp ++ local LAST_ERR=/tmp/tmp.3T25nJYIVL ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=psmdb-client' '-o' 'jsonpath={.items[].metadata.name}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=psmdb-client == \- ]] ++ [[ --selector=name=psmdb-client =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.cBybPALBZe ++ cat /tmp/tmp.3T25nJYIVL ++ rm /tmp/tmp.cBybPALBZe /tmp/tmp.3T25nJYIVL ++ return 0 + local client_container=psmdb-client-748949c7cd-xkqvq + kubectl_bin exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.dc7C6ezBFj ++ mktemp + local LAST_ERR=/tmp/tmp.sMIlM1Fi0L + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-748949c7cd-xkqvq' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-748949c7cd-xkqvq == \- ]] + [[ psmdb-client-748949c7cd-xkqvq =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-748949c7cd-xkqvq -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-incremental-oss-s3-25902.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.dc7C6ezBFj + cat /tmp/tmp.sMIlM1Fi0L + rm /tmp/tmp.dc7C6ezBFj /tmp/tmp.sMIlM1Fi0L + return 0 + compare_mongo_output find '' + local command=find + local postfix= + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-incremental-oss-s3/compare/find.json /tmp/tmp.C82nohQIYZ/find + return + log 'Data restored: OK' + set +o xtrace [2026-11-23T06:15:18+0000] Data restored: OK + echo some-name-rs0-0:/data/db/pbm-restore-logs some-name-rs0-0:/data/db/pbm-restore-logs + kubectl_bin exec some-name-rs0-0 -- ls -l /data/db/pbm-restore-logs ++ mktemp + local LAST_OUT=/tmp/tmp.C09ZKwVEtW ++ mktemp + local LAST_ERR=/tmp/tmp.S3p6gJvb1m + local exit_status=0 + local timeout=4 + local i + args=('exec' 'some-name-rs0-0' '--' 'ls' '-l' '/data/db/pbm-restore-logs') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-rs0-0 == \- ]] + [[ some-name-rs0-0 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ls == \- ]] + [[ ls =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -l == \- ]] + [[ -l =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /data/db/pbm-restore-logs == \- ]] + [[ /data/db/pbm-restore-logs =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec some-name-rs0-0 -- ls -l /data/db/pbm-restore-logs + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.C09ZKwVEtW total 640 -rw-rw-r-- 1 mongodb 1001 457283 Nov 23 06:11 mongod.log -rw-rw-r-- 1 mongodb 1001 45326 Nov 23 06:12 pbm-agent.log -rw-rw---- 1 mongodb 1001 72141 Nov 23 06:11 pbm.restore.log.2026-11-23T06-11-48 -rw-rw---- 1 mongodb 1001 70713 Nov 23 06:11 pbm.restore.log.2026-11-23T06-11-52 + cat /tmp/tmp.S3p6gJvb1m Defaulted container "mongod" out of: mongod, backup-agent, mongo-init (init) + rm /tmp/tmp.C09ZKwVEtW /tmp/tmp.S3p6gJvb1m + return 0 + echo some-name-rs0-1:/data/db/pbm-restore-logs some-name-rs0-1:/data/db/pbm-restore-logs + kubectl_bin exec some-name-rs0-1 -- ls -l /data/db/pbm-restore-logs ++ mktemp + local LAST_OUT=/tmp/tmp.ICDLwTFYVE ++ mktemp + local LAST_ERR=/tmp/tmp.AgtnDLKUlJ + local exit_status=0 + local timeout=4 + local i + args=('exec' 'some-name-rs0-1' '--' 'ls' '-l' '/data/db/pbm-restore-logs') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-rs0-1 == \- ]] + [[ some-name-rs0-1 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ls == \- ]] + [[ ls =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -l == \- ]] + [[ -l =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /data/db/pbm-restore-logs == \- ]] + [[ /data/db/pbm-restore-logs =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec some-name-rs0-1 -- ls -l /data/db/pbm-restore-logs + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.ICDLwTFYVE total 736 -rw-rw-r-- 1 mongodb 1001 551227 Nov 23 06:11 mongod.log -rw-rw-r-- 1 mongodb 1001 49529 Nov 23 06:13 pbm-agent.log -rw-rw---- 1 mongodb 1001 72081 Nov 23 06:12 pbm.restore.log.2026-11-23T06-12-15 -rw-rw---- 1 mongodb 1001 70735 Nov 23 06:12 pbm.restore.log.2026-11-23T06-12-19 + cat /tmp/tmp.AgtnDLKUlJ Defaulted container "mongod" out of: mongod, backup-agent, mongo-init (init) + rm /tmp/tmp.ICDLwTFYVE /tmp/tmp.AgtnDLKUlJ + return 0 + echo some-name-rs0-2:/data/db/pbm-restore-logs some-name-rs0-2:/data/db/pbm-restore-logs + kubectl_bin exec some-name-rs0-2 -- ls -l /data/db/pbm-restore-logs ++ mktemp + local LAST_OUT=/tmp/tmp.Ca1299YeB4 ++ mktemp + local LAST_ERR=/tmp/tmp.z3vAgpyEDk + local exit_status=0 + local timeout=4 + local i + args=('exec' 'some-name-rs0-2' '--' 'ls' '-l' '/data/db/pbm-restore-logs') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-rs0-2 == \- ]] + [[ some-name-rs0-2 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ls == \- ]] + [[ ls =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -l == \- ]] + [[ -l =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /data/db/pbm-restore-logs == \- ]] + [[ /data/db/pbm-restore-logs =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec some-name-rs0-2 -- ls -l /data/db/pbm-restore-logs + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Ca1299YeB4 total 316 -rw-rw-r-- 1 mongodb 1001 130658 Nov 23 06:11 mongod.log -rw-rw-r-- 1 mongodb 1001 44401 Nov 23 06:13 pbm-agent.log -rw-rw---- 1 mongodb 1001 72068 Nov 23 06:11 pbm.restore.log.2026-11-23T06-11-48 -rw-rw---- 1 mongodb 1001 70653 Nov 23 06:11 pbm.restore.log.2026-11-23T06-11-52 + cat /tmp/tmp.z3vAgpyEDk Defaulted container "mongod" out of: mongod, backup-agent, mongo-init (init) + rm /tmp/tmp.Ca1299YeB4 /tmp/tmp.z3vAgpyEDk + return 0 + '[' -n '' ']' + log 'Restore logs are preserved: OK' + set +o xtrace [2026-11-23T06:15:23+0000] Restore logs are preserved: OK + desc 'test passed' + set +o xtrace ----------------------------------------------------------------------------------- test passed ----------------------------------------------------------------------------------- + destroy demand-backup-incremental-oss-s3-25902 + local namespace=demand-backup-incremental-oss-s3-25902 + local ignore_logs=true + [[ 1 == 1 ]] + echo 'SKIP_DELETE=1, not destroying demand-backup-incremental-oss-s3-25902' SKIP_DELETE=1, not destroying demand-backup-incremental-oss-s3-25902 + return ==================================================================================================== [PASSED] e2e-tests/test_pytest_wrapper.py::test_bash_wrapper ==================================================================================================== [06:15:24.236061] INFO Deleting cert-manager [06:15:40.649152] INFO Cleaning up test environment ------------------------------------ generated xml file: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/reports/demand-backup-incremental-oss-s3.xml ------------------------------------ ------------------------------ Generated html report: file:///mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/reports/demand-backup-incremental-oss-s3.html ------------------------------- ==================================================================================== 1 passed in 792.99s (0:13:12) =====================================================================================