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-2742/.venv/bin/python cachedir: .pytest_cache metadata: {'Python': '3.14.10', 'Platform': 'Linux-7.1.6-201.fc44.x86_64-x86_64-with-glibc2.43', 'Packages': {'pytest': '9.1.1', 'pluggy': '1.7.0'}, 'Plugins': {'json-report': '1.5.0', 'dependency': '0.6.1', 'html': '4.2.0', 'metadata': '3.1.1'}, 'CI': 'true', 'BUILD_NUMBER': '2', 'BUILD_ID': '2', 'BUILD_URL': 'https://cloud.cd.percona.com/job/cloud-psmdb-operator/job/PR-2742/2/', 'NODE_NAME': 'hcloud-bfkncubytbaldetv', 'JOB_NAME': 'cloud-psmdb-operator/PR-2742', 'BUILD_TAG': 'jenkins-cloud-psmdb-operator-PR-2742-2', 'EXECUTOR_NUMBER': '0', 'JENKINS_URL': 'https://cloud.cd.percona.com/', 'WORKSPACE': '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742', 'GIT_COMMIT': 'cf134fefe3b251937747923cc1a37f3d6e0fa43f', 'GIT_URL': 'https://github.com/percona/percona-server-mongodb-operator.git', 'GIT_BRANCH': 'PR-2742'} rootdir: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742 configfile: pyproject.toml plugins: json-report-1.5.0, dependency-0.6.1, html-4.2.0, metadata-3.1.1 collecting ... collected 1 item e2e-tests/test_pytest_wrapper.py::test_bash_wrapper[mongod-major-upgrade] [10:04:13.090716] WARNING kubectl error: Warning: version difference between client (1.37) and server (1.34) exceeds the supported minor version skew of +/-1 [10:04:14.351928] 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=cf134fefe3b251937747923cc1a37f3d6e0fa43f GIT_BRANCH=PR-2742 OPERATOR_VERSION=1.24.0 IMAGE=docker.io/perconalab/percona-server-mongodb-operator:PR-2742-cf134fefe 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-2742/e2e-tests/mongod-major-upgrade + . /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/../functions +++ dirname /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/../functions ++ source /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/../vars +++ [[ 1 != 1 ]] ++++ mktemp -d +++ export tmp_dir=/tmp/tmp.Lng8QuTlCY +++ tmp_dir=/tmp/tmp.Lng8QuTlCY ++++ 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-2742/e2e-tests/mongod-major-upgrade +++ export test_name=mongod-major-upgrade +++ test_name=mongod-major-upgrade +++ export namespace=mongod-major-upgrade-1926 +++ namespace=mongod-major-upgrade-1926 +++ export arbiter_namespace=mongod-major-upgrade-arbiter-32335 +++ arbiter_namespace=mongod-major-upgrade-arbiter-32335 +++ export replica_namespace=mongod-major-upgrade-replica-5298 +++ replica_namespace=mongod-major-upgrade-replica-5298 ++++ realpath /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/../conf +++ export conf_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/conf +++ conf_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/conf ++++ realpath /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/../.. +++ export src_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742 +++ src_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742 +++ export logs_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/../logs +++ logs_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/../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 + main + rbac=rbac + '[' -n psmdb-operator ']' + rbac=cw-rbac + create_infra mongod-major-upgrade-1926 + local ns=mongod-major-upgrade-1926 + echo mongod-major-upgrade-1926 + destroy_cert_manager + [[ -n '' ]] + kubectl_bin delete mutatingwebhookconfiguration cert-manager-webhook --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.lPJ6rWTAbF ++ mktemp + local LAST_ERR=/tmp/tmp.uHhiUxHKal + 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.lPJ6rWTAbF + cat /tmp/tmp.uHhiUxHKal + rm /tmp/tmp.lPJ6rWTAbF /tmp/tmp.uHhiUxHKal + return 0 + kubectl_bin delete validatingwebhookconfiguration cert-manager-webhook --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.4bfDJKk8Ua ++ mktemp + local LAST_ERR=/tmp/tmp.QbEA6WjprA + 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.4bfDJKk8Ua + cat /tmp/tmp.QbEA6WjprA + rm /tmp/tmp.4bfDJKk8Ua /tmp/tmp.QbEA6WjprA + 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.HjjCrhuXfd ++ mktemp + local LAST_ERR=/tmp/tmp.cRW2pttAYn + 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.HjjCrhuXfd + cat /tmp/tmp.cRW2pttAYn + rm /tmp/tmp.HjjCrhuXfd /tmp/tmp.cRW2pttAYn + return 0 + kubectl_bin delete namespace cert-manager --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.dEsMbmf9su ++ mktemp + local LAST_ERR=/tmp/tmp.aRne2MbSeI + 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.dEsMbmf9su + cat /tmp/tmp.aRne2MbSeI + rm /tmp/tmp.dEsMbmf9su /tmp/tmp.aRne2MbSeI + 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.zUqBAxZken +++ mktemp ++ local LAST_ERR=/tmp/tmp.15MS4Y2x7P ++ 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.zUqBAxZken ++ cat /tmp/tmp.15MS4Y2x7P ++ rm /tmp/tmp.zUqBAxZken /tmp/tmp.15MS4Y2x7P ++ return 0 + remaining= ++ kubectl_bin get validatingwebhookconfiguration cert-manager-webhook --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.zeAMwqKrjr +++ mktemp ++ local LAST_ERR=/tmp/tmp.aGhpBpqCP0 ++ 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.zeAMwqKrjr ++ cat /tmp/tmp.aGhpBpqCP0 ++ rm /tmp/tmp.zeAMwqKrjr /tmp/tmp.aGhpBpqCP0 ++ 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.p11S9XtlCC +++ mktemp ++ local LAST_ERR=/tmp/tmp.upKq6iEavC ++ 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.p11S9XtlCC ++ cat /tmp/tmp.upKq6iEavC ++ rm /tmp/tmp.p11S9XtlCC /tmp/tmp.upKq6iEavC ++ return 0 + remaining+= ++ kubectl_bin get namespace cert-manager --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.JivSDHKQpJ +++ mktemp ++ local LAST_ERR=/tmp/tmp.TK7xgYSJSg ++ 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.JivSDHKQpJ ++ cat /tmp/tmp.TK7xgYSJSg ++ rm /tmp/tmp.JivSDHKQpJ /tmp/tmp.TK7xgYSJSg ++ 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-2742/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.ZcJzYMS1Xr ++ mktemp + local LAST_ERR=/tmp/tmp.FKJcPGg56E + local exit_status=0 + local timeout=4 + local i + args=('delete' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/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-2742/deploy/crd.yaml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/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-2742/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.ZcJzYMS1Xr + cat /tmp/tmp.FKJcPGg56E + rm /tmp/tmp.ZcJzYMS1Xr /tmp/tmp.FKJcPGg56E + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/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 '\-\-\-') + grep -v NAMESPACE + kubectl get perconaservermongodbclustersyncs.psmdb.percona.com --all-namespaces -o wide + 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-2742/deploy/cw-rbac.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.Bg9no6VEgI ++ mktemp + local LAST_ERR=/tmp/tmp.vBUWkHJL35 + local exit_status=0 + local timeout=4 + local i + args=('delete' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/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-2742/deploy/cw-rbac.yaml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/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-2742/deploy/cw-rbac.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Bg9no6VEgI + cat /tmp/tmp.vBUWkHJL35 + rm /tmp/tmp.Bg9no6VEgI /tmp/tmp.vBUWkHJL35 + return 0 + check_crd_for_deletion PR-2742 + local git_tag=PR-2742 ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-2742/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.3pnY40Dw0s +++ mktemp ++ local LAST_ERR=/tmp/tmp.ydFTOPuzI1 ++ 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.ydFTOPuzI1 ++ break ++ cat /tmp/tmp.3pnY40Dw0s ++ cat /tmp/tmp.ydFTOPuzI1 Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.3pnY40Dw0s /tmp/tmp.ydFTOPuzI1 ++ 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 + : ++ grep chaos-mesh ++ kubectl get ValidatingWebhookConfiguration ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ grep validate-auth ++ kubectl get ValidatingWebhookConfiguration ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + local 'ns_filter=^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + [[ -n '' ]] + kubectl_bin get ns + grep -E -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + awk '{print$1}' ++ mktemp + [[ -n '' ]] + desc 'cleaned up old namespaces psmdb-operator' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces psmdb-operator ----------------------------------------------------------------------------------- + xargs kubectl delete ns + kubectl_bin delete namespace psmdb-operator --ignore-not-found + local LAST_OUT=/tmp/tmp.ve8RpAdqk8 ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.OhOrDpCFXQ ++ mktemp + local LAST_ERR=/tmp/tmp.RvAWe7JKM2 + 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 + for attempt in $(seq 0 9) + set +e + kubectl get ns + local LAST_ERR=/tmp/tmp.OchAVvMukf + 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.ve8RpAdqk8 + cat /tmp/tmp.RvAWe7JKM2 + rm /tmp/tmp.ve8RpAdqk8 /tmp/tmp.RvAWe7JKM2 + return 0 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.OhOrDpCFXQ + cat /tmp/tmp.OchAVvMukf + rm /tmp/tmp.OhOrDpCFXQ /tmp/tmp.OchAVvMukf + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.W2tI4AI9BF ++ mktemp + local LAST_ERR=/tmp/tmp.sR11mM0PXP + 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.W2tI4AI9BF + cat /tmp/tmp.sR11mM0PXP + rm /tmp/tmp.W2tI4AI9BF /tmp/tmp.sR11mM0PXP + 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.piyrDtLAVO ++ mktemp + local LAST_ERR=/tmp/tmp.Rf6GwI5iEQ + 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.piyrDtLAVO namespace/psmdb-operator created + cat /tmp/tmp.Rf6GwI5iEQ + rm /tmp/tmp.piyrDtLAVO /tmp/tmp.Rf6GwI5iEQ + return 0 + set_kube_ctx psmdb-operator + local namespace=psmdb-operator ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.QipsaV8MeC +++ mktemp ++ local LAST_ERR=/tmp/tmp.caLX4R4F4d ++ 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.QipsaV8MeC ++ cat /tmp/tmp.caLX4R4F4d ++ rm /tmp/tmp.QipsaV8MeC /tmp/tmp.caLX4R4F4d ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2742-cf134fefe-2-cluster6 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.StGswWh1EJ ++ mktemp + local LAST_ERR=/tmp/tmp.6N2a80d8oj + local exit_status=0 + local timeout=4 + local i + args=('config' 'set-context' 'gke_cloud-dev-112233_us-central1-a_jen-psmdb-2742-cf134fefe-2-cluster6' '--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-2742-cf134fefe-2-cluster6 == \- ]] + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2742-cf134fefe-2-cluster6 =~ ^(-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-2742-cf134fefe-2-cluster6 --namespace=psmdb-operator + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.StGswWh1EJ Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2742-cf134fefe-2-cluster6" modified. + cat /tmp/tmp.6N2a80d8oj + rm /tmp/tmp.StGswWh1EJ /tmp/tmp.6N2a80d8oj + return 0 + deploy_operator + desc 'start PSMDB operator: docker.io/perconalab/percona-server-mongodb-operator:PR-2742-cf134fefe' + set +o xtrace ----------------------------------------------------------------------------------- start PSMDB operator: docker.io/perconalab/percona-server-mongodb-operator:PR-2742-cf134fefe ----------------------------------------------------------------------------------- + local cr_file + '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.65mrpb26uW ++ mktemp + local LAST_ERR=/tmp/tmp.vmfgqEgSFV + local exit_status=0 + local timeout=4 + local i + args=('apply' '--server-side' '--force-conflicts' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/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-2742/deploy/crd.yaml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/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-2742/deploy/crd.yaml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.65mrpb26uW 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.vmfgqEgSFV + rm /tmp/tmp.65mrpb26uW /tmp/tmp.vmfgqEgSFV + 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-2742/deploy/cw-rbac.yaml + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.IPWvTIeJop ++ mktemp + local LAST_ERR=/tmp/tmp.w9vKGOtTUg + 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.2FSGH688t1 + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.2FSGH688t1 + 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.2FSGH688t1 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.IPWvTIeJop 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.w9vKGOtTUg + rm /tmp/tmp.IPWvTIeJop /tmp/tmp.w9vKGOtTUg /tmp/tmp.2FSGH688t1 + return 0 + yq eval $'\n\t\t\t(.spec.template.spec.containers[].image = "docker.io/perconalab/percona-server-mongodb-operator:PR-2742-cf134fefe") |\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-2742/deploy/cw-operator.yaml + add_arch_to_podspecs - + arch_scheduling_enabled + [[ -n '' ]] + cat - + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.OPwTBekoKB ++ mktemp + local LAST_ERR=/tmp/tmp.4u6DZulPXJ + 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.x0bdabaSCw + cat + return + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.x0bdabaSCw + 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.x0bdabaSCw + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.OPwTBekoKB deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.4u6DZulPXJ + rm /tmp/tmp.OPwTBekoKB /tmp/tmp.4u6DZulPXJ /tmp/tmp.x0bdabaSCw + 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.csXUSTxCJn +++ mktemp ++ local LAST_ERR=/tmp/tmp.F8MWaDOfkd ++ 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.csXUSTxCJn ++ cat /tmp/tmp.F8MWaDOfkd ++ rm /tmp/tmp.csXUSTxCJn /tmp/tmp.F8MWaDOfkd ++ return 0 + wait_operator_pod percona-server-mongodb-operator-977d8f786-vzkgb + local pod=percona-server-mongodb-operator-977d8f786-vzkgb + set +o xtrace waiting for pod/percona-server-mongodb-operator-977d8f786-vzkgb 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.O50kYyesof +++ mktemp ++ local LAST_ERR=/tmp/tmp.VKQ6fQ0q0Y ++ 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.O50kYyesof ++ cat /tmp/tmp.VKQ6fQ0q0Y ++ rm /tmp/tmp.O50kYyesof /tmp/tmp.VKQ6fQ0q0Y ++ return 0 + kubectl_bin logs -n psmdb-operator percona-server-mongodb-operator-977d8f786-vzkgb ++ mktemp + local LAST_OUT=/tmp/tmp.IKviKJVxL5 ++ mktemp + local LAST_ERR=/tmp/tmp.cQ2QfCcJhs + local exit_status=0 + local timeout=4 + local i + args=('logs' '-n' 'psmdb-operator' 'percona-server-mongodb-operator-977d8f786-vzkgb') + 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-977d8f786-vzkgb == \- ]] + [[ percona-server-mongodb-operator-977d8f786-vzkgb =~ ^(-f|--filename)=-$ ]] + 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-977d8f786-vzkgb + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.IKviKJVxL5 + cat /tmp/tmp.cQ2QfCcJhs + rm /tmp/tmp.IKviKJVxL5 /tmp/tmp.cQ2QfCcJhs + return 0 2026-11-24T10:05:08.544Z INFO setup Manager starting up {"gitCommit": "cf134fefe3b251937747923cc1a37f3d6e0fa43f", "gitBranch": "PR-2742-cf134fefe", "buildTime": "", "goVersion": "go1.27.4", "os": "linux", "arch": "amd64"} + create_namespace mongod-major-upgrade-1926 + local namespace=mongod-major-upgrade-1926 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep validate-auth ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + local 'ns_filter=^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + [[ -n '' ]] + kubectl_bin get ns + grep -E -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' ++ mktemp + awk '{print$1}' + [[ -n '' ]] + desc 'cleaned up old namespaces mongod-major-upgrade-1926' + xargs kubectl delete ns + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces mongod-major-upgrade-1926 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace mongod-major-upgrade-1926 --ignore-not-found + local LAST_OUT=/tmp/tmp.TGeQ38ohka ++ mktemp ++ mktemp + local LAST_ERR=/tmp/tmp.eRtaDdr4ki + local exit_status=0 + local timeout=4 + local i + args=('get' 'ns') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ get == \- ]] + [[ get =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ns == \- ]] + [[ ns =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay + local LAST_OUT=/tmp/tmp.g2Vba7AWdC ++ seq 0 9 ++ mktemp + for attempt in $(seq 0 9) + set +e + kubectl get ns + local LAST_ERR=/tmp/tmp.vowDVjDH8w + local exit_status=0 + local timeout=4 + local i + args=('delete' 'namespace' 'mongod-major-upgrade-1926' '--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[@]}" + [[ mongod-major-upgrade-1926 == \- ]] + [[ mongod-major-upgrade-1926 =~ ^(-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 mongod-major-upgrade-1926 --ignore-not-found + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.TGeQ38ohka + cat /tmp/tmp.eRtaDdr4ki + rm /tmp/tmp.TGeQ38ohka /tmp/tmp.eRtaDdr4ki + return 0 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.g2Vba7AWdC + cat /tmp/tmp.vowDVjDH8w + rm /tmp/tmp.g2Vba7AWdC /tmp/tmp.vowDVjDH8w + return 0 + kubectl_bin wait --for=delete namespace mongod-major-upgrade-1926 ++ mktemp + local LAST_OUT=/tmp/tmp.DwZpAmdHRi ++ mktemp + local LAST_ERR=/tmp/tmp.5DYYPQ5qpo + local exit_status=0 + local timeout=4 + local i + args=('wait' '--for=delete' 'namespace' 'mongod-major-upgrade-1926') + 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[@]}" + [[ mongod-major-upgrade-1926 == \- ]] + [[ mongod-major-upgrade-1926 =~ ^(-f|--filename)=-$ ]] + 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 mongod-major-upgrade-1926 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.DwZpAmdHRi + cat /tmp/tmp.5DYYPQ5qpo + rm /tmp/tmp.DwZpAmdHRi /tmp/tmp.5DYYPQ5qpo + return 0 + desc 'create namespace mongod-major-upgrade-1926' + set +o xtrace ----------------------------------------------------------------------------------- create namespace mongod-major-upgrade-1926 ----------------------------------------------------------------------------------- + kubectl_bin create namespace mongod-major-upgrade-1926 ++ mktemp + local LAST_OUT=/tmp/tmp.spH5XLMDlj ++ mktemp + local LAST_ERR=/tmp/tmp.ZdEIAhXVZA + local exit_status=0 + local timeout=4 + local i + args=('create' 'namespace' 'mongod-major-upgrade-1926') + 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[@]}" + [[ mongod-major-upgrade-1926 == \- ]] + [[ mongod-major-upgrade-1926 =~ ^(-f|--filename)=-$ ]] + 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 mongod-major-upgrade-1926 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.spH5XLMDlj namespace/mongod-major-upgrade-1926 created + cat /tmp/tmp.ZdEIAhXVZA + rm /tmp/tmp.spH5XLMDlj /tmp/tmp.ZdEIAhXVZA + return 0 + set_kube_ctx mongod-major-upgrade-1926 + local namespace=mongod-major-upgrade-1926 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.JP4uC8yhRn +++ mktemp ++ local LAST_ERR=/tmp/tmp.hE6Pa1Nnaf ++ 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.JP4uC8yhRn ++ cat /tmp/tmp.hE6Pa1Nnaf ++ rm /tmp/tmp.JP4uC8yhRn /tmp/tmp.hE6Pa1Nnaf ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2742-cf134fefe-2-cluster6 --namespace=mongod-major-upgrade-1926 ++ mktemp + local LAST_OUT=/tmp/tmp.vScLPabWoD ++ mktemp + local LAST_ERR=/tmp/tmp.KsJDxEJzg8 + local exit_status=0 + local timeout=4 + local i + args=('config' 'set-context' 'gke_cloud-dev-112233_us-central1-a_jen-psmdb-2742-cf134fefe-2-cluster6' '--namespace=mongod-major-upgrade-1926') + 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-2742-cf134fefe-2-cluster6 == \- ]] + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2742-cf134fefe-2-cluster6 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --namespace=mongod-major-upgrade-1926 == \- ]] + [[ --namespace=mongod-major-upgrade-1926 =~ ^(-f|--filename)=-$ ]] + 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-2742-cf134fefe-2-cluster6 --namespace=mongod-major-upgrade-1926 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.vScLPabWoD Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2742-cf134fefe-2-cluster6" modified. + cat /tmp/tmp.KsJDxEJzg8 + rm /tmp/tmp.vScLPabWoD /tmp/tmp.KsJDxEJzg8 + return 0 + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/conf/secrets.yml ++ mktemp + local LAST_OUT=/tmp/tmp.GGVD8wIV04 ++ mktemp + local LAST_ERR=/tmp/tmp.qbyvxLRgHh + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/conf/client.yml' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/conf/secrets.yml') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/conf/client.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/conf/client.yml =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/conf/secrets.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/conf/secrets.yml =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/conf/secrets.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.GGVD8wIV04 deployment.apps/psmdb-client created secret/some-users created + cat /tmp/tmp.qbyvxLRgHh + rm /tmp/tmp.GGVD8wIV04 /tmp/tmp.qbyvxLRgHh + 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-2742/e2e-tests/conf/s3-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/conf/cloud-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.2JZ7nkYAXK ++ mktemp + local LAST_ERR=/tmp/tmp.sVjskkDKg2 + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/conf/s3-secret.yml' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/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-2742/e2e-tests/conf/s3-secret.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/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-2742/e2e-tests/conf/cloud-secret.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/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-2742/e2e-tests/conf/s3-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/conf/cloud-secret.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.2JZ7nkYAXK 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.sVjskkDKg2 + rm /tmp/tmp.2JZ7nkYAXK /tmp/tmp.sVjskkDKg2 + return 0 + desc 'install version service' + set +o xtrace ----------------------------------------------------------------------------------- install version service ----------------------------------------------------------------------------------- + cp /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/conf/operator.main.psmdb-operator.dep.json /tmp/tmp.Lng8QuTlCY/operator.1.24.0.psmdb-operator.dep.json + generate_vs_json /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/conf/operator.main.psmdb-operator.json /tmp/tmp.Lng8QuTlCY/operator.1.24.0.psmdb-operator.json + local template_path=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/conf/operator.main.psmdb-operator.json + local target_path=/tmp/tmp.Lng8QuTlCY/operator.1.24.0.psmdb-operator.json ++ jq '.versions[0].operator="1.24.0"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/conf/operator.main.psmdb-operator.json + local $'version_service_source={\n "versions": [\n {\n "operator": "1.24.0",\n "product": "psmdb-operator",\n "matrix": {\n "mongod": {},\n "pmm": {\n "3.4.1": {\n "image_path": "percona/pmm-client:3.4.1",\n "image_hash": "1c59d7188f8404e0294f4bfb3d2c3600107f808a023668a170a6b8036c56619b",\n "status": "recommended",\n "critical": false\n }\n },\n "backup": {},\n "operator": {}\n }\n }\n ]\n}' + for image_mongod in ${IMAGE_MONGOD_CHAIN[@]} ++ get_mongod_ver_from_image docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 ++ local image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 +++ run_simple_cli_inside_image docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 'mongod --version' +++ /usr/sbin/sed -r 's/^.*db version v(([0-9]+\.){2}[0-9]+-[0-9]+).*$/\1/g' +++ local image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 +++ local 'cli=mongod --version' +++ local pod_name=16838 +++ run_args=() +++ local run_args +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ kubectl_bin -n default run 16838 --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 --restart=Never --command -- sleep infinity ++++ mktemp +++ local LAST_OUT=/tmp/tmp.CqqcVpQedR ++++ mktemp +++ local LAST_ERR=/tmp/tmp.L2GtILxKy3 +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'run' '16838' '--image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0' '--restart=Never' '--command' '--' 'sleep' 'infinity') +++ local args +++ transformed_files=() +++ local transformed_files +++ local stdin_manifest +++ for i in "${!args[@]}" +++ [[ -n == \- ]] +++ [[ -n =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ default == \- ]] +++ [[ default =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ run == \- ]] +++ [[ run =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ 16838 == \- ]] +++ [[ 16838 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 == \- ]] +++ [[ --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --restart=Never == \- ]] +++ [[ --restart=Never =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --command == \- ]] +++ [[ --command =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ -- == \- ]] +++ [[ -- =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ sleep == \- ]] +++ [[ sleep =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ infinity == \- ]] +++ [[ infinity =~ ^(-f|--filename)=-$ ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ local attempt +++ local delay ++++ seq 0 9 +++ for attempt in $(seq 0 9) +++ set +e +++ kubectl -n default run 16838 --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 --restart=Never --command -- sleep infinity +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.CqqcVpQedR +++ cat /tmp/tmp.L2GtILxKy3 Warning: BCID failed open: BCID suppressed until 2026-11-24 12:05:49.876367267 +0000 UTC m=+10882.467617140 +++ rm /tmp/tmp.CqqcVpQedR /tmp/tmp.L2GtILxKy3 +++ return 0 +++ kubectl_bin -n default wait --for=condition=Ready pod/16838 ++++ mktemp +++ local LAST_OUT=/tmp/tmp.YpNn33zkKp ++++ mktemp +++ local LAST_ERR=/tmp/tmp.3jnPeL8juA +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'wait' '--for=condition=Ready' 'pod/16838') +++ local args +++ transformed_files=() +++ local transformed_files +++ local stdin_manifest +++ for i in "${!args[@]}" +++ [[ -n == \- ]] +++ [[ -n =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ default == \- ]] +++ [[ default =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ wait == \- ]] +++ [[ wait =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --for=condition=Ready == \- ]] +++ [[ --for=condition=Ready =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ pod/16838 == \- ]] +++ [[ pod/16838 =~ ^(-f|--filename)=-$ ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ local attempt +++ local delay ++++ seq 0 9 +++ for attempt in $(seq 0 9) +++ set +e +++ kubectl -n default wait --for=condition=Ready pod/16838 +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.YpNn33zkKp +++ cat /tmp/tmp.3jnPeL8juA +++ rm /tmp/tmp.YpNn33zkKp /tmp/tmp.3jnPeL8juA +++ return 0 ++++ kubectl_bin -n default exec 16838 -- bash -c 'mongod --version 2>&1' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.ymoEGuLqx4 +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.vOcdZ1pV1H ++++ local exit_status=0 ++++ local timeout=4 ++++ local i ++++ args=('-n' 'default' 'exec' '16838' '--' 'bash' '-c' 'mongod --version 2>&1') ++++ local args ++++ transformed_files=() ++++ local transformed_files ++++ local stdin_manifest ++++ for i in "${!args[@]}" ++++ [[ -n == \- ]] ++++ [[ -n =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ default == \- ]] ++++ [[ default =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ exec == \- ]] ++++ [[ exec =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ 16838 == \- ]] ++++ [[ 16838 =~ ^(-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[@]}" ++++ [[ mongod --version 2>&1 == \- ]] ++++ [[ mongod --version 2>&1 =~ ^(-f|--filename)=-$ ]] ++++ arch_scheduling_enabled ++++ [[ -n '' ]] ++++ arch_scheduling_enabled ++++ [[ -n '' ]] ++++ local attempt ++++ local delay +++++ seq 0 9 ++++ for attempt in $(seq 0 9) ++++ set +e ++++ kubectl -n default exec 16838 -- bash -c 'mongod --version 2>&1' ++++ exit_status=0 ++++ set -e ++++ [[ 0 == 0 ]] ++++ break ++++ cat /tmp/tmp.ymoEGuLqx4 ++++ cat /tmp/tmp.vOcdZ1pV1H ++++ rm /tmp/tmp.ymoEGuLqx4 /tmp/tmp.vOcdZ1pV1H ++++ return 0 +++ local $'output=db version v7.0.48-25\nBuild Info: {\n "version": "7.0.48-25",\n "gitVersion": "6c092ae78f9eda0310a95ae8bdfe840bdb87ab9a",\n "openSSLVersion": "OpenSSL 3.5.9 29 Sep 2026",\n "modules": [],\n "perconaFeatures": [\n "MemoryEngine",\n "HotBackup",\n "BackupCursorAggregationStage",\n "BackupCursorExtendAggregationStage",\n "AWSIAM",\n "Kerberos",\n "LDAP",\n "OIDC",\n "TDE",\n "FIPSMode",\n "FCBIS",\n "Auditing",\n "ProfilingRateLimit",\n "LogRedaction",\n "ngram"\n ],\n "allocator": "tcmalloc",\n "environment": {\n "distarch": "x86_64",\n "target_arch": "x86_64"\n }\n}' +++ kubectl_bin -n default delete pod/16838 --grace-period=0 --force ++++ mktemp +++ local LAST_OUT=/tmp/tmp.eeabVrlyzp ++++ mktemp +++ local LAST_ERR=/tmp/tmp.wmzmRhlMrk +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'delete' 'pod/16838' '--grace-period=0' '--force') +++ local args +++ transformed_files=() +++ local transformed_files +++ local stdin_manifest +++ for i in "${!args[@]}" +++ [[ -n == \- ]] +++ [[ -n =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ default == \- ]] +++ [[ default =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ delete == \- ]] +++ [[ delete =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ pod/16838 == \- ]] +++ [[ pod/16838 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --grace-period=0 == \- ]] +++ [[ --grace-period=0 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --force == \- ]] +++ [[ --force =~ ^(-f|--filename)=-$ ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ local attempt +++ local delay ++++ seq 0 9 +++ for attempt in $(seq 0 9) +++ set +e +++ kubectl -n default delete pod/16838 --grace-period=0 --force +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.eeabVrlyzp +++ cat /tmp/tmp.wmzmRhlMrk Warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. +++ rm /tmp/tmp.eeabVrlyzp /tmp/tmp.wmzmRhlMrk +++ return 0 +++ echo db version v7.0.48-25 Build Info: '{' '"version":' '"7.0.48-25",' '"gitVersion":' '"6c092ae78f9eda0310a95ae8bdfe840bdb87ab9a",' '"openSSLVersion":' '"OpenSSL' 3.5.9 29 Sep '2026",' '"modules":' '[],' '"perconaFeatures":' '[' '"MemoryEngine",' '"HotBackup",' '"BackupCursorAggregationStage",' '"BackupCursorExtendAggregationStage",' '"AWSIAM",' '"Kerberos",' '"LDAP",' '"OIDC",' '"TDE",' '"FIPSMode",' '"FCBIS",' '"Auditing",' '"ProfilingRateLimit",' '"LogRedaction",' '"ngram"' '],' '"allocator":' '"tcmalloc",' '"environment":' '{' '"distarch":' '"x86_64",' '"target_arch":' '"x86_64"' '}' '}' ++ version_info=7.0.48-25 ++ [[ ! 7.0.48-25 =~ ^([0-9]+\.){2}[0-9]+-[0-9]+$ ]] ++ echo 7.0.48-25 + current_mongod_version=7.0.48-25 ++ echo '{' '"versions":' '[' '{' '"operator":' '"1.24.0",' '"product":' '"psmdb-operator",' '"matrix":' '{' '"mongod":' '{},' '"pmm":' '{' '"3.4.1":' '{' '"image_path":' '"percona/pmm-client:3.4.1",' '"image_hash":' '"1c59d7188f8404e0294f4bfb3d2c3600107f808a023668a170a6b8036c56619b",' '"status":' '"recommended",' '"critical":' false '}' '},' '"backup":' '{},' '"operator":' '{}' '}' '}' ']' '}' ++ jq '.versions[0].matrix.mongod += {"7.0.48-25": {"image_path":"docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0","status":"recommended"}}' + version_service_source=$'{\n "versions": [\n {\n "operator": "1.24.0",\n "product": "psmdb-operator",\n "matrix": {\n "mongod": {\n "7.0.48-25": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",\n "status": "recommended"\n }\n },\n "pmm": {\n "3.4.1": {\n "image_path": "percona/pmm-client:3.4.1",\n "image_hash": "1c59d7188f8404e0294f4bfb3d2c3600107f808a023668a170a6b8036c56619b",\n "status": "recommended",\n "critical": false\n }\n },\n "backup": {},\n "operator": {}\n }\n }\n ]\n}' + for image_mongod in ${IMAGE_MONGOD_CHAIN[@]} ++ get_mongod_ver_from_image docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 ++ local image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 +++ run_simple_cli_inside_image docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 'mongod --version' +++ local image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 +++ local 'cli=mongod --version' +++ local pod_name=18892 +++ run_args=() +++ local run_args +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ kubectl_bin -n default run 18892 --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 --restart=Never --command -- sleep infinity +++ /usr/sbin/sed -r 's/^.*db version v(([0-9]+\.){2}[0-9]+-[0-9]+).*$/\1/g' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.QF0zP54Hsc ++++ mktemp +++ local LAST_ERR=/tmp/tmp.vkFhZdz9Hq +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'run' '18892' '--image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0' '--restart=Never' '--command' '--' 'sleep' 'infinity') +++ local args +++ transformed_files=() +++ local transformed_files +++ local stdin_manifest +++ for i in "${!args[@]}" +++ [[ -n == \- ]] +++ [[ -n =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ default == \- ]] +++ [[ default =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ run == \- ]] +++ [[ run =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ 18892 == \- ]] +++ [[ 18892 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 == \- ]] +++ [[ --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --restart=Never == \- ]] +++ [[ --restart=Never =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --command == \- ]] +++ [[ --command =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ -- == \- ]] +++ [[ -- =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ sleep == \- ]] +++ [[ sleep =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ infinity == \- ]] +++ [[ infinity =~ ^(-f|--filename)=-$ ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ local attempt +++ local delay ++++ seq 0 9 +++ for attempt in $(seq 0 9) +++ set +e +++ kubectl -n default run 18892 --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 --restart=Never --command -- sleep infinity +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.QF0zP54Hsc +++ cat /tmp/tmp.vkFhZdz9Hq Warning: BCID failed open: BCID suppressed until 2026-11-24 12:05:49.876367267 +0000 UTC m=+10882.467617140 +++ rm /tmp/tmp.QF0zP54Hsc /tmp/tmp.vkFhZdz9Hq +++ return 0 +++ kubectl_bin -n default wait --for=condition=Ready pod/18892 ++++ mktemp +++ local LAST_OUT=/tmp/tmp.LXRA2kUsCb ++++ mktemp +++ local LAST_ERR=/tmp/tmp.KJkRRw9PUW +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'wait' '--for=condition=Ready' 'pod/18892') +++ local args +++ transformed_files=() +++ local transformed_files +++ local stdin_manifest +++ for i in "${!args[@]}" +++ [[ -n == \- ]] +++ [[ -n =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ default == \- ]] +++ [[ default =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ wait == \- ]] +++ [[ wait =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --for=condition=Ready == \- ]] +++ [[ --for=condition=Ready =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ pod/18892 == \- ]] +++ [[ pod/18892 =~ ^(-f|--filename)=-$ ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ local attempt +++ local delay ++++ seq 0 9 +++ for attempt in $(seq 0 9) +++ set +e +++ kubectl -n default wait --for=condition=Ready pod/18892 +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.LXRA2kUsCb +++ cat /tmp/tmp.KJkRRw9PUW +++ rm /tmp/tmp.LXRA2kUsCb /tmp/tmp.KJkRRw9PUW +++ return 0 ++++ kubectl_bin -n default exec 18892 -- bash -c 'mongod --version 2>&1' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.7oqBQEsGCN +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.vq7DatvhaK ++++ local exit_status=0 ++++ local timeout=4 ++++ local i ++++ args=('-n' 'default' 'exec' '18892' '--' 'bash' '-c' 'mongod --version 2>&1') ++++ local args ++++ transformed_files=() ++++ local transformed_files ++++ local stdin_manifest ++++ for i in "${!args[@]}" ++++ [[ -n == \- ]] ++++ [[ -n =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ default == \- ]] ++++ [[ default =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ exec == \- ]] ++++ [[ exec =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ 18892 == \- ]] ++++ [[ 18892 =~ ^(-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[@]}" ++++ [[ mongod --version 2>&1 == \- ]] ++++ [[ mongod --version 2>&1 =~ ^(-f|--filename)=-$ ]] ++++ arch_scheduling_enabled ++++ [[ -n '' ]] ++++ arch_scheduling_enabled ++++ [[ -n '' ]] ++++ local attempt ++++ local delay +++++ seq 0 9 ++++ for attempt in $(seq 0 9) ++++ set +e ++++ kubectl -n default exec 18892 -- bash -c 'mongod --version 2>&1' ++++ exit_status=0 ++++ set -e ++++ [[ 0 == 0 ]] ++++ break ++++ cat /tmp/tmp.7oqBQEsGCN ++++ cat /tmp/tmp.vq7DatvhaK ++++ rm /tmp/tmp.7oqBQEsGCN /tmp/tmp.vq7DatvhaK ++++ return 0 +++ local $'output=db version v8.0.38-16\nBuild Info: {\n "version": "8.0.38-16",\n "gitVersion": "698ce1e560ca22dc7a65bb189cae1964b9220661",\n "openSSLVersion": "OpenSSL 3.5.9 29 Sep 2026",\n "modules": [],\n "perconaFeatures": [\n "MemoryEngine",\n "HotBackup",\n "BackupCursorAggregationStage",\n "BackupCursorExtendAggregationStage",\n "AWSIAM",\n "Kerberos",\n "LDAP",\n "OIDC",\n "TDE",\n "FIPSMode",\n "FCBIS",\n "Auditing",\n "ProfilingRateLimit",\n "LogRedaction",\n "ngram"\n ],\n "allocator": "tcmalloc-google",\n "environment": {\n "distarch": "x86_64",\n "target_arch": "x86_64"\n }\n}' +++ kubectl_bin -n default delete pod/18892 --grace-period=0 --force ++++ mktemp +++ local LAST_OUT=/tmp/tmp.IkcNEfIj9a ++++ mktemp +++ local LAST_ERR=/tmp/tmp.EunjqFETXz +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'delete' 'pod/18892' '--grace-period=0' '--force') +++ local args +++ transformed_files=() +++ local transformed_files +++ local stdin_manifest +++ for i in "${!args[@]}" +++ [[ -n == \- ]] +++ [[ -n =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ default == \- ]] +++ [[ default =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ delete == \- ]] +++ [[ delete =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ pod/18892 == \- ]] +++ [[ pod/18892 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --grace-period=0 == \- ]] +++ [[ --grace-period=0 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --force == \- ]] +++ [[ --force =~ ^(-f|--filename)=-$ ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ local attempt +++ local delay ++++ seq 0 9 +++ for attempt in $(seq 0 9) +++ set +e +++ kubectl -n default delete pod/18892 --grace-period=0 --force +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.IkcNEfIj9a +++ cat /tmp/tmp.EunjqFETXz Warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. +++ rm /tmp/tmp.IkcNEfIj9a /tmp/tmp.EunjqFETXz +++ return 0 +++ echo db version v8.0.38-16 Build Info: '{' '"version":' '"8.0.38-16",' '"gitVersion":' '"698ce1e560ca22dc7a65bb189cae1964b9220661",' '"openSSLVersion":' '"OpenSSL' 3.5.9 29 Sep '2026",' '"modules":' '[],' '"perconaFeatures":' '[' '"MemoryEngine",' '"HotBackup",' '"BackupCursorAggregationStage",' '"BackupCursorExtendAggregationStage",' '"AWSIAM",' '"Kerberos",' '"LDAP",' '"OIDC",' '"TDE",' '"FIPSMode",' '"FCBIS",' '"Auditing",' '"ProfilingRateLimit",' '"LogRedaction",' '"ngram"' '],' '"allocator":' '"tcmalloc-google",' '"environment":' '{' '"distarch":' '"x86_64",' '"target_arch":' '"x86_64"' '}' '}' ++ version_info=8.0.38-16 ++ [[ ! 8.0.38-16 =~ ^([0-9]+\.){2}[0-9]+-[0-9]+$ ]] ++ echo 8.0.38-16 + current_mongod_version=8.0.38-16 ++ echo '{' '"versions":' '[' '{' '"operator":' '"1.24.0",' '"product":' '"psmdb-operator",' '"matrix":' '{' '"mongod":' '{' '"7.0.48-25":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",' '"status":' '"recommended"' '}' '},' '"pmm":' '{' '"3.4.1":' '{' '"image_path":' '"percona/pmm-client:3.4.1",' '"image_hash":' '"1c59d7188f8404e0294f4bfb3d2c3600107f808a023668a170a6b8036c56619b",' '"status":' '"recommended",' '"critical":' false '}' '},' '"backup":' '{},' '"operator":' '{}' '}' '}' ']' '}' ++ jq '.versions[0].matrix.mongod += {"8.0.38-16": {"image_path":"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0","status":"recommended"}}' + version_service_source=$'{\n "versions": [\n {\n "operator": "1.24.0",\n "product": "psmdb-operator",\n "matrix": {\n "mongod": {\n "7.0.48-25": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",\n "status": "recommended"\n },\n "8.0.38-16": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0",\n "status": "recommended"\n }\n },\n "pmm": {\n "3.4.1": {\n "image_path": "percona/pmm-client:3.4.1",\n "image_hash": "1c59d7188f8404e0294f4bfb3d2c3600107f808a023668a170a6b8036c56619b",\n "status": "recommended",\n "critical": false\n }\n },\n "backup": {},\n "operator": {}\n }\n }\n ]\n}' + for image_mongod in ${IMAGE_MONGOD_CHAIN[@]} ++ get_mongod_ver_from_image docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 ++ local image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 +++ run_simple_cli_inside_image docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 'mongod --version' +++ local image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 +++ local 'cli=mongod --version' +++ local pod_name=15357 +++ run_args=() +++ /usr/sbin/sed -r 's/^.*db version v(([0-9]+\.){2}[0-9]+-[0-9]+).*$/\1/g' +++ local run_args +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ kubectl_bin -n default run 15357 --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 --restart=Never --command -- sleep infinity ++++ mktemp +++ local LAST_OUT=/tmp/tmp.noCtL5JyEy ++++ mktemp +++ local LAST_ERR=/tmp/tmp.RdWqZqjxKw +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'run' '15357' '--image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3' '--restart=Never' '--command' '--' 'sleep' 'infinity') +++ local args +++ transformed_files=() +++ local transformed_files +++ local stdin_manifest +++ for i in "${!args[@]}" +++ [[ -n == \- ]] +++ [[ -n =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ default == \- ]] +++ [[ default =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ run == \- ]] +++ [[ run =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ 15357 == \- ]] +++ [[ 15357 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 == \- ]] +++ [[ --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --restart=Never == \- ]] +++ [[ --restart=Never =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --command == \- ]] +++ [[ --command =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ -- == \- ]] +++ [[ -- =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ sleep == \- ]] +++ [[ sleep =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ infinity == \- ]] +++ [[ infinity =~ ^(-f|--filename)=-$ ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ local attempt +++ local delay ++++ seq 0 9 +++ for attempt in $(seq 0 9) +++ set +e +++ kubectl -n default run 15357 --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 --restart=Never --command -- sleep infinity +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.noCtL5JyEy +++ cat /tmp/tmp.RdWqZqjxKw Warning: BCID failed open: BCID suppressed until 2026-11-24 12:05:49.876367267 +0000 UTC m=+10882.467617140 +++ rm /tmp/tmp.noCtL5JyEy /tmp/tmp.RdWqZqjxKw +++ return 0 +++ kubectl_bin -n default wait --for=condition=Ready pod/15357 ++++ mktemp +++ local LAST_OUT=/tmp/tmp.g4ftZI2DDv ++++ mktemp +++ local LAST_ERR=/tmp/tmp.DOhIuipuL6 +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'wait' '--for=condition=Ready' 'pod/15357') +++ local args +++ transformed_files=() +++ local transformed_files +++ local stdin_manifest +++ for i in "${!args[@]}" +++ [[ -n == \- ]] +++ [[ -n =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ default == \- ]] +++ [[ default =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ wait == \- ]] +++ [[ wait =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --for=condition=Ready == \- ]] +++ [[ --for=condition=Ready =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ pod/15357 == \- ]] +++ [[ pod/15357 =~ ^(-f|--filename)=-$ ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ local attempt +++ local delay ++++ seq 0 9 +++ for attempt in $(seq 0 9) +++ set +e +++ kubectl -n default wait --for=condition=Ready pod/15357 +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.g4ftZI2DDv +++ cat /tmp/tmp.DOhIuipuL6 +++ rm /tmp/tmp.g4ftZI2DDv /tmp/tmp.DOhIuipuL6 +++ return 0 ++++ kubectl_bin -n default exec 15357 -- bash -c 'mongod --version 2>&1' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.S4G4HHD0TH +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.M0bFxaubx6 ++++ local exit_status=0 ++++ local timeout=4 ++++ local i ++++ args=('-n' 'default' 'exec' '15357' '--' 'bash' '-c' 'mongod --version 2>&1') ++++ local args ++++ transformed_files=() ++++ local transformed_files ++++ local stdin_manifest ++++ for i in "${!args[@]}" ++++ [[ -n == \- ]] ++++ [[ -n =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ default == \- ]] ++++ [[ default =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ exec == \- ]] ++++ [[ exec =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ 15357 == \- ]] ++++ [[ 15357 =~ ^(-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[@]}" ++++ [[ mongod --version 2>&1 == \- ]] ++++ [[ mongod --version 2>&1 =~ ^(-f|--filename)=-$ ]] ++++ arch_scheduling_enabled ++++ [[ -n '' ]] ++++ arch_scheduling_enabled ++++ [[ -n '' ]] ++++ local attempt ++++ local delay +++++ seq 0 9 ++++ for attempt in $(seq 0 9) ++++ set +e ++++ kubectl -n default exec 15357 -- bash -c 'mongod --version 2>&1' ++++ exit_status=0 ++++ set -e ++++ [[ 0 == 0 ]] ++++ break ++++ cat /tmp/tmp.S4G4HHD0TH ++++ cat /tmp/tmp.M0bFxaubx6 ++++ rm /tmp/tmp.S4G4HHD0TH /tmp/tmp.M0bFxaubx6 ++++ return 0 +++ local $'output=db version v8.3.17-5\nBuild Info: {\n "version": "8.3.17-5",\n "gitVersion": "f8ded53966b12cc6630a387f33a48c908b918c5e",\n "openSSLVersion": "OpenSSL 3.5.9 29 Sep 2026",\n "modules": [],\n "perconaFeatures": [\n "MemoryEngine",\n "HotBackup",\n "BackupCursorAggregationStage",\n "BackupCursorExtendAggregationStage",\n "AWSIAM",\n "Kerberos",\n "LDAP",\n "OIDC",\n "TDE",\n "FIPSMode",\n "FCBIS",\n "Auditing",\n "ProfilingRateLimit",\n "LogRedaction",\n "ngram"\n ],\n "allocator": "tcmalloc-google",\n "environment": {\n "distarch": "x86_64",\n "target_arch": "x86_64"\n }\n}' +++ kubectl_bin -n default delete pod/15357 --grace-period=0 --force ++++ mktemp +++ local LAST_OUT=/tmp/tmp.HjWIKb8ii8 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.p8BIQnouLM +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'delete' 'pod/15357' '--grace-period=0' '--force') +++ local args +++ transformed_files=() +++ local transformed_files +++ local stdin_manifest +++ for i in "${!args[@]}" +++ [[ -n == \- ]] +++ [[ -n =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ default == \- ]] +++ [[ default =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ delete == \- ]] +++ [[ delete =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ pod/15357 == \- ]] +++ [[ pod/15357 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --grace-period=0 == \- ]] +++ [[ --grace-period=0 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --force == \- ]] +++ [[ --force =~ ^(-f|--filename)=-$ ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ local attempt +++ local delay ++++ seq 0 9 +++ for attempt in $(seq 0 9) +++ set +e +++ kubectl -n default delete pod/15357 --grace-period=0 --force +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.HjWIKb8ii8 +++ cat /tmp/tmp.p8BIQnouLM Warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. +++ rm /tmp/tmp.HjWIKb8ii8 /tmp/tmp.p8BIQnouLM +++ return 0 +++ echo db version v8.3.17-5 Build Info: '{' '"version":' '"8.3.17-5",' '"gitVersion":' '"f8ded53966b12cc6630a387f33a48c908b918c5e",' '"openSSLVersion":' '"OpenSSL' 3.5.9 29 Sep '2026",' '"modules":' '[],' '"perconaFeatures":' '[' '"MemoryEngine",' '"HotBackup",' '"BackupCursorAggregationStage",' '"BackupCursorExtendAggregationStage",' '"AWSIAM",' '"Kerberos",' '"LDAP",' '"OIDC",' '"TDE",' '"FIPSMode",' '"FCBIS",' '"Auditing",' '"ProfilingRateLimit",' '"LogRedaction",' '"ngram"' '],' '"allocator":' '"tcmalloc-google",' '"environment":' '{' '"distarch":' '"x86_64",' '"target_arch":' '"x86_64"' '}' '}' ++ version_info=8.3.17-5 ++ [[ ! 8.3.17-5 =~ ^([0-9]+\.){2}[0-9]+-[0-9]+$ ]] ++ echo 8.3.17-5 + current_mongod_version=8.3.17-5 ++ echo '{' '"versions":' '[' '{' '"operator":' '"1.24.0",' '"product":' '"psmdb-operator",' '"matrix":' '{' '"mongod":' '{' '"7.0.48-25":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",' '"status":' '"recommended"' '},' '"8.0.38-16":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0",' '"status":' '"recommended"' '}' '},' '"pmm":' '{' '"3.4.1":' '{' '"image_path":' '"percona/pmm-client:3.4.1",' '"image_hash":' '"1c59d7188f8404e0294f4bfb3d2c3600107f808a023668a170a6b8036c56619b",' '"status":' '"recommended",' '"critical":' false '}' '},' '"backup":' '{},' '"operator":' '{}' '}' '}' ']' '}' ++ jq '.versions[0].matrix.mongod += {"8.3.17-5": {"image_path":"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3","status":"recommended"}}' + version_service_source=$'{\n "versions": [\n {\n "operator": "1.24.0",\n "product": "psmdb-operator",\n "matrix": {\n "mongod": {\n "7.0.48-25": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",\n "status": "recommended"\n },\n "8.0.38-16": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0",\n "status": "recommended"\n },\n "8.3.17-5": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3",\n "status": "recommended"\n }\n },\n "pmm": {\n "3.4.1": {\n "image_path": "percona/pmm-client:3.4.1",\n "image_hash": "1c59d7188f8404e0294f4bfb3d2c3600107f808a023668a170a6b8036c56619b",\n "status": "recommended",\n "critical": false\n }\n },\n "backup": {},\n "operator": {}\n }\n }\n ]\n}' ++ echo '{' '"versions":' '[' '{' '"operator":' '"1.24.0",' '"product":' '"psmdb-operator",' '"matrix":' '{' '"mongod":' '{' '"7.0.48-25":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",' '"status":' '"recommended"' '},' '"8.0.38-16":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0",' '"status":' '"recommended"' '},' '"8.3.17-5":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3",' '"status":' '"recommended"' '}' '},' '"pmm":' '{' '"3.4.1":' '{' '"image_path":' '"percona/pmm-client:3.4.1",' '"image_hash":' '"1c59d7188f8404e0294f4bfb3d2c3600107f808a023668a170a6b8036c56619b",' '"status":' '"recommended",' '"critical":' false '}' '},' '"backup":' '{},' '"operator":' '{}' '}' '}' ']' '}' +++ get_pbm_version docker.io/perconalab/percona-server-mongodb-operator:main-backup +++ local image=docker.io/perconalab/percona-server-mongodb-operator:main-backup ++++ run_simple_cli_inside_image docker.io/perconalab/percona-server-mongodb-operator:main-backup 'pbm-agent version' ++++ /usr/sbin/sed -r 's/^Version:\ (([0-9]+\.){2}[0-9]+)\ .*/\1/g' ++++ local image=docker.io/perconalab/percona-server-mongodb-operator:main-backup ++++ local 'cli=pbm-agent version' ++++ local pod_name=12431 ++++ run_args=() ++++ local run_args ++++ arch_scheduling_enabled ++++ [[ -n '' ]] ++++ kubectl_bin -n default run 12431 --image=docker.io/perconalab/percona-server-mongodb-operator:main-backup --restart=Never --command -- sleep infinity +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.syqe4pi84T +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.fzRlT32Rm9 ++++ local exit_status=0 ++++ local timeout=4 ++++ local i ++++ args=('-n' 'default' 'run' '12431' '--image=docker.io/perconalab/percona-server-mongodb-operator:main-backup' '--restart=Never' '--command' '--' 'sleep' 'infinity') ++++ local args ++++ transformed_files=() ++++ local transformed_files ++++ local stdin_manifest ++++ for i in "${!args[@]}" ++++ [[ -n == \- ]] ++++ [[ -n =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ default == \- ]] ++++ [[ default =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ run == \- ]] ++++ [[ run =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ 12431 == \- ]] ++++ [[ 12431 =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ --image=docker.io/perconalab/percona-server-mongodb-operator:main-backup == \- ]] ++++ [[ --image=docker.io/perconalab/percona-server-mongodb-operator:main-backup =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ --restart=Never == \- ]] ++++ [[ --restart=Never =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ --command == \- ]] ++++ [[ --command =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ -- == \- ]] ++++ [[ -- =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ sleep == \- ]] ++++ [[ sleep =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ infinity == \- ]] ++++ [[ infinity =~ ^(-f|--filename)=-$ ]] ++++ arch_scheduling_enabled ++++ [[ -n '' ]] ++++ arch_scheduling_enabled ++++ [[ -n '' ]] ++++ local attempt ++++ local delay +++++ seq 0 9 ++++ for attempt in $(seq 0 9) ++++ set +e ++++ kubectl -n default run 12431 --image=docker.io/perconalab/percona-server-mongodb-operator:main-backup --restart=Never --command -- sleep infinity ++++ exit_status=0 ++++ set -e ++++ [[ 0 == 0 ]] ++++ break ++++ cat /tmp/tmp.syqe4pi84T ++++ cat /tmp/tmp.fzRlT32Rm9 Warning: BCID failed open: BCID suppressed until 2026-11-24 12:05:49.876367267 +0000 UTC m=+10882.467617140 ++++ rm /tmp/tmp.syqe4pi84T /tmp/tmp.fzRlT32Rm9 ++++ return 0 ++++ kubectl_bin -n default wait --for=condition=Ready pod/12431 +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.8Ti7fZceJQ +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.8qphQNR0Zk ++++ local exit_status=0 ++++ local timeout=4 ++++ local i ++++ args=('-n' 'default' 'wait' '--for=condition=Ready' 'pod/12431') ++++ local args ++++ transformed_files=() ++++ local transformed_files ++++ local stdin_manifest ++++ for i in "${!args[@]}" ++++ [[ -n == \- ]] ++++ [[ -n =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ default == \- ]] ++++ [[ default =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ wait == \- ]] ++++ [[ wait =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ --for=condition=Ready == \- ]] ++++ [[ --for=condition=Ready =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ pod/12431 == \- ]] ++++ [[ pod/12431 =~ ^(-f|--filename)=-$ ]] ++++ arch_scheduling_enabled ++++ [[ -n '' ]] ++++ arch_scheduling_enabled ++++ [[ -n '' ]] ++++ local attempt ++++ local delay +++++ seq 0 9 ++++ for attempt in $(seq 0 9) ++++ set +e ++++ kubectl -n default wait --for=condition=Ready pod/12431 ++++ exit_status=0 ++++ set -e ++++ [[ 0 == 0 ]] ++++ break ++++ cat /tmp/tmp.8Ti7fZceJQ ++++ cat /tmp/tmp.8qphQNR0Zk ++++ rm /tmp/tmp.8Ti7fZceJQ /tmp/tmp.8qphQNR0Zk ++++ return 0 +++++ kubectl_bin -n default exec 12431 -- bash -c 'pbm-agent version 2>&1' ++++++ mktemp +++++ local LAST_OUT=/tmp/tmp.nnjIVsxZ7c ++++++ mktemp +++++ local LAST_ERR=/tmp/tmp.jke96Jp6PT +++++ local exit_status=0 +++++ local timeout=4 +++++ local i +++++ args=('-n' 'default' 'exec' '12431' '--' 'bash' '-c' 'pbm-agent version 2>&1') +++++ local args +++++ transformed_files=() +++++ local transformed_files +++++ local stdin_manifest +++++ for i in "${!args[@]}" +++++ [[ -n == \- ]] +++++ [[ -n =~ ^(-f|--filename)=-$ ]] +++++ for i in "${!args[@]}" +++++ [[ default == \- ]] +++++ [[ default =~ ^(-f|--filename)=-$ ]] +++++ for i in "${!args[@]}" +++++ [[ exec == \- ]] +++++ [[ exec =~ ^(-f|--filename)=-$ ]] +++++ for i in "${!args[@]}" +++++ [[ 12431 == \- ]] +++++ [[ 12431 =~ ^(-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[@]}" +++++ [[ pbm-agent version 2>&1 == \- ]] +++++ [[ pbm-agent version 2>&1 =~ ^(-f|--filename)=-$ ]] +++++ arch_scheduling_enabled +++++ [[ -n '' ]] +++++ arch_scheduling_enabled +++++ [[ -n '' ]] +++++ local attempt +++++ local delay ++++++ seq 0 9 +++++ for attempt in $(seq 0 9) +++++ set +e +++++ kubectl -n default exec 12431 -- bash -c 'pbm-agent version 2>&1' +++++ exit_status=0 +++++ set -e +++++ [[ 0 == 0 ]] +++++ break +++++ cat /tmp/tmp.nnjIVsxZ7c +++++ cat /tmp/tmp.jke96Jp6PT +++++ rm /tmp/tmp.nnjIVsxZ7c /tmp/tmp.jke96Jp6PT +++++ return 0 ++++ local $'output=Version: 2.17.0\nPlatform: linux/amd64\nGitCommit: 5303a219a90c2494f6b68372aaf843bed553a11d\nGitBranch: release-2.17.0\nBuildTime: 2026-10-14_12:27_UTC\nGoVersion: go1.27.2' ++++ kubectl_bin -n default delete pod/12431 --grace-period=0 --force +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.cX44GgbIL8 +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.a5IstEksZv ++++ local exit_status=0 ++++ local timeout=4 ++++ local i ++++ args=('-n' 'default' 'delete' 'pod/12431' '--grace-period=0' '--force') ++++ local args ++++ transformed_files=() ++++ local transformed_files ++++ local stdin_manifest ++++ for i in "${!args[@]}" ++++ [[ -n == \- ]] ++++ [[ -n =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ default == \- ]] ++++ [[ default =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ delete == \- ]] ++++ [[ delete =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ pod/12431 == \- ]] ++++ [[ pod/12431 =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ --grace-period=0 == \- ]] ++++ [[ --grace-period=0 =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ --force == \- ]] ++++ [[ --force =~ ^(-f|--filename)=-$ ]] ++++ arch_scheduling_enabled ++++ [[ -n '' ]] ++++ arch_scheduling_enabled ++++ [[ -n '' ]] ++++ local attempt ++++ local delay +++++ seq 0 9 ++++ for attempt in $(seq 0 9) ++++ set +e ++++ kubectl -n default delete pod/12431 --grace-period=0 --force ++++ exit_status=0 ++++ set -e ++++ [[ 0 == 0 ]] ++++ break ++++ cat /tmp/tmp.cX44GgbIL8 ++++ cat /tmp/tmp.a5IstEksZv Warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. ++++ rm /tmp/tmp.cX44GgbIL8 /tmp/tmp.a5IstEksZv ++++ return 0 ++++ echo Version: 2.17.0 Platform: linux/amd64 GitCommit: 5303a219a90c2494f6b68372aaf843bed553a11d GitBranch: release-2.17.0 BuildTime: 2026-10-14_12:27_UTC GoVersion: go1.27.2 +++ local version_info=2.17.0 +++ [[ ! 2.17.0 =~ ^([0-9]+\.){2}[0-9]+$ ]] +++ echo 2.17.0 ++ jq '.versions[0].matrix.backup += {"2.17.0": {"image_path":"docker.io/perconalab/percona-server-mongodb-operator:main-backup","status":"recommended"}}' + version_service_source=$'{\n "versions": [\n {\n "operator": "1.24.0",\n "product": "psmdb-operator",\n "matrix": {\n "mongod": {\n "7.0.48-25": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",\n "status": "recommended"\n },\n "8.0.38-16": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0",\n "status": "recommended"\n },\n "8.3.17-5": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3",\n "status": "recommended"\n }\n },\n "pmm": {\n "3.4.1": {\n "image_path": "percona/pmm-client:3.4.1",\n "image_hash": "1c59d7188f8404e0294f4bfb3d2c3600107f808a023668a170a6b8036c56619b",\n "status": "recommended",\n "critical": false\n }\n },\n "backup": {\n "2.17.0": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-backup",\n "status": "recommended"\n }\n },\n "operator": {}\n }\n }\n ]\n}' ++ echo '{' '"versions":' '[' '{' '"operator":' '"1.24.0",' '"product":' '"psmdb-operator",' '"matrix":' '{' '"mongod":' '{' '"7.0.48-25":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",' '"status":' '"recommended"' '},' '"8.0.38-16":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0",' '"status":' '"recommended"' '},' '"8.3.17-5":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3",' '"status":' '"recommended"' '}' '},' '"pmm":' '{' '"3.4.1":' '{' '"image_path":' '"percona/pmm-client:3.4.1",' '"image_hash":' '"1c59d7188f8404e0294f4bfb3d2c3600107f808a023668a170a6b8036c56619b",' '"status":' '"recommended",' '"critical":' false '}' '},' '"backup":' '{' '"2.17.0":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-backup",' '"status":' '"recommended"' '}' '},' '"operator":' '{}' '}' '}' ']' '}' ++ jq '.versions[0].matrix.operator += {"1.24.0": {"image_path":"docker.io/perconalab/percona-server-mongodb-operator:PR-2742-cf134fefe","status":"recommended"}}' + version_service_source=$'{\n "versions": [\n {\n "operator": "1.24.0",\n "product": "psmdb-operator",\n "matrix": {\n "mongod": {\n "7.0.48-25": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",\n "status": "recommended"\n },\n "8.0.38-16": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0",\n "status": "recommended"\n },\n "8.3.17-5": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3",\n "status": "recommended"\n }\n },\n "pmm": {\n "3.4.1": {\n "image_path": "percona/pmm-client:3.4.1",\n "image_hash": "1c59d7188f8404e0294f4bfb3d2c3600107f808a023668a170a6b8036c56619b",\n "status": "recommended",\n "critical": false\n }\n },\n "backup": {\n "2.17.0": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-backup",\n "status": "recommended"\n }\n },\n "operator": {\n "1.24.0": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:PR-2742-cf134fefe",\n "status": "recommended"\n }\n }\n }\n }\n ]\n}' + echo '{' '"versions":' '[' '{' '"operator":' '"1.24.0",' '"product":' '"psmdb-operator",' '"matrix":' '{' '"mongod":' '{' '"7.0.48-25":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",' '"status":' '"recommended"' '},' '"8.0.38-16":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0",' '"status":' '"recommended"' '},' '"8.3.17-5":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3",' '"status":' '"recommended"' '}' '},' '"pmm":' '{' '"3.4.1":' '{' '"image_path":' '"percona/pmm-client:3.4.1",' '"image_hash":' '"1c59d7188f8404e0294f4bfb3d2c3600107f808a023668a170a6b8036c56619b",' '"status":' '"recommended",' '"critical":' false '}' '},' '"backup":' '{' '"2.17.0":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-backup",' '"status":' '"recommended"' '}' '},' '"operator":' '{' '"1.24.0":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:PR-2742-cf134fefe",' '"status":' '"recommended"' '}' '}' '}' '}' ']' '}' + jq . + kubectl_bin create configmap -n psmdb-operator versions --from-file /tmp/tmp.Lng8QuTlCY/operator.1.24.0.psmdb-operator.dep.json --from-file /tmp/tmp.Lng8QuTlCY/operator.1.24.0.psmdb-operator.json ++ mktemp + local LAST_OUT=/tmp/tmp.7WILqm6EgK ++ mktemp + local LAST_ERR=/tmp/tmp.b8XiqU5Gk5 + local exit_status=0 + local timeout=4 + local i + args=('create' 'configmap' '-n' 'psmdb-operator' 'versions' '--from-file' '/tmp/tmp.Lng8QuTlCY/operator.1.24.0.psmdb-operator.dep.json' '--from-file' '/tmp/tmp.Lng8QuTlCY/operator.1.24.0.psmdb-operator.json') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ create == \- ]] + [[ create =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ configmap == \- ]] + [[ configmap =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-operator == \- ]] + [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ versions == \- ]] + [[ versions =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --from-file == \- ]] + [[ --from-file =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /tmp/tmp.Lng8QuTlCY/operator.1.24.0.psmdb-operator.dep.json == \- ]] + [[ /tmp/tmp.Lng8QuTlCY/operator.1.24.0.psmdb-operator.dep.json =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --from-file == \- ]] + [[ --from-file =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /tmp/tmp.Lng8QuTlCY/operator.1.24.0.psmdb-operator.json == \- ]] + [[ /tmp/tmp.Lng8QuTlCY/operator.1.24.0.psmdb-operator.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 create configmap -n psmdb-operator versions --from-file /tmp/tmp.Lng8QuTlCY/operator.1.24.0.psmdb-operator.dep.json --from-file /tmp/tmp.Lng8QuTlCY/operator.1.24.0.psmdb-operator.json + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.7WILqm6EgK configmap/versions created + cat /tmp/tmp.b8XiqU5Gk5 + rm /tmp/tmp.7WILqm6EgK /tmp/tmp.b8XiqU5Gk5 + return 0 + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/conf/vs.yml + /usr/sbin/sed -r s#operator.9.9.9.psmdb-operator#operator.1.24.0.psmdb-operator#g + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.iOG9fP7eHP ++ mktemp + local LAST_ERR=/tmp/tmp.KDtXPyonOX + 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.BE1Fujsi2k + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.BE1Fujsi2k + 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.BE1Fujsi2k + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.iOG9fP7eHP deployment.apps/version-service created service/version-service created + cat /tmp/tmp.KDtXPyonOX + rm /tmp/tmp.iOG9fP7eHP /tmp/tmp.KDtXPyonOX /tmp/tmp.BE1Fujsi2k + return 0 ++ jq '.[] | .[] |.matrix.mongod' /tmp/tmp.Lng8QuTlCY/operator.1.24.0.psmdb-operator.json + version_matrix=$'{\n "7.0.48-25": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",\n "status": "recommended"\n },\n "8.0.38-16": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0",\n "status": "recommended"\n },\n "8.3.17-5": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3",\n "status": "recommended"\n }\n}' ++ get_mongod_ver_from_image docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 ++ local image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 +++ run_simple_cli_inside_image docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 'mongod --version' +++ local image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 +++ local 'cli=mongod --version' +++ local pod_name=15570 +++ run_args=() +++ local run_args +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ kubectl_bin -n default run 15570 --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 --restart=Never --command -- sleep infinity +++ /usr/sbin/sed -r 's/^.*db version v(([0-9]+\.){2}[0-9]+-[0-9]+).*$/\1/g' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.Q4IF0EOSec ++++ mktemp +++ local LAST_ERR=/tmp/tmp.Yulx61GsRP +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'run' '15570' '--image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3' '--restart=Never' '--command' '--' 'sleep' 'infinity') +++ local args +++ transformed_files=() +++ local transformed_files +++ local stdin_manifest +++ for i in "${!args[@]}" +++ [[ -n == \- ]] +++ [[ -n =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ default == \- ]] +++ [[ default =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ run == \- ]] +++ [[ run =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ 15570 == \- ]] +++ [[ 15570 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 == \- ]] +++ [[ --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --restart=Never == \- ]] +++ [[ --restart=Never =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --command == \- ]] +++ [[ --command =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ -- == \- ]] +++ [[ -- =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ sleep == \- ]] +++ [[ sleep =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ infinity == \- ]] +++ [[ infinity =~ ^(-f|--filename)=-$ ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ local attempt +++ local delay ++++ seq 0 9 +++ for attempt in $(seq 0 9) +++ set +e +++ kubectl -n default run 15570 --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 --restart=Never --command -- sleep infinity +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.Q4IF0EOSec +++ cat /tmp/tmp.Yulx61GsRP Warning: BCID failed open: BCID suppressed until 2026-11-24 12:05:49.876367267 +0000 UTC m=+10882.467617140 +++ rm /tmp/tmp.Q4IF0EOSec /tmp/tmp.Yulx61GsRP +++ return 0 +++ kubectl_bin -n default wait --for=condition=Ready pod/15570 ++++ mktemp +++ local LAST_OUT=/tmp/tmp.ljlUDctyZV ++++ mktemp +++ local LAST_ERR=/tmp/tmp.oAb8KslUSK +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'wait' '--for=condition=Ready' 'pod/15570') +++ local args +++ transformed_files=() +++ local transformed_files +++ local stdin_manifest +++ for i in "${!args[@]}" +++ [[ -n == \- ]] +++ [[ -n =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ default == \- ]] +++ [[ default =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ wait == \- ]] +++ [[ wait =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --for=condition=Ready == \- ]] +++ [[ --for=condition=Ready =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ pod/15570 == \- ]] +++ [[ pod/15570 =~ ^(-f|--filename)=-$ ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ local attempt +++ local delay ++++ seq 0 9 +++ for attempt in $(seq 0 9) +++ set +e +++ kubectl -n default wait --for=condition=Ready pod/15570 +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.ljlUDctyZV +++ cat /tmp/tmp.oAb8KslUSK +++ rm /tmp/tmp.ljlUDctyZV /tmp/tmp.oAb8KslUSK +++ return 0 ++++ kubectl_bin -n default exec 15570 -- bash -c 'mongod --version 2>&1' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.Ri5WNl7PQr +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.wQ8vgTNUyi ++++ local exit_status=0 ++++ local timeout=4 ++++ local i ++++ args=('-n' 'default' 'exec' '15570' '--' 'bash' '-c' 'mongod --version 2>&1') ++++ local args ++++ transformed_files=() ++++ local transformed_files ++++ local stdin_manifest ++++ for i in "${!args[@]}" ++++ [[ -n == \- ]] ++++ [[ -n =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ default == \- ]] ++++ [[ default =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ exec == \- ]] ++++ [[ exec =~ ^(-f|--filename)=-$ ]] ++++ for i in "${!args[@]}" ++++ [[ 15570 == \- ]] ++++ [[ 15570 =~ ^(-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[@]}" ++++ [[ mongod --version 2>&1 == \- ]] ++++ [[ mongod --version 2>&1 =~ ^(-f|--filename)=-$ ]] ++++ arch_scheduling_enabled ++++ [[ -n '' ]] ++++ arch_scheduling_enabled ++++ [[ -n '' ]] ++++ local attempt ++++ local delay +++++ seq 0 9 ++++ for attempt in $(seq 0 9) ++++ set +e ++++ kubectl -n default exec 15570 -- bash -c 'mongod --version 2>&1' ++++ exit_status=0 ++++ set -e ++++ [[ 0 == 0 ]] ++++ break ++++ cat /tmp/tmp.Ri5WNl7PQr ++++ cat /tmp/tmp.wQ8vgTNUyi ++++ rm /tmp/tmp.Ri5WNl7PQr /tmp/tmp.wQ8vgTNUyi ++++ return 0 +++ local $'output=db version v8.3.17-5\nBuild Info: {\n "version": "8.3.17-5",\n "gitVersion": "f8ded53966b12cc6630a387f33a48c908b918c5e",\n "openSSLVersion": "OpenSSL 3.5.9 29 Sep 2026",\n "modules": [],\n "perconaFeatures": [\n "MemoryEngine",\n "HotBackup",\n "BackupCursorAggregationStage",\n "BackupCursorExtendAggregationStage",\n "AWSIAM",\n "Kerberos",\n "LDAP",\n "OIDC",\n "TDE",\n "FIPSMode",\n "FCBIS",\n "Auditing",\n "ProfilingRateLimit",\n "LogRedaction",\n "ngram"\n ],\n "allocator": "tcmalloc-google",\n "environment": {\n "distarch": "x86_64",\n "target_arch": "x86_64"\n }\n}' +++ kubectl_bin -n default delete pod/15570 --grace-period=0 --force ++++ mktemp +++ local LAST_OUT=/tmp/tmp.yS944DsVs0 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.af1hcZTIGq +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'delete' 'pod/15570' '--grace-period=0' '--force') +++ local args +++ transformed_files=() +++ local transformed_files +++ local stdin_manifest +++ for i in "${!args[@]}" +++ [[ -n == \- ]] +++ [[ -n =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ default == \- ]] +++ [[ default =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ delete == \- ]] +++ [[ delete =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ pod/15570 == \- ]] +++ [[ pod/15570 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --grace-period=0 == \- ]] +++ [[ --grace-period=0 =~ ^(-f|--filename)=-$ ]] +++ for i in "${!args[@]}" +++ [[ --force == \- ]] +++ [[ --force =~ ^(-f|--filename)=-$ ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ local attempt +++ local delay ++++ seq 0 9 +++ for attempt in $(seq 0 9) +++ set +e +++ kubectl -n default delete pod/15570 --grace-period=0 --force +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.yS944DsVs0 +++ cat /tmp/tmp.af1hcZTIGq Warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. +++ rm /tmp/tmp.yS944DsVs0 /tmp/tmp.af1hcZTIGq +++ return 0 +++ echo db version v8.3.17-5 Build Info: '{' '"version":' '"8.3.17-5",' '"gitVersion":' '"f8ded53966b12cc6630a387f33a48c908b918c5e",' '"openSSLVersion":' '"OpenSSL' 3.5.9 29 Sep '2026",' '"modules":' '[],' '"perconaFeatures":' '[' '"MemoryEngine",' '"HotBackup",' '"BackupCursorAggregationStage",' '"BackupCursorExtendAggregationStage",' '"AWSIAM",' '"Kerberos",' '"LDAP",' '"OIDC",' '"TDE",' '"FIPSMode",' '"FCBIS",' '"Auditing",' '"ProfilingRateLimit",' '"LogRedaction",' '"ngram"' '],' '"allocator":' '"tcmalloc-google",' '"environment":' '{' '"distarch":' '"x86_64",' '"target_arch":' '"x86_64"' '}' '}' ++ version_info=8.3.17-5 ++ [[ ! 8.3.17-5 =~ ^([0-9]+\.){2}[0-9]+-[0-9]+$ ]] ++ echo 8.3.17-5 + current_mongod_version=8.3.17-5 ++ echo '{' '"7.0.48-25":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",' '"status":' '"recommended"' '},' '"8.0.38-16":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0",' '"status":' '"recommended"' '},' '"8.3.17-5":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3",' '"status":' '"recommended"' '}' '}' ++ jq '. += {"8.3.17-5":{"image_path":"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3", "status": "recommended"}}' + version_matrix=$'{\n "7.0.48-25": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",\n "status": "recommended"\n },\n "8.0.38-16": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0",\n "status": "recommended"\n },\n "8.3.17-5": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3",\n "status": "recommended"\n }\n}' ++ echo '{' '"7.0.48-25":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",' '"status":' '"recommended"' '},' '"8.0.38-16":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0",' '"status":' '"recommended"' '},' '"8.3.17-5":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3",' '"status":' '"recommended"' '}' '}' ++ jq $'to_entries\n\t\t\t\t\t\t\t\t\t\t\t\t | sort_by( .key | split("[[:punct:]]";"g") | map(tonumber) )\n\t\t\t\t\t\t\t\t\t\t\t\t | map({(.key): .value}) ' + version_matrix=$'[\n {\n "7.0.48-25": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",\n "status": "recommended"\n }\n },\n {\n "8.0.38-16": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0",\n "status": "recommended"\n }\n },\n {\n "8.3.17-5": {\n "image_path": "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3",\n "status": "recommended"\n }\n }\n]' ++ echo '[' '{' '"7.0.48-25":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",' '"status":' '"recommended"' '}' '},' '{' '"8.0.38-16":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0",' '"status":' '"recommended"' '}' '},' '{' '"8.3.17-5":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3",' '"status":' '"recommended"' '}' '}' ']' ++ jq -r '.[] | keys | .[] | split(".") | .[:2] | join(".")' ++ uniq ++ tail -n +2 + versions_to_verify=$'8.0\n8.3' + cluster=some-name-rs0 ++ echo '[' '{' '"7.0.48-25":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",' '"status":' '"recommended"' '}' '},' '{' '"8.0.38-16":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0",' '"status":' '"recommended"' '}' '},' '{' '"8.3.17-5":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3",' '"status":' '"recommended"' '}' '}' ']' ++ jq '.[0] | keys | .[0]' + desc 'Starting the cluster with "7.0.48-25"' + set +o xtrace ----------------------------------------------------------------------------------- Starting the cluster with "7.0.48-25" ----------------------------------------------------------------------------------- ++ echo '[' '{' '"7.0.48-25":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0",' '"status":' '"recommended"' '}' '},' '{' '"8.0.38-16":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0",' '"status":' '"recommended"' '}' '},' '{' '"8.3.17-5":' '{' '"image_path":' '"docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3",' '"status":' '"recommended"' '}' '}' ']' ++ jq -r 'to_entries | .[0].value | .[].image_path' + export IMAGE_MONGOD=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 + IMAGE_MONGOD=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 + qualify_image_var IMAGE_MONGOD + local var=IMAGE_MONGOD + local val=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 + [[ -z docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 ]] + [[ docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 == * * ]] ++ with_registry docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 ++ local ref=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 ++ case "$ref" in ++ printf %s docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 + val=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 + printf -v IMAGE_MONGOD %s docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/conf/some-name-rs0.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/conf/some-name-rs0.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/conf/some-name-rs0.yml + yq eval '(.spec | select(.image == null)).image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0"' ++ mktemp + yq eval '(.spec | select(has("pmm"))).pmm.image = "docker.io/perconalab/pmm-client:3-dev-latest"' + yq eval '(.spec | select(has("initImage"))).initImage = "docker.io/perconalab/percona-server-mongodb-operator:PR-2742-cf134fefe"' + yq eval '(.spec | select(has("backup"))).backup.image = "docker.io/perconalab/percona-server-mongodb-operator:main-backup"' + [[ -n docker.io/perconalab/fluentbit:main-logcollector ]] + yq eval '(.spec | select(has("search"))).search.image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongot"' + IMAGE_LOGCOLLECTOR=docker.io/perconalab/fluentbit:main-logcollector + yq eval '(.spec | select(has("logcollector"))).logcollector.image = strenv(IMAGE_LOGCOLLECTOR)' + local LAST_OUT=/tmp/tmp.EnsAqXS4Kb + /usr/sbin/sed -e s/NAME_SPACE/mongod-major-upgrade-1926/g ++ mktemp + yq eval '.spec.upgradeOptions.apply="Never"' + local LAST_ERR=/tmp/tmp.dny0IAWiRg + 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)$ ]] + add_arch_to_psmdb - + arch_scheduling_enabled ++ mktemp + [[ -n '' ]] + cat - + stdin_manifest=/tmp/tmp.Y6KvWbrm1Y + cat + return + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.Y6KvWbrm1Y + 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.Y6KvWbrm1Y + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.EnsAqXS4Kb perconaservermongodb.psmdb.percona.com/some-name created + cat /tmp/tmp.dny0IAWiRg + rm /tmp/tmp.EnsAqXS4Kb /tmp/tmp.dny0IAWiRg /tmp/tmp.Y6KvWbrm1Y + 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.NUprXRLZ8T +++ mktemp ++ local LAST_ERR=/tmp/tmp.tXSMSCy6SL ++ 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.NUprXRLZ8T ++ cat /tmp/tmp.tXSMSCy6SL ++ rm /tmp/tmp.NUprXRLZ8T /tmp/tmp.tXSMSCy6SL ++ 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.mTpnUm9RCy +++ mktemp ++ local LAST_ERR=/tmp/tmp.cmjzdJAuwG ++ 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.mTpnUm9RCy ++ cat /tmp/tmp.cmjzdJAuwG ++ rm /tmp/tmp.mTpnUm9RCy /tmp/tmp.cmjzdJAuwG ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.v2zatX8Y4L +++ mktemp ++ local LAST_ERR=/tmp/tmp.5EddbqVMnB ++ 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.v2zatX8Y4L ++ cat /tmp/tmp.5EddbqVMnB ++ rm /tmp/tmp.v2zatX8Y4L /tmp/tmp.5EddbqVMnB ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster some-name to be ready + desc 'write data, read from all' + set +o xtrace ----------------------------------------------------------------------------------- write data, read from all ----------------------------------------------------------------------------------- + run_mongo 'db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})' userAdmin:userAdmin123456@some-name-rs0.mongod-major-upgrade-1926 + local 'command=db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})' + local uri=userAdmin:userAdmin123456@some-name-rs0.mongod-major-upgrade-1926 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ userAdmin:userAdmin123456@some-name-rs0.mongod-major-upgrade-1926 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.nU02sA8zVJ +++ mktemp ++ local LAST_ERR=/tmp/tmp.3wCApsZakE ++ 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.nU02sA8zVJ ++ cat /tmp/tmp.3wCApsZakE ++ rm /tmp/tmp.nU02sA8zVJ /tmp/tmp.3wCApsZakE ++ return 0 + local client_container=psmdb-client-c8847c4cd-kd8f6 + kubectl_bin exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n'\'' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.FHFakn67GV ++ mktemp + local LAST_ERR=/tmp/tmp.Iad3qAKMEU + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-kd8f6' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n'\'' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-kd8f6 == \- ]] + [[ psmdb-client-c8847c4cd-kd8f6 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n'\'' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.FHFakn67GV Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017,some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017,some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("4b320900-b0d1-47fe-8fa8-7749b63ecf5f") } Percona Server for MongoDB server version: v7.0.48-25 WARNING: shell and server versions do not match Successfully added user: { "user" : "myApp", "roles" : [ { "db" : "myApp", "role" : "readWrite" } ] } bye + cat /tmp/tmp.Iad3qAKMEU + rm /tmp/tmp.FHFakn67GV /tmp/tmp.Iad3qAKMEU + return 0 + sleep 2 + run_mongo 'use myApp\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-rs0.mongod-major-upgrade-1926 + local 'command=use myApp\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-rs0.mongod-major-upgrade-1926 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0.mongod-major-upgrade-1926 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.jwXV4XxftG +++ mktemp ++ local LAST_ERR=/tmp/tmp.AOYW9efYnT ++ 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.jwXV4XxftG ++ cat /tmp/tmp.AOYW9efYnT ++ rm /tmp/tmp.jwXV4XxftG /tmp/tmp.AOYW9efYnT ++ return 0 + local client_container=psmdb-client-c8847c4cd-kd8f6 + kubectl_bin exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.k3nYxznbyf ++ mktemp + local LAST_ERR=/tmp/tmp.YQMYoaCPoK + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-kd8f6' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-kd8f6 == \- ]] + [[ psmdb-client-c8847c4cd-kd8f6 =~ ^(-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+srv://myApp:myPass@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.insert({ x: 100501 })\n' | mongo mongodb+srv://myApp:myPass@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.k3nYxznbyf Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017,some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017,some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("9ac5d351-0388-4023-9104-19dcbd667b90") } Percona Server for MongoDB server version: v7.0.48-25 WARNING: shell and server versions do not match switched to db myApp WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.YQMYoaCPoK + rm /tmp/tmp.k3nYxznbyf /tmp/tmp.YQMYoaCPoK + return 0 + compare_mongo_cmd find myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926 + local command=find + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-24T10:08:40+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926 mongodb '' '' '' + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.TRbRMdgdnE +++ mktemp ++ local LAST_ERR=/tmp/tmp.TosGG5ADUF ++ 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.TRbRMdgdnE ++ cat /tmp/tmp.TosGG5ADUF ++ rm /tmp/tmp.TRbRMdgdnE /tmp/tmp.TosGG5ADUF ++ return 0 + local client_container=psmdb-client-c8847c4cd-kd8f6 + kubectl_bin exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.8nFijNdb6P ++ mktemp + local LAST_ERR=/tmp/tmp.eTAdaeQluC + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-kd8f6' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-kd8f6 == \- ]] + [[ psmdb-client-c8847c4cd-kd8f6 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.8nFijNdb6P + cat /tmp/tmp.eTAdaeQluC + rm /tmp/tmp.8nFijNdb6P /tmp/tmp.eTAdaeQluC + return 0 + compare_mongo_output find '' + local command=find + local postfix= + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/compare/find.json /tmp/tmp.Lng8QuTlCY/find + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926 + local command=find + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-24T10:08:43+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926 mongodb '' '' '' + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + [[ myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.OTSctaGU8N +++ mktemp ++ local LAST_ERR=/tmp/tmp.lOWlbrYIww ++ 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.OTSctaGU8N ++ cat /tmp/tmp.lOWlbrYIww ++ rm /tmp/tmp.OTSctaGU8N /tmp/tmp.lOWlbrYIww ++ return 0 + local client_container=psmdb-client-c8847c4cd-kd8f6 + kubectl_bin exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.36FtS7hvQd ++ mktemp + local LAST_ERR=/tmp/tmp.qo3uVSA4lY + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-kd8f6' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-kd8f6 == \- ]] + [[ psmdb-client-c8847c4cd-kd8f6 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.36FtS7hvQd + cat /tmp/tmp.qo3uVSA4lY + rm /tmp/tmp.36FtS7hvQd /tmp/tmp.qo3uVSA4lY + return 0 + compare_mongo_output find '' + local command=find + local postfix= + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/compare/find.json /tmp/tmp.Lng8QuTlCY/find + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926 + local command=find + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-24T10:08:46+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926 mongodb '' '' '' + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926 + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Aw5zDPzhvu +++ mktemp ++ local LAST_ERR=/tmp/tmp.WPaNw4ivma ++ 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.Aw5zDPzhvu ++ cat /tmp/tmp.WPaNw4ivma ++ rm /tmp/tmp.Aw5zDPzhvu /tmp/tmp.WPaNw4ivma ++ return 0 + local client_container=psmdb-client-c8847c4cd-kd8f6 + kubectl_bin exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.uWN11T84KS ++ mktemp + local LAST_ERR=/tmp/tmp.dzc4MjAxyS + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-kd8f6' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-kd8f6 == \- ]] + [[ psmdb-client-c8847c4cd-kd8f6 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.uWN11T84KS + cat /tmp/tmp.dzc4MjAxyS + rm /tmp/tmp.uWN11T84KS /tmp/tmp.dzc4MjAxyS + return 0 + compare_mongo_output find '' + local command=find + local postfix= + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/compare/find.json /tmp/tmp.Lng8QuTlCY/find + return + desc 'Starting to follow mongod upgrade images chain' + set +o xtrace ----------------------------------------------------------------------------------- Starting to follow mongod upgrade images chain ----------------------------------------------------------------------------------- + target_generation=2 + for version in ${versions_to_verify[@]} + desc 'Testing upgrade to version: 8.0' + set +o xtrace ----------------------------------------------------------------------------------- Testing upgrade to version: 8.0 ----------------------------------------------------------------------------------- + kubectl_bin patch psmdb/some-name --type=json $'-p=[\n\t\t\t\t\t{"op":"replace","path":"/spec/upgradeOptions/apply","value": "8.0-recommended"}\n\t\t\t\t]' ++ mktemp + local LAST_OUT=/tmp/tmp.I0d3fTTeOu ++ mktemp + local LAST_ERR=/tmp/tmp.cqZ5F3nAAa + local exit_status=0 + local timeout=4 + local i + args=('patch' 'psmdb/some-name' '--type=json' '-p=[ {"op":"replace","path":"/spec/upgradeOptions/apply","value": "8.0-recommended"} ]') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ patch == \- ]] + [[ patch =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb/some-name == \- ]] + [[ psmdb/some-name =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --type=json == \- ]] + [[ --type=json =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -p=[ {"op":"replace","path":"/spec/upgradeOptions/apply","value": "8.0-recommended"} ] == \- ]] + [[ -p=[ {"op":"replace","path":"/spec/upgradeOptions/apply","value": "8.0-recommended"} ] =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl patch psmdb/some-name --type=json $'-p=[\n\t\t\t\t\t{"op":"replace","path":"/spec/upgradeOptions/apply","value": "8.0-recommended"}\n\t\t\t\t]' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.I0d3fTTeOu perconaservermongodb.psmdb.percona.com/some-name patched + cat /tmp/tmp.cqZ5F3nAAa + rm /tmp/tmp.I0d3fTTeOu /tmp/tmp.cqZ5F3nAAa + return 0 + sleep 70 + 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.vb59hLrpOE +++ mktemp ++ local LAST_ERR=/tmp/tmp.qxBRpiifzf ++ 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.vb59hLrpOE ++ cat /tmp/tmp.qxBRpiifzf ++ rm /tmp/tmp.vb59hLrpOE /tmp/tmp.qxBRpiifzf ++ 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.5ibGnAR22p +++ mktemp ++ local LAST_ERR=/tmp/tmp.gut5Q4WtfT ++ 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.5ibGnAR22p ++ cat /tmp/tmp.gut5Q4WtfT ++ rm /tmp/tmp.5ibGnAR22p /tmp/tmp.gut5Q4WtfT ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.xCzZYrvtGm +++ mktemp ++ local LAST_ERR=/tmp/tmp.8Sh5lTij0m ++ 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.xCzZYrvtGm ++ cat /tmp/tmp.8Sh5lTij0m ++ rm /tmp/tmp.xCzZYrvtGm /tmp/tmp.8Sh5lTij0m ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster some-name to be ready.................................................................... + wait_cluster_consistency some-name + local cluster_name=some-name + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster some-name to be ready' waiting for cluster some-name to be ready++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.NUaxhpGTax +++ mktemp ++ local LAST_ERR=/tmp/tmp.q2zdABTlzQ ++ 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.NUaxhpGTax ++ cat /tmp/tmp.q2zdABTlzQ ++ rm /tmp/tmp.NUaxhpGTax /tmp/tmp.q2zdABTlzQ ++ return 0 + [[ ready == ready ]] + echo .OK .OK + compare_generation 2 statefulset some-name-rs0 + local generation=2 + local resource_type=statefulset + local resource_name=some-name-rs0 + local current_generation ++ kubectl_bin get statefulset some-name-rs0 -o 'jsonpath={.metadata.generation}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.eoFuQUzx1y +++ mktemp ++ local LAST_ERR=/tmp/tmp.PKFofFiTiz ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'statefulset' 'some-name-rs0' '-o' 'jsonpath={.metadata.generation}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ statefulset == \- ]] ++ [[ statefulset =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name-rs0 == \- ]] ++ [[ some-name-rs0 =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.metadata.generation} == \- ]] ++ [[ jsonpath={.metadata.generation} =~ ^(-f|--filename)=-$ ]] ++ 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 statefulset some-name-rs0 -o 'jsonpath={.metadata.generation}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.eoFuQUzx1y ++ cat /tmp/tmp.PKFofFiTiz ++ rm /tmp/tmp.eoFuQUzx1y /tmp/tmp.PKFofFiTiz ++ return 0 + current_generation=2 + [[ 2 != 2 ]] + kubectl_bin patch psmdb/some-name --type=json $'-p=[\n\t\t\t\t\t{"op":"replace","path":"/spec/upgradeOptions/setFCV","value": true}\n\t\t\t\t]' ++ mktemp + local LAST_OUT=/tmp/tmp.hxvdO5AbJv ++ mktemp + local LAST_ERR=/tmp/tmp.UWvulmhMeg + local exit_status=0 + local timeout=4 + local i + args=('patch' 'psmdb/some-name' '--type=json' '-p=[ {"op":"replace","path":"/spec/upgradeOptions/setFCV","value": true} ]') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ patch == \- ]] + [[ patch =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb/some-name == \- ]] + [[ psmdb/some-name =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --type=json == \- ]] + [[ --type=json =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -p=[ {"op":"replace","path":"/spec/upgradeOptions/setFCV","value": true} ] == \- ]] + [[ -p=[ {"op":"replace","path":"/spec/upgradeOptions/setFCV","value": true} ] =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl patch psmdb/some-name --type=json $'-p=[\n\t\t\t\t\t{"op":"replace","path":"/spec/upgradeOptions/setFCV","value": true}\n\t\t\t\t]' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.hxvdO5AbJv perconaservermongodb.psmdb.percona.com/some-name patched + cat /tmp/tmp.UWvulmhMeg + rm /tmp/tmp.hxvdO5AbJv /tmp/tmp.UWvulmhMeg + return 0 + sleep 10 + 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.mLMD2rYo6t +++ mktemp ++ local LAST_ERR=/tmp/tmp.OYYW0TDIvZ ++ 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.mLMD2rYo6t ++ cat /tmp/tmp.OYYW0TDIvZ ++ rm /tmp/tmp.mLMD2rYo6t /tmp/tmp.OYYW0TDIvZ ++ return 0 + [[ ready == ready ]] + echo .OK .OK ++ run_mongos 'JSON.stringify(db.adminCommand({getParameter:1,featureCompatibilityVersion:1}))' clusterAdmin:clusterAdmin123456@some-name-rs0.mongod-major-upgrade-1926 ++ local 'command=JSON.stringify(db.adminCommand({getParameter:1,featureCompatibilityVersion:1}))' ++ local uri=clusterAdmin:clusterAdmin123456@some-name-rs0.mongod-major-upgrade-1926 ++ local driver=mongodb ++ local suffix=.svc.cluster.local ++ local mongo_flag= ++ local port=27017 ++ local mongo_bin=mongo ++ grep -E '^\{.*\}$' ++ jq -r .featureCompatibilityVersion.version +++ echo .svc.cluster.local +++ awk -F: '{print $2}' ++ suffix_port= ++ [[ -z '' ]] ++ suffix=.svc.cluster.local:27017 +++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.L4xlUCChgt ++++ mktemp +++ local LAST_ERR=/tmp/tmp.FcgwooN4C4 +++ 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.L4xlUCChgt +++ cat /tmp/tmp.FcgwooN4C4 +++ rm /tmp/tmp.L4xlUCChgt /tmp/tmp.FcgwooN4C4 +++ return 0 ++ local client_container=psmdb-client-c8847c4cd-kd8f6 ++ kubectl_bin exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''JSON.stringify(db.adminCommand({getParameter:1,featureCompatibilityVersion:1}))\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017/admin ' +++ mktemp ++ local LAST_OUT=/tmp/tmp.wyCXMMM8ws +++ mktemp ++ local LAST_ERR=/tmp/tmp.TzClB9oNUC ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('exec' 'psmdb-client-c8847c4cd-kd8f6' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''JSON.stringify(db.adminCommand({getParameter:1,featureCompatibilityVersion:1}))\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017/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-kd8f6 == \- ]] ++ [[ psmdb-client-c8847c4cd-kd8f6 =~ ^(-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 'JSON.stringify(db.adminCommand({getParameter:1,featureCompatibilityVersion:1}))\n' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017/admin == \- ]] ++ [[ export HOME=/tmp; printf 'JSON.stringify(db.adminCommand({getParameter:1,featureCompatibilityVersion:1}))\n' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017/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-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''JSON.stringify(db.adminCommand({getParameter:1,featureCompatibilityVersion:1}))\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017/admin ' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.wyCXMMM8ws ++ cat /tmp/tmp.TzClB9oNUC ++ rm /tmp/tmp.wyCXMMM8ws /tmp/tmp.TzClB9oNUC ++ return 0 + currentFCV=8.0 + [[ 8.0 != 8.0 ]] + run_mongo 'use myApp\n db.test.insert({ x: 100502 })' myApp:myPass@some-name-rs0.mongod-major-upgrade-1926 + local 'command=use myApp\n db.test.insert({ x: 100502 })' + local uri=myApp:myPass@some-name-rs0.mongod-major-upgrade-1926 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0.mongod-major-upgrade-1926 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.3FzPKVDE2g +++ mktemp ++ local LAST_ERR=/tmp/tmp.vTVrczD4eh ++ 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.3FzPKVDE2g ++ cat /tmp/tmp.vTVrczD4eh ++ rm /tmp/tmp.3FzPKVDE2g /tmp/tmp.vTVrczD4eh ++ return 0 + local client_container=psmdb-client-c8847c4cd-kd8f6 + kubectl_bin exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100502 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.JKgp2hobJG ++ mktemp + local LAST_ERR=/tmp/tmp.EgBdyrujWd + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-kd8f6' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100502 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-kd8f6 == \- ]] + [[ psmdb-client-c8847c4cd-kd8f6 =~ ^(-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: 100502 })\n' | mongo mongodb+srv://myApp:myPass@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.insert({ x: 100502 })\n' | mongo mongodb+srv://myApp:myPass@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100502 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.JKgp2hobJG Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017,some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017,some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("e173764e-7031-4335-84cd-c9a403c79263") } Percona Server for MongoDB server version: v8.0.38-16 WARNING: shell and server versions do not match switched to db myApp WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.EgBdyrujWd + rm /tmp/tmp.JKgp2hobJG /tmp/tmp.EgBdyrujWd + return 0 + compare_mongo_cmd find myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926 -2 + local command=find + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926 + local postfix=-2 + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-24T10:13:04+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926 == *cfg* ]] + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.37KbIbGelP +++ mktemp ++ local LAST_ERR=/tmp/tmp.VqcplqtsgC ++ 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.37KbIbGelP ++ cat /tmp/tmp.VqcplqtsgC ++ rm /tmp/tmp.37KbIbGelP /tmp/tmp.VqcplqtsgC ++ return 0 + local client_container=psmdb-client-c8847c4cd-kd8f6 + kubectl_bin exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.cGBBDlA7tt ++ mktemp + local LAST_ERR=/tmp/tmp.GjLfpsYPtT + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-kd8f6' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-kd8f6 == \- ]] + [[ psmdb-client-c8847c4cd-kd8f6 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.cGBBDlA7tt + cat /tmp/tmp.GjLfpsYPtT + rm /tmp/tmp.cGBBDlA7tt /tmp/tmp.GjLfpsYPtT + 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-2742/e2e-tests/mongod-major-upgrade/compare/find-2.json /tmp/tmp.Lng8QuTlCY/find-2 + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926 -2 + local command=find + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926 + local postfix=-2 + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-24T10:13:06+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926 + local driver=mongodb + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926 == *cfg* ]] + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.RaHJNchEws +++ mktemp ++ local LAST_ERR=/tmp/tmp.xwfKPWrkpU ++ 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.RaHJNchEws ++ cat /tmp/tmp.xwfKPWrkpU ++ rm /tmp/tmp.RaHJNchEws /tmp/tmp.xwfKPWrkpU ++ return 0 + local client_container=psmdb-client-c8847c4cd-kd8f6 + kubectl_bin exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.5GxYcNWKsq ++ mktemp + local LAST_ERR=/tmp/tmp.F7hRbCFAoN + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-kd8f6' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-kd8f6 == \- ]] + [[ psmdb-client-c8847c4cd-kd8f6 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.5GxYcNWKsq + cat /tmp/tmp.F7hRbCFAoN + rm /tmp/tmp.5GxYcNWKsq /tmp/tmp.F7hRbCFAoN + 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-2742/e2e-tests/mongod-major-upgrade/compare/find-2.json /tmp/tmp.Lng8QuTlCY/find-2 + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926 -2 + local command=find + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926 + local postfix=-2 + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-24T10:13:08+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926 == *cfg* ]] + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.jTG0VE7U9D +++ mktemp ++ local LAST_ERR=/tmp/tmp.ZhHd6uXWWg ++ 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.jTG0VE7U9D ++ cat /tmp/tmp.ZhHd6uXWWg ++ rm /tmp/tmp.jTG0VE7U9D /tmp/tmp.ZhHd6uXWWg ++ return 0 + local client_container=psmdb-client-c8847c4cd-kd8f6 + kubectl_bin exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.VHUvX5REO9 ++ mktemp + local LAST_ERR=/tmp/tmp.N3sPQ7sa8i + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-kd8f6' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-kd8f6 == \- ]] + [[ psmdb-client-c8847c4cd-kd8f6 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.VHUvX5REO9 + cat /tmp/tmp.N3sPQ7sa8i + rm /tmp/tmp.VHUvX5REO9 /tmp/tmp.N3sPQ7sa8i + 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-2742/e2e-tests/mongod-major-upgrade/compare/find-2.json /tmp/tmp.Lng8QuTlCY/find-2 + return + target_generation=3 + for version in ${versions_to_verify[@]} + desc 'Testing upgrade to version: 8.3' + set +o xtrace ----------------------------------------------------------------------------------- Testing upgrade to version: 8.3 ----------------------------------------------------------------------------------- + kubectl_bin patch psmdb/some-name --type=json $'-p=[\n\t\t\t\t\t{"op":"replace","path":"/spec/upgradeOptions/apply","value": "8.3-recommended"}\n\t\t\t\t]' ++ mktemp + local LAST_OUT=/tmp/tmp.BJB9b5NzsQ ++ mktemp + local LAST_ERR=/tmp/tmp.S5ljdmKJSe + local exit_status=0 + local timeout=4 + local i + args=('patch' 'psmdb/some-name' '--type=json' '-p=[ {"op":"replace","path":"/spec/upgradeOptions/apply","value": "8.3-recommended"} ]') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ patch == \- ]] + [[ patch =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb/some-name == \- ]] + [[ psmdb/some-name =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --type=json == \- ]] + [[ --type=json =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -p=[ {"op":"replace","path":"/spec/upgradeOptions/apply","value": "8.3-recommended"} ] == \- ]] + [[ -p=[ {"op":"replace","path":"/spec/upgradeOptions/apply","value": "8.3-recommended"} ] =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl patch psmdb/some-name --type=json $'-p=[\n\t\t\t\t\t{"op":"replace","path":"/spec/upgradeOptions/apply","value": "8.3-recommended"}\n\t\t\t\t]' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.BJB9b5NzsQ perconaservermongodb.psmdb.percona.com/some-name patched + cat /tmp/tmp.S5ljdmKJSe + rm /tmp/tmp.BJB9b5NzsQ /tmp/tmp.S5ljdmKJSe + return 0 + sleep 70 + 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.H75V2cSxwF +++ mktemp ++ local LAST_ERR=/tmp/tmp.TqBOFfmjId ++ 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.H75V2cSxwF ++ cat /tmp/tmp.TqBOFfmjId ++ rm /tmp/tmp.H75V2cSxwF /tmp/tmp.TqBOFfmjId ++ 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.eZEobLeHeD +++ mktemp ++ local LAST_ERR=/tmp/tmp.p9bChOuSpe ++ 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.eZEobLeHeD ++ cat /tmp/tmp.p9bChOuSpe ++ rm /tmp/tmp.eZEobLeHeD /tmp/tmp.p9bChOuSpe ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ymR9aYakKi +++ mktemp ++ local LAST_ERR=/tmp/tmp.5Vj50e1xTo ++ 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.ymR9aYakKi ++ cat /tmp/tmp.5Vj50e1xTo ++ rm /tmp/tmp.ymR9aYakKi /tmp/tmp.5Vj50e1xTo ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster some-name to be ready........................ + wait_cluster_consistency some-name + local cluster_name=some-name + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster some-name to be ready' waiting for cluster some-name to be ready++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.CNeaPzHK6k +++ mktemp ++ local LAST_ERR=/tmp/tmp.G278NPAfMO ++ 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.CNeaPzHK6k ++ cat /tmp/tmp.G278NPAfMO ++ rm /tmp/tmp.CNeaPzHK6k /tmp/tmp.G278NPAfMO ++ return 0 + [[ ready == ready ]] + echo .OK .OK + compare_generation 3 statefulset some-name-rs0 + local generation=3 + local resource_type=statefulset + local resource_name=some-name-rs0 + local current_generation ++ kubectl_bin get statefulset some-name-rs0 -o 'jsonpath={.metadata.generation}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.1g1fA4TC9n +++ mktemp ++ local LAST_ERR=/tmp/tmp.uF0kqMhz3R ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'statefulset' 'some-name-rs0' '-o' 'jsonpath={.metadata.generation}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ statefulset == \- ]] ++ [[ statefulset =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name-rs0 == \- ]] ++ [[ some-name-rs0 =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.metadata.generation} == \- ]] ++ [[ jsonpath={.metadata.generation} =~ ^(-f|--filename)=-$ ]] ++ 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 statefulset some-name-rs0 -o 'jsonpath={.metadata.generation}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.1g1fA4TC9n ++ cat /tmp/tmp.uF0kqMhz3R ++ rm /tmp/tmp.1g1fA4TC9n /tmp/tmp.uF0kqMhz3R ++ return 0 + current_generation=3 + [[ 3 != 3 ]] + kubectl_bin patch psmdb/some-name --type=json $'-p=[\n\t\t\t\t\t{"op":"replace","path":"/spec/upgradeOptions/setFCV","value": true}\n\t\t\t\t]' ++ mktemp + local LAST_OUT=/tmp/tmp.MAp2yREmOy ++ mktemp + local LAST_ERR=/tmp/tmp.S0FcdmWGzf + local exit_status=0 + local timeout=4 + local i + args=('patch' 'psmdb/some-name' '--type=json' '-p=[ {"op":"replace","path":"/spec/upgradeOptions/setFCV","value": true} ]') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ patch == \- ]] + [[ patch =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb/some-name == \- ]] + [[ psmdb/some-name =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --type=json == \- ]] + [[ --type=json =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -p=[ {"op":"replace","path":"/spec/upgradeOptions/setFCV","value": true} ] == \- ]] + [[ -p=[ {"op":"replace","path":"/spec/upgradeOptions/setFCV","value": true} ] =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl patch psmdb/some-name --type=json $'-p=[\n\t\t\t\t\t{"op":"replace","path":"/spec/upgradeOptions/setFCV","value": true}\n\t\t\t\t]' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.MAp2yREmOy perconaservermongodb.psmdb.percona.com/some-name patched (no change) + cat /tmp/tmp.S0FcdmWGzf + rm /tmp/tmp.MAp2yREmOy /tmp/tmp.S0FcdmWGzf + return 0 + sleep 10 + 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.uaGWhif5tR +++ mktemp ++ local LAST_ERR=/tmp/tmp.65Xb0lqD0Q ++ 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.uaGWhif5tR ++ cat /tmp/tmp.65Xb0lqD0Q ++ rm /tmp/tmp.uaGWhif5tR /tmp/tmp.65Xb0lqD0Q ++ return 0 + [[ ready == ready ]] + echo .OK .OK ++ run_mongos 'JSON.stringify(db.adminCommand({getParameter:1,featureCompatibilityVersion:1}))' clusterAdmin:clusterAdmin123456@some-name-rs0.mongod-major-upgrade-1926 ++ grep -E '^\{.*\}$' ++ local 'command=JSON.stringify(db.adminCommand({getParameter:1,featureCompatibilityVersion:1}))' ++ local uri=clusterAdmin:clusterAdmin123456@some-name-rs0.mongod-major-upgrade-1926 ++ local driver=mongodb ++ local suffix=.svc.cluster.local ++ local mongo_flag= ++ local port=27017 ++ local mongo_bin=mongo ++ jq -r .featureCompatibilityVersion.version +++ echo .svc.cluster.local +++ awk -F: '{print $2}' ++ suffix_port= ++ [[ -z '' ]] ++ suffix=.svc.cluster.local:27017 +++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.kLhgdqP1RE ++++ mktemp +++ local LAST_ERR=/tmp/tmp.0ceUJaP9tZ +++ 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.kLhgdqP1RE +++ cat /tmp/tmp.0ceUJaP9tZ +++ rm /tmp/tmp.kLhgdqP1RE /tmp/tmp.0ceUJaP9tZ +++ return 0 ++ local client_container=psmdb-client-c8847c4cd-kd8f6 ++ kubectl_bin exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''JSON.stringify(db.adminCommand({getParameter:1,featureCompatibilityVersion:1}))\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017/admin ' +++ mktemp ++ local LAST_OUT=/tmp/tmp.8Dbjdhz7mU +++ mktemp ++ local LAST_ERR=/tmp/tmp.o5bAs8M4uz ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('exec' 'psmdb-client-c8847c4cd-kd8f6' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''JSON.stringify(db.adminCommand({getParameter:1,featureCompatibilityVersion:1}))\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017/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-kd8f6 == \- ]] ++ [[ psmdb-client-c8847c4cd-kd8f6 =~ ^(-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 'JSON.stringify(db.adminCommand({getParameter:1,featureCompatibilityVersion:1}))\n' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017/admin == \- ]] ++ [[ export HOME=/tmp; printf 'JSON.stringify(db.adminCommand({getParameter:1,featureCompatibilityVersion:1}))\n' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017/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-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''JSON.stringify(db.adminCommand({getParameter:1,featureCompatibilityVersion:1}))\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017/admin ' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.8Dbjdhz7mU ++ cat /tmp/tmp.o5bAs8M4uz ++ rm /tmp/tmp.8Dbjdhz7mU /tmp/tmp.o5bAs8M4uz ++ return 0 + currentFCV=8.3 + [[ 8.3 != 8.3 ]] + run_mongo 'use myApp\n db.test.insert({ x: 100503 })' myApp:myPass@some-name-rs0.mongod-major-upgrade-1926 + local 'command=use myApp\n db.test.insert({ x: 100503 })' + local uri=myApp:myPass@some-name-rs0.mongod-major-upgrade-1926 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0.mongod-major-upgrade-1926 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Z28XdjRzWx +++ mktemp ++ local LAST_ERR=/tmp/tmp.5XdEDzzIVc ++ 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.Z28XdjRzWx ++ cat /tmp/tmp.5XdEDzzIVc ++ rm /tmp/tmp.Z28XdjRzWx /tmp/tmp.5XdEDzzIVc ++ return 0 + local client_container=psmdb-client-c8847c4cd-kd8f6 + kubectl_bin exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100503 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.v1SvMELhqT ++ mktemp + local LAST_ERR=/tmp/tmp.1AmVpzhzXE + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-kd8f6' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100503 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-kd8f6 == \- ]] + [[ psmdb-client-c8847c4cd-kd8f6 =~ ^(-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: 100503 })\n' | mongo mongodb+srv://myApp:myPass@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.insert({ x: 100503 })\n' | mongo mongodb+srv://myApp:myPass@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100503 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.v1SvMELhqT Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017,some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017,some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("134e24ff-7712-452e-898f-f51c2ff2e468") } 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.1AmVpzhzXE + rm /tmp/tmp.v1SvMELhqT /tmp/tmp.1AmVpzhzXE + return 0 + compare_mongo_cmd find myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926 -3 + local command=find + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926 + local postfix=-3 + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-24T10:15:59+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926 == *cfg* ]] + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.InhUxdSSq5 +++ mktemp ++ local LAST_ERR=/tmp/tmp.NdX10fhyjK ++ 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.InhUxdSSq5 ++ cat /tmp/tmp.NdX10fhyjK ++ rm /tmp/tmp.InhUxdSSq5 /tmp/tmp.NdX10fhyjK ++ return 0 + local client_container=psmdb-client-c8847c4cd-kd8f6 + kubectl_bin exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.MlfYVOEtOd ++ mktemp + local LAST_ERR=/tmp/tmp.epGtt2ht3Z + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-kd8f6' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-kd8f6 == \- ]] + [[ psmdb-client-c8847c4cd-kd8f6 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.MlfYVOEtOd + cat /tmp/tmp.epGtt2ht3Z + rm /tmp/tmp.MlfYVOEtOd /tmp/tmp.epGtt2ht3Z + return 0 + compare_mongo_output find -3 + local command=find + local postfix=-3 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/compare/find-3.json /tmp/tmp.Lng8QuTlCY/find-3 + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926 -3 + local command=find + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926 + local postfix=-3 + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-24T10:16:02+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926 mongodb '' '' '' + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local 'command=use myApp\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-rs0-1.some-name-rs0.mongod-major-upgrade-1926 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.7yPf7Uv9tU +++ mktemp ++ local LAST_ERR=/tmp/tmp.snUtVdnpyq ++ 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.7yPf7Uv9tU ++ cat /tmp/tmp.snUtVdnpyq ++ rm /tmp/tmp.7yPf7Uv9tU /tmp/tmp.snUtVdnpyq ++ return 0 + local client_container=psmdb-client-c8847c4cd-kd8f6 + kubectl_bin exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.W7zUbwCi7V ++ mktemp + local LAST_ERR=/tmp/tmp.voywLIHORd + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-kd8f6' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-kd8f6 == \- ]] + [[ psmdb-client-c8847c4cd-kd8f6 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.W7zUbwCi7V + cat /tmp/tmp.voywLIHORd + rm /tmp/tmp.W7zUbwCi7V /tmp/tmp.voywLIHORd + return 0 + compare_mongo_output find -3 + local command=find + local postfix=-3 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/compare/find-3.json /tmp/tmp.Lng8QuTlCY/find-3 + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926 -3 + local command=find + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926 + local postfix=-3 + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-24T10:16:05+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926 mongodb '' '' '' + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.7PqLO88D2B +++ mktemp ++ local LAST_ERR=/tmp/tmp.6dyloRyCWq ++ 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.7PqLO88D2B ++ cat /tmp/tmp.6dyloRyCWq ++ rm /tmp/tmp.7PqLO88D2B /tmp/tmp.6dyloRyCWq ++ return 0 + local client_container=psmdb-client-c8847c4cd-kd8f6 + kubectl_bin exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.oTE7hmYOnw ++ mktemp + local LAST_ERR=/tmp/tmp.qhdRIh6mNb + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-kd8f6' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-kd8f6 == \- ]] + [[ psmdb-client-c8847c4cd-kd8f6 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-kd8f6 -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-1926.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.oTE7hmYOnw + cat /tmp/tmp.qhdRIh6mNb + rm /tmp/tmp.oTE7hmYOnw /tmp/tmp.qhdRIh6mNb + return 0 + compare_mongo_output find -3 + local command=find + local postfix=-3 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/mongod-major-upgrade/compare/find-3.json /tmp/tmp.Lng8QuTlCY/find-3 + return + target_generation=4 + destroy mongod-major-upgrade-1926 + local namespace=mongod-major-upgrade-1926 + local ignore_logs=true + [[ 1 == 1 ]] + echo 'SKIP_DELETE=1, not destroying mongod-major-upgrade-1926' SKIP_DELETE=1, not destroying mongod-major-upgrade-1926 + return + desc 'test passed' + set +o xtrace ----------------------------------------------------------------------------------- test passed ----------------------------------------------------------------------------------- ==================================================================================================== [PASSED] e2e-tests/test_pytest_wrapper.py::test_bash_wrapper ==================================================================================================== [10:16:09.006542] INFO Deleting cert-manager [10:16:25.696219] INFO Cleaning up test environment ------------------------------------------ generated xml file: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/reports/mongod-major-upgrade.xml ------------------------------------------ ------------------------------------ Generated html report: file:///mnt/jenkins/workspace/cloud-psmdb-operator_PR-2742/e2e-tests/reports/mongod-major-upgrade.html ------------------------------------- ==================================================================================== 1 passed in 750.00s (0:12:30) =====================================================================================