mkdir -p e2e-tests/reports e2e-tests/logs ========================================================================================= test session starts ========================================================================================== platform linux -- Python 3.14.10, pytest-9.1.1, pluggy-1.7.0 -- /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/.venv/bin/python cachedir: .pytest_cache metadata: {'Python': '3.14.10', 'Platform': 'Linux-7.1.10-200.fc44.x86_64-x86_64-with-glibc2.43', 'Packages': {'pytest': '9.1.1', 'pluggy': '1.7.0'}, 'Plugins': {'html': '4.2.0', 'json-report': '1.5.0', 'dependency': '0.6.1', 'metadata': '3.1.1'}, 'CI': 'true', 'BUILD_NUMBER': '9', 'BUILD_ID': '9', 'BUILD_URL': 'https://cloud.cd.percona.com/job/cloud-psmdb-operator/job/PR-2715/9/', 'NODE_NAME': 'hcloud-nialm8wqguv220jl', 'JOB_NAME': 'cloud-psmdb-operator/PR-2715', 'BUILD_TAG': 'jenkins-cloud-psmdb-operator-PR-2715-9', 'EXECUTOR_NUMBER': '0', 'JENKINS_URL': 'https://cloud.cd.percona.com/', 'WORKSPACE': '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715', 'GIT_COMMIT': '27e0b796072fe59ec1fa78fca82dc7491ddb9891', 'GIT_URL': 'https://github.com/percona/percona-server-mongodb-operator.git', 'GIT_BRANCH': 'PR-2715'} rootdir: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715 configfile: pyproject.toml plugins: html-4.2.0, json-report-1.5.0, dependency-0.6.1, metadata-3.1.1 collecting ... collected 1 item e2e-tests/test_pytest_wrapper.py::test_bash_wrapper[mongod-major-upgrade] [06:45:10.807526] WARNING kubectl error: Warning: version difference between client (1.37) and server (1.34) exceeds the supported minor version skew of +/-1 [06:45:12.003568] INFO Environment variables: KUBE_VERSION=1.34 PLATFORM=gke ARCH= EKS= GKE=1 AKS= OPENSHIFT= KIND= MINIKUBE= RANCHER= API=psmdb.percona.com/v1 REGISTRY_NAME=docker.io GIT_COMMIT=27e0b796072fe59ec1fa78fca82dc7491ddb9891 GIT_BRANCH=PR-2715 OPERATOR_VERSION=1.24.0 IMAGE=docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960 IMAGE_MONGOD=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 IMAGE_MONGOD_CHAIN=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 IMAGE_SEARCH=docker.io/perconalab/percona-server-mongodb-operator:main-mongot IMAGE_BACKUP=docker.io/perconalab/percona-server-mongodb-operator:main-backup IMAGE_PMM_CLIENT=docker.io/perconalab/pmm-client:3-dev-latest IMAGE_PMM_SERVER=docker.io/perconalab/pmm-server:3-dev-latest IMAGE_LOGCOLLECTOR=docker.io/perconalab/fluentbit:main-logcollector IMAGE_CLUSTERSYNC=docker.io/percona/percona-clustersync-mongodb:1.0.0 IMAGE_AWS_CLI=docker.io/amazon/aws-cli:2.34.60 CERT_MANAGER_VER=1.21.0 CHAOS_MESH_VER=2.7.1 SEAWEEDFS_VER=4.47.0 PMM_SERVER_VER=9.9.9 CLEAN_NAMESPACE=1 DELETE_CRD_ON_START=1 SKIP_DELETE=0 SKIP_BACKUPS_TO_AWS_GCP_AZURE= UPDATE_COMPARE_FILES=0 +++ dirname run ++ realpath . + test_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade + . /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/../functions +++ dirname /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/../functions ++ source /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/../vars +++ [[ 1 != 1 ]] ++++ mktemp -d +++ export tmp_dir=/tmp/tmp.JQCqKUM2t1 +++ tmp_dir=/tmp/tmp.JQCqKUM2t1 ++++ command -v gsed ++++ command -v sed +++ export sed=/usr/sbin/sed +++ sed=/usr/sbin/sed ++++ command -v gdate ++++ command -v date +++ export date=/usr/sbin/date +++ date=/usr/sbin/date ++++ basename /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade +++ export test_name=mongod-major-upgrade +++ test_name=mongod-major-upgrade +++ export namespace=mongod-major-upgrade-2068 +++ namespace=mongod-major-upgrade-2068 +++ export arbiter_namespace=mongod-major-upgrade-arbiter-18398 +++ arbiter_namespace=mongod-major-upgrade-arbiter-18398 +++ export replica_namespace=mongod-major-upgrade-replica-24653 +++ replica_namespace=mongod-major-upgrade-replica-24653 ++++ realpath /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/../conf +++ export conf_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf +++ conf_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf ++++ realpath /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/../.. +++ export src_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715 +++ src_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715 +++ export logs_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/../logs +++ logs_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/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-2068 + local ns=mongod-major-upgrade-2068 + echo mongod-major-upgrade-2068 + destroy_cert_manager + [[ -n '' ]] + kubectl_bin delete mutatingwebhookconfiguration cert-manager-webhook --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.iC4SCAXCLT ++ mktemp + local LAST_ERR=/tmp/tmp.HYZvSJRxsF + 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.iC4SCAXCLT + cat /tmp/tmp.HYZvSJRxsF + rm /tmp/tmp.iC4SCAXCLT /tmp/tmp.HYZvSJRxsF + return 0 + kubectl_bin delete validatingwebhookconfiguration cert-manager-webhook --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.RyAlBrG1ey ++ mktemp + local LAST_ERR=/tmp/tmp.BlCKsD3UKA + 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.RyAlBrG1ey + cat /tmp/tmp.BlCKsD3UKA + rm /tmp/tmp.RyAlBrG1ey /tmp/tmp.BlCKsD3UKA + 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.oN2kwZ160W ++ mktemp + local LAST_ERR=/tmp/tmp.jMknDcdsKc + 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.oN2kwZ160W + cat /tmp/tmp.jMknDcdsKc + rm /tmp/tmp.oN2kwZ160W /tmp/tmp.jMknDcdsKc + return 0 + kubectl_bin delete namespace cert-manager --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.tzKaHcTTmp ++ mktemp + local LAST_ERR=/tmp/tmp.gfEj6aCYig + 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.tzKaHcTTmp + cat /tmp/tmp.gfEj6aCYig + rm /tmp/tmp.tzKaHcTTmp /tmp/tmp.gfEj6aCYig + 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.y68V4mgx86 +++ mktemp ++ local LAST_ERR=/tmp/tmp.5IPwExyJPb ++ 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.y68V4mgx86 ++ cat /tmp/tmp.5IPwExyJPb ++ rm /tmp/tmp.y68V4mgx86 /tmp/tmp.5IPwExyJPb ++ return 0 + remaining= ++ kubectl_bin get validatingwebhookconfiguration cert-manager-webhook --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.F1x3f1wrw5 +++ mktemp ++ local LAST_ERR=/tmp/tmp.WjwS4rTVrs ++ 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.F1x3f1wrw5 ++ cat /tmp/tmp.WjwS4rTVrs ++ rm /tmp/tmp.F1x3f1wrw5 /tmp/tmp.WjwS4rTVrs ++ 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.zyMyhd1pQe +++ mktemp ++ local LAST_ERR=/tmp/tmp.CjFXb1XHzm ++ 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.zyMyhd1pQe ++ cat /tmp/tmp.CjFXb1XHzm ++ rm /tmp/tmp.zyMyhd1pQe /tmp/tmp.CjFXb1XHzm ++ return 0 + remaining+= ++ kubectl_bin get namespace cert-manager --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.wz5HyNAluO +++ mktemp ++ local LAST_ERR=/tmp/tmp.0ORi5W7M0f ++ 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.wz5HyNAluO ++ cat /tmp/tmp.0ORi5W7M0f ++ rm /tmp/tmp.wz5HyNAluO /tmp/tmp.0ORi5W7M0f ++ return 0 + remaining+= + [[ -z '' ]] + return 0 + [[ 1 == 1 ]] + delete_crd + desc 'get and delete old CRDs and RBAC' + set +o xtrace ----------------------------------------------------------------------------------- get and delete old CRDs and RBAC ----------------------------------------------------------------------------------- + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.2ueSRDWFOh ++ mktemp + local LAST_ERR=/tmp/tmp.X1PHEH3V1x + local exit_status=0 + local timeout=4 + local i + args=('delete' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml' '--ignore-not-found' '--wait=false') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --wait=false == \- ]] + [[ --wait=false =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.2ueSRDWFOh + cat /tmp/tmp.X1PHEH3V1x + rm /tmp/tmp.2ueSRDWFOh /tmp/tmp.X1PHEH3V1x + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml ++ grep -v '\-\-\-' grep: warning: stray \ before - grep: warning: stray \ before - + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + grep -v NAMESPACE + kubectl get perconaservermongodbbackups.psmdb.percona.com --all-namespaces -o wide + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbbackups.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbbackups" in group "psmdb.percona.com" + kubectl patch perconaservermongodbbackups.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbbackups" in group "psmdb.percona.com" + : + kubectl get crd perconaservermongodbbackups.psmdb.percona.com + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + kubectl get perconaservermongodbclustersyncs.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbclustersyncs.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbclustersyncs" in group "psmdb.percona.com" + kubectl patch perconaservermongodbclustersyncs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbclustersyncs" in group "psmdb.percona.com" + : + kubectl get crd perconaservermongodbclustersyncs.psmdb.percona.com + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + kubectl get perconaservermongodbrestores.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbrestores.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbrestores" in group "psmdb.percona.com" + kubectl patch perconaservermongodbrestores.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbrestores" in group "psmdb.percona.com" + : + kubectl get crd perconaservermongodbrestores.psmdb.percona.com + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + kubectl get perconaservermongodbs.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbs.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbs" in group "psmdb.percona.com" + kubectl patch perconaservermongodbs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbs" in group "psmdb.percona.com" + : + kubectl get crd perconaservermongodbs.psmdb.percona.com + local rbac_yaml=rbac.yaml + '[' -n psmdb-operator ']' + rbac_yaml=cw-rbac.yaml + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.lsumu9AJLo ++ mktemp + local LAST_ERR=/tmp/tmp.YUnOhVRBGV + local exit_status=0 + local timeout=4 + local i + args=('delete' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml' '--ignore-not-found' '--wait=false') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --wait=false == \- ]] + [[ --wait=false =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.lsumu9AJLo + cat /tmp/tmp.YUnOhVRBGV + rm /tmp/tmp.lsumu9AJLo /tmp/tmp.YUnOhVRBGV + return 0 + check_crd_for_deletion PR-2715 + local git_tag=PR-2715 ++ yq eval .metadata.name ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-2715/deploy/crd.yaml ++ /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.itAjoRZbW7 +++ mktemp ++ local LAST_ERR=/tmp/tmp.DYi9WIOhzL ++ 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.DYi9WIOhzL ++ break ++ cat /tmp/tmp.itAjoRZbW7 ++ cat /tmp/tmp.DYi9WIOhzL Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.itAjoRZbW7 /tmp/tmp.DYi9WIOhzL ++ return 1 + [[ '' == Terminating ]] + '[' -n psmdb-operator ']' + create_namespace psmdb-operator + local namespace=psmdb-operator + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ tail -n1 ++ helm list --all-namespaces --filter chaos-mesh ++ sed s/NAMESPACE// ++ awk '-F ' '{print $2}' + 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 ++ awk '{print $1}' ++ grep chaos-mesh + 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 '' ]] + xargs kubectl delete ns + desc 'cleaned up old namespaces psmdb-operator' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin delete namespace psmdb-operator --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.M1EZ8rUXOE ++ mktemp + local LAST_ERR=/tmp/tmp.xEgHnyfi8h + local exit_status=0 + local timeout=4 + local i + args=('get' 'ns') + local args + transformed_files=() + local transformed_files + local LAST_OUT=/tmp/tmp.XcIVbt8GMO + 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 ++ mktemp ++ seq 0 9 + local LAST_ERR=/tmp/tmp.bIABGlRnwR + local exit_status=0 + for attempt in $(seq 0 9) + set +e + local timeout=4 + local i + kubectl get ns + 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.M1EZ8rUXOE + cat /tmp/tmp.xEgHnyfi8h + rm /tmp/tmp.M1EZ8rUXOE /tmp/tmp.xEgHnyfi8h + return 0 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.XcIVbt8GMO + cat /tmp/tmp.bIABGlRnwR + rm /tmp/tmp.XcIVbt8GMO /tmp/tmp.bIABGlRnwR + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.2b3NeOTs1Z ++ mktemp + local LAST_ERR=/tmp/tmp.Rq0GS1EykF + 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 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.2b3NeOTs1Z + cat /tmp/tmp.Rq0GS1EykF + rm /tmp/tmp.2b3NeOTs1Z /tmp/tmp.Rq0GS1EykF + 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.FlYmouZPGN ++ mktemp + local LAST_ERR=/tmp/tmp.R2O2TlVRWy + 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.FlYmouZPGN namespace/psmdb-operator created + cat /tmp/tmp.R2O2TlVRWy + rm /tmp/tmp.FlYmouZPGN /tmp/tmp.R2O2TlVRWy + return 0 + set_kube_ctx psmdb-operator + local namespace=psmdb-operator ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.odNcugom80 +++ mktemp ++ local LAST_ERR=/tmp/tmp.HfbMQ9qY02 ++ 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.odNcugom80 ++ cat /tmp/tmp.HfbMQ9qY02 ++ rm /tmp/tmp.odNcugom80 /tmp/tmp.HfbMQ9qY02 ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster2 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.O6HBnOYtvm ++ mktemp + local LAST_ERR=/tmp/tmp.6QDrfw7WPL + local exit_status=0 + local timeout=4 + local i + args=('config' 'set-context' 'gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster2' '--namespace=psmdb-operator') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ config == \- ]] + [[ config =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ set-context == \- ]] + [[ set-context =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster2 == \- ]] + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster2 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --namespace=psmdb-operator == \- ]] + [[ --namespace=psmdb-operator =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster2 --namespace=psmdb-operator + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.O6HBnOYtvm Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster2" modified. + cat /tmp/tmp.6QDrfw7WPL + rm /tmp/tmp.O6HBnOYtvm /tmp/tmp.6QDrfw7WPL + return 0 + deploy_operator + desc 'start PSMDB operator: docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960' + set +o xtrace ----------------------------------------------------------------------------------- start PSMDB operator: docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960 ----------------------------------------------------------------------------------- + local cr_file + '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.wgSJRQLN13 ++ mktemp + local LAST_ERR=/tmp/tmp.lVKuynqlRZ + local exit_status=0 + local timeout=4 + local i + args=('apply' '--server-side' '--force-conflicts' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --server-side == \- ]] + [[ --server-side =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --force-conflicts == \- ]] + [[ --force-conflicts =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.wgSJRQLN13 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.lVKuynqlRZ + rm /tmp/tmp.wgSJRQLN13 /tmp/tmp.lVKuynqlRZ + return 0 + '[' -n psmdb-operator ']' + apply_rbac cw-rbac + local operator_namespace=psmdb-operator + local rbac=cw-rbac + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.qZtNrI56JV ++ mktemp + local LAST_ERR=/tmp/tmp.xZeJsXrp7x + 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.hCA7I7imOM + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.hCA7I7imOM + 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.hCA7I7imOM + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.qZtNrI56JV 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.xZeJsXrp7x + rm /tmp/tmp.qZtNrI56JV /tmp/tmp.xZeJsXrp7x /tmp/tmp.hCA7I7imOM + return 0 + add_arch_to_podspecs - + yq eval $'\n\t\t\t(.spec.template.spec.containers[].image = "docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960") |\n\t\t\t((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") |\n\t\t\t((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-operator.yaml + arch_scheduling_enabled + [[ -n '' ]] + cat - + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.gQaRIz4MqT ++ mktemp + local LAST_ERR=/tmp/tmp.t9N4MIJVzB + 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.bXlp4PExzZ + cat + return + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.bXlp4PExzZ + 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.bXlp4PExzZ + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.gQaRIz4MqT deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.t9N4MIJVzB + rm /tmp/tmp.gQaRIz4MqT /tmp/tmp.t9N4MIJVzB /tmp/tmp.bXlp4PExzZ + 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.1Mk1dIDCpD +++ mktemp ++ local LAST_ERR=/tmp/tmp.Orf10Q9bnC ++ 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.1Mk1dIDCpD ++ cat /tmp/tmp.Orf10Q9bnC ++ rm /tmp/tmp.1Mk1dIDCpD /tmp/tmp.Orf10Q9bnC ++ return 0 + wait_operator_pod percona-server-mongodb-operator-b57dc4869-nbfsz + local pod=percona-server-mongodb-operator-b57dc4869-nbfsz + set +o xtrace waiting for pod/percona-server-mongodb-operator-b57dc4869-nbfsz 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.LcWrlJS8Vs +++ mktemp ++ local LAST_ERR=/tmp/tmp.4FD9Pvm5Va ++ 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.LcWrlJS8Vs ++ cat /tmp/tmp.4FD9Pvm5Va ++ rm /tmp/tmp.LcWrlJS8Vs /tmp/tmp.4FD9Pvm5Va ++ return 0 + kubectl_bin logs -n psmdb-operator percona-server-mongodb-operator-b57dc4869-nbfsz ++ mktemp + local LAST_OUT=/tmp/tmp.kIaLNNLKkI ++ mktemp + local LAST_ERR=/tmp/tmp.OljsnXoZEQ + local exit_status=0 + local timeout=4 + local i + args=('logs' '-n' 'psmdb-operator' 'percona-server-mongodb-operator-b57dc4869-nbfsz') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ logs == \- ]] + [[ logs =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-operator == \- ]] + [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ percona-server-mongodb-operator-b57dc4869-nbfsz == \- ]] + [[ percona-server-mongodb-operator-b57dc4869-nbfsz =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl logs -n psmdb-operator percona-server-mongodb-operator-b57dc4869-nbfsz + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.kIaLNNLKkI + cat /tmp/tmp.OljsnXoZEQ + rm /tmp/tmp.kIaLNNLKkI /tmp/tmp.OljsnXoZEQ + return 0 2026-11-23T06:46:05.439Z INFO setup Manager starting up {"gitCommit": "27e0b796072fe59ec1fa78fca82dc7491ddb9891", "gitBranch": "PR-2715-27e0b7960", "buildTime": "", "goVersion": "go1.27.4", "os": "linux", "arch": "amd64"} + create_namespace mongod-major-upgrade-2068 + local namespace=mongod-major-upgrade-2068 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep validate-auth ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + local 'ns_filter=^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + [[ -n '' ]] + kubectl_bin get ns + grep -E -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + awk '{print$1}' ++ mktemp + xargs kubectl delete ns + [[ -n '' ]] + desc 'cleaned up old namespaces mongod-major-upgrade-2068' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces mongod-major-upgrade-2068 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace mongod-major-upgrade-2068 --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.EKNbJthYUe ++ mktemp + local LAST_OUT=/tmp/tmp.QTwAWr2zoX + local LAST_ERR=/tmp/tmp.A1IRoHwtNd + 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 ++ mktemp ++ seq 0 9 + local LAST_ERR=/tmp/tmp.73aGjpb6rp + local exit_status=0 + local timeout=4 + local i + args=('delete' 'namespace' 'mongod-major-upgrade-2068' '--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-2068 == \- ]] + [[ mongod-major-upgrade-2068 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl get ns + for attempt in $(seq 0 9) + set +e + kubectl delete namespace mongod-major-upgrade-2068 --ignore-not-found + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.EKNbJthYUe + cat /tmp/tmp.A1IRoHwtNd + rm /tmp/tmp.EKNbJthYUe /tmp/tmp.A1IRoHwtNd + return 0 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.QTwAWr2zoX + cat /tmp/tmp.73aGjpb6rp + rm /tmp/tmp.QTwAWr2zoX /tmp/tmp.73aGjpb6rp + return 0 + kubectl_bin wait --for=delete namespace mongod-major-upgrade-2068 ++ mktemp + local LAST_OUT=/tmp/tmp.UrjDEJuMLz ++ mktemp + local LAST_ERR=/tmp/tmp.vuBAMyRJdx + local exit_status=0 + local timeout=4 + local i + args=('wait' '--for=delete' 'namespace' 'mongod-major-upgrade-2068') + 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-2068 == \- ]] + [[ mongod-major-upgrade-2068 =~ ^(-f|--filename)=-$ ]] + 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-2068 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.UrjDEJuMLz + cat /tmp/tmp.vuBAMyRJdx + rm /tmp/tmp.UrjDEJuMLz /tmp/tmp.vuBAMyRJdx + return 0 + desc 'create namespace mongod-major-upgrade-2068' + set +o xtrace ----------------------------------------------------------------------------------- create namespace mongod-major-upgrade-2068 ----------------------------------------------------------------------------------- + kubectl_bin create namespace mongod-major-upgrade-2068 ++ mktemp + local LAST_OUT=/tmp/tmp.ovnX9ymbLg ++ mktemp + local LAST_ERR=/tmp/tmp.UjkOZQIXC8 + local exit_status=0 + local timeout=4 + local i + args=('create' 'namespace' 'mongod-major-upgrade-2068') + 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-2068 == \- ]] + [[ mongod-major-upgrade-2068 =~ ^(-f|--filename)=-$ ]] + 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-2068 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.ovnX9ymbLg namespace/mongod-major-upgrade-2068 created + cat /tmp/tmp.UjkOZQIXC8 + rm /tmp/tmp.ovnX9ymbLg /tmp/tmp.UjkOZQIXC8 + return 0 + set_kube_ctx mongod-major-upgrade-2068 + local namespace=mongod-major-upgrade-2068 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.CSbgrjqOnO +++ mktemp ++ local LAST_ERR=/tmp/tmp.6x9nvtkKqn ++ 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.CSbgrjqOnO ++ cat /tmp/tmp.6x9nvtkKqn ++ rm /tmp/tmp.CSbgrjqOnO /tmp/tmp.6x9nvtkKqn ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster2 --namespace=mongod-major-upgrade-2068 ++ mktemp + local LAST_OUT=/tmp/tmp.Ylk6xPGSoe ++ mktemp + local LAST_ERR=/tmp/tmp.5b1whNXicc + local exit_status=0 + local timeout=4 + local i + args=('config' 'set-context' 'gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster2' '--namespace=mongod-major-upgrade-2068') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ config == \- ]] + [[ config =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ set-context == \- ]] + [[ set-context =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster2 == \- ]] + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster2 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --namespace=mongod-major-upgrade-2068 == \- ]] + [[ --namespace=mongod-major-upgrade-2068 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster2 --namespace=mongod-major-upgrade-2068 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Ylk6xPGSoe Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster2" modified. + cat /tmp/tmp.5b1whNXicc + rm /tmp/tmp.Ylk6xPGSoe /tmp/tmp.5b1whNXicc + return 0 + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/secrets.yml ++ mktemp + local LAST_OUT=/tmp/tmp.aV4D9OCFQt ++ mktemp + local LAST_ERR=/tmp/tmp.6TwhMGHnRK + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client.yml' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/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-2715/e2e-tests/conf/client.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/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-2715/e2e-tests/conf/secrets.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/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-2715/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/secrets.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.aV4D9OCFQt deployment.apps/psmdb-client created secret/some-users created + cat /tmp/tmp.6TwhMGHnRK + rm /tmp/tmp.aV4D9OCFQt /tmp/tmp.6TwhMGHnRK + return 0 + apply_s3_storage_secrets + desc 'create secrets for cloud storages' + set +o xtrace ----------------------------------------------------------------------------------- create secrets for cloud storages ----------------------------------------------------------------------------------- + '[' -z '' ']' + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/s3-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/cloud-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.KPcRBU1Ilf ++ mktemp + local LAST_ERR=/tmp/tmp.0J3QCmL903 + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/s3-secret.yml' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/cloud-secret.yml') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/s3-secret.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/s3-secret.yml =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/cloud-secret.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/cloud-secret.yml =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/s3-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/cloud-secret.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.KPcRBU1Ilf 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.0J3QCmL903 + rm /tmp/tmp.KPcRBU1Ilf /tmp/tmp.0J3QCmL903 + return 0 + desc 'install version service' + set +o xtrace ----------------------------------------------------------------------------------- install version service ----------------------------------------------------------------------------------- + cp /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/conf/operator.main.psmdb-operator.dep.json /tmp/tmp.JQCqKUM2t1/operator.1.24.0.psmdb-operator.dep.json + generate_vs_json /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/conf/operator.main.psmdb-operator.json /tmp/tmp.JQCqKUM2t1/operator.1.24.0.psmdb-operator.json + local template_path=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/conf/operator.main.psmdb-operator.json + local target_path=/tmp/tmp.JQCqKUM2t1/operator.1.24.0.psmdb-operator.json ++ jq '.versions[0].operator="1.24.0"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/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' +++ local image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 +++ local 'cli=mongod --version' +++ local pod_name=24313 +++ run_args=() +++ local run_args +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ kubectl_bin -n default run 24313 --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.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.gx4Xt5x2FB ++++ mktemp +++ local LAST_ERR=/tmp/tmp.sqKAlCfuSy +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'run' '24313' '--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[@]}" +++ [[ 24313 == \- ]] +++ [[ 24313 =~ ^(-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 24313 --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.gx4Xt5x2FB +++ cat /tmp/tmp.sqKAlCfuSy Warning: BCID failed open: BCID suppressed until 2026-11-23 08:49:34.959590821 +0000 UTC m=+10881.501931981 +++ rm /tmp/tmp.gx4Xt5x2FB /tmp/tmp.sqKAlCfuSy +++ return 0 +++ kubectl_bin -n default wait --for=condition=Ready pod/24313 ++++ mktemp +++ local LAST_OUT=/tmp/tmp.ScJtaebN5l ++++ mktemp +++ local LAST_ERR=/tmp/tmp.lwuihDg8Ir +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'wait' '--for=condition=Ready' 'pod/24313') +++ 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/24313 == \- ]] +++ [[ pod/24313 =~ ^(-f|--filename)=-$ ]] +++ 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/24313 +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.ScJtaebN5l +++ cat /tmp/tmp.lwuihDg8Ir +++ rm /tmp/tmp.ScJtaebN5l /tmp/tmp.lwuihDg8Ir +++ return 0 ++++ kubectl_bin -n default exec 24313 -- bash -c 'mongod --version 2>&1' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.nN9Wuh9S44 +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.gKUPOpuosr ++++ local exit_status=0 ++++ local timeout=4 ++++ local i ++++ args=('-n' 'default' 'exec' '24313' '--' '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[@]}" ++++ [[ 24313 == \- ]] ++++ [[ 24313 =~ ^(-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 24313 -- bash -c 'mongod --version 2>&1' ++++ exit_status=0 ++++ set -e ++++ [[ 0 == 0 ]] ++++ break ++++ cat /tmp/tmp.nN9Wuh9S44 ++++ cat /tmp/tmp.gKUPOpuosr ++++ rm /tmp/tmp.nN9Wuh9S44 /tmp/tmp.gKUPOpuosr ++++ 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/24313 --grace-period=0 --force ++++ mktemp +++ local LAST_OUT=/tmp/tmp.8gfwM4eZoD ++++ mktemp +++ local LAST_ERR=/tmp/tmp.QLbhrN7j1J +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'delete' 'pod/24313' '--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/24313 == \- ]] +++ [[ pod/24313 =~ ^(-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/24313 --grace-period=0 --force +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.8gfwM4eZoD +++ cat /tmp/tmp.QLbhrN7j1J 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.8gfwM4eZoD /tmp/tmp.QLbhrN7j1J +++ 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=29608 +++ run_args=() +++ local run_args +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ kubectl_bin -n default run 29608 --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.1ExNMsLSkZ ++++ mktemp +++ local LAST_ERR=/tmp/tmp.xMBEMhCC3b +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'run' '29608' '--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[@]}" +++ [[ 29608 == \- ]] +++ [[ 29608 =~ ^(-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 29608 --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.1ExNMsLSkZ +++ cat /tmp/tmp.xMBEMhCC3b Warning: BCID failed open: BCID suppressed until 2026-11-23 08:49:34.959590821 +0000 UTC m=+10881.501931981 +++ rm /tmp/tmp.1ExNMsLSkZ /tmp/tmp.xMBEMhCC3b +++ return 0 +++ kubectl_bin -n default wait --for=condition=Ready pod/29608 ++++ mktemp +++ local LAST_OUT=/tmp/tmp.XBOur0xgRs ++++ mktemp +++ local LAST_ERR=/tmp/tmp.p7k5kMXITH +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'wait' '--for=condition=Ready' 'pod/29608') +++ 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/29608 == \- ]] +++ [[ pod/29608 =~ ^(-f|--filename)=-$ ]] +++ 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/29608 +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.XBOur0xgRs +++ cat /tmp/tmp.p7k5kMXITH +++ rm /tmp/tmp.XBOur0xgRs /tmp/tmp.p7k5kMXITH +++ return 0 ++++ kubectl_bin -n default exec 29608 -- bash -c 'mongod --version 2>&1' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.nlYqaxbtXv +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.9uCLBmKqLr ++++ local exit_status=0 ++++ local timeout=4 ++++ local i ++++ args=('-n' 'default' 'exec' '29608' '--' '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[@]}" ++++ [[ 29608 == \- ]] ++++ [[ 29608 =~ ^(-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 29608 -- bash -c 'mongod --version 2>&1' ++++ exit_status=0 ++++ set -e ++++ [[ 0 == 0 ]] ++++ break ++++ cat /tmp/tmp.nlYqaxbtXv ++++ cat /tmp/tmp.9uCLBmKqLr ++++ rm /tmp/tmp.nlYqaxbtXv /tmp/tmp.9uCLBmKqLr ++++ 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/29608 --grace-period=0 --force ++++ mktemp +++ local LAST_OUT=/tmp/tmp.02AquXQHM0 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.983fsj6MAY +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'delete' 'pod/29608' '--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/29608 == \- ]] +++ [[ pod/29608 =~ ^(-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/29608 --grace-period=0 --force +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.02AquXQHM0 +++ cat /tmp/tmp.983fsj6MAY 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.02AquXQHM0 /tmp/tmp.983fsj6MAY +++ 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=6544 +++ run_args=() +++ local run_args +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ kubectl_bin -n default run 6544 --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.aStpBn6sKZ ++++ mktemp +++ local LAST_ERR=/tmp/tmp.sJtqUkwWGm +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'run' '6544' '--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[@]}" +++ [[ 6544 == \- ]] +++ [[ 6544 =~ ^(-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 6544 --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.aStpBn6sKZ +++ cat /tmp/tmp.sJtqUkwWGm Warning: BCID failed open: BCID suppressed until 2026-11-23 08:49:34.959590821 +0000 UTC m=+10881.501931981 +++ rm /tmp/tmp.aStpBn6sKZ /tmp/tmp.sJtqUkwWGm +++ return 0 +++ kubectl_bin -n default wait --for=condition=Ready pod/6544 ++++ mktemp +++ local LAST_OUT=/tmp/tmp.bNr1n3pNA8 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.i0DGHvWZWJ +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'wait' '--for=condition=Ready' 'pod/6544') +++ 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/6544 == \- ]] +++ [[ pod/6544 =~ ^(-f|--filename)=-$ ]] +++ 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/6544 +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.bNr1n3pNA8 +++ cat /tmp/tmp.i0DGHvWZWJ +++ rm /tmp/tmp.bNr1n3pNA8 /tmp/tmp.i0DGHvWZWJ +++ return 0 ++++ kubectl_bin -n default exec 6544 -- bash -c 'mongod --version 2>&1' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.HrsRmfSqjS +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.zRtbtyBj4E ++++ local exit_status=0 ++++ local timeout=4 ++++ local i ++++ args=('-n' 'default' 'exec' '6544' '--' '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[@]}" ++++ [[ 6544 == \- ]] ++++ [[ 6544 =~ ^(-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 6544 -- bash -c 'mongod --version 2>&1' ++++ exit_status=0 ++++ set -e ++++ [[ 0 == 0 ]] ++++ break ++++ cat /tmp/tmp.HrsRmfSqjS ++++ cat /tmp/tmp.zRtbtyBj4E ++++ rm /tmp/tmp.HrsRmfSqjS /tmp/tmp.zRtbtyBj4E ++++ 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/6544 --grace-period=0 --force ++++ mktemp +++ local LAST_OUT=/tmp/tmp.jPzcth5JTS ++++ mktemp +++ local LAST_ERR=/tmp/tmp.OzTuFr7cwK +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'delete' 'pod/6544' '--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/6544 == \- ]] +++ [[ pod/6544 =~ ^(-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/6544 --grace-period=0 --force +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.jPzcth5JTS +++ cat /tmp/tmp.OzTuFr7cwK 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.jPzcth5JTS /tmp/tmp.OzTuFr7cwK +++ 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' ++++ local image=docker.io/perconalab/percona-server-mongodb-operator:main-backup ++++ local 'cli=pbm-agent version' ++++ local pod_name=30204 ++++ run_args=() ++++ local run_args ++++ arch_scheduling_enabled ++++ [[ -n '' ]] ++++ kubectl_bin -n default run 30204 --image=docker.io/perconalab/percona-server-mongodb-operator:main-backup --restart=Never --command -- sleep infinity ++++ /usr/sbin/sed -r 's/^Version:\ (([0-9]+\.){2}[0-9]+)\ .*/\1/g' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.xPRJVisJBB +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.HRLYu7XnNa ++++ local exit_status=0 ++++ local timeout=4 ++++ local i ++++ args=('-n' 'default' 'run' '30204' '--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[@]}" ++++ [[ 30204 == \- ]] ++++ [[ 30204 =~ ^(-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 30204 --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.xPRJVisJBB ++++ cat /tmp/tmp.HRLYu7XnNa Warning: BCID failed open: BCID suppressed until 2026-11-23 08:49:34.959590821 +0000 UTC m=+10881.501931981 ++++ rm /tmp/tmp.xPRJVisJBB /tmp/tmp.HRLYu7XnNa ++++ return 0 ++++ kubectl_bin -n default wait --for=condition=Ready pod/30204 +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.WXtcUZQYBm +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.Alzh2RSnMA ++++ local exit_status=0 ++++ local timeout=4 ++++ local i ++++ args=('-n' 'default' 'wait' '--for=condition=Ready' 'pod/30204') ++++ 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/30204 == \- ]] ++++ [[ pod/30204 =~ ^(-f|--filename)=-$ ]] ++++ 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/30204 ++++ exit_status=0 ++++ set -e ++++ [[ 0 == 0 ]] ++++ break ++++ cat /tmp/tmp.WXtcUZQYBm ++++ cat /tmp/tmp.Alzh2RSnMA ++++ rm /tmp/tmp.WXtcUZQYBm /tmp/tmp.Alzh2RSnMA ++++ return 0 +++++ kubectl_bin -n default exec 30204 -- bash -c 'pbm-agent version 2>&1' ++++++ mktemp +++++ local LAST_OUT=/tmp/tmp.FYp99YaBm1 ++++++ mktemp +++++ local LAST_ERR=/tmp/tmp.bU0XgIQzfx +++++ local exit_status=0 +++++ local timeout=4 +++++ local i +++++ args=('-n' 'default' 'exec' '30204' '--' '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[@]}" +++++ [[ 30204 == \- ]] +++++ [[ 30204 =~ ^(-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 30204 -- bash -c 'pbm-agent version 2>&1' +++++ exit_status=0 +++++ set -e +++++ [[ 0 == 0 ]] +++++ break +++++ cat /tmp/tmp.FYp99YaBm1 +++++ cat /tmp/tmp.bU0XgIQzfx +++++ rm /tmp/tmp.FYp99YaBm1 /tmp/tmp.bU0XgIQzfx +++++ 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/30204 --grace-period=0 --force +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.7oHwuMq6oE +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.jex39wBHKn ++++ local exit_status=0 ++++ local timeout=4 ++++ local i ++++ args=('-n' 'default' 'delete' 'pod/30204' '--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/30204 == \- ]] ++++ [[ pod/30204 =~ ^(-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/30204 --grace-period=0 --force ++++ exit_status=0 ++++ set -e ++++ [[ 0 == 0 ]] ++++ break ++++ cat /tmp/tmp.7oHwuMq6oE ++++ cat /tmp/tmp.jex39wBHKn 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.7oHwuMq6oE /tmp/tmp.jex39wBHKn ++++ 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-2715-27e0b7960","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-2715-27e0b7960",\n "status": "recommended"\n }\n }\n }\n }\n ]\n}' + jq . + 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-2715-27e0b7960",' '"status":' '"recommended"' '}' '}' '}' '}' ']' '}' + kubectl_bin create configmap -n psmdb-operator versions --from-file /tmp/tmp.JQCqKUM2t1/operator.1.24.0.psmdb-operator.dep.json --from-file /tmp/tmp.JQCqKUM2t1/operator.1.24.0.psmdb-operator.json ++ mktemp + local LAST_OUT=/tmp/tmp.Bbaz9lLIh4 ++ mktemp + local LAST_ERR=/tmp/tmp.DWTDHFoRWD + local exit_status=0 + local timeout=4 + local i + args=('create' 'configmap' '-n' 'psmdb-operator' 'versions' '--from-file' '/tmp/tmp.JQCqKUM2t1/operator.1.24.0.psmdb-operator.dep.json' '--from-file' '/tmp/tmp.JQCqKUM2t1/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.JQCqKUM2t1/operator.1.24.0.psmdb-operator.dep.json == \- ]] + [[ /tmp/tmp.JQCqKUM2t1/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.JQCqKUM2t1/operator.1.24.0.psmdb-operator.json == \- ]] + [[ /tmp/tmp.JQCqKUM2t1/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.JQCqKUM2t1/operator.1.24.0.psmdb-operator.dep.json --from-file /tmp/tmp.JQCqKUM2t1/operator.1.24.0.psmdb-operator.json + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Bbaz9lLIh4 configmap/versions created + cat /tmp/tmp.DWTDHFoRWD + rm /tmp/tmp.Bbaz9lLIh4 /tmp/tmp.DWTDHFoRWD + return 0 + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/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.i3VWoWh4jX ++ mktemp + local LAST_ERR=/tmp/tmp.f80dGj7yxi + 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.8pyFdohpC4 + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.8pyFdohpC4 + 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.8pyFdohpC4 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.i3VWoWh4jX deployment.apps/version-service created service/version-service created + cat /tmp/tmp.f80dGj7yxi + rm /tmp/tmp.i3VWoWh4jX /tmp/tmp.f80dGj7yxi /tmp/tmp.8pyFdohpC4 + return 0 ++ jq '.[] | .[] |.matrix.mongod' /tmp/tmp.JQCqKUM2t1/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' +++ /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-mongod8.3 +++ local 'cli=mongod --version' +++ local pod_name=7533 +++ run_args=() +++ local run_args +++ arch_scheduling_enabled +++ [[ -n '' ]] +++ kubectl_bin -n default run 7533 --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 --restart=Never --command -- sleep infinity ++++ mktemp +++ local LAST_OUT=/tmp/tmp.KUykIKCqrX ++++ mktemp +++ local LAST_ERR=/tmp/tmp.bSHIoyAFnZ +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'run' '7533' '--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[@]}" +++ [[ 7533 == \- ]] +++ [[ 7533 =~ ^(-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 7533 --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.KUykIKCqrX +++ cat /tmp/tmp.bSHIoyAFnZ Warning: BCID failed open: BCID suppressed until 2026-11-23 08:49:34.959590821 +0000 UTC m=+10881.501931981 +++ rm /tmp/tmp.KUykIKCqrX /tmp/tmp.bSHIoyAFnZ +++ return 0 +++ kubectl_bin -n default wait --for=condition=Ready pod/7533 ++++ mktemp +++ local LAST_OUT=/tmp/tmp.futto1EY7C ++++ mktemp +++ local LAST_ERR=/tmp/tmp.ZnZ8cPQklS +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'wait' '--for=condition=Ready' 'pod/7533') +++ 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/7533 == \- ]] +++ [[ pod/7533 =~ ^(-f|--filename)=-$ ]] +++ 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/7533 +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.futto1EY7C +++ cat /tmp/tmp.ZnZ8cPQklS +++ rm /tmp/tmp.futto1EY7C /tmp/tmp.ZnZ8cPQklS +++ return 0 ++++ kubectl_bin -n default exec 7533 -- bash -c 'mongod --version 2>&1' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.rhHQkYLtr6 +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.w49ciGrfKO ++++ local exit_status=0 ++++ local timeout=4 ++++ local i ++++ args=('-n' 'default' 'exec' '7533' '--' '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[@]}" ++++ [[ 7533 == \- ]] ++++ [[ 7533 =~ ^(-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 7533 -- bash -c 'mongod --version 2>&1' ++++ exit_status=0 ++++ set -e ++++ [[ 0 == 0 ]] ++++ break ++++ cat /tmp/tmp.rhHQkYLtr6 ++++ cat /tmp/tmp.w49ciGrfKO ++++ rm /tmp/tmp.rhHQkYLtr6 /tmp/tmp.w49ciGrfKO ++++ 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/7533 --grace-period=0 --force ++++ mktemp +++ local LAST_OUT=/tmp/tmp.SSsIw29CcH ++++ mktemp +++ local LAST_ERR=/tmp/tmp.2VzxhJgDdW +++ local exit_status=0 +++ local timeout=4 +++ local i +++ args=('-n' 'default' 'delete' 'pod/7533' '--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/7533 == \- ]] +++ [[ pod/7533 =~ ^(-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/7533 --grace-period=0 --force +++ exit_status=0 +++ set -e +++ [[ 0 == 0 ]] +++ break +++ cat /tmp/tmp.SSsIw29CcH +++ cat /tmp/tmp.2VzxhJgDdW 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.SSsIw29CcH /tmp/tmp.2VzxhJgDdW +++ 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-2715/e2e-tests/mongod-major-upgrade/conf/some-name-rs0.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/conf/some-name-rs0.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/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-2715-27e0b7960"' + yq eval '(.spec | select(has("backup"))).backup.image = "docker.io/perconalab/percona-server-mongodb-operator:main-backup"' + add_arch_to_psmdb - + arch_scheduling_enabled + yq eval '.spec.upgradeOptions.apply="Never"' + [[ -n '' ]] + [[ -n docker.io/perconalab/fluentbit:main-logcollector ]] + cat - + IMAGE_LOGCOLLECTOR=docker.io/perconalab/fluentbit:main-logcollector + yq eval '(.spec | select(has("logcollector"))).logcollector.image = strenv(IMAGE_LOGCOLLECTOR)' + /usr/sbin/sed -e s/NAME_SPACE/mongod-major-upgrade-2068/g + yq eval '(.spec | select(has("search"))).search.image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongot"' + local LAST_OUT=/tmp/tmp.ruGf6Svo8M ++ mktemp + local LAST_ERR=/tmp/tmp.5Pcnh6kFJp + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '-') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ - == \- ]] + [[ 2 -gt 0 ]] + [[ -f =~ ^(-f|--filename)$ ]] ++ mktemp + stdin_manifest=/tmp/tmp.VGdLsklxzR + cat + return + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.VGdLsklxzR + 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.VGdLsklxzR + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.ruGf6Svo8M perconaservermongodb.psmdb.percona.com/some-name created + cat /tmp/tmp.5Pcnh6kFJp + rm /tmp/tmp.ruGf6Svo8M /tmp/tmp.5Pcnh6kFJp /tmp/tmp.VGdLsklxzR + 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.s2dofsWOQn +++ mktemp ++ local LAST_ERR=/tmp/tmp.pwOWpGyqJC ++ 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.s2dofsWOQn ++ cat /tmp/tmp.pwOWpGyqJC ++ rm /tmp/tmp.s2dofsWOQn /tmp/tmp.pwOWpGyqJC ++ 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.7OvOYN0KBE +++ mktemp ++ local LAST_ERR=/tmp/tmp.dduLqyS4o3 ++ 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.7OvOYN0KBE ++ cat /tmp/tmp.dduLqyS4o3 ++ rm /tmp/tmp.7OvOYN0KBE /tmp/tmp.dduLqyS4o3 ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ob3ZjP7zRu +++ mktemp ++ local LAST_ERR=/tmp/tmp.uqyaFrOL1t ++ 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.ob3ZjP7zRu ++ cat /tmp/tmp.uqyaFrOL1t ++ rm /tmp/tmp.ob3ZjP7zRu /tmp/tmp.uqyaFrOL1t ++ 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-2068 + local 'command=db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})' + local uri=userAdmin:userAdmin123456@some-name-rs0.mongod-major-upgrade-2068 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ userAdmin:userAdmin123456@some-name-rs0.mongod-major-upgrade-2068 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.wy1pHATRPr +++ mktemp ++ local LAST_ERR=/tmp/tmp.0CVCSyEvfo ++ 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.wy1pHATRPr ++ cat /tmp/tmp.0CVCSyEvfo ++ rm /tmp/tmp.wy1pHATRPr /tmp/tmp.0CVCSyEvfo ++ return 0 + local client_container=psmdb-client-c8847c4cd-gb7f7 + kubectl_bin exec psmdb-client-c8847c4cd-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.8F64wVAXsA ++ mktemp + local LAST_ERR=/tmp/tmp.V6k9hLUOQY + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-gb7f7' '--' '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-2068.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-gb7f7 == \- ]] + [[ psmdb-client-c8847c4cd-gb7f7 =~ ^(-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-2068.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-2068.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-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.8F64wVAXsA Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-1.some-name-rs0.mongod-major-upgrade-2068.svc.cluster.local:27017,some-name-rs0-0.some-name-rs0.mongod-major-upgrade-2068.svc.cluster.local:27017,some-name-rs0-2.some-name-rs0.mongod-major-upgrade-2068.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("7db719ce-1157-4fe9-a357-1f93a364b256") } 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.V6k9hLUOQY + rm /tmp/tmp.8F64wVAXsA /tmp/tmp.V6k9hLUOQY + return 0 + sleep 2 + run_mongo 'use myApp\n db.test.insert({ x: 100501 })' myApp:myPass@some-name-rs0.mongod-major-upgrade-2068 + local 'command=use myApp\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@some-name-rs0.mongod-major-upgrade-2068 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0.mongod-major-upgrade-2068 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.LD30Gvu5Zl +++ mktemp ++ local LAST_ERR=/tmp/tmp.H8Rm0T60BY ++ 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.LD30Gvu5Zl ++ cat /tmp/tmp.H8Rm0T60BY ++ rm /tmp/tmp.LD30Gvu5Zl /tmp/tmp.H8Rm0T60BY ++ return 0 + local client_container=psmdb-client-c8847c4cd-gb7f7 + kubectl_bin exec psmdb-client-c8847c4cd-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.LjuAvWjUVq ++ mktemp + local LAST_ERR=/tmp/tmp.2Qe9VZaQ6l + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-gb7f7' '--' '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-2068.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-gb7f7 == \- ]] + [[ psmdb-client-c8847c4cd-gb7f7 =~ ^(-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-2068.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-2068.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-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.LjuAvWjUVq Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-1.some-name-rs0.mongod-major-upgrade-2068.svc.cluster.local:27017,some-name-rs0-0.some-name-rs0.mongod-major-upgrade-2068.svc.cluster.local:27017,some-name-rs0-2.some-name-rs0.mongod-major-upgrade-2068.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("8c286c6f-b43d-4613-94e7-3e437da56807") } 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.2Qe9VZaQ6l + rm /tmp/tmp.LjuAvWjUVq /tmp/tmp.2Qe9VZaQ6l + return 0 + compare_mongo_cmd find myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-2068 + local command=find + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-2068 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-23T06:49:37+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-2068 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-0.some-name-rs0.mongod-major-upgrade-2068 + /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-0.some-name-rs0.mongod-major-upgrade-2068 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.aSa5tiGfXy +++ mktemp ++ local LAST_ERR=/tmp/tmp.2GmgpHMqV0 ++ 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.aSa5tiGfXy ++ cat /tmp/tmp.2GmgpHMqV0 ++ rm /tmp/tmp.aSa5tiGfXy /tmp/tmp.2GmgpHMqV0 ++ return 0 + local client_container=psmdb-client-c8847c4cd-gb7f7 + kubectl_bin exec psmdb-client-c8847c4cd-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.QjJuVVmCKv ++ mktemp + local LAST_ERR=/tmp/tmp.tkXxVkdahM + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-gb7f7' '--' '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-2068.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-gb7f7 == \- ]] + [[ psmdb-client-c8847c4cd-gb7f7 =~ ^(-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-2068.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-2068.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-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.QjJuVVmCKv + cat /tmp/tmp.tkXxVkdahM + rm /tmp/tmp.QjJuVVmCKv /tmp/tmp.tkXxVkdahM + return 0 + compare_mongo_output find '' + local command=find + local postfix= + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/compare/find.json /tmp/tmp.JQCqKUM2t1/find + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-2068 + local command=find + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-2068 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-23T06:49:40+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-2068 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-2068 + 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-2068 == *cfg* ]] + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ local LAST_OUT=/tmp/tmp.smBc4D0sxc +++ mktemp ++ local LAST_ERR=/tmp/tmp.dT2KAph6Dq ++ 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.smBc4D0sxc ++ cat /tmp/tmp.dT2KAph6Dq ++ rm /tmp/tmp.smBc4D0sxc /tmp/tmp.dT2KAph6Dq ++ return 0 + local client_container=psmdb-client-c8847c4cd-gb7f7 + kubectl_bin exec psmdb-client-c8847c4cd-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.grXDjC9oLu ++ mktemp + local LAST_ERR=/tmp/tmp.n1gGuGP4am + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-gb7f7' '--' '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-2068.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-gb7f7 == \- ]] + [[ psmdb-client-c8847c4cd-gb7f7 =~ ^(-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-2068.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-2068.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-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.grXDjC9oLu + cat /tmp/tmp.n1gGuGP4am + rm /tmp/tmp.grXDjC9oLu /tmp/tmp.n1gGuGP4am + return 0 + compare_mongo_output find '' + local command=find + local postfix= + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/compare/find.json /tmp/tmp.JQCqKUM2t1/find + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-2068 + local command=find + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-2068 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local tls=false + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-23T06:49:42+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-2068 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-2068 + 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-2068 == *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.kRsJBNPg4q +++ mktemp ++ local LAST_ERR=/tmp/tmp.DhtRE9VGdy ++ 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.kRsJBNPg4q ++ cat /tmp/tmp.DhtRE9VGdy ++ rm /tmp/tmp.kRsJBNPg4q /tmp/tmp.DhtRE9VGdy ++ return 0 + local client_container=psmdb-client-c8847c4cd-gb7f7 + kubectl_bin exec psmdb-client-c8847c4cd-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.N1EsFFlq9J ++ mktemp + local LAST_ERR=/tmp/tmp.ivDCLpL3lu + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-gb7f7' '--' '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-2068.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-gb7f7 == \- ]] + [[ psmdb-client-c8847c4cd-gb7f7 =~ ^(-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-2068.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-2068.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-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.N1EsFFlq9J + cat /tmp/tmp.ivDCLpL3lu + rm /tmp/tmp.N1EsFFlq9J /tmp/tmp.ivDCLpL3lu + return 0 + compare_mongo_output find '' + local command=find + local postfix= + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/compare/find.json /tmp/tmp.JQCqKUM2t1/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.pjLrxPUBOn ++ mktemp + local LAST_ERR=/tmp/tmp.AUGv98Fh0D + 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.pjLrxPUBOn perconaservermongodb.psmdb.percona.com/some-name patched + cat /tmp/tmp.AUGv98Fh0D + rm /tmp/tmp.pjLrxPUBOn /tmp/tmp.AUGv98Fh0D + 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.nnUUylcK0m +++ mktemp ++ local LAST_ERR=/tmp/tmp.aZv1QMNu0c ++ 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.nnUUylcK0m ++ cat /tmp/tmp.aZv1QMNu0c ++ rm /tmp/tmp.nnUUylcK0m /tmp/tmp.aZv1QMNu0c ++ 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.0s2f4EDN7R +++ mktemp ++ local LAST_ERR=/tmp/tmp.aYVs2ZYMms ++ 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.0s2f4EDN7R ++ cat /tmp/tmp.aYVs2ZYMms ++ rm /tmp/tmp.0s2f4EDN7R /tmp/tmp.aYVs2ZYMms ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ubQZo7zuMc +++ mktemp ++ local LAST_ERR=/tmp/tmp.qEAi2eF56k ++ 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.ubQZo7zuMc ++ cat /tmp/tmp.qEAi2eF56k ++ rm /tmp/tmp.ubQZo7zuMc /tmp/tmp.qEAi2eF56k ++ 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.ciFlW5iwV4 +++ mktemp ++ local LAST_ERR=/tmp/tmp.vqeV7QGdUp ++ 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.ciFlW5iwV4 ++ cat /tmp/tmp.vqeV7QGdUp ++ rm /tmp/tmp.ciFlW5iwV4 /tmp/tmp.vqeV7QGdUp ++ 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.Qg6eezJyPg +++ mktemp ++ local LAST_ERR=/tmp/tmp.iBgNUyfQ9V ++ 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.Qg6eezJyPg ++ cat /tmp/tmp.iBgNUyfQ9V ++ rm /tmp/tmp.Qg6eezJyPg /tmp/tmp.iBgNUyfQ9V ++ 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.9RvCHdp2Tb ++ mktemp + local LAST_ERR=/tmp/tmp.txAB0gC19T + 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.9RvCHdp2Tb perconaservermongodb.psmdb.percona.com/some-name patched + cat /tmp/tmp.txAB0gC19T + rm /tmp/tmp.9RvCHdp2Tb /tmp/tmp.txAB0gC19T + 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.hUsRkh6h7p +++ mktemp ++ local LAST_ERR=/tmp/tmp.ua0iK4n94g ++ 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.hUsRkh6h7p ++ cat /tmp/tmp.ua0iK4n94g ++ rm /tmp/tmp.hUsRkh6h7p /tmp/tmp.ua0iK4n94g ++ 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-2068 ++ grep -E '^\{.*\}$' ++ local 'command=JSON.stringify(db.adminCommand({getParameter:1,featureCompatibilityVersion:1}))' ++ local uri=clusterAdmin:clusterAdmin123456@some-name-rs0.mongod-major-upgrade-2068 ++ 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.BhRiLI2vSa ++++ mktemp +++ local LAST_ERR=/tmp/tmp.gzzfY64gNu +++ 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.BhRiLI2vSa +++ cat /tmp/tmp.gzzfY64gNu +++ rm /tmp/tmp.BhRiLI2vSa /tmp/tmp.gzzfY64gNu +++ return 0 ++ local client_container=psmdb-client-c8847c4cd-gb7f7 ++ kubectl_bin exec psmdb-client-c8847c4cd-gb7f7 -- 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-2068.svc.cluster.local:27017/admin ' +++ mktemp ++ local LAST_OUT=/tmp/tmp.OLPutby5Fb +++ mktemp ++ local LAST_ERR=/tmp/tmp.b24kPYSKhe ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('exec' 'psmdb-client-c8847c4cd-gb7f7' '--' '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-2068.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-gb7f7 == \- ]] ++ [[ psmdb-client-c8847c4cd-gb7f7 =~ ^(-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-2068.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-2068.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-gb7f7 -- 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-2068.svc.cluster.local:27017/admin ' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.OLPutby5Fb ++ cat /tmp/tmp.b24kPYSKhe ++ rm /tmp/tmp.OLPutby5Fb /tmp/tmp.b24kPYSKhe ++ 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-2068 + local 'command=use myApp\n db.test.insert({ x: 100502 })' + local uri=myApp:myPass@some-name-rs0.mongod-major-upgrade-2068 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0.mongod-major-upgrade-2068 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.By3MnjHEEF +++ mktemp ++ local LAST_ERR=/tmp/tmp.xKVj5MkwwC ++ 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.By3MnjHEEF ++ cat /tmp/tmp.xKVj5MkwwC ++ rm /tmp/tmp.By3MnjHEEF /tmp/tmp.xKVj5MkwwC ++ return 0 + local client_container=psmdb-client-c8847c4cd-gb7f7 + kubectl_bin exec psmdb-client-c8847c4cd-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.hGHXQXs9uG ++ mktemp + local LAST_ERR=/tmp/tmp.VUX37saLf9 + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-gb7f7' '--' '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-2068.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-gb7f7 == \- ]] + [[ psmdb-client-c8847c4cd-gb7f7 =~ ^(-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-2068.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-2068.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-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.hGHXQXs9uG Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-2.some-name-rs0.mongod-major-upgrade-2068.svc.cluster.local:27017,some-name-rs0-1.some-name-rs0.mongod-major-upgrade-2068.svc.cluster.local:27017,some-name-rs0-0.some-name-rs0.mongod-major-upgrade-2068.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("1fc68820-3a3d-425a-b203-1b2734412eb2") } 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.VUX37saLf9 + rm /tmp/tmp.hGHXQXs9uG /tmp/tmp.VUX37saLf9 + return 0 + compare_mongo_cmd find myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-2068 -2 + local command=find + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-2068 + 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-23T06:53:40+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-2068 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-2068 + 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-2068 == *cfg* ]] + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.PnjUGlW2I3 +++ mktemp ++ local LAST_ERR=/tmp/tmp.ziy2Ip1BWq ++ 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.PnjUGlW2I3 ++ cat /tmp/tmp.ziy2Ip1BWq ++ rm /tmp/tmp.PnjUGlW2I3 /tmp/tmp.ziy2Ip1BWq ++ return 0 + local client_container=psmdb-client-c8847c4cd-gb7f7 + kubectl_bin exec psmdb-client-c8847c4cd-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.1CvbHdQ3NL ++ mktemp + local LAST_ERR=/tmp/tmp.KJ2CRsq3Yi + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-gb7f7' '--' '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-2068.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-gb7f7 == \- ]] + [[ psmdb-client-c8847c4cd-gb7f7 =~ ^(-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-2068.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-2068.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-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.1CvbHdQ3NL + cat /tmp/tmp.KJ2CRsq3Yi + rm /tmp/tmp.1CvbHdQ3NL /tmp/tmp.KJ2CRsq3Yi + return 0 + compare_mongo_output find -2 + local command=find + local postfix=-2 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/compare/find-2.json /tmp/tmp.JQCqKUM2t1/find-2 + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-2068 -2 + local command=find + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-2068 + 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-23T06:53:42+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-2068 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-2068 + 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-2068 == *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.oWuBIz2vEP +++ mktemp ++ local LAST_ERR=/tmp/tmp.56ygKAHbyU ++ 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.oWuBIz2vEP ++ cat /tmp/tmp.56ygKAHbyU ++ rm /tmp/tmp.oWuBIz2vEP /tmp/tmp.56ygKAHbyU ++ return 0 + local client_container=psmdb-client-c8847c4cd-gb7f7 + kubectl_bin exec psmdb-client-c8847c4cd-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.EK4Ml1AmTk ++ mktemp + local LAST_ERR=/tmp/tmp.PHD07Thzay + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-gb7f7' '--' '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-2068.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-gb7f7 == \- ]] + [[ psmdb-client-c8847c4cd-gb7f7 =~ ^(-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-2068.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-2068.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-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.EK4Ml1AmTk + cat /tmp/tmp.PHD07Thzay + rm /tmp/tmp.EK4Ml1AmTk /tmp/tmp.PHD07Thzay + return 0 + compare_mongo_output find -2 + local command=find + local postfix=-2 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/compare/find-2.json /tmp/tmp.JQCqKUM2t1/find-2 + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-2068 -2 + local command=find + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-2068 + 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-23T06:53:45+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-2068 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' + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-2068 + 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-2068 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.paYIg7Htjw +++ mktemp ++ local LAST_ERR=/tmp/tmp.bDayWGaZ4z ++ 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.paYIg7Htjw ++ cat /tmp/tmp.bDayWGaZ4z ++ rm /tmp/tmp.paYIg7Htjw /tmp/tmp.bDayWGaZ4z ++ return 0 + local client_container=psmdb-client-c8847c4cd-gb7f7 + kubectl_bin exec psmdb-client-c8847c4cd-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.H9NpdQq3IL ++ mktemp + local LAST_ERR=/tmp/tmp.axwPqWBg8k + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-gb7f7' '--' '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-2068.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-gb7f7 == \- ]] + [[ psmdb-client-c8847c4cd-gb7f7 =~ ^(-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-2068.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-2068.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-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.H9NpdQq3IL + cat /tmp/tmp.axwPqWBg8k + rm /tmp/tmp.H9NpdQq3IL /tmp/tmp.axwPqWBg8k + return 0 + compare_mongo_output find -2 + local command=find + local postfix=-2 + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/mongod-major-upgrade/compare/find-2.json /tmp/tmp.JQCqKUM2t1/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.y67CX3sK9f ++ mktemp + local LAST_ERR=/tmp/tmp.0EPawdoAPS + 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.y67CX3sK9f perconaservermongodb.psmdb.percona.com/some-name patched + cat /tmp/tmp.0EPawdoAPS + rm /tmp/tmp.y67CX3sK9f /tmp/tmp.0EPawdoAPS + 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.5SZjvWI4BN +++ mktemp ++ local LAST_ERR=/tmp/tmp.E7rlQfZXrV ++ 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.5SZjvWI4BN ++ cat /tmp/tmp.E7rlQfZXrV ++ rm /tmp/tmp.5SZjvWI4BN /tmp/tmp.E7rlQfZXrV ++ 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.vYVdk1Q0oy +++ mktemp ++ local LAST_ERR=/tmp/tmp.ZGT3hRNUqG ++ 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.vYVdk1Q0oy ++ cat /tmp/tmp.ZGT3hRNUqG ++ rm /tmp/tmp.vYVdk1Q0oy /tmp/tmp.ZGT3hRNUqG ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.oy2Fhfc89t +++ mktemp ++ local LAST_ERR=/tmp/tmp.n2OxNTiV0A ++ 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.oy2Fhfc89t ++ cat /tmp/tmp.n2OxNTiV0A ++ rm /tmp/tmp.oy2Fhfc89t /tmp/tmp.n2OxNTiV0A ++ 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.2yqX50cLdT +++ mktemp ++ local LAST_ERR=/tmp/tmp.XXZUGcAZiC ++ 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.2yqX50cLdT ++ cat /tmp/tmp.XXZUGcAZiC ++ rm /tmp/tmp.2yqX50cLdT /tmp/tmp.XXZUGcAZiC ++ 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.PaTVO1gkcX +++ mktemp ++ local LAST_ERR=/tmp/tmp.NV8cY2qt1v ++ 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.PaTVO1gkcX ++ cat /tmp/tmp.NV8cY2qt1v ++ rm /tmp/tmp.PaTVO1gkcX /tmp/tmp.NV8cY2qt1v ++ 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.3O4ABTQ9ro ++ mktemp + local LAST_ERR=/tmp/tmp.mzF0vXf8rU + 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.3O4ABTQ9ro perconaservermongodb.psmdb.percona.com/some-name patched (no change) + cat /tmp/tmp.mzF0vXf8rU + rm /tmp/tmp.3O4ABTQ9ro /tmp/tmp.mzF0vXf8rU + 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.ifyfKV119Y +++ mktemp ++ local LAST_ERR=/tmp/tmp.43MLdeZWqD ++ 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.ifyfKV119Y ++ cat /tmp/tmp.43MLdeZWqD ++ rm /tmp/tmp.ifyfKV119Y /tmp/tmp.43MLdeZWqD ++ 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-2068 ++ local 'command=JSON.stringify(db.adminCommand({getParameter:1,featureCompatibilityVersion:1}))' ++ grep -E '^\{.*\}$' ++ local uri=clusterAdmin:clusterAdmin123456@some-name-rs0.mongod-major-upgrade-2068 ++ 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.m1BCgVEIei ++++ mktemp +++ local LAST_ERR=/tmp/tmp.GfOwuCydyC +++ 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.m1BCgVEIei +++ cat /tmp/tmp.GfOwuCydyC +++ rm /tmp/tmp.m1BCgVEIei /tmp/tmp.GfOwuCydyC +++ return 0 ++ local client_container=psmdb-client-c8847c4cd-gb7f7 ++ kubectl_bin exec psmdb-client-c8847c4cd-gb7f7 -- 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-2068.svc.cluster.local:27017/admin ' +++ mktemp ++ local LAST_OUT=/tmp/tmp.MEa2Lgz9hA +++ mktemp ++ local LAST_ERR=/tmp/tmp.kpZQhoAzml ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('exec' 'psmdb-client-c8847c4cd-gb7f7' '--' '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-2068.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-gb7f7 == \- ]] ++ [[ psmdb-client-c8847c4cd-gb7f7 =~ ^(-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-2068.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-2068.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-gb7f7 -- 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-2068.svc.cluster.local:27017/admin ' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.MEa2Lgz9hA ++ cat /tmp/tmp.kpZQhoAzml ++ rm /tmp/tmp.MEa2Lgz9hA /tmp/tmp.kpZQhoAzml ++ 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-2068 + local 'command=use myApp\n db.test.insert({ x: 100503 })' + local uri=myApp:myPass@some-name-rs0.mongod-major-upgrade-2068 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@some-name-rs0.mongod-major-upgrade-2068 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.uR8FFWbmj6 +++ mktemp ++ local LAST_ERR=/tmp/tmp.A612DAZ46w ++ 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.uR8FFWbmj6 ++ cat /tmp/tmp.A612DAZ46w ++ rm /tmp/tmp.uR8FFWbmj6 /tmp/tmp.A612DAZ46w ++ return 0 + local client_container=psmdb-client-c8847c4cd-gb7f7 + kubectl_bin exec psmdb-client-c8847c4cd-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.LauQ4Ibovi ++ mktemp + local LAST_ERR=/tmp/tmp.N3P3INPzEt + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-gb7f7' '--' '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-2068.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-gb7f7 == \- ]] + [[ psmdb-client-c8847c4cd-gb7f7 =~ ^(-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-2068.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-2068.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-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.LauQ4Ibovi Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-1.some-name-rs0.mongod-major-upgrade-2068.svc.cluster.local:27017,some-name-rs0-0.some-name-rs0.mongod-major-upgrade-2068.svc.cluster.local:27017,some-name-rs0-2.some-name-rs0.mongod-major-upgrade-2068.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("8a67b830-02cd-4625-90a9-3aecc2aefa76") } 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.N3P3INPzEt + rm /tmp/tmp.LauQ4Ibovi /tmp/tmp.N3P3INPzEt + return 0 + compare_mongo_cmd find myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-2068 -3 + local command=find + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-2068 + 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-23T06:57:11+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-2068 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.mongod-major-upgrade-2068 + 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-2068 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' + 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/' +++ mktemp ++ local LAST_OUT=/tmp/tmp.7KDRLauAlq +++ mktemp ++ local LAST_ERR=/tmp/tmp.5JnOAG8J3u ++ 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.7KDRLauAlq ++ cat /tmp/tmp.5JnOAG8J3u ++ rm /tmp/tmp.7KDRLauAlq /tmp/tmp.5JnOAG8J3u ++ return 0 + local client_container=psmdb-client-c8847c4cd-gb7f7 + kubectl_bin exec psmdb-client-c8847c4cd-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.WKSEhuHqHV ++ mktemp + local LAST_ERR=/tmp/tmp.iYFZmJiL5f + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-gb7f7' '--' '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-2068.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-gb7f7 == \- ]] + [[ psmdb-client-c8847c4cd-gb7f7 =~ ^(-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-2068.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-2068.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-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.WKSEhuHqHV + cat /tmp/tmp.iYFZmJiL5f + rm /tmp/tmp.WKSEhuHqHV /tmp/tmp.iYFZmJiL5f + 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-2715/e2e-tests/mongod-major-upgrade/compare/find-3.json /tmp/tmp.JQCqKUM2t1/find-3 + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-2068 -3 + local command=find + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-2068 + 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-23T06:57:13+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-2068 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-2068 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + 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' + [[ myApp:myPass@some-name-rs0-1.some-name-rs0.mongod-major-upgrade-2068 == *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.wHKYCMBVLG +++ mktemp ++ local LAST_ERR=/tmp/tmp.yBRlTEZqhr ++ 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.wHKYCMBVLG ++ cat /tmp/tmp.yBRlTEZqhr ++ rm /tmp/tmp.wHKYCMBVLG /tmp/tmp.yBRlTEZqhr ++ return 0 + local client_container=psmdb-client-c8847c4cd-gb7f7 + kubectl_bin exec psmdb-client-c8847c4cd-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.mMfBybkejZ ++ mktemp + local LAST_ERR=/tmp/tmp.Ws14L6Awho + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-gb7f7' '--' '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-2068.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-gb7f7 == \- ]] + [[ psmdb-client-c8847c4cd-gb7f7 =~ ^(-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-2068.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-2068.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-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.mMfBybkejZ + cat /tmp/tmp.Ws14L6Awho + rm /tmp/tmp.mMfBybkejZ /tmp/tmp.Ws14L6Awho + 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-2715/e2e-tests/mongod-major-upgrade/compare/find-3.json /tmp/tmp.JQCqKUM2t1/find-3 + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-2068 -3 + local command=find + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-2068 + 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-23T06:57:16+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-2068 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.mongod-major-upgrade-2068 + 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-2068 == *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.P6t1dw5gyA +++ mktemp ++ local LAST_ERR=/tmp/tmp.jema69VHXY ++ 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.P6t1dw5gyA ++ cat /tmp/tmp.jema69VHXY ++ rm /tmp/tmp.P6t1dw5gyA /tmp/tmp.jema69VHXY ++ return 0 + local client_container=psmdb-client-c8847c4cd-gb7f7 + kubectl_bin exec psmdb-client-c8847c4cd-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.Xkr7mg7M57 ++ mktemp + local LAST_ERR=/tmp/tmp.jzAP5eyxk2 + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-gb7f7' '--' '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-2068.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-gb7f7 == \- ]] + [[ psmdb-client-c8847c4cd-gb7f7 =~ ^(-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-2068.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-2068.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-gb7f7 -- 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-2068.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Xkr7mg7M57 + cat /tmp/tmp.jzAP5eyxk2 + rm /tmp/tmp.Xkr7mg7M57 /tmp/tmp.jzAP5eyxk2 + 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-2715/e2e-tests/mongod-major-upgrade/compare/find-3.json /tmp/tmp.JQCqKUM2t1/find-3 + return + target_generation=4 + destroy mongod-major-upgrade-2068 + local namespace=mongod-major-upgrade-2068 + local ignore_logs=true + [[ 1 == 1 ]] + echo 'SKIP_DELETE=1, not destroying mongod-major-upgrade-2068' SKIP_DELETE=1, not destroying mongod-major-upgrade-2068 + return + desc 'test passed' + set +o xtrace ----------------------------------------------------------------------------------- test passed ----------------------------------------------------------------------------------- ==================================================================================================== [PASSED] e2e-tests/test_pytest_wrapper.py::test_bash_wrapper ==================================================================================================== [06:57:20.400810] INFO Deleting cert-manager [06:57:38.282877] INFO Cleaning up test environment ------------------------------------------ generated xml file: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/reports/mongod-major-upgrade.xml ------------------------------------------ ------------------------------------ Generated html report: file:///mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/reports/mongod-major-upgrade.html ------------------------------------- ==================================================================================== 1 passed in 764.58s (0:12:44) =====================================================================================