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-sharded] [06:29:51.188987] WARNING kubectl error: Warning: version difference between client (1.37) and server (1.34) exceeds the supported minor version skew of +/-1 [06:29:52.418842] 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 +++ dirname run ++ realpath . + test_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded + . /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/../functions +++ dirname /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/../functions ++ source /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/../vars +++ [[ 1 != 1 ]] ++++ mktemp -d +++ export tmp_dir=/tmp/tmp.EmeHjOpCG1 +++ tmp_dir=/tmp/tmp.EmeHjOpCG1 ++++ command -v gsed ++++ command -v sed +++ export sed=/usr/sbin/sed +++ sed=/usr/sbin/sed ++++ command -v gdate ++++ command -v date +++ export date=/usr/sbin/date +++ date=/usr/sbin/date ++++ basename /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded +++ export test_name=demand-backup-sharded +++ test_name=demand-backup-sharded +++ export namespace=demand-backup-sharded-11468 +++ namespace=demand-backup-sharded-11468 +++ export arbiter_namespace=demand-backup-sharded-arbiter-3032 +++ arbiter_namespace=demand-backup-sharded-arbiter-3032 +++ export replica_namespace=demand-backup-sharded-replica-23378 +++ replica_namespace=demand-backup-sharded-replica-23378 ++++ realpath /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/../conf +++ export conf_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf +++ conf_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf ++++ realpath /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/../.. +++ export src_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715 +++ src_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715 +++ export logs_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/../logs +++ logs_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/../logs +++ setup_logging +++ [[ '' == true ]] +++ echo 'Debug logging disabled.' Debug logging disabled. ++ KUBECTL_TRANSIENT_ERRORS='ENHANCE_YOUR_CALM|ResourceExhausted|TooManyRequests|TLS handshake timeout|etcdserver: request timed out|the server is currently unable to handle the request|Unable to connect to the server|connection reset by peer' ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ _AWS_ENV_STACK=() + set_debug + [[ 1 == 1 ]] + set -o xtrace + custom_port=27019 + create_infra demand-backup-sharded-11468 + local ns=demand-backup-sharded-11468 + echo demand-backup-sharded-11468 + destroy_cert_manager + [[ -n '' ]] + kubectl_bin delete mutatingwebhookconfiguration cert-manager-webhook --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.lyeQbaNkgk ++ mktemp + local LAST_ERR=/tmp/tmp.g0lDb3CfUp + 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.lyeQbaNkgk + cat /tmp/tmp.g0lDb3CfUp + rm /tmp/tmp.lyeQbaNkgk /tmp/tmp.g0lDb3CfUp + return 0 + kubectl_bin delete validatingwebhookconfiguration cert-manager-webhook --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.6Gxp7f65Y0 ++ mktemp + local LAST_ERR=/tmp/tmp.wN97nSseEV + 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.6Gxp7f65Y0 + cat /tmp/tmp.wN97nSseEV + rm /tmp/tmp.6Gxp7f65Y0 /tmp/tmp.wN97nSseEV + 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.lVmSDex0Z7 ++ mktemp + local LAST_ERR=/tmp/tmp.K34k5V8Z8b + 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.lVmSDex0Z7 + cat /tmp/tmp.K34k5V8Z8b + rm /tmp/tmp.lVmSDex0Z7 /tmp/tmp.K34k5V8Z8b + return 0 + kubectl_bin delete namespace cert-manager --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.punwjTECRm ++ mktemp + local LAST_ERR=/tmp/tmp.36la8hRUmc + 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.punwjTECRm + cat /tmp/tmp.36la8hRUmc + rm /tmp/tmp.punwjTECRm /tmp/tmp.36la8hRUmc + 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.kG6mrIpWrc +++ mktemp ++ local LAST_ERR=/tmp/tmp.AMsnZwqlbz ++ 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.kG6mrIpWrc ++ cat /tmp/tmp.AMsnZwqlbz ++ rm /tmp/tmp.kG6mrIpWrc /tmp/tmp.AMsnZwqlbz ++ return 0 + remaining= ++ kubectl_bin get validatingwebhookconfiguration cert-manager-webhook --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.vOddQby43t +++ mktemp ++ local LAST_ERR=/tmp/tmp.qW50S5uQ06 ++ 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.vOddQby43t ++ cat /tmp/tmp.qW50S5uQ06 ++ rm /tmp/tmp.vOddQby43t /tmp/tmp.qW50S5uQ06 ++ 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.VIm84KrVpH +++ mktemp ++ local LAST_ERR=/tmp/tmp.GfzkMRIKT3 ++ 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.VIm84KrVpH ++ cat /tmp/tmp.GfzkMRIKT3 ++ rm /tmp/tmp.VIm84KrVpH /tmp/tmp.GfzkMRIKT3 ++ return 0 + remaining+= ++ kubectl_bin get namespace cert-manager --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.t50iCOttOA +++ mktemp ++ local LAST_ERR=/tmp/tmp.bvREKpiaoI ++ 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.t50iCOttOA ++ cat /tmp/tmp.bvREKpiaoI ++ rm /tmp/tmp.t50iCOttOA /tmp/tmp.bvREKpiaoI ++ 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.k5ZTEWQDu9 ++ mktemp + local LAST_ERR=/tmp/tmp.Pvf0j5zi7H + 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.k5ZTEWQDu9 customresourcedefinition.apiextensions.k8s.io "perconaservermongodbbackups.psmdb.percona.com" deleted customresourcedefinition.apiextensions.k8s.io "perconaservermongodbclustersyncs.psmdb.percona.com" deleted customresourcedefinition.apiextensions.k8s.io "perconaservermongodbrestores.psmdb.percona.com" deleted customresourcedefinition.apiextensions.k8s.io "perconaservermongodbs.psmdb.percona.com" deleted + cat /tmp/tmp.Pvf0j5zi7H + rm /tmp/tmp.k5ZTEWQDu9 /tmp/tmp.Pvf0j5zi7H + 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 + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbrestores.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbrestores" 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.m8qISHRloJ ++ mktemp + local LAST_ERR=/tmp/tmp.8EqOolCejb + 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.m8qISHRloJ clusterrole.rbac.authorization.k8s.io "percona-server-mongodb-operator" deleted clusterrolebinding.rbac.authorization.k8s.io "service-account-percona-server-mongodb-operator" deleted + cat /tmp/tmp.8EqOolCejb + rm /tmp/tmp.m8qISHRloJ /tmp/tmp.8EqOolCejb + 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.WEdFXzrLk0 +++ mktemp ++ local LAST_ERR=/tmp/tmp.knerOLEgie ++ 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.knerOLEgie ++ break ++ cat /tmp/tmp.WEdFXzrLk0 ++ cat /tmp/tmp.knerOLEgie Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.WEdFXzrLk0 /tmp/tmp.knerOLEgie ++ 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 + : ++ grep chaos-mesh ++ kubectl get clusterrolebinding ++ 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' + [[ -n '' ]] + desc 'cleaned up old namespaces psmdb-operator' + set +o xtrace ++ mktemp ----------------------------------------------------------------------------------- cleaned up old namespaces psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin delete namespace psmdb-operator --ignore-not-found + awk '{print$1}' + xargs kubectl delete ns + local LAST_OUT=/tmp/tmp.QMUZcEiXbj ++ mktemp ++ mktemp + local LAST_ERR=/tmp/tmp.qLx9Mf9QGu + 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.OkvRtG4APs ++ mktemp + for attempt in $(seq 0 9) + set +e + kubectl get ns + local LAST_ERR=/tmp/tmp.XLTolEHhId + local exit_status=0 + local timeout=4 + local i + args=('delete' 'namespace' 'psmdb-operator' '--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[@]}" + [[ 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 delete namespace psmdb-operator --ignore-not-found + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.QMUZcEiXbj + cat /tmp/tmp.qLx9Mf9QGu + rm /tmp/tmp.QMUZcEiXbj /tmp/tmp.qLx9Mf9QGu + return 0 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.OkvRtG4APs + cat /tmp/tmp.XLTolEHhId + rm /tmp/tmp.OkvRtG4APs /tmp/tmp.XLTolEHhId + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.qqx1jFqHxc ++ mktemp + local LAST_ERR=/tmp/tmp.lZf6RrHwM4 + 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.qqx1jFqHxc + cat /tmp/tmp.lZf6RrHwM4 + rm /tmp/tmp.qqx1jFqHxc /tmp/tmp.lZf6RrHwM4 + 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.d87YYRsPwo ++ mktemp + local LAST_ERR=/tmp/tmp.3PlPhYvfTN + 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.d87YYRsPwo namespace/psmdb-operator created + cat /tmp/tmp.3PlPhYvfTN + rm /tmp/tmp.d87YYRsPwo /tmp/tmp.3PlPhYvfTN + return 0 + set_kube_ctx psmdb-operator + local namespace=psmdb-operator ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.lQlpSJAWLu +++ mktemp ++ local LAST_ERR=/tmp/tmp.8uBOnHCxiB ++ 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.lQlpSJAWLu ++ cat /tmp/tmp.8uBOnHCxiB ++ rm /tmp/tmp.lQlpSJAWLu /tmp/tmp.8uBOnHCxiB ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster3 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.SxKBn9VrM4 ++ mktemp + local LAST_ERR=/tmp/tmp.7ueLTNFbDR + 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-cluster3' '--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-cluster3 == \- ]] + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster3 =~ ^(-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-cluster3 --namespace=psmdb-operator + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.SxKBn9VrM4 Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster3" modified. + cat /tmp/tmp.7ueLTNFbDR + rm /tmp/tmp.SxKBn9VrM4 /tmp/tmp.7ueLTNFbDR + 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-sharded/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.IjviYIVDtP ++ mktemp + local LAST_ERR=/tmp/tmp.jB5ffw3BFx + 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.IjviYIVDtP 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.jB5ffw3BFx + rm /tmp/tmp.IjviYIVDtP /tmp/tmp.jB5ffw3BFx + 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.vU0a9TEgdW ++ mktemp + local LAST_ERR=/tmp/tmp.NPRgVCkMcg + 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.o2FLFEqknd + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.o2FLFEqknd + 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.o2FLFEqknd + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.vU0a9TEgdW 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.NPRgVCkMcg + rm /tmp/tmp.vU0a9TEgdW /tmp/tmp.NPRgVCkMcg /tmp/tmp.o2FLFEqknd + 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 - + kubectl_bin apply -n psmdb-operator -f - + arch_scheduling_enabled + [[ -n '' ]] + cat - ++ mktemp + local LAST_OUT=/tmp/tmp.VBrDD173Uw ++ mktemp + local LAST_ERR=/tmp/tmp.nwT99QyT9n + 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.oUXA6WBA4z + cat + return + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.oUXA6WBA4z + 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.oUXA6WBA4z + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.VBrDD173Uw deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.nwT99QyT9n + rm /tmp/tmp.VBrDD173Uw /tmp/tmp.nwT99QyT9n /tmp/tmp.oUXA6WBA4z + 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.NkzlhqtW09 +++ mktemp ++ local LAST_ERR=/tmp/tmp.EiSyc3gNrI ++ 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.NkzlhqtW09 ++ cat /tmp/tmp.EiSyc3gNrI ++ rm /tmp/tmp.NkzlhqtW09 /tmp/tmp.EiSyc3gNrI ++ return 0 + wait_operator_pod percona-server-mongodb-operator-b57dc4869-x4b2l + local pod=percona-server-mongodb-operator-b57dc4869-x4b2l + set +o xtrace waiting for pod/percona-server-mongodb-operator-b57dc4869-x4b2l 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.1wCSxs5fAi +++ mktemp ++ local LAST_ERR=/tmp/tmp.rFZ3cOmVnX ++ 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.1wCSxs5fAi ++ cat /tmp/tmp.rFZ3cOmVnX ++ rm /tmp/tmp.1wCSxs5fAi /tmp/tmp.rFZ3cOmVnX ++ return 0 + kubectl_bin logs -n psmdb-operator percona-server-mongodb-operator-b57dc4869-x4b2l ++ mktemp + local LAST_OUT=/tmp/tmp.URqjV2LoEl ++ mktemp + local LAST_ERR=/tmp/tmp.AOe5m1PDho + local exit_status=0 + local timeout=4 + local i + args=('logs' '-n' 'psmdb-operator' 'percona-server-mongodb-operator-b57dc4869-x4b2l') + 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-x4b2l == \- ]] + [[ percona-server-mongodb-operator-b57dc4869-x4b2l =~ ^(-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-x4b2l + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.URqjV2LoEl + cat /tmp/tmp.AOe5m1PDho + rm /tmp/tmp.URqjV2LoEl /tmp/tmp.AOe5m1PDho + return 0 2026-11-23T06:30:46.363Z INFO setup Manager starting up {"gitCommit": "27e0b796072fe59ec1fa78fca82dc7491ddb9891", "gitBranch": "PR-2715-27e0b7960", "buildTime": "", "goVersion": "go1.27.4", "os": "linux", "arch": "amd64"} + create_namespace demand-backup-sharded-11468 + local namespace=demand-backup-sharded-11468 + 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 ++ awk '{print $1}' ++ grep chaos-mesh + 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}' + xargs kubectl delete ns + [[ -n '' ]] + desc 'cleaned up old namespaces demand-backup-sharded-11468' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces demand-backup-sharded-11468 ----------------------------------------------------------------------------------- ++ mktemp + kubectl_bin delete namespace demand-backup-sharded-11468 --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.Xdw8GO0Wnv + local LAST_OUT=/tmp/tmp.xDa1nQRgKs ++ mktemp ++ mktemp + local LAST_ERR=/tmp/tmp.xvc89UYSKM + local exit_status=0 + local timeout=4 + local i + args=('delete' 'namespace' 'demand-backup-sharded-11468' '--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-sharded-11468 == \- ]] + [[ demand-backup-sharded-11468 =~ ^(-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 + local LAST_ERR=/tmp/tmp.VanqBmI9Kc + 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 ++ 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 demand-backup-sharded-11468 --ignore-not-found + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Xdw8GO0Wnv + cat /tmp/tmp.VanqBmI9Kc + rm /tmp/tmp.Xdw8GO0Wnv /tmp/tmp.VanqBmI9Kc + return 0 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.xDa1nQRgKs + cat /tmp/tmp.xvc89UYSKM + rm /tmp/tmp.xDa1nQRgKs /tmp/tmp.xvc89UYSKM + return 0 + kubectl_bin wait --for=delete namespace demand-backup-sharded-11468 ++ mktemp + local LAST_OUT=/tmp/tmp.Axgyp2QVGF ++ mktemp + local LAST_ERR=/tmp/tmp.lq8pb12CBC + local exit_status=0 + local timeout=4 + local i + args=('wait' '--for=delete' 'namespace' 'demand-backup-sharded-11468') + 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-sharded-11468 == \- ]] + [[ demand-backup-sharded-11468 =~ ^(-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-sharded-11468 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Axgyp2QVGF + cat /tmp/tmp.lq8pb12CBC + rm /tmp/tmp.Axgyp2QVGF /tmp/tmp.lq8pb12CBC + return 0 + desc 'create namespace demand-backup-sharded-11468' + set +o xtrace ----------------------------------------------------------------------------------- create namespace demand-backup-sharded-11468 ----------------------------------------------------------------------------------- + kubectl_bin create namespace demand-backup-sharded-11468 ++ mktemp + local LAST_OUT=/tmp/tmp.TfatPBYNk6 ++ mktemp + local LAST_ERR=/tmp/tmp.iTpFHfH20a + local exit_status=0 + local timeout=4 + local i + args=('create' 'namespace' 'demand-backup-sharded-11468') + 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-sharded-11468 == \- ]] + [[ demand-backup-sharded-11468 =~ ^(-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-sharded-11468 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.TfatPBYNk6 namespace/demand-backup-sharded-11468 created + cat /tmp/tmp.iTpFHfH20a + rm /tmp/tmp.TfatPBYNk6 /tmp/tmp.iTpFHfH20a + return 0 + set_kube_ctx demand-backup-sharded-11468 + local namespace=demand-backup-sharded-11468 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.fdn2vn63d7 +++ mktemp ++ local LAST_ERR=/tmp/tmp.mdilrUVn9T ++ 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.fdn2vn63d7 ++ cat /tmp/tmp.mdilrUVn9T ++ rm /tmp/tmp.fdn2vn63d7 /tmp/tmp.mdilrUVn9T ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster3 --namespace=demand-backup-sharded-11468 ++ mktemp + local LAST_OUT=/tmp/tmp.4CDHmTSFHn ++ mktemp + local LAST_ERR=/tmp/tmp.Bd07uJY97f + 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-cluster3' '--namespace=demand-backup-sharded-11468') + 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-cluster3 == \- ]] + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster3 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --namespace=demand-backup-sharded-11468 == \- ]] + [[ --namespace=demand-backup-sharded-11468 =~ ^(-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-cluster3 --namespace=demand-backup-sharded-11468 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.4CDHmTSFHn Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster3" modified. + cat /tmp/tmp.Bd07uJY97f + rm /tmp/tmp.4CDHmTSFHn /tmp/tmp.Bd07uJY97f + return 0 + deploy_s3_storage + local cert_secret= + local fullname=s3-storage + desc 'install SeaweedFS: s3-storage' + set +o xtrace ----------------------------------------------------------------------------------- install SeaweedFS: s3-storage ----------------------------------------------------------------------------------- + helm uninstall s3-storage + : + helm repo remove seaweedfs "seaweedfs" has been removed from your repositories + helm repo add seaweedfs https://seaweedfs.github.io/seaweedfs/helm "seaweedfs" has been added to your repositories + local endpoint=http://s3-storage-all-in-one:8333 + seaweedfs_args=('--version' '4.47.0' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/seaweedfs-values.yaml' '--set' 'allInOne.data.type=persistentVolumeClaim' '--set' 'allInOne.data.size=2G' '--set' 'fullnameOverride=s3-storage' '--set-string' 's3.credentials.admin.accessKey=some-access-key' '--set-string' 's3.credentials.admin.secretKey=some-secret-key' '--set-string' 'global.seaweedfs.serviceAccountName=s3-storage-sa') + local seaweedfs_args + arch_scheduling_enabled + [[ -n '' ]] + [[ -n '' ]] + retry 10 60 helm install s3-storage --version 4.47.0 -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/seaweedfs-values.yaml --set allInOne.data.type=persistentVolumeClaim --set allInOne.data.size=2G --set fullnameOverride=s3-storage --set-string s3.credentials.admin.accessKey=some-access-key --set-string s3.credentials.admin.secretKey=some-secret-key --set-string global.seaweedfs.serviceAccountName=s3-storage-sa seaweedfs/seaweedfs + local max=10 + local delay=60 + shift 2 + local n=1 + helm install s3-storage --version 4.47.0 -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/seaweedfs-values.yaml --set allInOne.data.type=persistentVolumeClaim --set allInOne.data.size=2G --set fullnameOverride=s3-storage --set-string s3.credentials.admin.accessKey=some-access-key --set-string s3.credentials.admin.secretKey=some-secret-key --set-string global.seaweedfs.serviceAccountName=s3-storage-sa seaweedfs/seaweedfs NAME: s3-storage LAST DEPLOYED: Mon Nov 23 06:31:25 2026 NAMESPACE: demand-backup-sharded-11468 STATUS: deployed REVISION: 1 TEST SUITE: None + kubectl_bin rollout status deployment/s3-storage-all-in-one --timeout=300s ++ mktemp + local LAST_OUT=/tmp/tmp.2LYNy0a4nK ++ mktemp + local LAST_ERR=/tmp/tmp.Oeko392kLq + local exit_status=0 + local timeout=4 + local i + args=('rollout' 'status' 'deployment/s3-storage-all-in-one' '--timeout=300s') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ rollout == \- ]] + [[ rollout =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ status == \- ]] + [[ status =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ deployment/s3-storage-all-in-one == \- ]] + [[ deployment/s3-storage-all-in-one =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --timeout=300s == \- ]] + [[ --timeout=300s =~ ^(-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 rollout status deployment/s3-storage-all-in-one --timeout=300s + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.2LYNy0a4nK Waiting for deployment "s3-storage-all-in-one" rollout to finish: 0 of 1 updated replicas are available... deployment "s3-storage-all-in-one" successfully rolled out + cat /tmp/tmp.Oeko392kLq + rm /tmp/tmp.2LYNy0a4nK /tmp/tmp.Oeko392kLq + return 0 + '[' -n psmdb-operator ']' + kubectl_bin create svc -n psmdb-operator externalname s3-storage-all-in-one --external-name=s3-storage-all-in-one.demand-backup-sharded-11468.svc.cluster.local --tcp=8333 --tcp=8443 service/s3-storage-all-in-one created + create_s3_bucket operator-testing http://s3-storage-all-in-one:8333 + local bucket=operator-testing + local endpoint=http://s3-storage-all-in-one:8333 + retry 12 10 aws_cli_s3 http://s3-storage-all-in-one:8333 s3 mb s3://operator-testing + local max=12 + local delay=10 + shift 2 + local n=1 + aws_cli_s3 http://s3-storage-all-in-one:8333 s3 mb s3://operator-testing + local endpoint=http://s3-storage-all-in-one:8333 + shift + kubectl_bin run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url http://s3-storage-all-in-one:8333 s3 mb s3://operator-testing ++ mktemp + local LAST_OUT=/tmp/tmp.MojaSuFzNW ++ mktemp + local LAST_ERR=/tmp/tmp.gzZXKJkRXZ + local exit_status=0 + local timeout=4 + local i + args=('run' '-i' '--rm' 'aws-cli' '--image=docker.io/amazon/aws-cli:2.34.60' '--restart=Never' '--env=AWS_ACCESS_KEY_ID=some-access-key' '--env=AWS_SECRET_ACCESS_KEY=some-secret-key' '--env=AWS_DEFAULT_REGION=us-east-1' '--' '--no-verify-ssl' '--endpoint-url' 'http://s3-storage-all-in-one:8333' 's3' 'mb' 's3://operator-testing') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ run == \- ]] + [[ run =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -i == \- ]] + [[ -i =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --rm == \- ]] + [[ --rm =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ aws-cli == \- ]] + [[ aws-cli =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --image=docker.io/amazon/aws-cli:2.34.60 == \- ]] + [[ --image=docker.io/amazon/aws-cli:2.34.60 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --restart=Never == \- ]] + [[ --restart=Never =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_ACCESS_KEY_ID=some-access-key == \- ]] + [[ --env=AWS_ACCESS_KEY_ID=some-access-key =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key == \- ]] + [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_DEFAULT_REGION=us-east-1 == \- ]] + [[ --env=AWS_DEFAULT_REGION=us-east-1 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --no-verify-ssl == \- ]] + [[ --no-verify-ssl =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --endpoint-url == \- ]] + [[ --endpoint-url =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ http://s3-storage-all-in-one:8333 == \- ]] + [[ http://s3-storage-all-in-one:8333 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3 == \- ]] + [[ s3 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ mb == \- ]] + [[ mb =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3://operator-testing == \- ]] + [[ s3://operator-testing =~ ^(-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 run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url http://s3-storage-all-in-one:8333 s3 mb s3://operator-testing + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.MojaSuFzNW make_bucket: operator-testing pod "aws-cli" deleted from demand-backup-sharded-11468 namespace + cat /tmp/tmp.gzZXKJkRXZ Warning: BCID failed open: BCID suppressed until 2026-11-23 08:52:04.203931393 +0000 UTC m=+10856.861397148 All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt. If you don't see a command prompt, try pressing enter. warning: couldn't attach to pod/aws-cli, falling back to streaming logs: Internal error occurred: unable to upgrade connection: container aws-cli not found in pod aws-cli_demand-backup-sharded-11468 + rm /tmp/tmp.MojaSuFzNW /tmp/tmp.gzZXKJkRXZ + return 0 + desc 'create first PSMDB cluster with custom port 27019' + set +o xtrace ----------------------------------------------------------------------------------- create first PSMDB cluster with custom port 27019 ----------------------------------------------------------------------------------- + cluster=some-name + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client.yml ++ mktemp + local LAST_OUT=/tmp/tmp.7yg3O1H1Wo ++ mktemp + local LAST_ERR=/tmp/tmp.DwkRVmLL4r + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/secrets.yml' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client.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/secrets.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/secrets.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/client.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client.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/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.7yg3O1H1Wo secret/some-users created deployment.apps/psmdb-client created + cat /tmp/tmp.DwkRVmLL4r + rm /tmp/tmp.7yg3O1H1Wo /tmp/tmp.DwkRVmLL4r + 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.xlUyGGbFlS ++ mktemp + local LAST_ERR=/tmp/tmp.uVfntqEr2I + 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.xlUyGGbFlS 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.uVfntqEr2I + rm /tmp/tmp.xlUyGGbFlS /tmp/tmp.uVfntqEr2I + return 0 + create_runtime_class + kubectl_bin delete runtimeclass container-rc --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.EuEdP428ea ++ mktemp + local LAST_ERR=/tmp/tmp.c8sWX4VzU3 + local exit_status=0 + local timeout=4 + local i + args=('delete' 'runtimeclass' 'container-rc' '--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[@]}" + [[ runtimeclass == \- ]] + [[ runtimeclass =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ container-rc == \- ]] + [[ container-rc =~ ^(-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 runtimeclass container-rc --ignore-not-found + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.EuEdP428ea + cat /tmp/tmp.c8sWX4VzU3 + rm /tmp/tmp.EuEdP428ea /tmp/tmp.c8sWX4VzU3 + return 0 + local handler=runc + desc 'Create RuntimeClass with handler runc' + set +o xtrace ----------------------------------------------------------------------------------- Create RuntimeClass with handler runc ----------------------------------------------------------------------------------- + yq eval '.handler = "runc"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/container-rc.yaml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.ArRyEdMSJ4 ++ mktemp + local LAST_ERR=/tmp/tmp.kr7vY8b5sN + 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.QVRSLjms9y + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.QVRSLjms9y + 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.QVRSLjms9y + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.ArRyEdMSJ4 runtimeclass.node.k8s.io/container-rc created + cat /tmp/tmp.kr7vY8b5sN + rm /tmp/tmp.ArRyEdMSJ4 /tmp/tmp.kr7vY8b5sN /tmp/tmp.QVRSLjms9y + return 0 + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/some-name-rs0.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/some-name-rs0.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/some-name-rs0.yml ++ mktemp + yq eval '(.spec | select(has("pmm"))).pmm.image = "docker.io/perconalab/pmm-client:3-dev-latest"' + yq eval '(.spec | select(.image == null)).image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3"' + [[ -n docker.io/perconalab/fluentbit:main-logcollector ]] + IMAGE_LOGCOLLECTOR=docker.io/perconalab/fluentbit:main-logcollector + yq eval '(.spec | select(has("logcollector"))).logcollector.image = strenv(IMAGE_LOGCOLLECTOR)' + local LAST_OUT=/tmp/tmp.mk8O2arGam + yq eval '(.spec | select(has("backup"))).backup.image = "docker.io/perconalab/percona-server-mongodb-operator:main-backup"' ++ mktemp + yq eval '(.spec | select(has("initImage"))).initImage = "docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960"' + local LAST_ERR=/tmp/tmp.CWLSRslaIr + 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)$ ]] + yq eval '(.spec | select(has("search"))).search.image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongot"' + /usr/sbin/sed -e s/NAME_SPACE/demand-backup-sharded-11468/g ++ mktemp + yq eval '.spec.upgradeOptions.apply="Never"' + stdin_manifest=/tmp/tmp.FcHylQmWLj + cat + add_arch_to_psmdb - + arch_scheduling_enabled + [[ -n '' ]] + cat - + return + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.FcHylQmWLj + 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.FcHylQmWLj + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.mk8O2arGam perconaservermongodb.psmdb.percona.com/some-name created + cat /tmp/tmp.CWLSRslaIr + rm /tmp/tmp.mk8O2arGam /tmp/tmp.CWLSRslaIr /tmp/tmp.FcHylQmWLj + return 0 + desc 'check if all 3 Pods started' + set +o xtrace ----------------------------------------------------------------------------------- check if all 3 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.ZHSwMGUiIk +++ mktemp ++ local LAST_ERR=/tmp/tmp.VVHw4R2wMv ++ 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.ZHSwMGUiIk ++ cat /tmp/tmp.VVHw4R2wMv ++ rm /tmp/tmp.ZHSwMGUiIk /tmp/tmp.VVHw4R2wMv ++ 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.DJbp5TnU39 +++ mktemp ++ local LAST_ERR=/tmp/tmp.RUsGbznCwh ++ 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.DJbp5TnU39 ++ cat /tmp/tmp.RUsGbznCwh ++ rm /tmp/tmp.DJbp5TnU39 /tmp/tmp.RUsGbznCwh ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.cu9MMAsFRT +++ mktemp ++ local LAST_ERR=/tmp/tmp.86GlPmbBAP ++ 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.cu9MMAsFRT ++ cat /tmp/tmp.86GlPmbBAP ++ rm /tmp/tmp.cu9MMAsFRT /tmp/tmp.86GlPmbBAP ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster some-name to be ready...................................................... + wait_for_running some-name-cfg 3 false + local name=some-name-cfg + let last_pod=2 + local check_cluster_readiness=false + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=cfg + local cluster_name=some-name ++ seq 0 2 + for i in $(seq 0 $last_pod) + [[ 0 -eq 2 ]] + wait_pod some-name-cfg-0 + local pod=some-name-cfg-0 + set +o xtrace waiting for pod/some-name-cfg-0 to be ready.OK + for i in $(seq 0 $last_pod) + [[ 1 -eq 2 ]] + wait_pod some-name-cfg-1 + local pod=some-name-cfg-1 + set +o xtrace waiting for pod/some-name-cfg-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=="cfg")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.IxJbMdkhul +++ mktemp ++ local LAST_ERR=/tmp/tmp.ohNd8Meuxy ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.spec.replsets[?(@.name=="cfg")].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=="cfg")].arbiter.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="cfg")].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=="cfg")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.IxJbMdkhul ++ cat /tmp/tmp.ohNd8Meuxy ++ rm /tmp/tmp.IxJbMdkhul /tmp/tmp.ohNd8Meuxy ++ return 0 + [[ '' == true ]] + wait_pod some-name-cfg-2 + local pod=some-name-cfg-2 + set +o xtrace waiting for pod/some-name-cfg-2 to be ready.OK ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.OpoXtINqZw +++ mktemp ++ local LAST_ERR=/tmp/tmp.TnUcOZAlrp ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.spec.replsets[?(@.name=="cfg")].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=="cfg")].nonvoting.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="cfg")].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=="cfg")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.OpoXtINqZw ++ cat /tmp/tmp.TnUcOZAlrp ++ rm /tmp/tmp.OpoXtINqZw /tmp/tmp.TnUcOZAlrp ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.lPO6oKfuB5 +++ mktemp ++ local LAST_ERR=/tmp/tmp.sXHjfIne1C ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.spec.replsets[?(@.name=="cfg")].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=="cfg")].hidden.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="cfg")].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=="cfg")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.lPO6oKfuB5 ++ cat /tmp/tmp.sXHjfIne1C ++ rm /tmp/tmp.lPO6oKfuB5 /tmp/tmp.sXHjfIne1C ++ return 0 + [[ '' == true ]] + sleep 10 + [[ false == true ]] + wait_for_running some-name-mongos 3 + local name=some-name-mongos + let last_pod=2 + local check_cluster_readiness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=mongos + local cluster_name=some-name ++ seq 0 2 + for i in $(seq 0 $last_pod) + [[ 0 -eq 2 ]] + wait_pod some-name-mongos-0 + local pod=some-name-mongos-0 + set +o xtrace waiting for pod/some-name-mongos-0 to be ready.OK + for i in $(seq 0 $last_pod) + [[ 1 -eq 2 ]] + wait_pod some-name-mongos-1 + local pod=some-name-mongos-1 + set +o xtrace waiting for pod/some-name-mongos-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=="mongos")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.LhDpYyeW8y +++ mktemp ++ local LAST_ERR=/tmp/tmp.BviQ5KxFPv ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.spec.replsets[?(@.name=="mongos")].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=="mongos")].arbiter.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="mongos")].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=="mongos")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.LhDpYyeW8y ++ cat /tmp/tmp.BviQ5KxFPv ++ rm /tmp/tmp.LhDpYyeW8y /tmp/tmp.BviQ5KxFPv ++ return 0 + [[ '' == true ]] + wait_pod some-name-mongos-2 + local pod=some-name-mongos-2 + set +o xtrace waiting for pod/some-name-mongos-2 to be ready.OK ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.sm7mM4kxqR +++ mktemp ++ local LAST_ERR=/tmp/tmp.Bo718eTDcE ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.spec.replsets[?(@.name=="mongos")].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=="mongos")].nonvoting.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="mongos")].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=="mongos")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.sm7mM4kxqR ++ cat /tmp/tmp.Bo718eTDcE ++ rm /tmp/tmp.sm7mM4kxqR /tmp/tmp.Bo718eTDcE ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.RvL9amT73H +++ mktemp ++ local LAST_ERR=/tmp/tmp.ar0KYO4IWW ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.spec.replsets[?(@.name=="mongos")].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=="mongos")].hidden.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="mongos")].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=="mongos")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.RvL9amT73H ++ cat /tmp/tmp.ar0KYO4IWW ++ rm /tmp/tmp.RvL9amT73H /tmp/tmp.ar0KYO4IWW ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster some-name to be ready + sleep 10 + desc 'check if service and statefulset created with expected config' + set +o xtrace ----------------------------------------------------------------------------------- check if service and statefulset created with expected config ----------------------------------------------------------------------------------- + compare_kubectl statefulset/some-name-rs0 + local resource=statefulset/some-name-rs0 + local postfix= + local skip_generation_check= + local expected_result=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-rs0.yml + local new_result=/tmp/tmp.EmeHjOpCG1/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-sharded-11468", "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.MTj5Lxj8Es ++ mktemp + local LAST_ERR=/tmp/tmp.bzibOpoPzK + 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.MTj5Lxj8Es + cat /tmp/tmp.bzibOpoPzK + rm /tmp/tmp.MTj5Lxj8Es /tmp/tmp.bzibOpoPzK + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.EmeHjOpCG1/statefulset_some-name-rs0.yml + arch_scheduling_enabled + [[ -n '' ]] + version_gt 1.22 ++ bc -l ++ echo '1.34 >= 1.22' + '[' 1 -eq 1 ']' + return 0 + yq -i eval 'del(.spec.internalTrafficPolicy)' /tmp/tmp.EmeHjOpCG1/statefulset_some-name-rs0.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.EmeHjOpCG1/statefulset_some-name-rs0.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-rs0.yml == */cronjob* ]] + '[' -n '' ']' + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-rs0.yml /tmp/tmp.EmeHjOpCG1/statefulset_some-name-rs0.yml + log 'compare_kubectl: statefulset/some-name-rs0 OK' + set +o xtrace [2026-11-23T06:36:08+0000] compare_kubectl: statefulset/some-name-rs0 OK + compare_kubectl statefulset/some-name-rs1 + local resource=statefulset/some-name-rs1 + local postfix= + local skip_generation_check= + local expected_result=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-rs1.yml + local new_result=/tmp/tmp.EmeHjOpCG1/statefulset_some-name-rs1.yml + [[ -n '' ]] + kubectl_bin get -o yaml statefulset/some-name-rs1 + 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-sharded-11468", "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.50peCgjM7w ++ mktemp + local LAST_ERR=/tmp/tmp.6PIZDpo3A4 + local exit_status=0 + local timeout=4 + local i + args=('get' '-o' 'yaml' 'statefulset/some-name-rs1') + 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-rs1 == \- ]] + [[ statefulset/some-name-rs1 =~ ^(-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-rs1 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.50peCgjM7w + cat /tmp/tmp.6PIZDpo3A4 + rm /tmp/tmp.50peCgjM7w /tmp/tmp.6PIZDpo3A4 + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.EmeHjOpCG1/statefulset_some-name-rs1.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.EmeHjOpCG1/statefulset_some-name-rs1.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.EmeHjOpCG1/statefulset_some-name-rs1.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-rs1.yml == */cronjob* ]] + '[' -n '' ']' + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-rs1.yml /tmp/tmp.EmeHjOpCG1/statefulset_some-name-rs1.yml + log 'compare_kubectl: statefulset/some-name-rs1 OK' + set +o xtrace [2026-11-23T06:36:09+0000] compare_kubectl: statefulset/some-name-rs1 OK + compare_kubectl statefulset/some-name-rs2 + local resource=statefulset/some-name-rs2 + local postfix= + local skip_generation_check= + local expected_result=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-rs2.yml + local new_result=/tmp/tmp.EmeHjOpCG1/statefulset_some-name-rs2.yml + [[ -n '' ]] + kubectl_bin get -o yaml statefulset/some-name-rs2 + 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-sharded-11468", "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.LWcAxlOgI2 ++ mktemp + local LAST_ERR=/tmp/tmp.AhWS6tAyQS + local exit_status=0 + local timeout=4 + local i + args=('get' '-o' 'yaml' 'statefulset/some-name-rs2') + 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-rs2 == \- ]] + [[ statefulset/some-name-rs2 =~ ^(-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-rs2 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.LWcAxlOgI2 + cat /tmp/tmp.AhWS6tAyQS + rm /tmp/tmp.LWcAxlOgI2 /tmp/tmp.AhWS6tAyQS + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.EmeHjOpCG1/statefulset_some-name-rs2.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.EmeHjOpCG1/statefulset_some-name-rs2.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.EmeHjOpCG1/statefulset_some-name-rs2.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-rs2.yml == */cronjob* ]] + '[' -n '' ']' + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-rs2.yml /tmp/tmp.EmeHjOpCG1/statefulset_some-name-rs2.yml + log 'compare_kubectl: statefulset/some-name-rs2 OK' + set +o xtrace [2026-11-23T06:36:11+0000] compare_kubectl: statefulset/some-name-rs2 OK + compare_kubectl statefulset/some-name-cfg + local resource=statefulset/some-name-cfg + local postfix= + local skip_generation_check= + local expected_result=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-cfg.yml + local new_result=/tmp/tmp.EmeHjOpCG1/statefulset_some-name-cfg.yml + [[ -n '' ]] + kubectl_bin get -o yaml statefulset/some-name-cfg + 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-sharded-11468", "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.V0oyUChUTE ++ mktemp + local LAST_ERR=/tmp/tmp.XuMbtGLBXB + local exit_status=0 + local timeout=4 + local i + args=('get' '-o' 'yaml' 'statefulset/some-name-cfg') + 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-cfg == \- ]] + [[ statefulset/some-name-cfg =~ ^(-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-cfg + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.V0oyUChUTE + cat /tmp/tmp.XuMbtGLBXB + rm /tmp/tmp.V0oyUChUTE /tmp/tmp.XuMbtGLBXB + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.EmeHjOpCG1/statefulset_some-name-cfg.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.EmeHjOpCG1/statefulset_some-name-cfg.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.EmeHjOpCG1/statefulset_some-name-cfg.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-cfg.yml == */cronjob* ]] + '[' -n '' ']' + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-cfg.yml /tmp/tmp.EmeHjOpCG1/statefulset_some-name-cfg.yml + log 'compare_kubectl: statefulset/some-name-cfg OK' + set +o xtrace [2026-11-23T06:36:12+0000] compare_kubectl: statefulset/some-name-cfg OK + compare_kubectl statefulset/some-name-mongos '' + local resource=statefulset/some-name-mongos + local postfix= + local skip_generation_check= + local expected_result=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-mongos.yml + local new_result=/tmp/tmp.EmeHjOpCG1/statefulset_some-name-mongos.yml + [[ -n '' ]] + kubectl_bin get -o yaml statefulset/some-name-mongos + 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-sharded-11468", "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.Ix4uMi0nZo ++ mktemp + local LAST_ERR=/tmp/tmp.u4lyMJ5hsE + local exit_status=0 + local timeout=4 + local i + args=('get' '-o' 'yaml' 'statefulset/some-name-mongos') + 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-mongos == \- ]] + [[ statefulset/some-name-mongos =~ ^(-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-mongos + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Ix4uMi0nZo + cat /tmp/tmp.u4lyMJ5hsE + rm /tmp/tmp.Ix4uMi0nZo /tmp/tmp.u4lyMJ5hsE + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.EmeHjOpCG1/statefulset_some-name-mongos.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.EmeHjOpCG1/statefulset_some-name-mongos.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.EmeHjOpCG1/statefulset_some-name-mongos.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-mongos.yml == */cronjob* ]] + '[' -n '' ']' + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-mongos.yml /tmp/tmp.EmeHjOpCG1/statefulset_some-name-mongos.yml + log 'compare_kubectl: statefulset/some-name-mongos OK' + set +o xtrace [2026-11-23T06:36:13+0000] compare_kubectl: statefulset/some-name-mongos OK + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/mongos-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.N013h2RzBF ++ mktemp + local LAST_ERR=/tmp/tmp.dLoGoMXm4W + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/mongos-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/demand-backup-sharded/conf/mongos-secret.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/mongos-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/demand-backup-sharded/conf/mongos-secret.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.N013h2RzBF secret/some-name-mongos created + cat /tmp/tmp.dLoGoMXm4W + rm /tmp/tmp.N013h2RzBF /tmp/tmp.dLoGoMXm4W + return 0 + sleep 10 + wait_for_running some-name-mongos 3 + local name=some-name-mongos + let last_pod=2 + local check_cluster_readiness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=mongos + local cluster_name=some-name ++ seq 0 2 + for i in $(seq 0 $last_pod) + [[ 0 -eq 2 ]] + wait_pod some-name-mongos-0 + local pod=some-name-mongos-0 + set +o xtrace waiting for pod/some-name-mongos-0 to be ready.OK + for i in $(seq 0 $last_pod) + [[ 1 -eq 2 ]] + wait_pod some-name-mongos-1 + local pod=some-name-mongos-1 + set +o xtrace waiting for pod/some-name-mongos-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=="mongos")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.RenAka0GEO +++ mktemp ++ local LAST_ERR=/tmp/tmp.0YEMxtU2ve ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.spec.replsets[?(@.name=="mongos")].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=="mongos")].arbiter.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="mongos")].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=="mongos")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.RenAka0GEO ++ cat /tmp/tmp.0YEMxtU2ve ++ rm /tmp/tmp.RenAka0GEO /tmp/tmp.0YEMxtU2ve ++ return 0 + [[ '' == true ]] + wait_pod some-name-mongos-2 + local pod=some-name-mongos-2 + set +o xtrace waiting for pod/some-name-mongos-2 to be ready.OK ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.khFARW5gaj +++ mktemp ++ local LAST_ERR=/tmp/tmp.yu7ZneNSxv ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.spec.replsets[?(@.name=="mongos")].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=="mongos")].nonvoting.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="mongos")].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=="mongos")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.khFARW5gaj ++ cat /tmp/tmp.yu7ZneNSxv ++ rm /tmp/tmp.khFARW5gaj /tmp/tmp.yu7ZneNSxv ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.5PJY4pcBLZ +++ mktemp ++ local LAST_ERR=/tmp/tmp.FEfN51etLU ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.spec.replsets[?(@.name=="mongos")].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=="mongos")].hidden.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="mongos")].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=="mongos")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.5PJY4pcBLZ ++ cat /tmp/tmp.FEfN51etLU ++ rm /tmp/tmp.5PJY4pcBLZ /tmp/tmp.FEfN51etLU ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster some-name to be ready..................................................................................................... + compare_kubectl statefulset/some-name-mongos -secret + local resource=statefulset/some-name-mongos + local postfix=-secret + local skip_generation_check= + local expected_result=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-mongos-secret.yml + local new_result=/tmp/tmp.EmeHjOpCG1/statefulset_some-name-mongos.yml + [[ -n '' ]] + kubectl_bin get -o yaml statefulset/some-name-mongos + 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-sharded-11468", "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.4eEqsptZdz ++ mktemp + local LAST_ERR=/tmp/tmp.bcs5tywopk + local exit_status=0 + local timeout=4 + local i + args=('get' '-o' 'yaml' 'statefulset/some-name-mongos') + 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-mongos == \- ]] + [[ statefulset/some-name-mongos =~ ^(-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-mongos + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.4eEqsptZdz + cat /tmp/tmp.bcs5tywopk + rm /tmp/tmp.4eEqsptZdz /tmp/tmp.bcs5tywopk + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.EmeHjOpCG1/statefulset_some-name-mongos.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.EmeHjOpCG1/statefulset_some-name-mongos.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.EmeHjOpCG1/statefulset_some-name-mongos.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-mongos-secret.yml == */cronjob* ]] + '[' -n '' ']' + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/statefulset_some-name-mongos-secret.yml /tmp/tmp.EmeHjOpCG1/statefulset_some-name-mongos.yml + log 'compare_kubectl: statefulset/some-name-mongos OK' + set +o xtrace [2026-11-23T06:40:14+0000] compare_kubectl: statefulset/some-name-mongos OK + desc 'checking hookscripts' + set +o xtrace ----------------------------------------------------------------------------------- checking hookscripts ----------------------------------------------------------------------------------- + kubectl_bin logs some-name-rs0-0 backup-agent ++ mktemp + grep -q 'Backup Hookscript started' + local LAST_OUT=/tmp/tmp.zhFnaktImi ++ mktemp + local LAST_ERR=/tmp/tmp.Aox3Wsxdn2 + local exit_status=0 + local timeout=4 + local i + args=('logs' 'some-name-rs0-0' 'backup-agent') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ logs == \- ]] + [[ logs =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-rs0-0 == \- ]] + [[ some-name-rs0-0 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ backup-agent == \- ]] + [[ backup-agent =~ ^(-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 some-name-rs0-0 backup-agent + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.zhFnaktImi + cat /tmp/tmp.Aox3Wsxdn2 + rm /tmp/tmp.zhFnaktImi /tmp/tmp.Aox3Wsxdn2 + return 0 + kubectl_bin logs some-name-rs0-0 + grep -q 'RS0 Hookscript started' ++ mktemp + local LAST_OUT=/tmp/tmp.CG2zVS7vo0 ++ mktemp + local LAST_ERR=/tmp/tmp.7lbP6kSjbt + local exit_status=0 + local timeout=4 + local i + args=('logs' 'some-name-rs0-0') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ logs == \- ]] + [[ logs =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-rs0-0 == \- ]] + [[ some-name-rs0-0 =~ ^(-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 some-name-rs0-0 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.CG2zVS7vo0 + cat /tmp/tmp.7lbP6kSjbt Defaulted container "mongod" out of: mongod, backup-agent, mongo-init (init) + rm /tmp/tmp.CG2zVS7vo0 /tmp/tmp.7lbP6kSjbt + return 0 + kubectl_bin logs some-name-rs1-0 backup-agent + grep -q 'Backup Hookscript started' ++ mktemp + local LAST_OUT=/tmp/tmp.w4pNgIUoE0 ++ mktemp + local LAST_ERR=/tmp/tmp.KeMCt0mKI1 + local exit_status=0 + local timeout=4 + local i + args=('logs' 'some-name-rs1-0' 'backup-agent') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ logs == \- ]] + [[ logs =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-rs1-0 == \- ]] + [[ some-name-rs1-0 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ backup-agent == \- ]] + [[ backup-agent =~ ^(-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 some-name-rs1-0 backup-agent + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.w4pNgIUoE0 + cat /tmp/tmp.KeMCt0mKI1 + rm /tmp/tmp.w4pNgIUoE0 /tmp/tmp.KeMCt0mKI1 + return 0 + kubectl_bin logs some-name-rs1-0 + grep -q 'RS1 Hookscript started' ++ mktemp + local LAST_OUT=/tmp/tmp.fwzStzdcOu ++ mktemp + local LAST_ERR=/tmp/tmp.yBUa5OMcj3 + local exit_status=0 + local timeout=4 + local i + args=('logs' 'some-name-rs1-0') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ logs == \- ]] + [[ logs =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-rs1-0 == \- ]] + [[ some-name-rs1-0 =~ ^(-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 some-name-rs1-0 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.fwzStzdcOu + cat /tmp/tmp.yBUa5OMcj3 Defaulted container "mongod" out of: mongod, backup-agent, mongo-init (init) + rm /tmp/tmp.fwzStzdcOu /tmp/tmp.yBUa5OMcj3 + return 0 + kubectl_bin logs some-name-rs2-0 backup-agent + grep -q 'Backup Hookscript started' ++ mktemp + local LAST_OUT=/tmp/tmp.hO8ZEItVNQ ++ mktemp + local LAST_ERR=/tmp/tmp.76wGl3ieYn + local exit_status=0 + local timeout=4 + local i + args=('logs' 'some-name-rs2-0' 'backup-agent') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ logs == \- ]] + [[ logs =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-rs2-0 == \- ]] + [[ some-name-rs2-0 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ backup-agent == \- ]] + [[ backup-agent =~ ^(-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 some-name-rs2-0 backup-agent + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.hO8ZEItVNQ + cat /tmp/tmp.76wGl3ieYn + rm /tmp/tmp.hO8ZEItVNQ /tmp/tmp.76wGl3ieYn + return 0 + kubectl_bin logs some-name-rs2-0 + grep -q 'RS2 Hookscript started' ++ mktemp + local LAST_OUT=/tmp/tmp.mMibwT8vj7 ++ mktemp + local LAST_ERR=/tmp/tmp.1SiVQZmoUu + local exit_status=0 + local timeout=4 + local i + args=('logs' 'some-name-rs2-0') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ logs == \- ]] + [[ logs =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-rs2-0 == \- ]] + [[ some-name-rs2-0 =~ ^(-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 some-name-rs2-0 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.mMibwT8vj7 + cat /tmp/tmp.1SiVQZmoUu Defaulted container "mongod" out of: mongod, rs-sidecar-1, backup-agent, mongo-init (init) + rm /tmp/tmp.mMibwT8vj7 /tmp/tmp.1SiVQZmoUu + return 0 + kubectl_bin logs some-name-cfg-0 backup-agent + grep -q 'Backup Hookscript started' ++ mktemp + local LAST_OUT=/tmp/tmp.hfWfcXuI4D ++ mktemp + local LAST_ERR=/tmp/tmp.J5Ga8fTK3L + local exit_status=0 + local timeout=4 + local i + args=('logs' 'some-name-cfg-0' 'backup-agent') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ logs == \- ]] + [[ logs =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-cfg-0 == \- ]] + [[ some-name-cfg-0 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ backup-agent == \- ]] + [[ backup-agent =~ ^(-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 some-name-cfg-0 backup-agent + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.hfWfcXuI4D + cat /tmp/tmp.J5Ga8fTK3L + rm /tmp/tmp.hfWfcXuI4D /tmp/tmp.J5Ga8fTK3L + return 0 + kubectl_bin logs some-name-cfg-0 + grep -q 'CFG Hookscript started' ++ mktemp + local LAST_OUT=/tmp/tmp.l9YBl038HR ++ mktemp + local LAST_ERR=/tmp/tmp.Rmi7Cysach + local exit_status=0 + local timeout=4 + local i + args=('logs' 'some-name-cfg-0') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ logs == \- ]] + [[ logs =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-cfg-0 == \- ]] + [[ some-name-cfg-0 =~ ^(-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 some-name-cfg-0 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.l9YBl038HR + cat /tmp/tmp.Rmi7Cysach Defaulted container "mongod" out of: mongod, cfg-sidecar-1, backup-agent, mongo-init (init) + rm /tmp/tmp.l9YBl038HR /tmp/tmp.Rmi7Cysach + return 0 + kubectl_bin logs some-name-mongos-0 + grep -q 'Mongos Hookscript started' ++ mktemp + local LAST_OUT=/tmp/tmp.ZkXDkoG94B ++ mktemp + local LAST_ERR=/tmp/tmp.s5bCK6CSC3 + local exit_status=0 + local timeout=4 + local i + args=('logs' 'some-name-mongos-0') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ logs == \- ]] + [[ logs =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-mongos-0 == \- ]] + [[ some-name-mongos-0 =~ ^(-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 some-name-mongos-0 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.ZkXDkoG94B + cat /tmp/tmp.s5bCK6CSC3 Defaulted container "mongos" out of: mongos, mongos-sidecar-1, mongo-init (init) + rm /tmp/tmp.ZkXDkoG94B /tmp/tmp.s5bCK6CSC3 + return 0 + desc 'write data, read from all' + set +o xtrace ----------------------------------------------------------------------------------- write data, read from all ----------------------------------------------------------------------------------- + run_mongos 'db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"},{db:"myApp1",role:"readWrite"},{db:"myApp2",role:"readWrite"}]})' userAdmin:userAdmin123456@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"},{db:"myApp1",role:"readWrite"},{db:"myApp2",role:"readWrite"}]})' + local uri=userAdmin:userAdmin123456@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.T8fEUImCXH +++ mktemp ++ local LAST_ERR=/tmp/tmp.IGU6ZgZOAX ++ 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.T8fEUImCXH ++ cat /tmp/tmp.IGU6ZgZOAX ++ rm /tmp/tmp.T8fEUImCXH /tmp/tmp.IGU6ZgZOAX ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"},{db:"myApp1",role:"readWrite"},{db:"myApp2",role:"readWrite"}]})\n'\'' | mongo mongodb://userAdmin:userAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.ZeXxafnTy7 ++ mktemp + local LAST_ERR=/tmp/tmp.fViAwfMFql + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"},{db:"myApp1",role:"readWrite"},{db:"myApp2",role:"readWrite"}]})\n'\'' | mongo mongodb://userAdmin:userAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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"},{db:"myApp1",role:"readWrite"},{db:"myApp2",role:"readWrite"}]})\n' | mongo mongodb://userAdmin:userAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"},{db:"myApp1",role:"readWrite"},{db:"myApp2",role:"readWrite"}]})\n' | mongo mongodb://userAdmin:userAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"},{db:"myApp1",role:"readWrite"},{db:"myApp2",role:"readWrite"}]})\n'\'' | mongo mongodb://userAdmin:userAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.ZeXxafnTy7 Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("e836718b-a862-4fc4-816c-17a2c670d0a8") } 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" }, { "db" : "myApp1", "role" : "readWrite" }, { "db" : "myApp2", "role" : "readWrite" } ] } bye + cat /tmp/tmp.fViAwfMFql + rm /tmp/tmp.ZeXxafnTy7 /tmp/tmp.fViAwfMFql + return 0 + run_mongos 'sh.enableSharding("myApp","rs0")' clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=sh.enableSharding("myApp","rs0")' + local uri=clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.8QSm0BIPhR +++ mktemp ++ local LAST_ERR=/tmp/tmp.l3TitHeB18 ++ 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.8QSm0BIPhR ++ cat /tmp/tmp.l3TitHeB18 ++ rm /tmp/tmp.8QSm0BIPhR /tmp/tmp.l3TitHeB18 ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''sh.enableSharding("myApp","rs0")\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.ejQByzaYCN ++ mktemp + local LAST_ERR=/tmp/tmp.KnAJJRsS5O + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''sh.enableSharding("myApp","rs0")\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 'sh.enableSharding("myApp","rs0")\n' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'sh.enableSharding("myApp","rs0")\n' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''sh.enableSharding("myApp","rs0")\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.ejQByzaYCN Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("27914ae3-535f-4330-a89f-595720af3300") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match { "ok" : 1, "$clusterTime" : { "clusterTime" : Timestamp(1795416034, 19), "signature" : { "hash" : BinData(0,"YOYeHxFwk13mIecZWiKgbCNDmHo="), "keyId" : NumberLong("7711251280433250322") } }, "operationTime" : Timestamp(1795416034, 19) } bye + cat /tmp/tmp.KnAJJRsS5O + rm /tmp/tmp.ejQByzaYCN /tmp/tmp.KnAJJRsS5O + return 0 + run_mongos 'sh.enableSharding("myApp1","rs1")' clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=sh.enableSharding("myApp1","rs1")' + local uri=clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ awk -F: '{print $2}' ++ echo .svc.cluster.local + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.fOAsG0nilg +++ mktemp ++ local LAST_ERR=/tmp/tmp.xCHnH593Ab ++ 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.fOAsG0nilg ++ cat /tmp/tmp.xCHnH593Ab ++ rm /tmp/tmp.fOAsG0nilg /tmp/tmp.xCHnH593Ab ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''sh.enableSharding("myApp1","rs1")\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.uO57qMcDuI ++ mktemp + local LAST_ERR=/tmp/tmp.WjgQjuWt0g + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''sh.enableSharding("myApp1","rs1")\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 'sh.enableSharding("myApp1","rs1")\n' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'sh.enableSharding("myApp1","rs1")\n' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''sh.enableSharding("myApp1","rs1")\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.uO57qMcDuI Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("8819fd90-342c-4331-9e92-5ff33c6769cb") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match { "ok" : 1, "$clusterTime" : { "clusterTime" : Timestamp(1795416036, 27), "signature" : { "hash" : BinData(0,"/bhoZGiKe55NLlnpjGr7Pntwtlk="), "keyId" : NumberLong("7711251280433250322") } }, "operationTime" : Timestamp(1795416036, 27) } bye + cat /tmp/tmp.WjgQjuWt0g + rm /tmp/tmp.uO57qMcDuI /tmp/tmp.WjgQjuWt0g + return 0 + run_mongos 'sh.enableSharding("myApp2","rs2")' clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=sh.enableSharding("myApp2","rs2")' + local uri=clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ZJ2BUTIIrx +++ mktemp ++ local LAST_ERR=/tmp/tmp.dkdWKyBRFi ++ 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.ZJ2BUTIIrx ++ cat /tmp/tmp.dkdWKyBRFi ++ rm /tmp/tmp.ZJ2BUTIIrx /tmp/tmp.dkdWKyBRFi ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''sh.enableSharding("myApp2","rs2")\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.bUsFjCxcEY ++ mktemp + local LAST_ERR=/tmp/tmp.uCSX7sSFxT + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''sh.enableSharding("myApp2","rs2")\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 'sh.enableSharding("myApp2","rs2")\n' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'sh.enableSharding("myApp2","rs2")\n' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''sh.enableSharding("myApp2","rs2")\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.bUsFjCxcEY Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("8cbcafb6-0030-4dc1-a0c1-ec6bb670f038") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match { "ok" : 1, "$clusterTime" : { "clusterTime" : Timestamp(1795416039, 21), "signature" : { "hash" : BinData(0,"jiNPO20n7yJrIv0F60rHlb/XtkM="), "keyId" : NumberLong("7711251280433250322") } }, "operationTime" : Timestamp(1795416039, 21) } bye + cat /tmp/tmp.uCSX7sSFxT + rm /tmp/tmp.bUsFjCxcEY /tmp/tmp.uCSX7sSFxT + return 0 + insert_data_mongos 100500 myApp '' 27019 + local data=100500 + local db_name=myApp + local flags= + local port=27019 + run_mongos 'use myApp\n db.test.insert({ x: 100500 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp\n db.test.insert({ x: 100500 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.vQbyhAxwf8 +++ mktemp ++ local LAST_ERR=/tmp/tmp.LbDJK4u1fA ++ 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.vQbyhAxwf8 ++ cat /tmp/tmp.LbDJK4u1fA ++ rm /tmp/tmp.vQbyhAxwf8 /tmp/tmp.LbDJK4u1fA ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.TmiwrBTC4k ++ mktemp + local LAST_ERR=/tmp/tmp.tkGEj1v4ff + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.insert({ x: 100500 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.TmiwrBTC4k Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("53bb0460-f1d7-4e34-82c6-5e7c39809319") } 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.tkGEj1v4ff + rm /tmp/tmp.TmiwrBTC4k /tmp/tmp.tkGEj1v4ff + return 0 + insert_data_mongos 100500 myApp1 '' 27019 + local data=100500 + local db_name=myApp1 + local flags= + local port=27019 + run_mongos 'use myApp1\n db.test.insert({ x: 100500 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp1\n db.test.insert({ x: 100500 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ awk -F: '{print $2}' ++ echo .svc.cluster.local + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.t7VfT0O4Ag +++ mktemp ++ local LAST_ERR=/tmp/tmp.HUg4MHgoJX ++ 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.t7VfT0O4Ag ++ cat /tmp/tmp.HUg4MHgoJX ++ rm /tmp/tmp.t7VfT0O4Ag /tmp/tmp.HUg4MHgoJX ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.f0BeY1ywkD ++ mktemp + local LAST_ERR=/tmp/tmp.4T9QSq3viR + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp1\n db.test.insert({ x: 100500 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp1\n db.test.insert({ x: 100500 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.f0BeY1ywkD Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("53e32662-e145-4c9a-a50b-02dc984124c3") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match switched to db myApp1 WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.4T9QSq3viR + rm /tmp/tmp.f0BeY1ywkD /tmp/tmp.4T9QSq3viR + return 0 + insert_data_mongos 100500 myApp2 '' 27019 + local data=100500 + local db_name=myApp2 + local flags= + local port=27019 + run_mongos 'use myApp2\n db.test.insert({ x: 100500 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp2\n db.test.insert({ x: 100500 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.uZaPOZWFxY +++ mktemp ++ local LAST_ERR=/tmp/tmp.uQOXLXPtCT ++ 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.uZaPOZWFxY ++ cat /tmp/tmp.uQOXLXPtCT ++ rm /tmp/tmp.uZaPOZWFxY /tmp/tmp.uQOXLXPtCT ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.W1W4EuttJ0 ++ mktemp + local LAST_ERR=/tmp/tmp.mjdoMmEf1L + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp2\n db.test.insert({ x: 100500 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp2\n db.test.insert({ x: 100500 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.W1W4EuttJ0 Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("6514ecdc-9f50-4127-9b75-3555ad3f30f3") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match switched to db myApp2 WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.mjdoMmEf1L + rm /tmp/tmp.W1W4EuttJ0 /tmp/tmp.mjdoMmEf1L + return 0 + minikube_sleep + sleep_time=10 + [[ '' == 1 ]] + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' '' 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix= + local suffix= + local database=myApp + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp' + set +o xtrace [2026-11-23T06:40:47+0000] running db.test.command() in myApp ++ seq 1 3 + for attempt in $(seq 1 "$retries") + grep -E -v 'I NETWORK|W 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_mongos 'use myApp\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb '' '' 27019 + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.9Rgu5m2hUN +++ mktemp ++ local LAST_ERR=/tmp/tmp.zQ1aOeC06K ++ 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.9Rgu5m2hUN ++ cat /tmp/tmp.zQ1aOeC06K ++ rm /tmp/tmp.9Rgu5m2hUN /tmp/tmp.zQ1aOeC06K ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.ilr7SjOK5G ++ mktemp + local LAST_ERR=/tmp/tmp.c2pt3kl3vX + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.ilr7SjOK5G + cat /tmp/tmp.c2pt3kl3vX + rm /tmp/tmp.ilr7SjOK5G /tmp/tmp.c2pt3kl3vX + 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-sharded/compare/find.json /tmp/tmp.EmeHjOpCG1/find + return + wait_backup_agent some-name-rs0-0 + local agent_pod=some-name-rs0-0 + set +o xtrace waiting for pbm-agent to be ready in some-name-rs0-0...2026-11-23T06:35:06.000+0000 I listening for the commands + wait_backup_agent some-name-rs0-1 + local agent_pod=some-name-rs0-1 + set +o xtrace waiting for pbm-agent to be ready in some-name-rs0-1...2026-11-23T06:35:11.000+0000 I listening for the commands + wait_backup_agent some-name-rs0-2 + local agent_pod=some-name-rs0-2 + set +o xtrace waiting for pbm-agent to be ready in some-name-rs0-2...2026-11-23T06:35:16.000+0000 I listening for the commands + wait_backup_agent some-name-rs1-0 + local agent_pod=some-name-rs1-0 + set +o xtrace waiting for pbm-agent to be ready in some-name-rs1-0...2026-11-23T06:35:07.000+0000 I listening for the commands + wait_backup_agent some-name-rs1-1 + local agent_pod=some-name-rs1-1 + set +o xtrace waiting for pbm-agent to be ready in some-name-rs1-1...2026-11-23T06:35:12.000+0000 I listening for the commands + wait_backup_agent some-name-rs1-2 + local agent_pod=some-name-rs1-2 + set +o xtrace waiting for pbm-agent to be ready in some-name-rs1-2...2026-11-23T06:35:16.000+0000 I listening for the commands + wait_backup_agent some-name-rs2-0 + local agent_pod=some-name-rs2-0 + set +o xtrace waiting for pbm-agent to be ready in some-name-rs2-0...2026-11-23T06:35:08.000+0000 I listening for the commands + wait_backup_agent some-name-rs2-1 + local agent_pod=some-name-rs2-1 + set +o xtrace waiting for pbm-agent to be ready in some-name-rs2-1...2026-11-23T06:35:13.000+0000 I listening for the commands + wait_backup_agent some-name-rs2-2 + local agent_pod=some-name-rs2-2 + set +o xtrace waiting for pbm-agent to be ready in some-name-rs2-2...2026-11-23T06:35:16.000+0000 I listening for the commands + backup_name_aws=backup-aws-s3 + backup_name_local_s3=backup-local-s3 + backup_name_gcp=backup-gcp-cs + backup_name_azure=backup-azure-blob + backup_name_oss_native=backup-oss-native + desc 'run backups' + set +o xtrace ----------------------------------------------------------------------------------- run backups ----------------------------------------------------------------------------------- + run_backup local-s3 + local storage=local-s3 + local backup_name=backup-local-s3 + local type=logical + log 'running backup backup-local-s3' + set +o xtrace [2026-11-23T06:41:00+0000] running backup backup-local-s3 + yq eval $'.metadata.name = "backup-local-s3"\n\t\t\t| .spec.storageName = "local-s3"\n\t\t\t| .spec.type = "logical"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/backup-local-s3.yml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.of3C8PHAAS ++ mktemp + local LAST_ERR=/tmp/tmp.c2cpEDepLo + 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.UwcEKw7eQm + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.UwcEKw7eQm + 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.UwcEKw7eQm + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.of3C8PHAAS perconaservermongodbbackup.psmdb.percona.com/backup-local-s3 created + cat /tmp/tmp.c2cpEDepLo + rm /tmp/tmp.of3C8PHAAS /tmp/tmp.c2cpEDepLo /tmp/tmp.UwcEKw7eQm + return 0 + '[' -z '' ']' + run_backup aws-s3 + local storage=aws-s3 + local backup_name=backup-aws-s3 + local type=logical + log 'running backup backup-aws-s3' + set +o xtrace [2026-11-23T06:41:02+0000] running backup backup-aws-s3 + yq eval $'.metadata.name = "backup-aws-s3"\n\t\t\t| .spec.storageName = "aws-s3"\n\t\t\t| .spec.type = "logical"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/backup-aws-s3.yml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.j6BrNyhfUs ++ mktemp + local LAST_ERR=/tmp/tmp.viB8C52tlm + 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.yYlZ56u0Jw + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.yYlZ56u0Jw + 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.yYlZ56u0Jw + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.j6BrNyhfUs perconaservermongodbbackup.psmdb.percona.com/backup-aws-s3 created + cat /tmp/tmp.viB8C52tlm + rm /tmp/tmp.j6BrNyhfUs /tmp/tmp.viB8C52tlm /tmp/tmp.yYlZ56u0Jw + return 0 + run_backup gcp-cs + local storage=gcp-cs + local backup_name=backup-gcp-cs + local type=logical + log 'running backup backup-gcp-cs' + set +o xtrace [2026-11-23T06:41:03+0000] running backup backup-gcp-cs + yq eval $'.metadata.name = "backup-gcp-cs"\n\t\t\t| .spec.storageName = "gcp-cs"\n\t\t\t| .spec.type = "logical"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/backup-gcp-cs.yml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.tJ2wP5w5ve ++ mktemp + local LAST_ERR=/tmp/tmp.1oqlY2xfjD + 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.NBB2YppwSr + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.NBB2YppwSr + 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.NBB2YppwSr + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.tJ2wP5w5ve perconaservermongodbbackup.psmdb.percona.com/backup-gcp-cs created + cat /tmp/tmp.1oqlY2xfjD + rm /tmp/tmp.tJ2wP5w5ve /tmp/tmp.1oqlY2xfjD /tmp/tmp.NBB2YppwSr + return 0 + run_backup azure-blob + local storage=azure-blob + local backup_name=backup-azure-blob + local type=logical + log 'running backup backup-azure-blob' + set +o xtrace [2026-11-23T06:41:05+0000] running backup backup-azure-blob + yq eval $'.metadata.name = "backup-azure-blob"\n\t\t\t| .spec.storageName = "azure-blob"\n\t\t\t| .spec.type = "logical"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/backup-azure-blob.yml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.zz3xEG0rpz ++ mktemp + local LAST_ERR=/tmp/tmp.eY2JpyF9wc + 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.alqTRcav8o + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.alqTRcav8o + 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.alqTRcav8o + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.zz3xEG0rpz perconaservermongodbbackup.psmdb.percona.com/backup-azure-blob created + cat /tmp/tmp.eY2JpyF9wc + rm /tmp/tmp.zz3xEG0rpz /tmp/tmp.eY2JpyF9wc /tmp/tmp.alqTRcav8o + return 0 + run_backup oss-native + local storage=oss-native + local backup_name=backup-oss-native + local type=logical + log 'running backup backup-oss-native' + set +o xtrace [2026-11-23T06:41:06+0000] running backup backup-oss-native + kubectl_bin apply -f - + yq eval $'.metadata.name = "backup-oss-native"\n\t\t\t| .spec.storageName = "oss-native"\n\t\t\t| .spec.type = "logical"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/backup-oss-native.yml ++ mktemp + local LAST_OUT=/tmp/tmp.4jJjeB39zt ++ mktemp + local LAST_ERR=/tmp/tmp.CNffdMFnhp + 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.uwplbu2jQd + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.uwplbu2jQd + 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.uwplbu2jQd + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.4jJjeB39zt perconaservermongodbbackup.psmdb.percona.com/backup-oss-native created + cat /tmp/tmp.CNffdMFnhp + rm /tmp/tmp.4jJjeB39zt /tmp/tmp.CNffdMFnhp /tmp/tmp.uwplbu2jQd + return 0 + wait_backup backup-aws-s3 + local backup_name=backup-aws-s3 + local target_state=ready + set +o xtrace waiting for backup-aws-s3 to reach ready state............................................................................OK + wait_backup backup-gcp-cs + local backup_name=backup-gcp-cs + local target_state=ready + set +o xtrace waiting for backup-gcp-cs to reach ready state..OK + wait_backup backup-azure-blob + local backup_name=backup-azure-blob + local target_state=ready + set +o xtrace waiting for backup-azure-blob to reach ready state..OK + wait_backup backup-oss-native + local backup_name=backup-oss-native + local target_state=ready + set +o xtrace waiting for backup-oss-native to reach ready state..OK + wait_backup backup-local-s3 + local backup_name=backup-local-s3 + local target_state=ready + set +o xtrace waiting for backup-local-s3 to reach ready state..OK + sleep 5 + '[' -z '' ']' + desc 'check backup and restore -- aws-s3' + set +o xtrace ----------------------------------------------------------------------------------- check backup and restore -- aws-s3 ----------------------------------------------------------------------------------- ++ get_backup_dest backup-aws-s3 ++ local backup_name=backup-aws-s3 ++ kubectl_bin get psmdb-backup backup-aws-s3 -o 'jsonpath={.status.destination}' ++ sed -e 's/.json$//' +++ mktemp ++ sed 's|s3://||' ++ sed 's|azure://||' ++ sed 's|gs://||' ++ sed 's|oss://||' ++ sed 's|oci://||' ++ local LAST_OUT=/tmp/tmp.v9b2TDvCvj +++ mktemp ++ local LAST_ERR=/tmp/tmp.8rd022d1Yn ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb-backup' 'backup-aws-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-aws-s3 == \- ]] ++ [[ backup-aws-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-aws-s3 -o 'jsonpath={.status.destination}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.v9b2TDvCvj ++ cat /tmp/tmp.8rd022d1Yn ++ rm /tmp/tmp.v9b2TDvCvj /tmp/tmp.8rd022d1Yn ++ return 0 + backup_dest_aws=operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z + _aws_env_save + local trace_was_on=0 + [[ ehxB == *x* ]] + trace_was_on=1 + set +x + return 0 + setup_aws_credentials + local secret_name=aws-s3-secret + local trace_was_on=0 + [[ ehxB == *x* ]] + trace_was_on=1 + set +x + echo 'AWS credentials already set in environment' AWS credentials already set in environment + return 0 + check_backup_existence_aws operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z /rs0/myApp.test.gz ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z ++ cut -d/ -f1 + bucket=operator-testing ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z ++ cut -d/ -f2- + key_prefix=psmdb-demand-backup-sharded/2026-11-23T06:43:04Z + key=/rs0/myApp.test.gz + endpoint= + storage_name=aws-s3 + retry=0 + endpoint_arg=() + local endpoint_arg + [[ -n '' ]] + aws s3api head-object --bucket operator-testing --key psmdb-demand-backup-sharded/2026-11-23T06:43:04Z/rs0/myApp.test.gz + echo 'Backup operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z//rs0/myApp.test.gz found in aws-s3' Backup operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z//rs0/myApp.test.gz found in aws-s3 + check_backup_existence_aws operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z /rs1/myApp1.test.gz ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z ++ cut -d/ -f1 + bucket=operator-testing ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z ++ cut -d/ -f2- + key_prefix=psmdb-demand-backup-sharded/2026-11-23T06:43:04Z + key=/rs1/myApp1.test.gz + endpoint= + storage_name=aws-s3 + retry=0 + endpoint_arg=() + local endpoint_arg + [[ -n '' ]] + aws s3api head-object --bucket operator-testing --key psmdb-demand-backup-sharded/2026-11-23T06:43:04Z/rs1/myApp1.test.gz + echo 'Backup operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z//rs1/myApp1.test.gz found in aws-s3' Backup operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z//rs1/myApp1.test.gz found in aws-s3 + check_backup_existence_aws operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z /rs2/myApp2.test.gz ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z ++ cut -d/ -f1 + bucket=operator-testing ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z ++ cut -d/ -f2- + key_prefix=psmdb-demand-backup-sharded/2026-11-23T06:43:04Z + key=/rs2/myApp2.test.gz + endpoint= + storage_name=aws-s3 + retry=0 + endpoint_arg=() + local endpoint_arg + [[ -n '' ]] + aws s3api head-object --bucket operator-testing --key psmdb-demand-backup-sharded/2026-11-23T06:43:04Z/rs2/myApp2.test.gz + echo 'Backup operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z//rs2/myApp2.test.gz found in aws-s3' Backup operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z//rs2/myApp2.test.gz found in aws-s3 + _aws_env_restore + local trace_was_on=0 + [[ ehxB == *x* ]] + trace_was_on=1 + set +x + return 0 + insert_data_mongos 100501 myApp '' 27019 + local data=100501 + local db_name=myApp + local flags= + local port=27019 + run_mongos 'use myApp\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.a35wTqJFTi +++ mktemp ++ local LAST_ERR=/tmp/tmp.Fy5By7enip ++ 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.a35wTqJFTi ++ cat /tmp/tmp.Fy5By7enip ++ rm /tmp/tmp.a35wTqJFTi /tmp/tmp.Fy5By7enip ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.YkX6TfwJR2 ++ mktemp + local LAST_ERR=/tmp/tmp.hs5xhuPlJS + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.YkX6TfwJR2 Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("85e70108-7ee1-4925-8718-9d55ccb18150") } 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.hs5xhuPlJS + rm /tmp/tmp.YkX6TfwJR2 /tmp/tmp.hs5xhuPlJS + return 0 + insert_data_mongos 100501 myApp1 '' 27019 + local data=100501 + local db_name=myApp1 + local flags= + local port=27019 + run_mongos 'use myApp1\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp1\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.oXXfQumxvd +++ mktemp ++ local LAST_ERR=/tmp/tmp.hZfjjGEFIh ++ 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.oXXfQumxvd ++ cat /tmp/tmp.hZfjjGEFIh ++ rm /tmp/tmp.oXXfQumxvd /tmp/tmp.hZfjjGEFIh ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.2rPnnyh9Un ++ mktemp + local LAST_ERR=/tmp/tmp.jMbes1bjvj + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp1\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp1\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.2rPnnyh9Un Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("4cb94a0c-4577-41cc-9f92-e97ce3e8cfad") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match switched to db myApp1 WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.jMbes1bjvj + rm /tmp/tmp.2rPnnyh9Un /tmp/tmp.jMbes1bjvj + return 0 + insert_data_mongos 100501 myApp2 '' 27019 + local data=100501 + local db_name=myApp2 + local flags= + local port=27019 + run_mongos 'use myApp2\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp2\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.onk0Moopqh +++ mktemp ++ local LAST_ERR=/tmp/tmp.FOMA6TRDcb ++ 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.onk0Moopqh ++ cat /tmp/tmp.FOMA6TRDcb ++ rm /tmp/tmp.onk0Moopqh /tmp/tmp.FOMA6TRDcb ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.5OcdRlL89s ++ mktemp + local LAST_ERR=/tmp/tmp.VLTgGT2Hq2 + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp2\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp2\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.5OcdRlL89s Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("6f341faa-300e-4463-b3ea-75fe40f9d77a") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match switched to db myApp2 WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.VLTgGT2Hq2 + rm /tmp/tmp.5OcdRlL89s /tmp/tmp.VLTgGT2Hq2 + return 0 + check_data -2nd + local postfix=-2nd ++ seq 0 2 + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 -2nd .svc.cluster.local myApp test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=-2nd + local suffix=.svc.cluster.local + local database=myApp + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp' + set +o xtrace [2026-11-23T06:44:01+0000] running db.test.command() in myApp ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + /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-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + grep -E -v 'I NETWORK|W 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' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.kHJaZPBOjO +++ mktemp ++ local LAST_ERR=/tmp/tmp.ycU9bYYEf6 ++ 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.kHJaZPBOjO ++ cat /tmp/tmp.ycU9bYYEf6 ++ rm /tmp/tmp.kHJaZPBOjO /tmp/tmp.ycU9bYYEf6 ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.Gj7u3bq4EJ ++ mktemp + local LAST_ERR=/tmp/tmp.w5pOYDBOE0 + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Gj7u3bq4EJ + cat /tmp/tmp.w5pOYDBOE0 + rm /tmp/tmp.Gj7u3bq4EJ /tmp/tmp.w5pOYDBOE0 + return 0 + compare_mongo_output find -2nd + local command=find + local postfix=-2nd + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find-2nd.json /tmp/tmp.EmeHjOpCG1/find-2nd + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 -2nd1 .svc.cluster.local myApp1 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=-2nd1 + local suffix=.svc.cluster.local + local database=myApp1 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp1' + set +o xtrace [2026-11-23T06:44:03+0000] running db.test.command() in myApp1 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp1\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp1\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + grep -E -v 'I NETWORK|W 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/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.8nVchAUI6r +++ mktemp ++ local LAST_ERR=/tmp/tmp.sWS5WUVIPh ++ 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.8nVchAUI6r ++ cat /tmp/tmp.sWS5WUVIPh ++ rm /tmp/tmp.8nVchAUI6r /tmp/tmp.sWS5WUVIPh ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.FChLMI6fSS ++ mktemp + local LAST_ERR=/tmp/tmp.G7YHAMR9Is + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.FChLMI6fSS + cat /tmp/tmp.G7YHAMR9Is + rm /tmp/tmp.FChLMI6fSS /tmp/tmp.G7YHAMR9Is + return 0 + compare_mongo_output find -2nd1 + local command=find + local postfix=-2nd1 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find-2nd1.json /tmp/tmp.EmeHjOpCG1/find-2nd1 + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 -2nd2 .svc.cluster.local myApp2 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=-2nd2 + local suffix=.svc.cluster.local + local database=myApp2 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp2' + set +o xtrace [2026-11-23T06:44:06+0000] running db.test.command() in myApp2 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp2\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp2\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + grep -E -v 'I NETWORK|W 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' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.oES4B9C8Ii +++ mktemp ++ local LAST_ERR=/tmp/tmp.2gWwEMmpqb ++ 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.oES4B9C8Ii ++ cat /tmp/tmp.2gWwEMmpqb ++ rm /tmp/tmp.oES4B9C8Ii /tmp/tmp.2gWwEMmpqb ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.RHwoeVdwQm ++ mktemp + local LAST_ERR=/tmp/tmp.IcfLoT0hnc + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.RHwoeVdwQm + cat /tmp/tmp.IcfLoT0hnc + rm /tmp/tmp.RHwoeVdwQm /tmp/tmp.IcfLoT0hnc + return 0 + compare_mongo_output find -2nd2 + local command=find + local postfix=-2nd2 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find-2nd2.json /tmp/tmp.EmeHjOpCG1/find-2nd2 + return + run_restore backup-aws-s3 + local backup_name=backup-aws-s3 + local restore_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/restore.yml + log 'running restore restore-backup-aws-s3' + set +o xtrace [2026-11-23T06:44:08+0000] running restore restore-backup-aws-s3 + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/restore.yml + /usr/sbin/sed -e 's/name:/name: restore-backup-aws-s3/' + /usr/sbin/sed -e 's/backupName:/backupName: backup-aws-s3/' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.6aG7SsnNBI ++ mktemp + local LAST_ERR=/tmp/tmp.GxnJbG8EmU + 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.gAfizFEP4v + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.gAfizFEP4v + 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.gAfizFEP4v + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.6aG7SsnNBI perconaservermongodbrestore.psmdb.percona.com/restore-backup-aws-s3 created + cat /tmp/tmp.GxnJbG8EmU + rm /tmp/tmp.6aG7SsnNBI /tmp/tmp.GxnJbG8EmU /tmp/tmp.gAfizFEP4v + return 0 + wait_restore backup-aws-s3 some-name + local backup_name=backup-aws-s3 + local cluster_name=some-name + local target_state=ready + local wait_cluster_consistency=1 + local wait_time=1780 + local ok_if_ready=0 + set +o xtrace Waiting for the psmdb-restore/restore-backup-aws-s3 object to be created.OK Waiting psmdb-restore/restore-backup-aws-s3 to reach state "ready" ..OK after 1 minutes + [[ 1 -eq 1 ]] + 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.FRBkbcB1gr +++ mktemp ++ local LAST_ERR=/tmp/tmp.EiKoou0K5V ++ 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.FRBkbcB1gr ++ cat /tmp/tmp.EiKoou0K5V ++ rm /tmp/tmp.FRBkbcB1gr /tmp/tmp.EiKoou0K5V ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 1 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.XSQlTZLbCd +++ mktemp ++ local LAST_ERR=/tmp/tmp.rHb1D3gtNU ++ 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.XSQlTZLbCd ++ cat /tmp/tmp.rHb1D3gtNU ++ rm /tmp/tmp.XSQlTZLbCd /tmp/tmp.rHb1D3gtNU ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 2 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.fKUstkB5xC +++ mktemp ++ local LAST_ERR=/tmp/tmp.7KBe8RmKz6 ++ 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.fKUstkB5xC ++ cat /tmp/tmp.7KBe8RmKz6 ++ rm /tmp/tmp.fKUstkB5xC /tmp/tmp.7KBe8RmKz6 ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 3 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.6L0lczJ1nO +++ mktemp ++ local LAST_ERR=/tmp/tmp.uMI5KG073I ++ 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.6L0lczJ1nO ++ cat /tmp/tmp.uMI5KG073I ++ rm /tmp/tmp.6L0lczJ1nO /tmp/tmp.uMI5KG073I ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 4 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.G7umWvETOQ +++ mktemp ++ local LAST_ERR=/tmp/tmp.OIgFw802Bx ++ 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.G7umWvETOQ ++ cat /tmp/tmp.OIgFw802Bx ++ rm /tmp/tmp.G7umWvETOQ /tmp/tmp.OIgFw802Bx ++ return 0 + [[ ready == ready ]] + echo .OK .OK + check_data + local postfix= ++ seq 0 2 + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' .svc.cluster.local myApp test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix= + local suffix=.svc.cluster.local + local database=myApp + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp' + set +o xtrace [2026-11-23T06:46:28+0000] running db.test.command() in myApp ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + grep -E -v 'I NETWORK|W NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ArwVBmHIwc +++ mktemp ++ local LAST_ERR=/tmp/tmp.27bMg03RcE ++ 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.ArwVBmHIwc ++ cat /tmp/tmp.27bMg03RcE ++ rm /tmp/tmp.ArwVBmHIwc /tmp/tmp.27bMg03RcE ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.H9YZso4pws ++ mktemp + local LAST_ERR=/tmp/tmp.BywsLLqUvH + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.H9YZso4pws + cat /tmp/tmp.BywsLLqUvH + rm /tmp/tmp.H9YZso4pws /tmp/tmp.BywsLLqUvH + 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-sharded/compare/find.json /tmp/tmp.EmeHjOpCG1/find + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 1 .svc.cluster.local myApp1 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=1 + local suffix=.svc.cluster.local + local database=myApp1 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp1' + set +o xtrace [2026-11-23T06:46:30+0000] running db.test.command() in myApp1 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + grep -E -v 'I NETWORK|W 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_mongos 'use myApp1\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp1\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.kzjZnzNIiP +++ mktemp ++ local LAST_ERR=/tmp/tmp.EWIkVXZuUM ++ 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.kzjZnzNIiP ++ cat /tmp/tmp.EWIkVXZuUM ++ rm /tmp/tmp.kzjZnzNIiP /tmp/tmp.EWIkVXZuUM ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.Zv6fAcP0qX ++ mktemp + local LAST_ERR=/tmp/tmp.JgmWEXWbDR + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Zv6fAcP0qX + cat /tmp/tmp.JgmWEXWbDR + rm /tmp/tmp.Zv6fAcP0qX /tmp/tmp.JgmWEXWbDR + return 0 + compare_mongo_output find 1 + local command=find + local postfix=1 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find1.json /tmp/tmp.EmeHjOpCG1/find1 + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 2 .svc.cluster.local myApp2 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=2 + local suffix=.svc.cluster.local + local database=myApp2 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp2' + set +o xtrace [2026-11-23T06:46:32+0000] running db.test.command() in myApp2 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp2\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp2\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + grep -E -v 'I NETWORK|W 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/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.cZ8EQFQ0Hn +++ mktemp ++ local LAST_ERR=/tmp/tmp.l5IMfFFnWF ++ 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.cZ8EQFQ0Hn ++ cat /tmp/tmp.l5IMfFFnWF ++ rm /tmp/tmp.cZ8EQFQ0Hn /tmp/tmp.l5IMfFFnWF ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.it5MlwgXF3 ++ mktemp + local LAST_ERR=/tmp/tmp.8JBFlTAJ4L + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.it5MlwgXF3 + cat /tmp/tmp.8JBFlTAJ4L + rm /tmp/tmp.it5MlwgXF3 /tmp/tmp.8JBFlTAJ4L + return 0 + compare_mongo_output find 2 + local command=find + local postfix=2 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find2.json /tmp/tmp.EmeHjOpCG1/find2 + return + desc 'check backup and restore -- gcp-cs' + set +o xtrace ----------------------------------------------------------------------------------- check backup and restore -- gcp-cs ----------------------------------------------------------------------------------- ++ get_backup_dest backup-gcp-cs ++ local backup_name=backup-gcp-cs ++ kubectl_bin get psmdb-backup backup-gcp-cs -o 'jsonpath={.status.destination}' ++ sed -e 's/.json$//' ++ sed 's|s3://||' +++ mktemp ++ sed 's|azure://||' ++ sed 's|gs://||' ++ sed 's|oci://||' ++ sed 's|oss://||' ++ local LAST_OUT=/tmp/tmp.Qapplw2xk6 +++ mktemp ++ local LAST_ERR=/tmp/tmp.u72pw3MG60 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb-backup' 'backup-gcp-cs' '-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-gcp-cs == \- ]] ++ [[ backup-gcp-cs =~ ^(-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-gcp-cs -o 'jsonpath={.status.destination}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.Qapplw2xk6 ++ cat /tmp/tmp.u72pw3MG60 ++ rm /tmp/tmp.Qapplw2xk6 /tmp/tmp.u72pw3MG60 ++ return 0 + backup_dest_gcp=operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z + setup_gcs_credentials + local secret_name=gcp-cs-secret + gsutil ls + echo 'Setting up GCS credentials from K8s secret: gcp-cs-secret' Setting up GCS credentials from K8s secret: gcp-cs-secret + local trace_was_on=0 + [[ ehxB == *x* ]] + trace_was_on=1 + set +x + echo 'GCS credentials configured successfully' GCS credentials configured successfully + check_backup_existence_gcs operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z /rs0/myApp.test.gz + backup_dest_gcp=operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z + obj=/rs0/myApp.test.gz + storage_name=gcp-cs + retry=0 + gcs_path=gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs0/myApp.test.gz ++ gsutil ls gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs0/myApp.test.gz + gsutil_err=gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs0/myApp.test.gz + echo 'Backup gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs0/myApp.test.gz found in gcp-cs' Backup gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs0/myApp.test.gz found in gcp-cs + check_backup_existence_gcs operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z /rs1/myApp1.test.gz + backup_dest_gcp=operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z + obj=/rs1/myApp1.test.gz + storage_name=gcp-cs + retry=0 + gcs_path=gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs1/myApp1.test.gz ++ gsutil ls gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs1/myApp1.test.gz + gsutil_err=gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs1/myApp1.test.gz + echo 'Backup gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs1/myApp1.test.gz found in gcp-cs' Backup gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs1/myApp1.test.gz found in gcp-cs + check_backup_existence_gcs operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z /rs2/myApp2.test.gz + backup_dest_gcp=operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z + obj=/rs2/myApp2.test.gz + storage_name=gcp-cs + retry=0 + gcs_path=gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs2/myApp2.test.gz ++ gsutil ls gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs2/myApp2.test.gz + gsutil_err=gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs2/myApp2.test.gz + echo 'Backup gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs2/myApp2.test.gz found in gcp-cs' Backup gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs2/myApp2.test.gz found in gcp-cs + insert_data_mongos 100501 myApp '' 27019 + local data=100501 + local db_name=myApp + local flags= + local port=27019 + run_mongos 'use myApp\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ awk -F: '{print $2}' ++ echo .svc.cluster.local + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.39Ls7HJQdp +++ mktemp ++ local LAST_ERR=/tmp/tmp.9MmDn80ox1 ++ 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.39Ls7HJQdp ++ cat /tmp/tmp.9MmDn80ox1 ++ rm /tmp/tmp.39Ls7HJQdp /tmp/tmp.9MmDn80ox1 ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.jHcbvTzvGn ++ mktemp + local LAST_ERR=/tmp/tmp.TslCGMwJ0Y + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.jHcbvTzvGn Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("66a058a7-7271-48d3-a601-a825a003338b") } 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.TslCGMwJ0Y + rm /tmp/tmp.jHcbvTzvGn /tmp/tmp.TslCGMwJ0Y + return 0 + insert_data_mongos 100501 myApp1 '' 27019 + local data=100501 + local db_name=myApp1 + local flags= + local port=27019 + run_mongos 'use myApp1\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp1\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.UIXhSHGnQd +++ mktemp ++ local LAST_ERR=/tmp/tmp.jFOqfYHIAC ++ 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.UIXhSHGnQd ++ cat /tmp/tmp.jFOqfYHIAC ++ rm /tmp/tmp.UIXhSHGnQd /tmp/tmp.jFOqfYHIAC ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.KYGzfnLLnC ++ mktemp + local LAST_ERR=/tmp/tmp.Emtg59ncua + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp1\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp1\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.KYGzfnLLnC Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("e2948589-8aad-4f83-a519-656e0d80fa1e") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match switched to db myApp1 WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.Emtg59ncua + rm /tmp/tmp.KYGzfnLLnC /tmp/tmp.Emtg59ncua + return 0 + insert_data_mongos 100501 myApp2 '' 27019 + local data=100501 + local db_name=myApp2 + local flags= + local port=27019 + run_mongos 'use myApp2\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp2\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Nic7xiVyC8 +++ mktemp ++ local LAST_ERR=/tmp/tmp.uqz2h4M6Bj ++ 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.Nic7xiVyC8 ++ cat /tmp/tmp.uqz2h4M6Bj ++ rm /tmp/tmp.Nic7xiVyC8 /tmp/tmp.uqz2h4M6Bj ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.9DknstNz8z ++ mktemp + local LAST_ERR=/tmp/tmp.l3G2NixmCX + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp2\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp2\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.9DknstNz8z Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("07f1ddf9-40e7-4dad-96c2-3aedb740588f") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match switched to db myApp2 WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.l3G2NixmCX + rm /tmp/tmp.9DknstNz8z /tmp/tmp.l3G2NixmCX + return 0 + check_data -2nd + local postfix=-2nd ++ seq 0 2 + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 -2nd .svc.cluster.local myApp test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=-2nd + local suffix=.svc.cluster.local + local database=myApp + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp' + set +o xtrace [2026-11-23T06:46:52+0000] running db.test.command() in myApp ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + grep -E -v 'I NETWORK|W 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 driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.7PGVPJnA5q +++ mktemp ++ local LAST_ERR=/tmp/tmp.Ksf7TFNIeg ++ 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.7PGVPJnA5q ++ cat /tmp/tmp.Ksf7TFNIeg ++ rm /tmp/tmp.7PGVPJnA5q /tmp/tmp.Ksf7TFNIeg ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.9MJjjpY5tp ++ mktemp + local LAST_ERR=/tmp/tmp.pSf7NNCWys + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.9MJjjpY5tp + cat /tmp/tmp.pSf7NNCWys + rm /tmp/tmp.9MJjjpY5tp /tmp/tmp.pSf7NNCWys + return 0 + compare_mongo_output find -2nd + local command=find + local postfix=-2nd + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find-2nd.json /tmp/tmp.EmeHjOpCG1/find-2nd + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 -2nd1 .svc.cluster.local myApp1 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=-2nd1 + local suffix=.svc.cluster.local + local database=myApp1 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp1' + set +o xtrace [2026-11-23T06:46:54+0000] running db.test.command() in myApp1 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + grep -E -v 'I NETWORK|W 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_mongos 'use myApp1\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp1\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.vuM1XFNAfZ +++ mktemp ++ local LAST_ERR=/tmp/tmp.FdvBn7hz1Y ++ 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.vuM1XFNAfZ ++ cat /tmp/tmp.FdvBn7hz1Y ++ rm /tmp/tmp.vuM1XFNAfZ /tmp/tmp.FdvBn7hz1Y ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.XLgId5OhaX ++ mktemp + local LAST_ERR=/tmp/tmp.a2Jjpucmaz + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.XLgId5OhaX + cat /tmp/tmp.a2Jjpucmaz + rm /tmp/tmp.XLgId5OhaX /tmp/tmp.a2Jjpucmaz + return 0 + compare_mongo_output find -2nd1 + local command=find + local postfix=-2nd1 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find-2nd1.json /tmp/tmp.EmeHjOpCG1/find-2nd1 + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 -2nd2 .svc.cluster.local myApp2 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=-2nd2 + local suffix=.svc.cluster.local + local database=myApp2 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp2' + set +o xtrace [2026-11-23T06:46:57+0000] running db.test.command() in myApp2 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp2\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + grep -E -v 'I NETWORK|W NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local 'command=use myApp2\n db.test.find()' + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.JHijRv4sCt +++ mktemp ++ local LAST_ERR=/tmp/tmp.g4hqimDRsQ ++ 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.JHijRv4sCt ++ cat /tmp/tmp.g4hqimDRsQ ++ rm /tmp/tmp.JHijRv4sCt /tmp/tmp.g4hqimDRsQ ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.tW7tF8rlHd ++ mktemp + local LAST_ERR=/tmp/tmp.tJxffFPOUF + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.tW7tF8rlHd + cat /tmp/tmp.tJxffFPOUF + rm /tmp/tmp.tW7tF8rlHd /tmp/tmp.tJxffFPOUF + return 0 + compare_mongo_output find -2nd2 + local command=find + local postfix=-2nd2 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find-2nd2.json /tmp/tmp.EmeHjOpCG1/find-2nd2 + return + run_restore backup-gcp-cs + local backup_name=backup-gcp-cs + local restore_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/restore.yml + log 'running restore restore-backup-gcp-cs' + set +o xtrace [2026-11-23T06:46:59+0000] running restore restore-backup-gcp-cs + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/restore.yml + /usr/sbin/sed -e 's/name:/name: restore-backup-gcp-cs/' + /usr/sbin/sed -e 's/backupName:/backupName: backup-gcp-cs/' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.i01notUpbt ++ mktemp + local LAST_ERR=/tmp/tmp.VMJ4kCCR79 + 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.N8c2SuHddj + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.N8c2SuHddj + 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.N8c2SuHddj + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.i01notUpbt perconaservermongodbrestore.psmdb.percona.com/restore-backup-gcp-cs created + cat /tmp/tmp.VMJ4kCCR79 + rm /tmp/tmp.i01notUpbt /tmp/tmp.VMJ4kCCR79 /tmp/tmp.N8c2SuHddj + return 0 + wait_restore backup-gcp-cs some-name + local backup_name=backup-gcp-cs + local cluster_name=some-name + local target_state=ready + local wait_cluster_consistency=1 + local wait_time=1780 + local ok_if_ready=0 + set +o xtrace Waiting for the psmdb-restore/restore-backup-gcp-cs object to be created.OK Waiting psmdb-restore/restore-backup-gcp-cs to reach state "ready" ..OK after 1 minutes + [[ 1 -eq 1 ]] + 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.RHhuXPDu8x +++ mktemp ++ local LAST_ERR=/tmp/tmp.ZWRFozo5Mj ++ 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.RHhuXPDu8x ++ cat /tmp/tmp.ZWRFozo5Mj ++ rm /tmp/tmp.RHhuXPDu8x /tmp/tmp.ZWRFozo5Mj ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 1 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.fs8POGSnCi +++ mktemp ++ local LAST_ERR=/tmp/tmp.dbUXzglsMI ++ 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.fs8POGSnCi ++ cat /tmp/tmp.dbUXzglsMI ++ rm /tmp/tmp.fs8POGSnCi /tmp/tmp.dbUXzglsMI ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 2 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.MRKTVURVnh +++ mktemp ++ local LAST_ERR=/tmp/tmp.d3pOEOKZBs ++ 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.MRKTVURVnh ++ cat /tmp/tmp.d3pOEOKZBs ++ rm /tmp/tmp.MRKTVURVnh /tmp/tmp.d3pOEOKZBs ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 3 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.JjWhEFSRMb +++ mktemp ++ local LAST_ERR=/tmp/tmp.X8DAy62bw1 ++ 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.JjWhEFSRMb ++ cat /tmp/tmp.X8DAy62bw1 ++ rm /tmp/tmp.JjWhEFSRMb /tmp/tmp.X8DAy62bw1 ++ return 0 + [[ ready == ready ]] + echo .OK .OK + check_data + local postfix= ++ seq 0 2 + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' .svc.cluster.local myApp test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix= + local suffix=.svc.cluster.local + local database=myApp + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp' + set +o xtrace [2026-11-23T06:49:09+0000] running db.test.command() in myApp ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + grep -E -v 'I NETWORK|W 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 driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.7f31uSQdkO +++ mktemp ++ local LAST_ERR=/tmp/tmp.mMplg0t0NV ++ 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.7f31uSQdkO ++ cat /tmp/tmp.mMplg0t0NV ++ rm /tmp/tmp.7f31uSQdkO /tmp/tmp.mMplg0t0NV ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.WpETZu7FnE ++ mktemp + local LAST_ERR=/tmp/tmp.RDqMnAZjb8 + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.WpETZu7FnE + cat /tmp/tmp.RDqMnAZjb8 + rm /tmp/tmp.WpETZu7FnE /tmp/tmp.RDqMnAZjb8 + 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-sharded/compare/find.json /tmp/tmp.EmeHjOpCG1/find + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 1 .svc.cluster.local myApp1 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=1 + local suffix=.svc.cluster.local + local database=myApp1 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp1' + set +o xtrace [2026-11-23T06:49:11+0000] running db.test.command() in myApp1 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp1\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + grep -E -v 'I NETWORK|W NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local 'command=use myApp1\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.7Z6azFAwta +++ mktemp ++ local LAST_ERR=/tmp/tmp.zPkrGNBnRe ++ 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.7Z6azFAwta ++ cat /tmp/tmp.zPkrGNBnRe ++ rm /tmp/tmp.7Z6azFAwta /tmp/tmp.zPkrGNBnRe ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.kxJhrCGKG4 ++ mktemp + local LAST_ERR=/tmp/tmp.azvUG4nsqK + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.kxJhrCGKG4 + cat /tmp/tmp.azvUG4nsqK + rm /tmp/tmp.kxJhrCGKG4 /tmp/tmp.azvUG4nsqK + return 0 + compare_mongo_output find 1 + local command=find + local postfix=1 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find1.json /tmp/tmp.EmeHjOpCG1/find1 + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 2 .svc.cluster.local myApp2 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=2 + local suffix=.svc.cluster.local + local database=myApp2 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp2' + set +o xtrace [2026-11-23T06:49:14+0000] running db.test.command() in myApp2 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp2\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + grep -E -v 'I NETWORK|W NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local 'command=use myApp2\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.E3JN7WMiIn +++ mktemp ++ local LAST_ERR=/tmp/tmp.B5ukW4n5AO ++ 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.E3JN7WMiIn ++ cat /tmp/tmp.B5ukW4n5AO ++ rm /tmp/tmp.E3JN7WMiIn /tmp/tmp.B5ukW4n5AO ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.B2MYBdKuce ++ mktemp + local LAST_ERR=/tmp/tmp.fmdEsJ9gDN + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.B2MYBdKuce + cat /tmp/tmp.fmdEsJ9gDN + rm /tmp/tmp.B2MYBdKuce /tmp/tmp.fmdEsJ9gDN + return 0 + compare_mongo_output find 2 + local command=find + local postfix=2 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find2.json /tmp/tmp.EmeHjOpCG1/find2 + return + desc 'check backup and restore -- azure-blob' + set +o xtrace ----------------------------------------------------------------------------------- check backup and restore -- azure-blob ----------------------------------------------------------------------------------- ++ get_backup_dest backup-azure-blob ++ local backup_name=backup-azure-blob ++ kubectl_bin get psmdb-backup backup-azure-blob -o 'jsonpath={.status.destination}' ++ sed -e 's/.json$//' ++ sed 's|s3://||' +++ mktemp ++ sed 's|azure://||' ++ local LAST_OUT=/tmp/tmp.6tjLBRRbh0 ++ sed 's|oss://||' +++ mktemp ++ sed 's|gs://||' ++ local LAST_ERR=/tmp/tmp.0riwxbUlNv ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb-backup' 'backup-azure-blob' '-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-azure-blob == \- ]] ++ [[ backup-azure-blob =~ ^(-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 ++ sed 's|oci://||' ++ [[ -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-azure-blob -o 'jsonpath={.status.destination}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.6tjLBRRbh0 ++ cat /tmp/tmp.0riwxbUlNv ++ rm /tmp/tmp.6tjLBRRbh0 /tmp/tmp.0riwxbUlNv ++ return 0 + backup_dest_azure=operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z + setup_azure_credentials + local secret_name=azure-secret + echo 'Setting up Azure credentials from K8s secret: azure-secret' Setting up Azure credentials from K8s secret: azure-secret + local trace_was_on=0 + [[ ehxB == *x* ]] + trace_was_on=1 + set +x + echo 'Azure credentials configured successfully' Azure credentials configured successfully + check_backup_existence_azure operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z /rs0/myApp.test.gz ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z ++ sed 's|https://[^/]*\.blob\.core\.windows\.net/||' + url_path=operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z ++ cut -d/ -f1 + container=operator-testing ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z ++ cut -d/ -f2- + blob_prefix=psmdb-demand-backup-sharded/2026-11-23T06:42:40Z + blob=/rs0/myApp.test.gz + storage_name=azure-blob + retry=0 + blob_path=psmdb-demand-backup-sharded/2026-11-23T06:42:40Z/rs0/myApp.test.gz + az storage blob show --container-name operator-testing --name psmdb-demand-backup-sharded/2026-11-23T06:42:40Z/rs0/myApp.test.gz + echo 'Backup psmdb-demand-backup-sharded/2026-11-23T06:42:40Z/rs0/myApp.test.gz found in azure-blob' Backup psmdb-demand-backup-sharded/2026-11-23T06:42:40Z/rs0/myApp.test.gz found in azure-blob + check_backup_existence_azure operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z /rs1/myApp1.test.gz ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z ++ sed 's|https://[^/]*\.blob\.core\.windows\.net/||' + url_path=operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z ++ cut -d/ -f1 + container=operator-testing ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z ++ cut -d/ -f2- + blob_prefix=psmdb-demand-backup-sharded/2026-11-23T06:42:40Z + blob=/rs1/myApp1.test.gz + storage_name=azure-blob + retry=0 + blob_path=psmdb-demand-backup-sharded/2026-11-23T06:42:40Z/rs1/myApp1.test.gz + az storage blob show --container-name operator-testing --name psmdb-demand-backup-sharded/2026-11-23T06:42:40Z/rs1/myApp1.test.gz + echo 'Backup psmdb-demand-backup-sharded/2026-11-23T06:42:40Z/rs1/myApp1.test.gz found in azure-blob' Backup psmdb-demand-backup-sharded/2026-11-23T06:42:40Z/rs1/myApp1.test.gz found in azure-blob + check_backup_existence_azure operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z /rs2/myApp2.test.gz ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z ++ sed 's|https://[^/]*\.blob\.core\.windows\.net/||' + url_path=operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z ++ cut -d/ -f1 + container=operator-testing ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z ++ cut -d/ -f2- + blob_prefix=psmdb-demand-backup-sharded/2026-11-23T06:42:40Z + blob=/rs2/myApp2.test.gz + storage_name=azure-blob + retry=0 + blob_path=psmdb-demand-backup-sharded/2026-11-23T06:42:40Z/rs2/myApp2.test.gz + az storage blob show --container-name operator-testing --name psmdb-demand-backup-sharded/2026-11-23T06:42:40Z/rs2/myApp2.test.gz + echo 'Backup psmdb-demand-backup-sharded/2026-11-23T06:42:40Z/rs2/myApp2.test.gz found in azure-blob' Backup psmdb-demand-backup-sharded/2026-11-23T06:42:40Z/rs2/myApp2.test.gz found in azure-blob + insert_data_mongos 100501 myApp '' 27019 + local data=100501 + local db_name=myApp + local flags= + local port=27019 + run_mongos 'use myApp\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ awk -F: '{print $2}' ++ echo .svc.cluster.local + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.vmVbw0EkWG +++ mktemp ++ local LAST_ERR=/tmp/tmp.rqbitG2TCo ++ 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.vmVbw0EkWG ++ cat /tmp/tmp.rqbitG2TCo ++ rm /tmp/tmp.vmVbw0EkWG /tmp/tmp.rqbitG2TCo ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.QDLMR1QBSz ++ mktemp + local LAST_ERR=/tmp/tmp.frcXzxPEJO + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.QDLMR1QBSz Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("a33079e8-311f-4ae0-b9ab-6ec78b4eed4a") } 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.frcXzxPEJO + rm /tmp/tmp.QDLMR1QBSz /tmp/tmp.frcXzxPEJO + return 0 + insert_data_mongos 100501 myApp1 '' 27019 + local data=100501 + local db_name=myApp1 + local flags= + local port=27019 + run_mongos 'use myApp1\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp1\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.uiGPaKt2Ge +++ mktemp ++ local LAST_ERR=/tmp/tmp.oPrbVeSuQF ++ 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.uiGPaKt2Ge ++ cat /tmp/tmp.oPrbVeSuQF ++ rm /tmp/tmp.uiGPaKt2Ge /tmp/tmp.oPrbVeSuQF ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.De0EJCSTPt ++ mktemp + local LAST_ERR=/tmp/tmp.g5qELFp5cA + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp1\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp1\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.De0EJCSTPt Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("e5bedc1c-533a-4935-ae2f-98c6bc7c08dd") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match switched to db myApp1 WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.g5qELFp5cA + rm /tmp/tmp.De0EJCSTPt /tmp/tmp.g5qELFp5cA + return 0 + insert_data_mongos 100501 myApp2 '' 27019 + local data=100501 + local db_name=myApp2 + local flags= + local port=27019 + run_mongos 'use myApp2\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp2\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.nu6IfUqjCn +++ mktemp ++ local LAST_ERR=/tmp/tmp.KdYc2NYzMt ++ 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.nu6IfUqjCn ++ cat /tmp/tmp.KdYc2NYzMt ++ rm /tmp/tmp.nu6IfUqjCn /tmp/tmp.KdYc2NYzMt ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.oiy7EdzLqF ++ mktemp + local LAST_ERR=/tmp/tmp.fHpVc7RQK5 + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp2\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp2\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.oiy7EdzLqF Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("f33be21d-b06c-4098-b03a-a62bb078098d") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match switched to db myApp2 WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.fHpVc7RQK5 + rm /tmp/tmp.oiy7EdzLqF /tmp/tmp.fHpVc7RQK5 + return 0 + check_data -2nd + local postfix=-2nd ++ seq 0 2 + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 -2nd .svc.cluster.local myApp test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=-2nd + local suffix=.svc.cluster.local + local database=myApp + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp' + set +o xtrace [2026-11-23T06:49:30+0000] running db.test.command() in myApp ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + grep -E -v 'I NETWORK|W 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' ++ awk -F: '{print $2}' ++ echo .svc.cluster.local + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.XkcymIf5Dt +++ mktemp ++ local LAST_ERR=/tmp/tmp.1lE6hCI6ga ++ 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.XkcymIf5Dt ++ cat /tmp/tmp.1lE6hCI6ga ++ rm /tmp/tmp.XkcymIf5Dt /tmp/tmp.1lE6hCI6ga ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.OvguhppDST ++ mktemp + local LAST_ERR=/tmp/tmp.iGtJ8rpd4j + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.OvguhppDST + cat /tmp/tmp.iGtJ8rpd4j + rm /tmp/tmp.OvguhppDST /tmp/tmp.iGtJ8rpd4j + return 0 + compare_mongo_output find -2nd + local command=find + local postfix=-2nd + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find-2nd.json /tmp/tmp.EmeHjOpCG1/find-2nd + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 -2nd1 .svc.cluster.local myApp1 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=-2nd1 + local suffix=.svc.cluster.local + local database=myApp1 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp1' + set +o xtrace [2026-11-23T06:49:32+0000] running db.test.command() in myApp1 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + grep -E -v 'I NETWORK|W 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_mongos 'use myApp1\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + local 'command=use myApp1\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.eHOQXNp21Z +++ mktemp ++ local LAST_ERR=/tmp/tmp.cISnyrHceC ++ 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.eHOQXNp21Z ++ cat /tmp/tmp.cISnyrHceC ++ rm /tmp/tmp.eHOQXNp21Z /tmp/tmp.cISnyrHceC ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.u7BG1IPofw ++ mktemp + local LAST_ERR=/tmp/tmp.5eEVkd5Xd4 + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.u7BG1IPofw + cat /tmp/tmp.5eEVkd5Xd4 + rm /tmp/tmp.u7BG1IPofw /tmp/tmp.5eEVkd5Xd4 + return 0 + compare_mongo_output find -2nd1 + local command=find + local postfix=-2nd1 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find-2nd1.json /tmp/tmp.EmeHjOpCG1/find-2nd1 + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 -2nd2 .svc.cluster.local myApp2 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=-2nd2 + local suffix=.svc.cluster.local + local database=myApp2 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp2' + set +o xtrace [2026-11-23T06:49:35+0000] running db.test.command() in myApp2 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp2\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + grep -E -v 'I NETWORK|W NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local 'command=use myApp2\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.NyxFwQyLKK +++ mktemp ++ local LAST_ERR=/tmp/tmp.aWrKcC3C2H ++ 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.NyxFwQyLKK ++ cat /tmp/tmp.aWrKcC3C2H ++ rm /tmp/tmp.NyxFwQyLKK /tmp/tmp.aWrKcC3C2H ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.yunh1r5D2x ++ mktemp + local LAST_ERR=/tmp/tmp.ujpBSruKqJ + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.yunh1r5D2x + cat /tmp/tmp.ujpBSruKqJ + rm /tmp/tmp.yunh1r5D2x /tmp/tmp.ujpBSruKqJ + return 0 + compare_mongo_output find -2nd2 + local command=find + local postfix=-2nd2 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find-2nd2.json /tmp/tmp.EmeHjOpCG1/find-2nd2 + return + run_restore backup-azure-blob + local backup_name=backup-azure-blob + local restore_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/restore.yml + log 'running restore restore-backup-azure-blob' + set +o xtrace [2026-11-23T06:49:37+0000] running restore restore-backup-azure-blob + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/restore.yml + /usr/sbin/sed -e 's/name:/name: restore-backup-azure-blob/' + /usr/sbin/sed -e 's/backupName:/backupName: backup-azure-blob/' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.9H9Yk17t19 ++ mktemp + local LAST_ERR=/tmp/tmp.bgY8eImBnj + 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.PAnv9UwEvV + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.PAnv9UwEvV + 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.PAnv9UwEvV + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.9H9Yk17t19 perconaservermongodbrestore.psmdb.percona.com/restore-backup-azure-blob created + cat /tmp/tmp.bgY8eImBnj + rm /tmp/tmp.9H9Yk17t19 /tmp/tmp.bgY8eImBnj /tmp/tmp.PAnv9UwEvV + return 0 + wait_restore backup-azure-blob some-name + local backup_name=backup-azure-blob + local cluster_name=some-name + local target_state=ready + local wait_cluster_consistency=1 + local wait_time=1780 + local ok_if_ready=0 + set +o xtrace Waiting for the psmdb-restore/restore-backup-azure-blob object to be created.OK Waiting psmdb-restore/restore-backup-azure-blob to reach state "ready" ..OK after 1 minutes + [[ 1 -eq 1 ]] + 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.wuyi9hpdOK +++ mktemp ++ local LAST_ERR=/tmp/tmp.0EVJ8dLcph ++ 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.wuyi9hpdOK ++ cat /tmp/tmp.0EVJ8dLcph ++ rm /tmp/tmp.wuyi9hpdOK /tmp/tmp.0EVJ8dLcph ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 1 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.mXR8XkuXlf +++ mktemp ++ local LAST_ERR=/tmp/tmp.8fNMIsi1Lb ++ 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.mXR8XkuXlf ++ cat /tmp/tmp.8fNMIsi1Lb ++ rm /tmp/tmp.mXR8XkuXlf /tmp/tmp.8fNMIsi1Lb ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 2 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.JInzJOBI3B +++ mktemp ++ local LAST_ERR=/tmp/tmp.oe4ns0k4mS ++ 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.JInzJOBI3B ++ cat /tmp/tmp.oe4ns0k4mS ++ rm /tmp/tmp.JInzJOBI3B /tmp/tmp.oe4ns0k4mS ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 3 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.J8SX83YrtT +++ mktemp ++ local LAST_ERR=/tmp/tmp.o0gHunTqq8 ++ 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.J8SX83YrtT ++ cat /tmp/tmp.o0gHunTqq8 ++ rm /tmp/tmp.J8SX83YrtT /tmp/tmp.o0gHunTqq8 ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 4 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.r3YlITZLlS +++ mktemp ++ local LAST_ERR=/tmp/tmp.l8ctVGMxHe ++ 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.r3YlITZLlS ++ cat /tmp/tmp.l8ctVGMxHe ++ rm /tmp/tmp.r3YlITZLlS /tmp/tmp.l8ctVGMxHe ++ return 0 + [[ ready == ready ]] + echo .OK .OK + check_data + local postfix= ++ seq 0 2 + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' .svc.cluster.local myApp test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix= + local suffix=.svc.cluster.local + local database=myApp + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp' + set +o xtrace [2026-11-23T06:51:56+0000] running db.test.command() in myApp ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + grep -E -v 'I NETWORK|W 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/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.QhdefkFg9v +++ mktemp ++ local LAST_ERR=/tmp/tmp.KvcXvo9hq1 ++ 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.QhdefkFg9v ++ cat /tmp/tmp.KvcXvo9hq1 ++ rm /tmp/tmp.QhdefkFg9v /tmp/tmp.KvcXvo9hq1 ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.NR1PzlV3qd ++ mktemp + local LAST_ERR=/tmp/tmp.IkPm8KXbYr + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.NR1PzlV3qd + cat /tmp/tmp.IkPm8KXbYr + rm /tmp/tmp.NR1PzlV3qd /tmp/tmp.IkPm8KXbYr + 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-sharded/compare/find.json /tmp/tmp.EmeHjOpCG1/find + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 1 .svc.cluster.local myApp1 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=1 + local suffix=.svc.cluster.local + local database=myApp1 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp1' + set +o xtrace [2026-11-23T06:51:59+0000] running db.test.command() in myApp1 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp1\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp1\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + grep -E -v 'I NETWORK|W 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' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.UtOYyIIWhn +++ mktemp ++ local LAST_ERR=/tmp/tmp.t2XarRcaqH ++ 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.UtOYyIIWhn ++ cat /tmp/tmp.t2XarRcaqH ++ rm /tmp/tmp.UtOYyIIWhn /tmp/tmp.t2XarRcaqH ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.Tb6uVt03wP ++ mktemp + local LAST_ERR=/tmp/tmp.aMchoaLJiY + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Tb6uVt03wP + cat /tmp/tmp.aMchoaLJiY + rm /tmp/tmp.Tb6uVt03wP /tmp/tmp.aMchoaLJiY + return 0 + compare_mongo_output find 1 + local command=find + local postfix=1 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find1.json /tmp/tmp.EmeHjOpCG1/find1 + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 2 .svc.cluster.local myApp2 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=2 + local suffix=.svc.cluster.local + local database=myApp2 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp2' + set +o xtrace [2026-11-23T06:52:01+0000] running db.test.command() in myApp2 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp2\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp2\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + grep -E -v 'I NETWORK|W 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' ++ awk -F: '{print $2}' ++ echo .svc.cluster.local + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ZajJUjhxl2 +++ mktemp ++ local LAST_ERR=/tmp/tmp.DU5DdoJOPY ++ 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.ZajJUjhxl2 ++ cat /tmp/tmp.DU5DdoJOPY ++ rm /tmp/tmp.ZajJUjhxl2 /tmp/tmp.DU5DdoJOPY ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.35iMKUTNbT ++ mktemp + local LAST_ERR=/tmp/tmp.ojbxufJmeQ + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.35iMKUTNbT + cat /tmp/tmp.ojbxufJmeQ + rm /tmp/tmp.35iMKUTNbT /tmp/tmp.ojbxufJmeQ + return 0 + compare_mongo_output find 2 + local command=find + local postfix=2 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find2.json /tmp/tmp.EmeHjOpCG1/find2 + return + desc 'check backup and restore -- oss-native' + set +o xtrace ----------------------------------------------------------------------------------- check backup and restore -- oss-native ----------------------------------------------------------------------------------- ++ get_backup_dest backup-oss-native ++ local backup_name=backup-oss-native ++ sed -e 's/.json$//' ++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.status.destination}' ++ sed 's|s3://||' ++ sed 's|azure://||' +++ mktemp ++ sed 's|gs://||' ++ sed 's|oss://||' ++ sed 's|oci://||' ++ local LAST_OUT=/tmp/tmp.nqvVHKWbMd +++ mktemp ++ local LAST_ERR=/tmp/tmp.bkNvjuYHl1 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] ++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.status.destination}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.nqvVHKWbMd ++ cat /tmp/tmp.bkNvjuYHl1 ++ rm /tmp/tmp.nqvVHKWbMd /tmp/tmp.bkNvjuYHl1 ++ return 0 + backup_dest_oss_native=operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z ++ get_backup_storage_oss_field backup-oss-native endpointUrl ++ local backup_name=backup-oss-native ++ local field=endpointUrl ++ local cluster_name ++ local storage_name +++ get_backup_cluster_name backup-oss-native +++ local backup_name=backup-oss-native +++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.spec.clusterName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.lBjrnfkXwt ++++ mktemp +++ local LAST_ERR=/tmp/tmp.aMrYzFJW8N +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] +++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.spec.clusterName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.lBjrnfkXwt +++ cat /tmp/tmp.aMrYzFJW8N +++ rm /tmp/tmp.lBjrnfkXwt /tmp/tmp.aMrYzFJW8N +++ return 0 ++ cluster_name=some-name +++ get_backup_storage_name backup-oss-native +++ local backup_name=backup-oss-native +++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.spec.storageName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.tp5DYMIL7w ++++ mktemp +++ local LAST_ERR=/tmp/tmp.TG5iJ5IOll +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] +++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.spec.storageName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.tp5DYMIL7w +++ cat /tmp/tmp.TG5iJ5IOll +++ rm /tmp/tmp.tp5DYMIL7w /tmp/tmp.TG5iJ5IOll +++ return 0 ++ storage_name=oss-native ++ kubectl_bin get psmdb some-name -o json ++ jq -r --arg storage oss-native --arg field endpointUrl '.spec.backup.storages[$storage].oss[$field]' +++ mktemp ++ local LAST_OUT=/tmp/tmp.jM3LvcrqdR +++ mktemp ++ local LAST_ERR=/tmp/tmp.YrCWHkYS7u ++ 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.jM3LvcrqdR ++ cat /tmp/tmp.YrCWHkYS7u ++ rm /tmp/tmp.jM3LvcrqdR /tmp/tmp.YrCWHkYS7u ++ return 0 + backup_endpoint_oss_native=https://oss-eu-central-1.aliyuncs.com ++ get_backup_storage_oss_field backup-oss-native region ++ local backup_name=backup-oss-native ++ local field=region ++ local cluster_name ++ local storage_name +++ get_backup_cluster_name backup-oss-native +++ local backup_name=backup-oss-native +++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.spec.clusterName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.V8HFM06UNV ++++ mktemp +++ local LAST_ERR=/tmp/tmp.ZTZ2BFvrUa +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] +++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.spec.clusterName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.V8HFM06UNV +++ cat /tmp/tmp.ZTZ2BFvrUa +++ rm /tmp/tmp.V8HFM06UNV /tmp/tmp.ZTZ2BFvrUa +++ return 0 ++ cluster_name=some-name +++ get_backup_storage_name backup-oss-native +++ local backup_name=backup-oss-native +++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.spec.storageName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.AtimPyLRod ++++ mktemp +++ local LAST_ERR=/tmp/tmp.paAXSEe0W1 +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] +++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.spec.storageName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.AtimPyLRod +++ cat /tmp/tmp.paAXSEe0W1 +++ rm /tmp/tmp.AtimPyLRod /tmp/tmp.paAXSEe0W1 +++ return 0 ++ storage_name=oss-native ++ kubectl_bin get psmdb some-name -o json ++ jq -r --arg storage oss-native --arg field region '.spec.backup.storages[$storage].oss[$field]' +++ mktemp ++ local LAST_OUT=/tmp/tmp.EblbJW7naF +++ mktemp ++ local LAST_ERR=/tmp/tmp.UXDduHhvSX ++ 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.EblbJW7naF ++ cat /tmp/tmp.UXDduHhvSX ++ rm /tmp/tmp.EblbJW7naF /tmp/tmp.UXDduHhvSX ++ return 0 + backup_region_oss_native=eu-central-1 + check_backup_in_storage backup-oss-native oss rs0 myApp.test.gz + local backup=backup-oss-native + local storage_type=oss + local replset=rs0 + local file=myApp.test.gz + local protocol=http + local endpoint ++ get_backup_dest backup-oss-native ++ local backup_name=backup-oss-native ++ /usr/sbin/sed 's|https://engk8soperators.blob.core.windows.net/||' ++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.status.destination}' ++ sed -e 's/.json$//' +++ mktemp ++ sed 's|gs://||' ++ sed 's|s3://||' ++ local LAST_OUT=/tmp/tmp.nvWLi5EK0D +++ mktemp ++ sed 's|oss://||' ++ sed 's|azure://||' ++ sed 's|oci://||' ++ local LAST_ERR=/tmp/tmp.L7UiHol4Op ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] ++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.status.destination}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.nvWLi5EK0D ++ cat /tmp/tmp.L7UiHol4Op ++ rm /tmp/tmp.nvWLi5EK0D /tmp/tmp.L7UiHol4Op ++ return 0 + backup_dest=operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z + case ${storage_type} in ++ get_backup_storage_oss_field backup-oss-native endpointUrl ++ local backup_name=backup-oss-native ++ local field=endpointUrl ++ local cluster_name ++ local storage_name +++ get_backup_cluster_name backup-oss-native +++ local backup_name=backup-oss-native +++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.spec.clusterName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.orKRAzav21 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.lxGGnBUD90 +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] +++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.spec.clusterName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.orKRAzav21 +++ cat /tmp/tmp.lxGGnBUD90 +++ rm /tmp/tmp.orKRAzav21 /tmp/tmp.lxGGnBUD90 +++ return 0 ++ cluster_name=some-name +++ get_backup_storage_name backup-oss-native +++ local backup_name=backup-oss-native +++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.spec.storageName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.NGl8DCi5tZ ++++ mktemp +++ local LAST_ERR=/tmp/tmp.9qpMaNB56G +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] +++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.spec.storageName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.NGl8DCi5tZ +++ cat /tmp/tmp.9qpMaNB56G +++ rm /tmp/tmp.NGl8DCi5tZ /tmp/tmp.9qpMaNB56G +++ return 0 ++ storage_name=oss-native ++ kubectl_bin get psmdb some-name -o json ++ jq -r --arg storage oss-native --arg field endpointUrl '.spec.backup.storages[$storage].oss[$field]' +++ mktemp ++ local LAST_OUT=/tmp/tmp.89fuJeVT4O +++ mktemp ++ local LAST_ERR=/tmp/tmp.vvqJttpenm ++ 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.89fuJeVT4O ++ cat /tmp/tmp.vvqJttpenm ++ rm /tmp/tmp.89fuJeVT4O /tmp/tmp.vvqJttpenm ++ return 0 + endpoint=https://oss-eu-central-1.aliyuncs.com ++ get_backup_storage_oss_field backup-oss-native region ++ local backup_name=backup-oss-native ++ local field=region ++ local cluster_name ++ local storage_name +++ get_backup_cluster_name backup-oss-native +++ local backup_name=backup-oss-native +++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.spec.clusterName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.pQSZwJFrCA ++++ mktemp +++ local LAST_ERR=/tmp/tmp.OG5PtTwMCM +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] +++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.spec.clusterName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.pQSZwJFrCA +++ cat /tmp/tmp.OG5PtTwMCM +++ rm /tmp/tmp.pQSZwJFrCA /tmp/tmp.OG5PtTwMCM +++ return 0 ++ cluster_name=some-name +++ get_backup_storage_name backup-oss-native +++ local backup_name=backup-oss-native +++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.spec.storageName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.MdjFA7vDnD ++++ mktemp +++ local LAST_ERR=/tmp/tmp.VRt4dL2DXY +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] +++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.spec.storageName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.MdjFA7vDnD +++ cat /tmp/tmp.VRt4dL2DXY +++ rm /tmp/tmp.MdjFA7vDnD /tmp/tmp.VRt4dL2DXY +++ return 0 ++ storage_name=oss-native ++ kubectl_bin get psmdb some-name -o json ++ jq -r --arg storage oss-native --arg field region '.spec.backup.storages[$storage].oss[$field]' +++ mktemp ++ local LAST_OUT=/tmp/tmp.eGbdaFD3JB +++ mktemp ++ local LAST_ERR=/tmp/tmp.00VCpBA6EE ++ 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.eGbdaFD3JB ++ cat /tmp/tmp.00VCpBA6EE ++ rm /tmp/tmp.eGbdaFD3JB /tmp/tmp.00VCpBA6EE ++ return 0 + region=eu-central-1 ++ echo https://oss-eu-central-1.aliyuncs.com ++ /usr/sbin/sed 's|://oss-|://s3.oss-|' + endpoint=https://s3.oss-eu-central-1.aliyuncs.com + _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-sharded-oss-native/2026-11-23T06:41:34Z /rs0/myApp.test.gz https://s3.oss-eu-central-1.aliyuncs.com oss-native ++ echo operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z ++ cut -d/ -f1 + bucket=operator-testing ++ echo operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z ++ cut -d/ -f2- + key_prefix=psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z + key=/rs0/myApp.test.gz + endpoint=https://s3.oss-eu-central-1.aliyuncs.com + storage_name=oss-native + 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-sharded-oss-native/2026-11-23T06:41:34Z/rs0/myApp.test.gz + echo 'Backup operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z//rs0/myApp.test.gz found in oss-native' Backup operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z//rs0/myApp.test.gz found in oss-native + _aws_env_restore + local trace_was_on=0 + [[ ehxB == *x* ]] + trace_was_on=1 + set +x + return 0 + check_backup_in_storage backup-oss-native oss rs1 myApp1.test.gz + local backup=backup-oss-native + local storage_type=oss + local replset=rs1 + local file=myApp1.test.gz + local protocol=http + local endpoint ++ get_backup_dest backup-oss-native ++ local backup_name=backup-oss-native ++ /usr/sbin/sed 's|https://engk8soperators.blob.core.windows.net/||' ++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.status.destination}' ++ sed 's|s3://||' ++ sed -e 's/.json$//' +++ mktemp ++ sed 's|azure://||' ++ sed 's|gs://||' ++ local LAST_OUT=/tmp/tmp.1d9WyIW5Ou ++ sed 's|oss://||' +++ mktemp ++ sed 's|oci://||' ++ local LAST_ERR=/tmp/tmp.3iNmSdC0IV ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] ++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.status.destination}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.1d9WyIW5Ou ++ cat /tmp/tmp.3iNmSdC0IV ++ rm /tmp/tmp.1d9WyIW5Ou /tmp/tmp.3iNmSdC0IV ++ return 0 + backup_dest=operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z + case ${storage_type} in ++ get_backup_storage_oss_field backup-oss-native endpointUrl ++ local backup_name=backup-oss-native ++ local field=endpointUrl ++ local cluster_name ++ local storage_name +++ get_backup_cluster_name backup-oss-native +++ local backup_name=backup-oss-native +++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.spec.clusterName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.Fbr3I7FtHs ++++ mktemp +++ local LAST_ERR=/tmp/tmp.jkPyIikMbI +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] +++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.spec.clusterName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.Fbr3I7FtHs +++ cat /tmp/tmp.jkPyIikMbI +++ rm /tmp/tmp.Fbr3I7FtHs /tmp/tmp.jkPyIikMbI +++ return 0 ++ cluster_name=some-name +++ get_backup_storage_name backup-oss-native +++ local backup_name=backup-oss-native +++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.spec.storageName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.HeD1WoPy30 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.hG3YhGk35N +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] +++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.spec.storageName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.HeD1WoPy30 +++ cat /tmp/tmp.hG3YhGk35N +++ rm /tmp/tmp.HeD1WoPy30 /tmp/tmp.hG3YhGk35N +++ return 0 ++ storage_name=oss-native ++ jq -r --arg storage oss-native --arg field endpointUrl '.spec.backup.storages[$storage].oss[$field]' ++ kubectl_bin get psmdb some-name -o json +++ mktemp ++ local LAST_OUT=/tmp/tmp.VuGzYkAUVG +++ mktemp ++ local LAST_ERR=/tmp/tmp.qEoRML5WAj ++ 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.VuGzYkAUVG ++ cat /tmp/tmp.qEoRML5WAj ++ rm /tmp/tmp.VuGzYkAUVG /tmp/tmp.qEoRML5WAj ++ return 0 + endpoint=https://oss-eu-central-1.aliyuncs.com ++ get_backup_storage_oss_field backup-oss-native region ++ local backup_name=backup-oss-native ++ local field=region ++ local cluster_name ++ local storage_name +++ get_backup_cluster_name backup-oss-native +++ local backup_name=backup-oss-native +++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.spec.clusterName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.MzMXMAZAuh ++++ mktemp +++ local LAST_ERR=/tmp/tmp.NdFT8eh2Yh +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] +++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.spec.clusterName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.MzMXMAZAuh +++ cat /tmp/tmp.NdFT8eh2Yh +++ rm /tmp/tmp.MzMXMAZAuh /tmp/tmp.NdFT8eh2Yh +++ return 0 ++ cluster_name=some-name +++ get_backup_storage_name backup-oss-native +++ local backup_name=backup-oss-native +++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.spec.storageName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.7JSQ3jYKMG ++++ mktemp +++ local LAST_ERR=/tmp/tmp.Pwwy2sAzz1 +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] +++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.spec.storageName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.7JSQ3jYKMG +++ cat /tmp/tmp.Pwwy2sAzz1 +++ rm /tmp/tmp.7JSQ3jYKMG /tmp/tmp.Pwwy2sAzz1 +++ return 0 ++ storage_name=oss-native ++ kubectl_bin get psmdb some-name -o json ++ jq -r --arg storage oss-native --arg field region '.spec.backup.storages[$storage].oss[$field]' +++ mktemp ++ local LAST_OUT=/tmp/tmp.k1u2edBVnv +++ mktemp ++ local LAST_ERR=/tmp/tmp.bT7R68q7Xj ++ 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.k1u2edBVnv ++ cat /tmp/tmp.bT7R68q7Xj ++ rm /tmp/tmp.k1u2edBVnv /tmp/tmp.bT7R68q7Xj ++ return 0 + region=eu-central-1 ++ echo https://oss-eu-central-1.aliyuncs.com ++ /usr/sbin/sed 's|://oss-|://s3.oss-|' + endpoint=https://s3.oss-eu-central-1.aliyuncs.com + _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-sharded-oss-native/2026-11-23T06:41:34Z /rs1/myApp1.test.gz https://s3.oss-eu-central-1.aliyuncs.com oss-native ++ cut -d/ -f1 ++ echo operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z + bucket=operator-testing ++ echo operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z ++ cut -d/ -f2- + key_prefix=psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z + key=/rs1/myApp1.test.gz + endpoint=https://s3.oss-eu-central-1.aliyuncs.com + storage_name=oss-native + 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-sharded-oss-native/2026-11-23T06:41:34Z/rs1/myApp1.test.gz + echo 'Backup operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z//rs1/myApp1.test.gz found in oss-native' Backup operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z//rs1/myApp1.test.gz found in oss-native + _aws_env_restore + local trace_was_on=0 + [[ ehxB == *x* ]] + trace_was_on=1 + set +x + return 0 + check_backup_in_storage backup-oss-native oss rs2 myApp2.test.gz + local backup=backup-oss-native + local storage_type=oss + local replset=rs2 + local file=myApp2.test.gz + local protocol=http + local endpoint ++ get_backup_dest backup-oss-native ++ /usr/sbin/sed 's|https://engk8soperators.blob.core.windows.net/||' ++ local backup_name=backup-oss-native ++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.status.destination}' ++ sed -e 's/.json$//' +++ mktemp ++ sed 's|azure://||' ++ local LAST_OUT=/tmp/tmp.A0p114m82G ++ sed 's|gs://||' ++ sed 's|s3://||' +++ mktemp ++ sed 's|oss://||' ++ local LAST_ERR=/tmp/tmp.CUIYuZDfyO ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb-backup' 'backup-oss-native' '-o' 'jsonpath={.status.destination}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ sed 's|oci://||' ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb-backup == \- ]] ++ [[ psmdb-backup =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ backup-oss-native == \- ]] ++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.status.destination}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.A0p114m82G ++ cat /tmp/tmp.CUIYuZDfyO ++ rm /tmp/tmp.A0p114m82G /tmp/tmp.CUIYuZDfyO ++ return 0 + backup_dest=operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z + case ${storage_type} in ++ get_backup_storage_oss_field backup-oss-native endpointUrl ++ local backup_name=backup-oss-native ++ local field=endpointUrl ++ local cluster_name ++ local storage_name +++ get_backup_cluster_name backup-oss-native +++ local backup_name=backup-oss-native +++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.spec.clusterName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.J0ntoC2Jhu ++++ mktemp +++ local LAST_ERR=/tmp/tmp.zdoP2jS7GY +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] +++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.spec.clusterName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.J0ntoC2Jhu +++ cat /tmp/tmp.zdoP2jS7GY +++ rm /tmp/tmp.J0ntoC2Jhu /tmp/tmp.zdoP2jS7GY +++ return 0 ++ cluster_name=some-name +++ get_backup_storage_name backup-oss-native +++ local backup_name=backup-oss-native +++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.spec.storageName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.xnZb6XoQNx ++++ mktemp +++ local LAST_ERR=/tmp/tmp.4bRmLWlB9S +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] +++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.spec.storageName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.xnZb6XoQNx +++ cat /tmp/tmp.4bRmLWlB9S +++ rm /tmp/tmp.xnZb6XoQNx /tmp/tmp.4bRmLWlB9S +++ return 0 ++ storage_name=oss-native ++ kubectl_bin get psmdb some-name -o json ++ jq -r --arg storage oss-native --arg field endpointUrl '.spec.backup.storages[$storage].oss[$field]' +++ mktemp ++ local LAST_OUT=/tmp/tmp.bTxGAMbveI +++ mktemp ++ local LAST_ERR=/tmp/tmp.lquPEaQW6r ++ 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.bTxGAMbveI ++ cat /tmp/tmp.lquPEaQW6r ++ rm /tmp/tmp.bTxGAMbveI /tmp/tmp.lquPEaQW6r ++ return 0 + endpoint=https://oss-eu-central-1.aliyuncs.com ++ get_backup_storage_oss_field backup-oss-native region ++ local backup_name=backup-oss-native ++ local field=region ++ local cluster_name ++ local storage_name +++ get_backup_cluster_name backup-oss-native +++ local backup_name=backup-oss-native +++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.spec.clusterName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.5XBrd4TXVV ++++ mktemp +++ local LAST_ERR=/tmp/tmp.7iEts91Mkf +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] +++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.spec.clusterName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.5XBrd4TXVV +++ cat /tmp/tmp.7iEts91Mkf +++ rm /tmp/tmp.5XBrd4TXVV /tmp/tmp.7iEts91Mkf +++ return 0 ++ cluster_name=some-name +++ get_backup_storage_name backup-oss-native +++ local backup_name=backup-oss-native +++ kubectl_bin get psmdb-backup backup-oss-native -o 'jsonpath={.spec.storageName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.UfcZ5k9nWf ++++ mktemp +++ local LAST_ERR=/tmp/tmp.dY9vm7J2Ka +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('get' 'psmdb-backup' 'backup-oss-native' '-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-native == \- ]] +++ [[ backup-oss-native =~ ^(-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-native -o 'jsonpath={.spec.storageName}' +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.UfcZ5k9nWf +++ cat /tmp/tmp.dY9vm7J2Ka +++ rm /tmp/tmp.UfcZ5k9nWf /tmp/tmp.dY9vm7J2Ka +++ return 0 ++ storage_name=oss-native ++ kubectl_bin get psmdb some-name -o json ++ jq -r --arg storage oss-native --arg field region '.spec.backup.storages[$storage].oss[$field]' +++ mktemp ++ local LAST_OUT=/tmp/tmp.kF52CN88h5 +++ mktemp ++ local LAST_ERR=/tmp/tmp.VSa54LLSua ++ 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.kF52CN88h5 ++ cat /tmp/tmp.VSa54LLSua ++ rm /tmp/tmp.kF52CN88h5 /tmp/tmp.VSa54LLSua ++ return 0 + region=eu-central-1 ++ echo https://oss-eu-central-1.aliyuncs.com ++ /usr/sbin/sed 's|://oss-|://s3.oss-|' + endpoint=https://s3.oss-eu-central-1.aliyuncs.com + _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-sharded-oss-native/2026-11-23T06:41:34Z /rs2/myApp2.test.gz https://s3.oss-eu-central-1.aliyuncs.com oss-native ++ echo operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z ++ cut -d/ -f1 + bucket=operator-testing ++ echo operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z ++ cut -d/ -f2- + key_prefix=psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z + key=/rs2/myApp2.test.gz + endpoint=https://s3.oss-eu-central-1.aliyuncs.com + storage_name=oss-native + 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-sharded-oss-native/2026-11-23T06:41:34Z/rs2/myApp2.test.gz + echo 'Backup operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z//rs2/myApp2.test.gz found in oss-native' Backup operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z//rs2/myApp2.test.gz found in oss-native + _aws_env_restore + local trace_was_on=0 + [[ ehxB == *x* ]] + trace_was_on=1 + set +x + return 0 + insert_data_mongos 100501 myApp '' 27019 + local data=100501 + local db_name=myApp + local flags= + local port=27019 + run_mongos 'use myApp\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.An36VB3sjA +++ mktemp ++ local LAST_ERR=/tmp/tmp.QQCcYiOSmz ++ 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.An36VB3sjA ++ cat /tmp/tmp.QQCcYiOSmz ++ rm /tmp/tmp.An36VB3sjA /tmp/tmp.QQCcYiOSmz ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.AAHs99HfXd ++ mktemp + local LAST_ERR=/tmp/tmp.moG7EbPoqX + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.AAHs99HfXd Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("81d241ad-ee99-4c34-838c-3ea54e7a96c6") } 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.moG7EbPoqX + rm /tmp/tmp.AAHs99HfXd /tmp/tmp.moG7EbPoqX + return 0 + insert_data_mongos 100501 myApp1 '' 27019 + local data=100501 + local db_name=myApp1 + local flags= + local port=27019 + run_mongos 'use myApp1\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp1\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.V5MhZMSm3a +++ mktemp ++ local LAST_ERR=/tmp/tmp.xep7HI0LO4 ++ 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.V5MhZMSm3a ++ cat /tmp/tmp.xep7HI0LO4 ++ rm /tmp/tmp.V5MhZMSm3a /tmp/tmp.xep7HI0LO4 ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.mHSu28Kiro ++ mktemp + local LAST_ERR=/tmp/tmp.bYGLDvFZuT + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp1\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp1\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.mHSu28Kiro Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("d034d671-8d95-4548-80e2-bff6154e779d") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match switched to db myApp1 WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.bYGLDvFZuT + rm /tmp/tmp.mHSu28Kiro /tmp/tmp.bYGLDvFZuT + return 0 + insert_data_mongos 100501 myApp2 '' 27019 + local data=100501 + local db_name=myApp2 + local flags= + local port=27019 + run_mongos 'use myApp2\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp2\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.XnmdIy4vqM +++ mktemp ++ local LAST_ERR=/tmp/tmp.DGpMtWB9Qn ++ 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.XnmdIy4vqM ++ cat /tmp/tmp.DGpMtWB9Qn ++ rm /tmp/tmp.XnmdIy4vqM /tmp/tmp.DGpMtWB9Qn ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.GkrRcoVOrQ ++ mktemp + local LAST_ERR=/tmp/tmp.sArYobgKZW + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp2\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp2\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.GkrRcoVOrQ Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("19db42ff-45c1-47d7-85d3-f74ad02c9d70") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match switched to db myApp2 WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.sArYobgKZW + rm /tmp/tmp.GkrRcoVOrQ /tmp/tmp.sArYobgKZW + return 0 + check_data -2nd + local postfix=-2nd ++ seq 0 2 + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 -2nd .svc.cluster.local myApp test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=-2nd + local suffix=.svc.cluster.local + local database=myApp + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp' + set +o xtrace [2026-11-23T06:52:48+0000] running db.test.command() in myApp ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + grep -E -v 'I NETWORK|W 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/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.sh8QGTRN9v +++ mktemp ++ local LAST_ERR=/tmp/tmp.yg4BKEb0jQ ++ 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.sh8QGTRN9v ++ cat /tmp/tmp.yg4BKEb0jQ ++ rm /tmp/tmp.sh8QGTRN9v /tmp/tmp.yg4BKEb0jQ ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.jNkNOUGkzX ++ mktemp + local LAST_ERR=/tmp/tmp.lMashEfMCX + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.jNkNOUGkzX + cat /tmp/tmp.lMashEfMCX + rm /tmp/tmp.jNkNOUGkzX /tmp/tmp.lMashEfMCX + return 0 + compare_mongo_output find -2nd + local command=find + local postfix=-2nd + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find-2nd.json /tmp/tmp.EmeHjOpCG1/find-2nd + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 -2nd1 .svc.cluster.local myApp1 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=-2nd1 + local suffix=.svc.cluster.local + local database=myApp1 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp1' + set +o xtrace [2026-11-23T06:52:51+0000] running db.test.command() in myApp1 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp1\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + grep -E -v 'I NETWORK|W NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local 'command=use myApp1\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.PdIHMYy9zf +++ mktemp ++ local LAST_ERR=/tmp/tmp.LB5uo3DQEM ++ 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.PdIHMYy9zf ++ cat /tmp/tmp.LB5uo3DQEM ++ rm /tmp/tmp.PdIHMYy9zf /tmp/tmp.LB5uo3DQEM ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.KcBWsvvZNI ++ mktemp + local LAST_ERR=/tmp/tmp.fr8M93CvNS + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.KcBWsvvZNI + cat /tmp/tmp.fr8M93CvNS + rm /tmp/tmp.KcBWsvvZNI /tmp/tmp.fr8M93CvNS + return 0 + compare_mongo_output find -2nd1 + local command=find + local postfix=-2nd1 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find-2nd1.json /tmp/tmp.EmeHjOpCG1/find-2nd1 + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 -2nd2 .svc.cluster.local myApp2 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=-2nd2 + local suffix=.svc.cluster.local + local database=myApp2 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp2' + set +o xtrace [2026-11-23T06:52:53+0000] running db.test.command() in myApp2 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp2\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + grep -E -v 'I NETWORK|W NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local 'command=use myApp2\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.lQzxLjwb4L +++ mktemp ++ local LAST_ERR=/tmp/tmp.dacd5LBrYT ++ 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.lQzxLjwb4L ++ cat /tmp/tmp.dacd5LBrYT ++ rm /tmp/tmp.lQzxLjwb4L /tmp/tmp.dacd5LBrYT ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.6LghXFJ44U ++ mktemp + local LAST_ERR=/tmp/tmp.5o73jXYc3h + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.6LghXFJ44U + cat /tmp/tmp.5o73jXYc3h + rm /tmp/tmp.6LghXFJ44U /tmp/tmp.5o73jXYc3h + return 0 + compare_mongo_output find -2nd2 + local command=find + local postfix=-2nd2 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find-2nd2.json /tmp/tmp.EmeHjOpCG1/find-2nd2 + return + run_restore backup-oss-native + local backup_name=backup-oss-native + local restore_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/restore.yml + log 'running restore restore-backup-oss-native' + set +o xtrace [2026-11-23T06:52:56+0000] running restore restore-backup-oss-native + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/restore.yml + /usr/sbin/sed -e 's/name:/name: restore-backup-oss-native/' + /usr/sbin/sed -e 's/backupName:/backupName: backup-oss-native/' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.ttFCYC6YkG ++ mktemp + local LAST_ERR=/tmp/tmp.S6rd7J0a7W + 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.cc9SZErUZX + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.cc9SZErUZX + 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.cc9SZErUZX + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.ttFCYC6YkG perconaservermongodbrestore.psmdb.percona.com/restore-backup-oss-native created + cat /tmp/tmp.S6rd7J0a7W + rm /tmp/tmp.ttFCYC6YkG /tmp/tmp.S6rd7J0a7W /tmp/tmp.cc9SZErUZX + return 0 + wait_restore backup-oss-native some-name + local backup_name=backup-oss-native + local cluster_name=some-name + local target_state=ready + local wait_cluster_consistency=1 + local wait_time=1780 + local ok_if_ready=0 + set +o xtrace Waiting for the psmdb-restore/restore-backup-oss-native object to be created.OK Waiting psmdb-restore/restore-backup-oss-native to reach state "ready" ..OK after 1 minutes + [[ 1 -eq 1 ]] + 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.CKLVTOeoJu +++ mktemp ++ local LAST_ERR=/tmp/tmp.8i3z40xF5C ++ 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.CKLVTOeoJu ++ cat /tmp/tmp.8i3z40xF5C ++ rm /tmp/tmp.CKLVTOeoJu /tmp/tmp.8i3z40xF5C ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 1 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.rBIBeFIJOE +++ mktemp ++ local LAST_ERR=/tmp/tmp.ILJ4iTi1LO ++ 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.rBIBeFIJOE ++ cat /tmp/tmp.ILJ4iTi1LO ++ rm /tmp/tmp.rBIBeFIJOE /tmp/tmp.ILJ4iTi1LO ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 2 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.usTjctHtLU +++ mktemp ++ local LAST_ERR=/tmp/tmp.zArhWZCI60 ++ 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.usTjctHtLU ++ cat /tmp/tmp.zArhWZCI60 ++ rm /tmp/tmp.usTjctHtLU /tmp/tmp.zArhWZCI60 ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 3 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.GhJukpaM6R +++ mktemp ++ local LAST_ERR=/tmp/tmp.Th0kYCt0uw ++ 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.GhJukpaM6R ++ cat /tmp/tmp.Th0kYCt0uw ++ rm /tmp/tmp.GhJukpaM6R /tmp/tmp.Th0kYCt0uw ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 4 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.S8wPm0naNJ +++ mktemp ++ local LAST_ERR=/tmp/tmp.fcd8z1dHoA ++ 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.S8wPm0naNJ ++ cat /tmp/tmp.fcd8z1dHoA ++ rm /tmp/tmp.S8wPm0naNJ /tmp/tmp.fcd8z1dHoA ++ return 0 + [[ ready == ready ]] + echo .OK .OK + check_data + local postfix= ++ seq 0 2 + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' .svc.cluster.local myApp test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix= + local suffix=.svc.cluster.local + local database=myApp + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp' + set +o xtrace [2026-11-23T06:55:25+0000] running db.test.command() in myApp ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + grep -E -v 'I NETWORK|W 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/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.t9gkBjuusf +++ mktemp ++ local LAST_ERR=/tmp/tmp.kZPcgmAcBw ++ 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.t9gkBjuusf ++ cat /tmp/tmp.kZPcgmAcBw ++ rm /tmp/tmp.t9gkBjuusf /tmp/tmp.kZPcgmAcBw ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.rdMvwVo26S ++ mktemp + local LAST_ERR=/tmp/tmp.2AazPyIWpE + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.rdMvwVo26S + cat /tmp/tmp.2AazPyIWpE + rm /tmp/tmp.rdMvwVo26S /tmp/tmp.2AazPyIWpE + 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-sharded/compare/find.json /tmp/tmp.EmeHjOpCG1/find + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 1 .svc.cluster.local myApp1 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=1 + local suffix=.svc.cluster.local + local database=myApp1 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp1' + set +o xtrace [2026-11-23T06:55:27+0000] running db.test.command() in myApp1 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp1\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp1\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + grep -E -v 'I NETWORK|W 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' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.2eDXCjISML +++ mktemp ++ local LAST_ERR=/tmp/tmp.cayo97nZ2b ++ 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.2eDXCjISML ++ cat /tmp/tmp.cayo97nZ2b ++ rm /tmp/tmp.2eDXCjISML /tmp/tmp.cayo97nZ2b ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.nMQCvPxqMr ++ mktemp + local LAST_ERR=/tmp/tmp.uCEdzJdAKC + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.nMQCvPxqMr + cat /tmp/tmp.uCEdzJdAKC + rm /tmp/tmp.nMQCvPxqMr /tmp/tmp.uCEdzJdAKC + return 0 + compare_mongo_output find 1 + local command=find + local postfix=1 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find1.json /tmp/tmp.EmeHjOpCG1/find1 + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 2 .svc.cluster.local myApp2 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=2 + local suffix=.svc.cluster.local + local database=myApp2 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp2' + set +o xtrace [2026-11-23T06:55:30+0000] running db.test.command() in myApp2 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp2\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp2\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + grep -E -v 'I NETWORK|W 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/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.sskXrYuPQ2 +++ mktemp ++ local LAST_ERR=/tmp/tmp.KAzwoJJENg ++ 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.sskXrYuPQ2 ++ cat /tmp/tmp.KAzwoJJENg ++ rm /tmp/tmp.sskXrYuPQ2 /tmp/tmp.KAzwoJJENg ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.C92Xz2qYTv ++ mktemp + local LAST_ERR=/tmp/tmp.lTX4ISAIbt + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.C92Xz2qYTv + cat /tmp/tmp.lTX4ISAIbt + rm /tmp/tmp.C92Xz2qYTv /tmp/tmp.lTX4ISAIbt + return 0 + compare_mongo_output find 2 + local command=find + local postfix=2 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find2.json /tmp/tmp.EmeHjOpCG1/find2 + return + desc 'check backup and restore -- local-s3' + set +o xtrace ----------------------------------------------------------------------------------- check backup and restore -- local-s3 ----------------------------------------------------------------------------------- + check_backup_in_storage backup-local-s3 local-s3 rs0 myApp.test.gz + local backup=backup-local-s3 + local storage_type=local-s3 + local replset=rs0 + local file=myApp.test.gz + local protocol=http + local endpoint ++ get_backup_dest backup-local-s3 ++ local backup_name=backup-local-s3 ++ /usr/sbin/sed 's|https://engk8soperators.blob.core.windows.net/||' ++ sed -e 's/.json$//' ++ kubectl_bin get psmdb-backup backup-local-s3 -o 'jsonpath={.status.destination}' +++ mktemp ++ sed 's|s3://||' ++ sed 's|azure://||' ++ local LAST_OUT=/tmp/tmp.RsAUEaanI8 ++ sed 's|gs://||' ++ sed 's|oss://||' +++ mktemp ++ sed 's|oci://||' ++ local LAST_ERR=/tmp/tmp.17VTprZKvs ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb-backup' 'backup-local-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-local-s3 == \- ]] ++ [[ backup-local-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-local-s3 -o 'jsonpath={.status.destination}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.RsAUEaanI8 ++ cat /tmp/tmp.17VTprZKvs ++ rm /tmp/tmp.RsAUEaanI8 /tmp/tmp.17VTprZKvs ++ return 0 + backup_dest=operator-testing/2026-11-23T06:41:02Z + case ${storage_type} in + endpoint=s3-storage-all-in-one + local port=8333 + '[' http = https ']' + aws_cli_s3 http://s3-storage-all-in-one:8333 s3 ls s3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz + grep myApp.test.gz + local endpoint=http://s3-storage-all-in-one:8333 + shift + kubectl_bin run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url http://s3-storage-all-in-one:8333 s3 ls s3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz ++ mktemp + local LAST_OUT=/tmp/tmp.s6JH44XXVt ++ mktemp + local LAST_ERR=/tmp/tmp.eLQKwPLX7S + local exit_status=0 + local timeout=4 + local i + args=('run' '-i' '--rm' 'aws-cli' '--image=docker.io/amazon/aws-cli:2.34.60' '--restart=Never' '--env=AWS_ACCESS_KEY_ID=some-access-key' '--env=AWS_SECRET_ACCESS_KEY=some-secret-key' '--env=AWS_DEFAULT_REGION=us-east-1' '--' '--no-verify-ssl' '--endpoint-url' 'http://s3-storage-all-in-one:8333' 's3' 'ls' 's3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ run == \- ]] + [[ run =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -i == \- ]] + [[ -i =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --rm == \- ]] + [[ --rm =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ aws-cli == \- ]] + [[ aws-cli =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --image=docker.io/amazon/aws-cli:2.34.60 == \- ]] + [[ --image=docker.io/amazon/aws-cli:2.34.60 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --restart=Never == \- ]] + [[ --restart=Never =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_ACCESS_KEY_ID=some-access-key == \- ]] + [[ --env=AWS_ACCESS_KEY_ID=some-access-key =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key == \- ]] + [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_DEFAULT_REGION=us-east-1 == \- ]] + [[ --env=AWS_DEFAULT_REGION=us-east-1 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --no-verify-ssl == \- ]] + [[ --no-verify-ssl =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --endpoint-url == \- ]] + [[ --endpoint-url =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ http://s3-storage-all-in-one:8333 == \- ]] + [[ http://s3-storage-all-in-one:8333 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3 == \- ]] + [[ s3 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ls == \- ]] + [[ ls =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz == \- ]] + [[ s3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz =~ ^(-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 run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url http://s3-storage-all-in-one:8333 s3 ls s3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.s6JH44XXVt + cat /tmp/tmp.eLQKwPLX7S Warning: BCID failed open: BCID suppressed until 2026-11-23 08:52:04.203931393 +0000 UTC m=+10856.861397148 All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt. If you don't see a command prompt, try pressing enter. + rm /tmp/tmp.s6JH44XXVt /tmp/tmp.eLQKwPLX7S + return 0 + sleep 1 + let retry+=1 + '[' 5 -ge 60 ']' + aws_cli_s3 http://s3-storage-all-in-one:8333 s3 ls s3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz + local endpoint=http://s3-storage-all-in-one:8333 + shift + grep myApp.test.gz + kubectl_bin run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url http://s3-storage-all-in-one:8333 s3 ls s3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz ++ mktemp + local LAST_OUT=/tmp/tmp.YgUlNFr1po ++ mktemp + local LAST_ERR=/tmp/tmp.DS94WLk8cA + local exit_status=0 + local timeout=4 + local i + args=('run' '-i' '--rm' 'aws-cli' '--image=docker.io/amazon/aws-cli:2.34.60' '--restart=Never' '--env=AWS_ACCESS_KEY_ID=some-access-key' '--env=AWS_SECRET_ACCESS_KEY=some-secret-key' '--env=AWS_DEFAULT_REGION=us-east-1' '--' '--no-verify-ssl' '--endpoint-url' 'http://s3-storage-all-in-one:8333' 's3' 'ls' 's3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ run == \- ]] + [[ run =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -i == \- ]] + [[ -i =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --rm == \- ]] + [[ --rm =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ aws-cli == \- ]] + [[ aws-cli =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --image=docker.io/amazon/aws-cli:2.34.60 == \- ]] + [[ --image=docker.io/amazon/aws-cli:2.34.60 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --restart=Never == \- ]] + [[ --restart=Never =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_ACCESS_KEY_ID=some-access-key == \- ]] + [[ --env=AWS_ACCESS_KEY_ID=some-access-key =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key == \- ]] + [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_DEFAULT_REGION=us-east-1 == \- ]] + [[ --env=AWS_DEFAULT_REGION=us-east-1 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --no-verify-ssl == \- ]] + [[ --no-verify-ssl =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --endpoint-url == \- ]] + [[ --endpoint-url =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ http://s3-storage-all-in-one:8333 == \- ]] + [[ http://s3-storage-all-in-one:8333 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3 == \- ]] + [[ s3 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ls == \- ]] + [[ ls =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz == \- ]] + [[ s3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz =~ ^(-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 run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url http://s3-storage-all-in-one:8333 s3 ls s3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.YgUlNFr1po + cat /tmp/tmp.DS94WLk8cA Warning: BCID failed open: BCID suppressed until 2026-11-23 08:52:04.203931393 +0000 UTC m=+10856.861397148 All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt. If you don't see a command prompt, try pressing enter. + rm /tmp/tmp.YgUlNFr1po /tmp/tmp.DS94WLk8cA + return 0 + sleep 1 + let retry+=1 + '[' 6 -ge 60 ']' + aws_cli_s3 http://s3-storage-all-in-one:8333 s3 ls s3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz + local endpoint=http://s3-storage-all-in-one:8333 + shift + kubectl_bin run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url http://s3-storage-all-in-one:8333 s3 ls s3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz + grep myApp.test.gz ++ mktemp + local LAST_OUT=/tmp/tmp.jyJ7ArCG4N ++ mktemp + local LAST_ERR=/tmp/tmp.K7z3P5ZI8i + local exit_status=0 + local timeout=4 + local i + args=('run' '-i' '--rm' 'aws-cli' '--image=docker.io/amazon/aws-cli:2.34.60' '--restart=Never' '--env=AWS_ACCESS_KEY_ID=some-access-key' '--env=AWS_SECRET_ACCESS_KEY=some-secret-key' '--env=AWS_DEFAULT_REGION=us-east-1' '--' '--no-verify-ssl' '--endpoint-url' 'http://s3-storage-all-in-one:8333' 's3' 'ls' 's3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ run == \- ]] + [[ run =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -i == \- ]] + [[ -i =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --rm == \- ]] + [[ --rm =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ aws-cli == \- ]] + [[ aws-cli =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --image=docker.io/amazon/aws-cli:2.34.60 == \- ]] + [[ --image=docker.io/amazon/aws-cli:2.34.60 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --restart=Never == \- ]] + [[ --restart=Never =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_ACCESS_KEY_ID=some-access-key == \- ]] + [[ --env=AWS_ACCESS_KEY_ID=some-access-key =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key == \- ]] + [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_DEFAULT_REGION=us-east-1 == \- ]] + [[ --env=AWS_DEFAULT_REGION=us-east-1 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --no-verify-ssl == \- ]] + [[ --no-verify-ssl =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --endpoint-url == \- ]] + [[ --endpoint-url =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ http://s3-storage-all-in-one:8333 == \- ]] + [[ http://s3-storage-all-in-one:8333 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3 == \- ]] + [[ s3 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ls == \- ]] + [[ ls =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz == \- ]] + [[ s3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz =~ ^(-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 run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url http://s3-storage-all-in-one:8333 s3 ls s3://operator-testing/2026-11-23T06:41:02Z/rs0/myApp.test.gz + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.jyJ7ArCG4N + cat /tmp/tmp.K7z3P5ZI8i Warning: BCID failed open: BCID suppressed until 2026-11-23 08:52:04.203931393 +0000 UTC m=+10856.861397148 All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt. If you don't see a command prompt, try pressing enter. + rm /tmp/tmp.jyJ7ArCG4N /tmp/tmp.K7z3P5ZI8i + return 0 2026-11-23 06:41:07 58 myApp.test.gz + insert_data_mongos 100501 myApp '' 27019 + local data=100501 + local db_name=myApp + local flags= + local port=27019 + run_mongos 'use myApp\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.RfmKhgBheI +++ mktemp ++ local LAST_ERR=/tmp/tmp.bhu7b0hvaY ++ 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.RfmKhgBheI ++ cat /tmp/tmp.bhu7b0hvaY ++ rm /tmp/tmp.RfmKhgBheI /tmp/tmp.bhu7b0hvaY ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.3YinHZ1quy ++ mktemp + local LAST_ERR=/tmp/tmp.hekF64B6D6 + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.3YinHZ1quy Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("6600682e-64a5-42a9-bb30-c4d937a2669d") } 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.hekF64B6D6 + rm /tmp/tmp.3YinHZ1quy /tmp/tmp.hekF64B6D6 + return 0 + insert_data_mongos 100501 myApp1 '' 27019 + local data=100501 + local db_name=myApp1 + local flags= + local port=27019 + run_mongos 'use myApp1\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp1\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.zHZwYIuCET +++ mktemp ++ local LAST_ERR=/tmp/tmp.RDYdLZ3Yl2 ++ 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.zHZwYIuCET ++ cat /tmp/tmp.RDYdLZ3Yl2 ++ rm /tmp/tmp.zHZwYIuCET /tmp/tmp.RDYdLZ3Yl2 ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.QEHJGk8dJO ++ mktemp + local LAST_ERR=/tmp/tmp.l8k3CmSeex + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp1\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp1\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.QEHJGk8dJO Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("6629590b-33d0-403b-a330-dcac5c800769") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match switched to db myApp1 WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.l8k3CmSeex + rm /tmp/tmp.QEHJGk8dJO /tmp/tmp.l8k3CmSeex + return 0 + insert_data_mongos 100501 myApp2 '' 27019 + local data=100501 + local db_name=myApp2 + local flags= + local port=27019 + run_mongos 'use myApp2\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' '' '' 27019 + local 'command=use myApp2\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.MFMssxCEXj +++ mktemp ++ local LAST_ERR=/tmp/tmp.5nWK8N8QmI ++ 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.MFMssxCEXj ++ cat /tmp/tmp.5nWK8N8QmI ++ rm /tmp/tmp.MFMssxCEXj /tmp/tmp.5nWK8N8QmI ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.PHrn5u4L2R ++ mktemp + local LAST_ERR=/tmp/tmp.t55fjzJFRf + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp2\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp2\n db.test.insert({ x: 100501 })\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.PHrn5u4L2R Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("4168ae97-350c-455c-83cf-1ff2acce7018") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match switched to db myApp2 WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.t55fjzJFRf + rm /tmp/tmp.PHrn5u4L2R /tmp/tmp.t55fjzJFRf + return 0 + check_data -2nd + local postfix=-2nd ++ seq 0 2 + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 -2nd .svc.cluster.local myApp test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=-2nd + local suffix=.svc.cluster.local + local database=myApp + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp' + set +o xtrace [2026-11-23T06:55:58+0000] running db.test.command() in myApp ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + grep -E -v 'I NETWORK|W 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/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.XyWlx95grC +++ mktemp ++ local LAST_ERR=/tmp/tmp.7dinX3JF80 ++ 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.XyWlx95grC ++ cat /tmp/tmp.7dinX3JF80 ++ rm /tmp/tmp.XyWlx95grC /tmp/tmp.7dinX3JF80 ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.QG37sAACGk ++ mktemp + local LAST_ERR=/tmp/tmp.FkZoyl0cQB + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.QG37sAACGk + cat /tmp/tmp.FkZoyl0cQB + rm /tmp/tmp.QG37sAACGk /tmp/tmp.FkZoyl0cQB + return 0 + compare_mongo_output find -2nd + local command=find + local postfix=-2nd + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find-2nd.json /tmp/tmp.EmeHjOpCG1/find-2nd + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 -2nd1 .svc.cluster.local myApp1 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=-2nd1 + local suffix=.svc.cluster.local + local database=myApp1 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp1' + set +o xtrace [2026-11-23T06:56:01+0000] running db.test.command() in myApp1 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + grep -E -v 'I NETWORK|W 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_mongos 'use myApp1\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + local 'command=use myApp1\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.mp5nq1Tw08 +++ mktemp ++ local LAST_ERR=/tmp/tmp.1Hj8UpbsMk ++ 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.mp5nq1Tw08 ++ cat /tmp/tmp.1Hj8UpbsMk ++ rm /tmp/tmp.mp5nq1Tw08 /tmp/tmp.1Hj8UpbsMk ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.Zox1lgK4mm ++ mktemp + local LAST_ERR=/tmp/tmp.nbKYx0UhrM + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Zox1lgK4mm + cat /tmp/tmp.nbKYx0UhrM + rm /tmp/tmp.Zox1lgK4mm /tmp/tmp.nbKYx0UhrM + return 0 + compare_mongo_output find -2nd1 + local command=find + local postfix=-2nd1 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find-2nd1.json /tmp/tmp.EmeHjOpCG1/find-2nd1 + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 -2nd2 .svc.cluster.local myApp2 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=-2nd2 + local suffix=.svc.cluster.local + local database=myApp2 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp2' + set +o xtrace [2026-11-23T06:56:03+0000] running db.test.command() in myApp2 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp2\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp2\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + grep -E -v 'I NETWORK|W 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/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.NAvUbZ0Yjj +++ mktemp ++ local LAST_ERR=/tmp/tmp.k9wSQKC1ri ++ 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.NAvUbZ0Yjj ++ cat /tmp/tmp.k9wSQKC1ri ++ rm /tmp/tmp.NAvUbZ0Yjj /tmp/tmp.k9wSQKC1ri ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.drtMQiTQVK ++ mktemp + local LAST_ERR=/tmp/tmp.XWaXLEZyOI + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.drtMQiTQVK + cat /tmp/tmp.XWaXLEZyOI + rm /tmp/tmp.drtMQiTQVK /tmp/tmp.XWaXLEZyOI + return 0 + compare_mongo_output find -2nd2 + local command=find + local postfix=-2nd2 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find-2nd2.json /tmp/tmp.EmeHjOpCG1/find-2nd2 + return + run_restore backup-local-s3 + local backup_name=backup-local-s3 + local restore_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/restore.yml + log 'running restore restore-backup-local-s3' + set +o xtrace [2026-11-23T06:56:06+0000] running restore restore-backup-local-s3 + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/conf/restore.yml + /usr/sbin/sed -e 's/backupName:/backupName: backup-local-s3/' + /usr/sbin/sed -e 's/name:/name: restore-backup-local-s3/' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.bSe2iqzpaN ++ mktemp + local LAST_ERR=/tmp/tmp.zPJCKMXkD1 + 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.fCeAUqHeBv + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.fCeAUqHeBv + 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.fCeAUqHeBv + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.bSe2iqzpaN perconaservermongodbrestore.psmdb.percona.com/restore-backup-local-s3 created + cat /tmp/tmp.zPJCKMXkD1 + rm /tmp/tmp.bSe2iqzpaN /tmp/tmp.zPJCKMXkD1 /tmp/tmp.fCeAUqHeBv + return 0 + wait_restore backup-local-s3 some-name + local backup_name=backup-local-s3 + local cluster_name=some-name + local target_state=ready + local wait_cluster_consistency=1 + local wait_time=1780 + local ok_if_ready=0 + set +o xtrace Waiting for the psmdb-restore/restore-backup-local-s3 object to be created.OK Waiting psmdb-restore/restore-backup-local-s3 to reach state "ready" ..OK after 1 minutes + [[ 1 -eq 1 ]] + 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.eJMfN1mpUj +++ mktemp ++ local LAST_ERR=/tmp/tmp.BwvDIQlZny ++ 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.eJMfN1mpUj ++ cat /tmp/tmp.BwvDIQlZny ++ rm /tmp/tmp.eJMfN1mpUj /tmp/tmp.BwvDIQlZny ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 1 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.2a8fxuBGFb +++ mktemp ++ local LAST_ERR=/tmp/tmp.JivLpi9hoU ++ 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.2a8fxuBGFb ++ cat /tmp/tmp.JivLpi9hoU ++ rm /tmp/tmp.2a8fxuBGFb /tmp/tmp.JivLpi9hoU ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 2 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.L9rcjP3Dkb +++ mktemp ++ local LAST_ERR=/tmp/tmp.3ywck5h24Y ++ 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.L9rcjP3Dkb ++ cat /tmp/tmp.3ywck5h24Y ++ rm /tmp/tmp.L9rcjP3Dkb /tmp/tmp.3ywck5h24Y ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 3 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.HTVscr7MAU +++ mktemp ++ local LAST_ERR=/tmp/tmp.p9vIhRvpRl ++ 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.HTVscr7MAU ++ cat /tmp/tmp.p9vIhRvpRl ++ rm /tmp/tmp.HTVscr7MAU /tmp/tmp.p9vIhRvpRl ++ return 0 + [[ initializing == ready ]] + let retry+=1 + '[' 4 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.DL7YEXvxWQ +++ mktemp ++ local LAST_ERR=/tmp/tmp.PqFDhrp0sa ++ 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.DL7YEXvxWQ ++ cat /tmp/tmp.PqFDhrp0sa ++ rm /tmp/tmp.DL7YEXvxWQ /tmp/tmp.PqFDhrp0sa ++ return 0 + [[ ready == ready ]] + echo .OK .OK + check_data + local postfix= ++ seq 0 2 + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 '' .svc.cluster.local myApp test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix= + local suffix=.svc.cluster.local + local database=myApp + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp' + set +o xtrace [2026-11-23T06:58:20+0000] running db.test.command() in myApp ++ seq 1 3 + for attempt in $(seq 1 "$retries") + grep -E -v 'I NETWORK|W 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_mongos 'use myApp\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.0yz1IlWdLh +++ mktemp ++ local LAST_ERR=/tmp/tmp.qrSCKiPzz9 ++ 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.0yz1IlWdLh ++ cat /tmp/tmp.qrSCKiPzz9 ++ rm /tmp/tmp.0yz1IlWdLh /tmp/tmp.qrSCKiPzz9 ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.ggWZe3hkcb ++ mktemp + local LAST_ERR=/tmp/tmp.mBm79uDLsq + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.ggWZe3hkcb + cat /tmp/tmp.mBm79uDLsq + rm /tmp/tmp.ggWZe3hkcb /tmp/tmp.mBm79uDLsq + 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-sharded/compare/find.json /tmp/tmp.EmeHjOpCG1/find + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 1 .svc.cluster.local myApp1 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=1 + local suffix=.svc.cluster.local + local database=myApp1 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp1' + set +o xtrace [2026-11-23T06:58:22+0000] running db.test.command() in myApp1 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp1\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + grep -E -v 'I NETWORK|W NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local 'command=use myApp1\n db.test.find()' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.KQQJqN2fCP +++ mktemp ++ local LAST_ERR=/tmp/tmp.Q96F4qnjY1 ++ 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.KQQJqN2fCP ++ cat /tmp/tmp.Q96F4qnjY1 ++ rm /tmp/tmp.KQQJqN2fCP /tmp/tmp.Q96F4qnjY1 ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.VIIr1ge4PN ++ mktemp + local LAST_ERR=/tmp/tmp.u9hAYx44H1 + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp1\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp1\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.VIIr1ge4PN + cat /tmp/tmp.u9hAYx44H1 + rm /tmp/tmp.VIIr1ge4PN /tmp/tmp.u9hAYx44H1 + return 0 + compare_mongo_output find 1 + local command=find + local postfix=1 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find1.json /tmp/tmp.EmeHjOpCG1/find1 + return + for i in $(seq 0 2) + compare_mongos_cmd find myApp:myPass@some-name-mongos.demand-backup-sharded-11468 2 .svc.cluster.local myApp2 test 27019 + local command=find + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local postfix=2 + local suffix=.svc.cluster.local + local database=myApp2 + local collection=test + local port=27019 + local tls=false + local retries=3 + local retry_delay=10 + [[ false == true ]] + mongos_command=run_mongos + log 'running db.test.command() in myApp2' + set +o xtrace [2026-11-23T06:58:25+0000] running db.test.command() in myApp2 ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongos 'use myApp2\n db.test.find()' myApp:myPass@some-name-mongos.demand-backup-sharded-11468 mongodb .svc.cluster.local '' 27019 + local 'command=use myApp2\n db.test.find()' + grep -E -v 'I NETWORK|W NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local uri=myApp:myPass@some-name-mongos.demand-backup-sharded-11468 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27019 + local mongo_bin=mongo + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27019 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.viS6x6s1rQ +++ mktemp ++ local LAST_ERR=/tmp/tmp.y7ODrwGOCn ++ 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.viS6x6s1rQ ++ cat /tmp/tmp.y7ODrwGOCn ++ rm /tmp/tmp.viS6x6s1rQ /tmp/tmp.y7ODrwGOCn ++ return 0 + local client_container=psmdb-client-c8847c4cd-4sbfh + kubectl_bin exec psmdb-client-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.PX9ZPdi8sK ++ mktemp + local LAST_ERR=/tmp/tmp.1sd6FHXNx0 + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-4sbfh' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-4sbfh == \- ]] + [[ psmdb-client-c8847c4cd-4sbfh =~ ^(-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 myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin == \- ]] + [[ export HOME=/tmp; printf 'use myApp2\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin =~ ^(-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-c8847c4cd-4sbfh -- bash -c 'export HOME=/tmp; printf '\''use myApp2\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.demand-backup-sharded-11468.svc.cluster.local:27019/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.PX9ZPdi8sK + cat /tmp/tmp.1sd6FHXNx0 + rm /tmp/tmp.PX9ZPdi8sK /tmp/tmp.1sd6FHXNx0 + return 0 + compare_mongo_output find 2 + local command=find + local postfix=2 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-sharded/compare/find2.json /tmp/tmp.EmeHjOpCG1/find2 + return + desc 'delete backup and check if it is removed from bucket -- local-s3' + set +o xtrace ----------------------------------------------------------------------------------- delete backup and check if it is removed from bucket -- local-s3 ----------------------------------------------------------------------------------- + kubectl_bin delete psmdb-backup --all ++ mktemp + local LAST_OUT=/tmp/tmp.wkyZqOlrPz ++ mktemp + local LAST_ERR=/tmp/tmp.9jFLaz3r8P + local exit_status=0 + local timeout=4 + local i + args=('delete' 'psmdb-backup' '--all') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-backup == \- ]] + [[ psmdb-backup =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --all == \- ]] + [[ --all =~ ^(-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 psmdb-backup --all + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.wkyZqOlrPz perconaservermongodbbackup.psmdb.percona.com "backup-aws-s3" deleted from demand-backup-sharded-11468 namespace perconaservermongodbbackup.psmdb.percona.com "backup-azure-blob" deleted from demand-backup-sharded-11468 namespace perconaservermongodbbackup.psmdb.percona.com "backup-gcp-cs" deleted from demand-backup-sharded-11468 namespace perconaservermongodbbackup.psmdb.percona.com "backup-local-s3" deleted from demand-backup-sharded-11468 namespace perconaservermongodbbackup.psmdb.percona.com "backup-oss-native" deleted from demand-backup-sharded-11468 namespace + cat /tmp/tmp.9jFLaz3r8P + rm /tmp/tmp.wkyZqOlrPz /tmp/tmp.9jFLaz3r8P + return 0 ++ aws_cli_s3 http://s3-storage-all-in-one:8333 s3 ls s3://operator-testing/ ++ local endpoint=http://s3-storage-all-in-one:8333 ++ shift ++ kubectl_bin run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url http://s3-storage-all-in-one:8333 s3 ls s3://operator-testing/ ++ cat +++ mktemp ++ grep -c _ ++ local LAST_OUT=/tmp/tmp.XWM6wW6NDY +++ mktemp ++ local LAST_ERR=/tmp/tmp.cIJcMBxonk ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('run' '-i' '--rm' 'aws-cli' '--image=docker.io/amazon/aws-cli:2.34.60' '--restart=Never' '--env=AWS_ACCESS_KEY_ID=some-access-key' '--env=AWS_SECRET_ACCESS_KEY=some-secret-key' '--env=AWS_DEFAULT_REGION=us-east-1' '--' '--no-verify-ssl' '--endpoint-url' 'http://s3-storage-all-in-one:8333' 's3' 'ls' 's3://operator-testing/') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ run == \- ]] ++ [[ run =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -i == \- ]] ++ [[ -i =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --rm == \- ]] ++ [[ --rm =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ aws-cli == \- ]] ++ [[ aws-cli =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --image=docker.io/amazon/aws-cli:2.34.60 == \- ]] ++ [[ --image=docker.io/amazon/aws-cli:2.34.60 =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --restart=Never == \- ]] ++ [[ --restart=Never =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --env=AWS_ACCESS_KEY_ID=some-access-key == \- ]] ++ [[ --env=AWS_ACCESS_KEY_ID=some-access-key =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key == \- ]] ++ [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --env=AWS_DEFAULT_REGION=us-east-1 == \- ]] ++ [[ --env=AWS_DEFAULT_REGION=us-east-1 =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -- == \- ]] ++ [[ -- =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --no-verify-ssl == \- ]] ++ [[ --no-verify-ssl =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --endpoint-url == \- ]] ++ [[ --endpoint-url =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ http://s3-storage-all-in-one:8333 == \- ]] ++ [[ http://s3-storage-all-in-one:8333 =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ s3 == \- ]] ++ [[ s3 =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ ls == \- ]] ++ [[ ls =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ s3://operator-testing/ == \- ]] ++ [[ s3://operator-testing/ =~ ^(-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 run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url http://s3-storage-all-in-one:8333 s3 ls s3://operator-testing/ ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.XWM6wW6NDY ++ cat /tmp/tmp.cIJcMBxonk Warning: BCID failed open: BCID suppressed until 2026-11-23 08:52:04.203931393 +0000 UTC m=+10856.861397148 All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt. If you don't see a command prompt, try pressing enter. ++ rm /tmp/tmp.XWM6wW6NDY /tmp/tmp.cIJcMBxonk ++ return 0 + backup_exists=0 + [[ 0 -eq 1 ]] + '[' -z '' ']' + check_backup_deletion_aws operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z /rs0/myApp.test.gz ++ cut -d/ -f1 ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z + bucket=operator-testing ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:43:04Z ++ cut -d/ -f2- + key_prefix=psmdb-demand-backup-sharded/2026-11-23T06:43:04Z + key=/rs0/myApp.test.gz + storage_name=aws-s3 + retry=0 + _aws_env_save + local trace_was_on=0 + [[ ehxB == *x* ]] + trace_was_on=1 + set +x + return 0 + setup_aws_credentials + local secret_name=aws-s3-secret + local trace_was_on=0 + [[ ehxB == *x* ]] + trace_was_on=1 + set +x + echo 'AWS credentials already set in environment' AWS credentials already set in environment + return 0 + aws s3api head-object --bucket operator-testing --key psmdb-demand-backup-sharded/2026-11-23T06:43:04Z/rs0/myApp.test.gz + echo 'Backup psmdb-demand-backup-sharded/2026-11-23T06:43:04Z/rs0/myApp.test.gz in bucket operator-testing not found in aws-s3' Backup psmdb-demand-backup-sharded/2026-11-23T06:43:04Z/rs0/myApp.test.gz in bucket operator-testing not found in aws-s3 + _aws_env_restore + local trace_was_on=0 + [[ ehxB == *x* ]] + trace_was_on=1 + set +x + return 0 + check_backup_deletion_gcs operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z /rs0/myApp.test.gz + backup_dest_gcp=operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z + obj=/rs0/myApp.test.gz + storage_name=gcp-cs + retry=0 + gcs_path=gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs0/myApp.test.gz + gsutil ls gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs0/myApp.test.gz + echo 'Backup gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs0/myApp.test.gz not found in gcp-cs' Backup gs://operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:07Z/rs0/myApp.test.gz not found in gcp-cs + check_backup_deletion_azure operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z /rs0/myApp.test.gz ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z ++ sed 's|https://[^/]*\.blob\.core\.windows\.net/||' + url_path=operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z ++ cut -d/ -f1 + container=operator-testing ++ echo operator-testing/psmdb-demand-backup-sharded/2026-11-23T06:42:40Z ++ cut -d/ -f2- + blob_prefix=psmdb-demand-backup-sharded/2026-11-23T06:42:40Z + blob=/rs0/myApp.test.gz + storage_name=azure-blob + retry=0 + blob_path=psmdb-demand-backup-sharded/2026-11-23T06:42:40Z/rs0/myApp.test.gz + az storage blob show --container-name operator-testing --name psmdb-demand-backup-sharded/2026-11-23T06:42:40Z/rs0/myApp.test.gz + echo 'Backup psmdb-demand-backup-sharded/2026-11-23T06:42:40Z/rs0/myApp.test.gz in container operator-testing not found in azure-blob' Backup psmdb-demand-backup-sharded/2026-11-23T06:42:40Z/rs0/myApp.test.gz in container operator-testing not found in azure-blob + check_backup_deletion_oss operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z /rs0/myApp.test.gz https://oss-eu-central-1.aliyuncs.com eu-central-1 ++ cut -d/ -f1 ++ echo operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z + bucket=operator-testing ++ cut -d/ -f2- ++ echo operator-testing/psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z + key_prefix=psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z + key=/rs0/myApp.test.gz ++ echo https://oss-eu-central-1.aliyuncs.com ++ /usr/sbin/sed 's|://oss-|://s3.oss-|' + endpoint=https://s3.oss-eu-central-1.aliyuncs.com + region=eu-central-1 + storage_name=oss-native + retry=0 + _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 + aws --endpoint-url https://s3.oss-eu-central-1.aliyuncs.com s3api head-object --bucket operator-testing --key psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z/rs0/myApp.test.gz + echo 'Backup psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z/rs0/myApp.test.gz in bucket operator-testing not found in oss-native' Backup psmdb-demand-backup-sharded-oss-native/2026-11-23T06:41:34Z/rs0/myApp.test.gz in bucket operator-testing not found in oss-native + _aws_env_restore + local trace_was_on=0 + [[ ehxB == *x* ]] + trace_was_on=1 + set +x + return 0 + destroy demand-backup-sharded-11468 + local namespace=demand-backup-sharded-11468 + local ignore_logs=true + [[ 1 == 1 ]] + echo 'SKIP_DELETE=1, not destroying demand-backup-sharded-11468' SKIP_DELETE=1, not destroying demand-backup-sharded-11468 + return + desc 'test passed' + set +o xtrace ----------------------------------------------------------------------------------- test passed ----------------------------------------------------------------------------------- ==================================================================================================== [PASSED] e2e-tests/test_pytest_wrapper.py::test_bash_wrapper ==================================================================================================== [06:58:52.196611] INFO Deleting cert-manager [06:59:08.184518] INFO Cleaning up test environment ----------------------------------------- generated xml file: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/reports/demand-backup-sharded.xml ------------------------------------------ ------------------------------------ Generated html report: file:///mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/reports/demand-backup-sharded.html ------------------------------------ ==================================================================================== 1 passed in 1782.57s (0:29:42) ====================================================================================