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[one-pod] [06:49:59.139478] WARNING kubectl error: Warning: version difference between client (1.37) and server (1.34) exceeds the supported minor version skew of +/-1 [06:49:59.919888] 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/one-pod + . /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/../functions +++ dirname /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/../functions ++ source /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/../vars +++ [[ 1 != 1 ]] ++++ mktemp -d +++ export tmp_dir=/tmp/tmp.WRJJ8OxYv1 +++ tmp_dir=/tmp/tmp.WRJJ8OxYv1 ++++ 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/one-pod +++ export test_name=one-pod +++ test_name=one-pod +++ export namespace=one-pod-11615 +++ namespace=one-pod-11615 +++ export arbiter_namespace=one-pod-arbiter-15961 +++ arbiter_namespace=one-pod-arbiter-15961 +++ export replica_namespace=one-pod-replica-9047 +++ replica_namespace=one-pod-replica-9047 ++++ realpath /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/../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/one-pod/../.. +++ 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/one-pod/../logs +++ logs_dir=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/../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=() + main + create_infra one-pod-11615 + local ns=one-pod-11615 + echo one-pod-11615 + destroy_cert_manager + [[ -n '' ]] + kubectl_bin delete mutatingwebhookconfiguration cert-manager-webhook --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.Bpc7uo2cdZ ++ mktemp + local LAST_ERR=/tmp/tmp.YhOiZKFEcu + 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.Bpc7uo2cdZ + cat /tmp/tmp.YhOiZKFEcu + rm /tmp/tmp.Bpc7uo2cdZ /tmp/tmp.YhOiZKFEcu + return 0 + kubectl_bin delete validatingwebhookconfiguration cert-manager-webhook --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.rQIE4ZUFx7 ++ mktemp + local LAST_ERR=/tmp/tmp.7UDkfwRHXw + 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.rQIE4ZUFx7 + cat /tmp/tmp.7UDkfwRHXw + rm /tmp/tmp.rQIE4ZUFx7 /tmp/tmp.7UDkfwRHXw + 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.JNucTS7y19 ++ mktemp + local LAST_ERR=/tmp/tmp.rt4li5yFhz + 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.JNucTS7y19 + cat /tmp/tmp.rt4li5yFhz + rm /tmp/tmp.JNucTS7y19 /tmp/tmp.rt4li5yFhz + return 0 + kubectl_bin delete namespace cert-manager --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.Y3uLpTYkNp ++ mktemp + local LAST_ERR=/tmp/tmp.YIE21JCczp + 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.Y3uLpTYkNp + cat /tmp/tmp.YIE21JCczp + rm /tmp/tmp.Y3uLpTYkNp /tmp/tmp.YIE21JCczp + 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.dwaHLAJI48 +++ mktemp ++ local LAST_ERR=/tmp/tmp.EMD6fIVtV6 ++ 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.dwaHLAJI48 ++ cat /tmp/tmp.EMD6fIVtV6 ++ rm /tmp/tmp.dwaHLAJI48 /tmp/tmp.EMD6fIVtV6 ++ return 0 + remaining= ++ kubectl_bin get validatingwebhookconfiguration cert-manager-webhook --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.JUQsjem3md +++ mktemp ++ local LAST_ERR=/tmp/tmp.5Hs5NiVid2 ++ 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.JUQsjem3md ++ cat /tmp/tmp.5Hs5NiVid2 ++ rm /tmp/tmp.JUQsjem3md /tmp/tmp.5Hs5NiVid2 ++ 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.fGVZ8LBNeg +++ mktemp ++ local LAST_ERR=/tmp/tmp.u08Sd59RKA ++ 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.fGVZ8LBNeg ++ cat /tmp/tmp.u08Sd59RKA ++ rm /tmp/tmp.fGVZ8LBNeg /tmp/tmp.u08Sd59RKA ++ return 0 + remaining+= ++ kubectl_bin get namespace cert-manager --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.UafdXVp3dO +++ mktemp ++ local LAST_ERR=/tmp/tmp.NN9cvCj3eS ++ 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.UafdXVp3dO ++ cat /tmp/tmp.NN9cvCj3eS ++ rm /tmp/tmp.UafdXVp3dO /tmp/tmp.NN9cvCj3eS ++ 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.AysTyu05O5 ++ mktemp + local LAST_ERR=/tmp/tmp.XkRbZuiRUa + 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.AysTyu05O5 customresourcedefinition.apiextensions.k8s.io "perconaservermongodbbackups.psmdb.percona.com" deleted customresourcedefinition.apiextensions.k8s.io "perconaservermongodbclustersyncs.psmdb.percona.com" deleted customresourcedefinition.apiextensions.k8s.io "perconaservermongodbrestores.psmdb.percona.com" deleted customresourcedefinition.apiextensions.k8s.io "perconaservermongodbs.psmdb.percona.com" deleted + cat /tmp/tmp.XkRbZuiRUa + rm /tmp/tmp.AysTyu05O5 /tmp/tmp.XkRbZuiRUa + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml ++ grep -v '\-\-\-' grep: warning: stray \ before - grep: warning: stray \ before - + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + kubectl get perconaservermongodbbackups.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbbackups.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbbackups" in group "psmdb.percona.com" + kubectl patch perconaservermongodbbackups.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbbackups" in group "psmdb.percona.com" + : + kubectl get crd perconaservermongodbbackups.psmdb.percona.com + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + kubectl get perconaservermongodbclustersyncs.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbclustersyncs.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbclustersyncs" in group "psmdb.percona.com" + kubectl patch perconaservermongodbclustersyncs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbclustersyncs" in group "psmdb.percona.com" + : + kubectl get crd perconaservermongodbclustersyncs.psmdb.percona.com + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + grep -v NAMESPACE + kubectl get perconaservermongodbrestores.psmdb.percona.com --all-namespaces -o wide + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbrestores.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' 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.mzslkRZQVc ++ mktemp + local LAST_ERR=/tmp/tmp.9CZAAbb58o + 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.mzslkRZQVc clusterrole.rbac.authorization.k8s.io "percona-server-mongodb-operator" deleted clusterrolebinding.rbac.authorization.k8s.io "service-account-percona-server-mongodb-operator" deleted + cat /tmp/tmp.9CZAAbb58o + rm /tmp/tmp.mzslkRZQVc /tmp/tmp.9CZAAbb58o + return 0 + check_crd_for_deletion PR-2715 + local git_tag=PR-2715 ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-2715/deploy/crd.yaml ++ yq eval .metadata.name ++ /usr/sbin/sed s/---//g ++ /usr/sbin/sed ':a;N;$!ba;s/\n/ /g' + for crd_name in $(curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/${git_tag}/deploy/crd.yaml | yq eval '.metadata.name' | $sed 's/---//g' | $sed ':a;N;$!ba;s/\n/ /g') ++ kubectl_bin get crd/null -o 'jsonpath={.status.conditions[-1].type}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.wnJHcsSXsY +++ mktemp ++ local LAST_ERR=/tmp/tmp.LDxaNddapO ++ 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.LDxaNddapO ++ break ++ cat /tmp/tmp.wnJHcsSXsY ++ cat /tmp/tmp.LDxaNddapO Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.wnJHcsSXsY /tmp/tmp.LDxaNddapO ++ return 1 + [[ '' == Terminating ]] + '[' -n psmdb-operator ']' + create_namespace psmdb-operator + local namespace=psmdb-operator + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ awk '{print $1}' ++ grep chaos-mesh + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep validate-auth ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' ++ grep chaos-mesh.org ++ kubectl get crd ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + local 'ns_filter=^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + [[ -n '' ]] + kubectl_bin get ns + grep -E -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + awk '{print$1}' + [[ -n '' ]] + desc 'cleaned up old namespaces psmdb-operator' ++ mktemp + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin delete namespace psmdb-operator --ignore-not-found + xargs kubectl delete ns ++ mktemp + local LAST_OUT=/tmp/tmp.5d06DRTXYw ++ mktemp + local LAST_ERR=/tmp/tmp.W6oxQrmcMD + 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[@]}" + local LAST_OUT=/tmp/tmp.dfhmxoc0G1 + [[ 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 + for attempt in $(seq 0 9) + set +e + kubectl get ns + local LAST_ERR=/tmp/tmp.CUGUIO0pmp + local exit_status=0 + local timeout=4 + local i + args=('delete' 'namespace' 'psmdb-operator' '--ignore-not-found') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-operator == \- ]] + [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete namespace psmdb-operator --ignore-not-found + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.5d06DRTXYw + cat /tmp/tmp.W6oxQrmcMD + rm /tmp/tmp.5d06DRTXYw /tmp/tmp.W6oxQrmcMD + return 0 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.dfhmxoc0G1 + cat /tmp/tmp.CUGUIO0pmp + rm /tmp/tmp.dfhmxoc0G1 /tmp/tmp.CUGUIO0pmp + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.hdSbX06yrF ++ mktemp + local LAST_ERR=/tmp/tmp.duki0jZKpx + local exit_status=0 + local timeout=4 + local i + args=('wait' '--for=delete' 'namespace' 'psmdb-operator') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ wait == \- ]] + [[ wait =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --for=delete == \- ]] + [[ --for=delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-operator == \- ]] + [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl wait --for=delete namespace psmdb-operator + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.hdSbX06yrF + cat /tmp/tmp.duki0jZKpx + rm /tmp/tmp.hdSbX06yrF /tmp/tmp.duki0jZKpx + 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.nNLnUz62gf ++ mktemp + local LAST_ERR=/tmp/tmp.BG743NEqNL + 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.nNLnUz62gf namespace/psmdb-operator created + cat /tmp/tmp.BG743NEqNL + rm /tmp/tmp.nNLnUz62gf /tmp/tmp.BG743NEqNL + return 0 + set_kube_ctx psmdb-operator + local namespace=psmdb-operator ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.hBJxKwCL4C +++ mktemp ++ local LAST_ERR=/tmp/tmp.o5M91Z8GBw ++ 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.hBJxKwCL4C ++ cat /tmp/tmp.o5M91Z8GBw ++ rm /tmp/tmp.hBJxKwCL4C /tmp/tmp.o5M91Z8GBw ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.530m9zzuI5 ++ mktemp + local LAST_ERR=/tmp/tmp.Dfx68SZEK3 + local exit_status=0 + local timeout=4 + local i + args=('config' 'set-context' 'gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7' '--namespace=psmdb-operator') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ config == \- ]] + [[ config =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ set-context == \- ]] + [[ set-context =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7 == \- ]] + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --namespace=psmdb-operator == \- ]] + [[ --namespace=psmdb-operator =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7 --namespace=psmdb-operator + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.530m9zzuI5 Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7" modified. + cat /tmp/tmp.Dfx68SZEK3 + rm /tmp/tmp.530m9zzuI5 /tmp/tmp.Dfx68SZEK3 + 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/one-pod/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.98q7Hx3fG6 ++ mktemp + local LAST_ERR=/tmp/tmp.jJci7BwvFM + 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.98q7Hx3fG6 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.jJci7BwvFM + rm /tmp/tmp.98q7Hx3fG6 /tmp/tmp.jJci7BwvFM + 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.C0GtZWOnC8 ++ mktemp + local LAST_ERR=/tmp/tmp.fPo2MLD2BG + 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.iCNbDiLEu7 + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.iCNbDiLEu7 + 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.iCNbDiLEu7 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.C0GtZWOnC8 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.fPo2MLD2BG + rm /tmp/tmp.C0GtZWOnC8 /tmp/tmp.fPo2MLD2BG /tmp/tmp.iCNbDiLEu7 + 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.KnkAB8uH8d ++ mktemp + local LAST_ERR=/tmp/tmp.VXqT7hriJp + 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.SkRhwUDnKh + cat + return + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.SkRhwUDnKh + 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.SkRhwUDnKh + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.KnkAB8uH8d deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.VXqT7hriJp + rm /tmp/tmp.KnkAB8uH8d /tmp/tmp.VXqT7hriJp /tmp/tmp.SkRhwUDnKh + 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.K0vSpkmMyc +++ mktemp ++ local LAST_ERR=/tmp/tmp.2ze9pMqDkK ++ 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.K0vSpkmMyc ++ cat /tmp/tmp.2ze9pMqDkK ++ rm /tmp/tmp.K0vSpkmMyc /tmp/tmp.2ze9pMqDkK ++ return 0 + wait_operator_pod percona-server-mongodb-operator-b57dc4869-w79ch + local pod=percona-server-mongodb-operator-b57dc4869-w79ch + set +o xtrace waiting for pod/percona-server-mongodb-operator-b57dc4869-w79ch 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.eLa52fkYAo +++ mktemp ++ local LAST_ERR=/tmp/tmp.QYAWtTxulI ++ 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.eLa52fkYAo ++ cat /tmp/tmp.QYAWtTxulI ++ rm /tmp/tmp.eLa52fkYAo /tmp/tmp.QYAWtTxulI ++ return 0 + kubectl_bin logs -n psmdb-operator percona-server-mongodb-operator-b57dc4869-w79ch ++ mktemp + local LAST_OUT=/tmp/tmp.PxZ9vR6uIn ++ mktemp + local LAST_ERR=/tmp/tmp.Cz6DjdJR27 + local exit_status=0 + local timeout=4 + local i + args=('logs' '-n' 'psmdb-operator' 'percona-server-mongodb-operator-b57dc4869-w79ch') + 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-w79ch == \- ]] + [[ percona-server-mongodb-operator-b57dc4869-w79ch =~ ^(-f|--filename)=-$ ]] + 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-w79ch + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.PxZ9vR6uIn + cat /tmp/tmp.Cz6DjdJR27 + rm /tmp/tmp.PxZ9vR6uIn /tmp/tmp.Cz6DjdJR27 + return 0 2026-11-23T06:50:55.541Z INFO setup Manager starting up {"gitCommit": "27e0b796072fe59ec1fa78fca82dc7491ddb9891", "gitBranch": "PR-2715-27e0b7960", "buildTime": "", "goVersion": "go1.27.4", "os": "linux", "arch": "amd64"} + create_namespace one-pod-11615 + local namespace=one-pod-11615 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep validate-auth ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' ++ grep chaos-mesh.org ++ kubectl get crd ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ 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 + awk '{print$1}' + grep -E -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + [[ -n '' ]] + desc 'cleaned up old namespaces one-pod-11615' + xargs kubectl delete ns + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces one-pod-11615 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace one-pod-11615 --ignore-not-found ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.0HbqUEYVf0 ++ mktemp + local LAST_ERR=/tmp/tmp.T5I8Y6C1Vf + local exit_status=0 + local timeout=4 + local i + local LAST_OUT=/tmp/tmp.xUYtnJZ8S2 + args=('get' 'ns') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ get == \- ]] + [[ get =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ns == \- ]] + [[ ns =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 ++ mktemp + local LAST_ERR=/tmp/tmp.hUPz6atEAd + local exit_status=0 + local timeout=4 + for attempt in $(seq 0 9) + local i + set +e + kubectl get ns + args=('delete' 'namespace' 'one-pod-11615' '--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[@]}" + [[ one-pod-11615 == \- ]] + [[ one-pod-11615 =~ ^(-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 one-pod-11615 --ignore-not-found + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.0HbqUEYVf0 + cat /tmp/tmp.T5I8Y6C1Vf + rm /tmp/tmp.0HbqUEYVf0 /tmp/tmp.T5I8Y6C1Vf + return 0 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.xUYtnJZ8S2 + cat /tmp/tmp.hUPz6atEAd + rm /tmp/tmp.xUYtnJZ8S2 /tmp/tmp.hUPz6atEAd + return 0 + kubectl_bin wait --for=delete namespace one-pod-11615 ++ mktemp + local LAST_OUT=/tmp/tmp.9Hz5AhIBah ++ mktemp + local LAST_ERR=/tmp/tmp.oWsJZEbkHH + local exit_status=0 + local timeout=4 + local i + args=('wait' '--for=delete' 'namespace' 'one-pod-11615') + 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[@]}" + [[ one-pod-11615 == \- ]] + [[ one-pod-11615 =~ ^(-f|--filename)=-$ ]] + 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 one-pod-11615 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.9Hz5AhIBah + cat /tmp/tmp.oWsJZEbkHH + rm /tmp/tmp.9Hz5AhIBah /tmp/tmp.oWsJZEbkHH + return 0 + desc 'create namespace one-pod-11615' + set +o xtrace ----------------------------------------------------------------------------------- create namespace one-pod-11615 ----------------------------------------------------------------------------------- + kubectl_bin create namespace one-pod-11615 ++ mktemp + local LAST_OUT=/tmp/tmp.NupcvKK5zb ++ mktemp + local LAST_ERR=/tmp/tmp.843RCJHN6U + local exit_status=0 + local timeout=4 + local i + args=('create' 'namespace' 'one-pod-11615') + 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[@]}" + [[ one-pod-11615 == \- ]] + [[ one-pod-11615 =~ ^(-f|--filename)=-$ ]] + 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 one-pod-11615 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.NupcvKK5zb namespace/one-pod-11615 created + cat /tmp/tmp.843RCJHN6U + rm /tmp/tmp.NupcvKK5zb /tmp/tmp.843RCJHN6U + return 0 + set_kube_ctx one-pod-11615 + local namespace=one-pod-11615 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.QWn8RgmTMS +++ mktemp ++ local LAST_ERR=/tmp/tmp.cXwwWyyGUH ++ 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.QWn8RgmTMS ++ cat /tmp/tmp.cXwwWyyGUH ++ rm /tmp/tmp.QWn8RgmTMS /tmp/tmp.cXwwWyyGUH ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7 --namespace=one-pod-11615 ++ mktemp + local LAST_OUT=/tmp/tmp.hKSrDBdxQ0 ++ mktemp + local LAST_ERR=/tmp/tmp.T0MWuPD8hj + local exit_status=0 + local timeout=4 + local i + args=('config' 'set-context' 'gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7' '--namespace=one-pod-11615') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ config == \- ]] + [[ config =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ set-context == \- ]] + [[ set-context =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7 == \- ]] + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --namespace=one-pod-11615 == \- ]] + [[ --namespace=one-pod-11615 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7 --namespace=one-pod-11615 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.hKSrDBdxQ0 Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster7" modified. + cat /tmp/tmp.T0MWuPD8hj + rm /tmp/tmp.hKSrDBdxQ0 /tmp/tmp.T0MWuPD8hj + return 0 + desc 'create secrets and start client' + set +o xtrace ----------------------------------------------------------------------------------- create secrets and start client ----------------------------------------------------------------------------------- + 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 -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/s3-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.0nIMuRoafa ++ mktemp + local LAST_ERR=/tmp/tmp.ZLhDKLaLO6 + 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' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/s3-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/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)=-$ ]] + 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)=-$ ]] + 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 -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/s3-secret.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.0nIMuRoafa deployment.apps/psmdb-client created secret/some-users created secret/s3-secret created + cat /tmp/tmp.ZLhDKLaLO6 + rm /tmp/tmp.0nIMuRoafa /tmp/tmp.ZLhDKLaLO6 + return 0 + deploy_s3_storage + local cert_secret= + local fullname=s3-storage + desc 'install SeaweedFS: s3-storage' + set +o xtrace ----------------------------------------------------------------------------------- install SeaweedFS: s3-storage ----------------------------------------------------------------------------------- + helm uninstall s3-storage + : + helm repo remove seaweedfs "seaweedfs" has been removed from your repositories + helm repo add seaweedfs https://seaweedfs.github.io/seaweedfs/helm "seaweedfs" has been added to your repositories + local endpoint=http://s3-storage-all-in-one:8333 + seaweedfs_args=('--version' '4.47.0' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/seaweedfs-values.yaml' '--set' 'allInOne.data.type=persistentVolumeClaim' '--set' 'allInOne.data.size=2G' '--set' 'fullnameOverride=s3-storage' '--set-string' 's3.credentials.admin.accessKey=some-access-key' '--set-string' 's3.credentials.admin.secretKey=some-secret-key' '--set-string' 'global.seaweedfs.serviceAccountName=s3-storage-sa') + local seaweedfs_args + arch_scheduling_enabled + [[ -n '' ]] + [[ -n '' ]] + retry 10 60 helm install s3-storage --version 4.47.0 -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/seaweedfs-values.yaml --set allInOne.data.type=persistentVolumeClaim --set allInOne.data.size=2G --set fullnameOverride=s3-storage --set-string s3.credentials.admin.accessKey=some-access-key --set-string s3.credentials.admin.secretKey=some-secret-key --set-string global.seaweedfs.serviceAccountName=s3-storage-sa seaweedfs/seaweedfs + local max=10 + local delay=60 + shift 2 + local n=1 + helm install s3-storage --version 4.47.0 -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/seaweedfs-values.yaml --set allInOne.data.type=persistentVolumeClaim --set allInOne.data.size=2G --set fullnameOverride=s3-storage --set-string s3.credentials.admin.accessKey=some-access-key --set-string s3.credentials.admin.secretKey=some-secret-key --set-string global.seaweedfs.serviceAccountName=s3-storage-sa seaweedfs/seaweedfs NAME: s3-storage LAST DEPLOYED: Mon Nov 23 06:51:36 2026 NAMESPACE: one-pod-11615 STATUS: deployed REVISION: 1 TEST SUITE: None + kubectl_bin rollout status deployment/s3-storage-all-in-one --timeout=300s ++ mktemp + local LAST_OUT=/tmp/tmp.M1wqKVZgj6 ++ mktemp + local LAST_ERR=/tmp/tmp.1vQZo9sU27 + local exit_status=0 + local timeout=4 + local i + args=('rollout' 'status' 'deployment/s3-storage-all-in-one' '--timeout=300s') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ rollout == \- ]] + [[ rollout =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ status == \- ]] + [[ status =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ deployment/s3-storage-all-in-one == \- ]] + [[ deployment/s3-storage-all-in-one =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --timeout=300s == \- ]] + [[ --timeout=300s =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl rollout status deployment/s3-storage-all-in-one --timeout=300s + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.M1wqKVZgj6 Waiting for deployment "s3-storage-all-in-one" rollout to finish: 0 of 1 updated replicas are available... deployment "s3-storage-all-in-one" successfully rolled out + cat /tmp/tmp.1vQZo9sU27 + rm /tmp/tmp.M1wqKVZgj6 /tmp/tmp.1vQZo9sU27 + return 0 + '[' -n psmdb-operator ']' + kubectl_bin create svc -n psmdb-operator externalname s3-storage-all-in-one --external-name=s3-storage-all-in-one.one-pod-11615.svc.cluster.local --tcp=8333 --tcp=8443 service/s3-storage-all-in-one created + create_s3_bucket operator-testing http://s3-storage-all-in-one:8333 + local bucket=operator-testing + local endpoint=http://s3-storage-all-in-one:8333 + retry 12 10 aws_cli_s3 http://s3-storage-all-in-one:8333 s3 mb s3://operator-testing + local max=12 + local delay=10 + shift 2 + local n=1 + aws_cli_s3 http://s3-storage-all-in-one:8333 s3 mb s3://operator-testing + local endpoint=http://s3-storage-all-in-one:8333 + shift + kubectl_bin run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url http://s3-storage-all-in-one:8333 s3 mb s3://operator-testing ++ mktemp + local LAST_OUT=/tmp/tmp.GqpkCG2c2c ++ mktemp + local LAST_ERR=/tmp/tmp.ncI1rVEXAh + local exit_status=0 + local timeout=4 + local i + args=('run' '-i' '--rm' 'aws-cli' '--image=docker.io/amazon/aws-cli:2.34.60' '--restart=Never' '--env=AWS_ACCESS_KEY_ID=some-access-key' '--env=AWS_SECRET_ACCESS_KEY=some-secret-key' '--env=AWS_DEFAULT_REGION=us-east-1' '--' '--no-verify-ssl' '--endpoint-url' 'http://s3-storage-all-in-one:8333' 's3' 'mb' 's3://operator-testing') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ run == \- ]] + [[ run =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -i == \- ]] + [[ -i =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --rm == \- ]] + [[ --rm =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ aws-cli == \- ]] + [[ aws-cli =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --image=docker.io/amazon/aws-cli:2.34.60 == \- ]] + [[ --image=docker.io/amazon/aws-cli:2.34.60 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --restart=Never == \- ]] + [[ --restart=Never =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_ACCESS_KEY_ID=some-access-key == \- ]] + [[ --env=AWS_ACCESS_KEY_ID=some-access-key =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key == \- ]] + [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_DEFAULT_REGION=us-east-1 == \- ]] + [[ --env=AWS_DEFAULT_REGION=us-east-1 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --no-verify-ssl == \- ]] + [[ --no-verify-ssl =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --endpoint-url == \- ]] + [[ --endpoint-url =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ http://s3-storage-all-in-one:8333 == \- ]] + [[ http://s3-storage-all-in-one:8333 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3 == \- ]] + [[ s3 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ mb == \- ]] + [[ mb =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3://operator-testing == \- ]] + [[ s3://operator-testing =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url http://s3-storage-all-in-one:8333 s3 mb s3://operator-testing + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.GqpkCG2c2c make_bucket: operator-testing pod "aws-cli" deleted from one-pod-11615 namespace + cat /tmp/tmp.ncI1rVEXAh Warning: BCID failed open: BCID suppressed until 2026-11-23 08:49:29.73295255 +0000 UTC m=+10871.020251285 All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt. If you don't see a command prompt, try pressing enter. + rm /tmp/tmp.GqpkCG2c2c /tmp/tmp.ncI1rVEXAh + return 0 + cluster=one-pod-rs0 + spinup_psmdb one-pod-rs0 /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/one-pod-rs0.yml 1 + local cluster=one-pod-rs0 + local config=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/one-pod-rs0.yml + local size=1 + desc 'create first PSMDB cluster' + set +o xtrace ----------------------------------------------------------------------------------- create first PSMDB cluster ----------------------------------------------------------------------------------- + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/one-pod-rs0.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/one-pod-rs0.yml + kubectl_bin apply -f - ++ mktemp + yq eval '(.spec | select(has("pmm"))).pmm.image = "docker.io/perconalab/pmm-client:3-dev-latest"' + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/one-pod-rs0.yml + yq eval '(.spec | select(has("initImage"))).initImage = "docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960"' + local LAST_OUT=/tmp/tmp.6HKXNMoku4 + yq eval '(.spec | select(.image == null)).image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3"' ++ mktemp + yq eval '(.spec | select(has("backup"))).backup.image = "docker.io/perconalab/percona-server-mongodb-operator:main-backup"' + /usr/sbin/sed -e s/NAME_SPACE/one-pod-11615/g + yq eval '.spec.upgradeOptions.apply="Never"' + [[ -n docker.io/perconalab/fluentbit:main-logcollector ]] + IMAGE_LOGCOLLECTOR=docker.io/perconalab/fluentbit:main-logcollector + yq eval '(.spec | select(has("logcollector"))).logcollector.image = strenv(IMAGE_LOGCOLLECTOR)' + local LAST_ERR=/tmp/tmp.cmlkScIVHY + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '-') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ - == \- ]] + [[ 2 -gt 0 ]] + [[ -f =~ ^(-f|--filename)$ ]] + yq eval '(.spec | select(has("search"))).search.image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongot"' ++ mktemp + add_arch_to_psmdb - + arch_scheduling_enabled + [[ -n '' ]] + cat - + stdin_manifest=/tmp/tmp.VYWJLVCZmz + cat + return + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.VYWJLVCZmz + 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.VYWJLVCZmz + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.6HKXNMoku4 perconaservermongodb.psmdb.percona.com/one-pod created + cat /tmp/tmp.cmlkScIVHY + rm /tmp/tmp.6HKXNMoku4 /tmp/tmp.cmlkScIVHY /tmp/tmp.VYWJLVCZmz + return 0 + desc 'check if Pod is started' + set +o xtrace ----------------------------------------------------------------------------------- check if Pod is started ----------------------------------------------------------------------------------- + wait_for_running one-pod-rs0 1 + local name=one-pod-rs0 + let last_pod=0 + : + local check_cluster_readiness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=one-pod ++ seq 0 0 + for i in $(seq 0 $last_pod) + [[ 0 -eq 0 ]] ++ kubectl_bin get psmdb one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.bfpzgVFiAj +++ mktemp ++ local LAST_ERR=/tmp/tmp.zNVz4qIq59 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.bfpzgVFiAj ++ cat /tmp/tmp.zNVz4qIq59 ++ rm /tmp/tmp.bfpzgVFiAj /tmp/tmp.zNVz4qIq59 ++ return 0 + [[ false == true ]] + wait_pod one-pod-rs0-0 + local pod=one-pod-rs0-0 + set +o xtrace waiting for pod/one-pod-rs0-0 to be ready...........OK ++ kubectl_bin get psmdb one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.XvA6o9Sqyr +++ mktemp ++ local LAST_ERR=/tmp/tmp.VRUY7dzzew ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.XvA6o9Sqyr ++ cat /tmp/tmp.VRUY7dzzew ++ rm /tmp/tmp.XvA6o9Sqyr /tmp/tmp.VRUY7dzzew ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ZCf4i2ZGKw +++ mktemp ++ local LAST_ERR=/tmp/tmp.N1JrjpzeAj ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.ZCf4i2ZGKw ++ cat /tmp/tmp.N1JrjpzeAj ++ rm /tmp/tmp.ZCf4i2ZGKw /tmp/tmp.N1JrjpzeAj ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster one-pod to be ready................................... + sleep 20 + compare_kubectl statefulset/one-pod-rs0 + local resource=statefulset/one-pod-rs0 + local postfix= + local skip_generation_check= + local expected_result=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/compare/statefulset_one-pod-rs0.yml + local new_result=/tmp/tmp.WRJJ8OxYv1/statefulset_one-pod-rs0.yml + [[ -n '' ]] + kubectl_bin get -o yaml statefulset/one-pod-rs0 ++ mktemp + yq eval $'\n\t\t\tdel(.metadata.ownerReferences[].apiVersion) |\n\t\t\tdel(.metadata.managedFields) |\n\t\t\tdel(.. | select(has("creationTimestamp")).creationTimestamp) |\n\t\t\tdel(.. | select(has("namespace")).namespace) |\n\t\t\tdel(.. | select(has("uid")).uid) |\n\t\t\tdel(.metadata.resourceVersion) |\n\t\t\tdel(.spec.template.spec.containers[].env[] | select(.name == "NAMESPACE")) |\n\t\t\tdel(.metadata.selfLink) |\n\t\t\tdel(.metadata.annotations."cloud.google.com/neg") |\n\t\t\tdel(.metadata.annotations."field.cattle.io/publicEndpoints") |\n\t\t\tdel(.metadata.annotations."metallb.io/ip-allocated-from-pool") |\n\t\t\tdel(.metadata.annotations."networking.gke.io/target-pool") |\n\t\t\tdel(.metadata.annotations."kubectl.kubernetes.io/last-applied-configuration") |\n\t\t\tdel(.. | select(has("image")).image) |\n\t\t\tdel(.. | select(has("clusterIP")).clusterIP) |\n\t\t\tdel(.. | select(has("clusterIPs")).clusterIPs) |\n\t\t\tdel(.. | select(has("dataSource")).dataSource) |\n\t\t\tdel(.. | select(has("procMount")).procMount) |\n\t\t\tdel(.. | select(has("storageClassName")).storageClassName) |\n\t\t\tdel(.. | select(has("finalizers")).finalizers) |\n\t\t\tdel(.. | select(has("kubernetes.io/pvc-protection"))."kubernetes.io/pvc-protection") |\n\t\t\tdel(.. | select(has("volumeName")).volumeName) |\n\t\t\tdel(.. | select(has("volume.beta.kubernetes.io/storage-provisioner"))."volume.beta.kubernetes.io/storage-provisioner") |\n\t\t\tdel(.. | select(has("volume.kubernetes.io/storage-provisioner"))."volume.kubernetes.io/storage-provisioner") |\n\t\t\tdel(.spec.volumeMode) |\n\t\t\tdel(.. | select(has("volume.kubernetes.io/selected-node"))."volume.kubernetes.io/selected-node") |\n\t\t\tdel(.. | select(has("percona.com/last-config-hash"))."percona.com/last-config-hash") |\n\t\t\tdel(.. | select(has("percona.com/configuration-hash"))."percona.com/configuration-hash") |\n\t\t\tdel(.. | select(has("percona.com/ssl-hash"))."percona.com/ssl-hash") |\n\t\t\tdel(.. | select(has("percona.com/ssl-internal-hash"))."percona.com/ssl-internal-hash") |\n\t\t\tdel(.. | select(has("percona.com/pbm-tls-hash"))."percona.com/pbm-tls-hash") |\n\t\t\tdel(.spec.volumeClaimTemplates[].spec.volumeMode | select(. == "Filesystem")) |\n\t\t\tdel(.. | select(has("healthCheckNodePort")).healthCheckNodePort) |\n\t\t\tdel(.. | select(has("nodePort")).nodePort) |\n\t\t\tdel(.status) |\n\t\t\t(.. | select(tag == "!!str")) |= sub("one-pod-11615", "NAME_SPACE") |\n\t\t\tdel(.spec.volumeClaimTemplates[].apiVersion) |\n\t\t\tdel(.spec.volumeClaimTemplates[].kind) |\n\t\t\tdel(.spec.ipFamilies) |\n\t\t\tdel(.spec.ipFamilyPolicy) |\n\t\t\t(.. | select(. == "extensions/v1beta1")) = "apps/v1" |\n\t\t\t(.. | select(. == "batch/v1beta1")) = "batch/v1" ' - + local LAST_OUT=/tmp/tmp.sNi8F5pvPQ ++ mktemp + local LAST_ERR=/tmp/tmp.hR4gXmlwZN + local exit_status=0 + local timeout=4 + local i + args=('get' '-o' 'yaml' 'statefulset/one-pod-rs0') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ get == \- ]] + [[ get =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -o == \- ]] + [[ -o =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ yaml == \- ]] + [[ yaml =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ statefulset/one-pod-rs0 == \- ]] + [[ statefulset/one-pod-rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl get -o yaml statefulset/one-pod-rs0 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.sNi8F5pvPQ + cat /tmp/tmp.hR4gXmlwZN + rm /tmp/tmp.sNi8F5pvPQ /tmp/tmp.hR4gXmlwZN + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.WRJJ8OxYv1/statefulset_one-pod-rs0.yml + arch_scheduling_enabled + [[ -n '' ]] + version_gt 1.22 ++ bc -l ++ echo '1.34 >= 1.22' + '[' 1 -eq 1 ']' + return 0 + yq -i eval 'del(.spec.internalTrafficPolicy)' /tmp/tmp.WRJJ8OxYv1/statefulset_one-pod-rs0.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.WRJJ8OxYv1/statefulset_one-pod-rs0.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/compare/statefulset_one-pod-rs0.yml == */cronjob* ]] + '[' -n '' ']' + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/compare/statefulset_one-pod-rs0.yml /tmp/tmp.WRJJ8OxYv1/statefulset_one-pod-rs0.yml + log 'compare_kubectl: statefulset/one-pod-rs0 OK' + set +o xtrace [2026-11-23T06:54:43+0000] compare_kubectl: statefulset/one-pod-rs0 OK + desc 'write data' + set +o xtrace ----------------------------------------------------------------------------------- write data ----------------------------------------------------------------------------------- + run_mongo 'db.createUser({user: "myApp", pwd: "myPass", roles: [{ db: "myApp", role: "readWrite" }]})' userAdmin:userAdmin123456@one-pod-rs0.one-pod-11615 + local 'command=db.createUser({user: "myApp", pwd: "myPass", roles: [{ db: "myApp", role: "readWrite" }]})' + local uri=userAdmin:userAdmin123456@one-pod-rs0.one-pod-11615 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ userAdmin:userAdmin123456@one-pod-rs0.one-pod-11615 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.iLSNZQ52rK +++ mktemp ++ local LAST_ERR=/tmp/tmp.llp6iE6Fk2 ++ 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.iLSNZQ52rK ++ cat /tmp/tmp.llp6iE6Fk2 ++ rm /tmp/tmp.iLSNZQ52rK /tmp/tmp.llp6iE6Fk2 ++ return 0 + local client_container=psmdb-client-c8847c4cd-68n8w + kubectl_bin exec psmdb-client-c8847c4cd-68n8w -- bash -c 'export HOME=/tmp; printf '\''db.createUser({user: "myApp", pwd: "myPass", roles: [{ db: "myApp", role: "readWrite" }]})\n'\'' | mongo mongodb+srv://userAdmin:userAdmin123456@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.PQtz23f4l3 ++ mktemp + local LAST_ERR=/tmp/tmp.4rKYK6f0n2 + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-68n8w' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''db.createUser({user: "myApp", pwd: "myPass", roles: [{ db: "myApp", role: "readWrite" }]})\n'\'' | mongo mongodb+srv://userAdmin:userAdmin123456@one-pod-rs0.one-pod-11615.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-68n8w == \- ]] + [[ psmdb-client-c8847c4cd-68n8w =~ ^(-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@one-pod-rs0.one-pod-11615.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@one-pod-rs0.one-pod-11615.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-68n8w -- bash -c 'export HOME=/tmp; printf '\''db.createUser({user: "myApp", pwd: "myPass", roles: [{ db: "myApp", role: "readWrite" }]})\n'\'' | mongo mongodb+srv://userAdmin:userAdmin123456@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.PQtz23f4l3 Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://one-pod-rs0-0.one-pod-rs0.one-pod-11615.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("e87b8067-2d80-4ef3-ae66-951fea4f16ce") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match Successfully added user: { "user" : "myApp", "roles" : [ { "db" : "myApp", "role" : "readWrite" } ] } bye + cat /tmp/tmp.4rKYK6f0n2 + rm /tmp/tmp.PQtz23f4l3 /tmp/tmp.4rKYK6f0n2 + return 0 + run_mongo 'use myApp\n db.test.insert({ x: 100500 })' myApp:myPass@one-pod-rs0.one-pod-11615 + local 'command=use myApp\n db.test.insert({ x: 100500 })' + local uri=myApp:myPass@one-pod-rs0.one-pod-11615 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@one-pod-rs0.one-pod-11615 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.HoTQOKD4HK +++ mktemp ++ local LAST_ERR=/tmp/tmp.uksdc4T3Qq ++ 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.HoTQOKD4HK ++ cat /tmp/tmp.uksdc4T3Qq ++ rm /tmp/tmp.HoTQOKD4HK /tmp/tmp.uksdc4T3Qq ++ return 0 + local client_container=psmdb-client-c8847c4cd-68n8w + kubectl_bin exec psmdb-client-c8847c4cd-68n8w -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb+srv://myApp:myPass@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.69Ct469Toq ++ mktemp + local LAST_ERR=/tmp/tmp.Oq2hcaX6ln + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-68n8w' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb+srv://myApp:myPass@one-pod-rs0.one-pod-11615.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-68n8w == \- ]] + [[ psmdb-client-c8847c4cd-68n8w =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'use myApp\n db.test.insert({ x: 100500 })\n' | mongo mongodb+srv://myApp:myPass@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.insert({ x: 100500 })\n' | mongo mongodb+srv://myApp:myPass@one-pod-rs0.one-pod-11615.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-68n8w -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb+srv://myApp:myPass@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.69Ct469Toq Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://one-pod-rs0-0.one-pod-rs0.one-pod-11615.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("0af34469-f9c9-47b6-9db0-9f5a1c5441df") } 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.Oq2hcaX6ln + rm /tmp/tmp.69Ct469Toq /tmp/tmp.Oq2hcaX6ln + return 0 + wait_cluster_consistency one-pod + local cluster_name=one-pod + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster one-pod to be ready' waiting for cluster one-pod to be ready++ kubectl_bin get psmdb one-pod -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.WFRRU01hp8 +++ mktemp ++ local LAST_ERR=/tmp/tmp.HIHhtdDzJg ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.WFRRU01hp8 ++ cat /tmp/tmp.HIHhtdDzJg ++ rm /tmp/tmp.WFRRU01hp8 /tmp/tmp.HIHhtdDzJg ++ return 0 + [[ ready == ready ]] + echo .OK .OK + desc 'check if service and pvc created with expected config' + set +o xtrace ----------------------------------------------------------------------------------- check if service and pvc created with expected config ----------------------------------------------------------------------------------- + compare_kubectl service/one-pod-rs0 + local resource=service/one-pod-rs0 + local postfix= + local skip_generation_check= + local expected_result=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/compare/service_one-pod-rs0.yml + local new_result=/tmp/tmp.WRJJ8OxYv1/service_one-pod-rs0.yml + [[ -n '' ]] + kubectl_bin get -o yaml service/one-pod-rs0 + yq eval $'\n\t\t\tdel(.metadata.ownerReferences[].apiVersion) |\n\t\t\tdel(.metadata.managedFields) |\n\t\t\tdel(.. | select(has("creationTimestamp")).creationTimestamp) |\n\t\t\tdel(.. | select(has("namespace")).namespace) |\n\t\t\tdel(.. | select(has("uid")).uid) |\n\t\t\tdel(.metadata.resourceVersion) |\n\t\t\tdel(.spec.template.spec.containers[].env[] | select(.name == "NAMESPACE")) |\n\t\t\tdel(.metadata.selfLink) |\n\t\t\tdel(.metadata.annotations."cloud.google.com/neg") |\n\t\t\tdel(.metadata.annotations."field.cattle.io/publicEndpoints") |\n\t\t\tdel(.metadata.annotations."metallb.io/ip-allocated-from-pool") |\n\t\t\tdel(.metadata.annotations."networking.gke.io/target-pool") |\n\t\t\tdel(.metadata.annotations."kubectl.kubernetes.io/last-applied-configuration") |\n\t\t\tdel(.. | select(has("image")).image) |\n\t\t\tdel(.. | select(has("clusterIP")).clusterIP) |\n\t\t\tdel(.. | select(has("clusterIPs")).clusterIPs) |\n\t\t\tdel(.. | select(has("dataSource")).dataSource) |\n\t\t\tdel(.. | select(has("procMount")).procMount) |\n\t\t\tdel(.. | select(has("storageClassName")).storageClassName) |\n\t\t\tdel(.. | select(has("finalizers")).finalizers) |\n\t\t\tdel(.. | select(has("kubernetes.io/pvc-protection"))."kubernetes.io/pvc-protection") |\n\t\t\tdel(.. | select(has("volumeName")).volumeName) |\n\t\t\tdel(.. | select(has("volume.beta.kubernetes.io/storage-provisioner"))."volume.beta.kubernetes.io/storage-provisioner") |\n\t\t\tdel(.. | select(has("volume.kubernetes.io/storage-provisioner"))."volume.kubernetes.io/storage-provisioner") |\n\t\t\tdel(.spec.volumeMode) |\n\t\t\tdel(.. | select(has("volume.kubernetes.io/selected-node"))."volume.kubernetes.io/selected-node") |\n\t\t\tdel(.. | select(has("percona.com/last-config-hash"))."percona.com/last-config-hash") |\n\t\t\tdel(.. | select(has("percona.com/configuration-hash"))."percona.com/configuration-hash") |\n\t\t\tdel(.. | select(has("percona.com/ssl-hash"))."percona.com/ssl-hash") |\n\t\t\tdel(.. | select(has("percona.com/ssl-internal-hash"))."percona.com/ssl-internal-hash") |\n\t\t\tdel(.. | select(has("percona.com/pbm-tls-hash"))."percona.com/pbm-tls-hash") |\n\t\t\tdel(.spec.volumeClaimTemplates[].spec.volumeMode | select(. == "Filesystem")) |\n\t\t\tdel(.. | select(has("healthCheckNodePort")).healthCheckNodePort) |\n\t\t\tdel(.. | select(has("nodePort")).nodePort) |\n\t\t\tdel(.status) |\n\t\t\t(.. | select(tag == "!!str")) |= sub("one-pod-11615", "NAME_SPACE") |\n\t\t\tdel(.spec.volumeClaimTemplates[].apiVersion) |\n\t\t\tdel(.spec.volumeClaimTemplates[].kind) |\n\t\t\tdel(.spec.ipFamilies) |\n\t\t\tdel(.spec.ipFamilyPolicy) |\n\t\t\t(.. | select(. == "extensions/v1beta1")) = "apps/v1" |\n\t\t\t(.. | select(. == "batch/v1beta1")) = "batch/v1" ' - ++ mktemp + local LAST_OUT=/tmp/tmp.2thu9yBsm9 ++ mktemp + local LAST_ERR=/tmp/tmp.E2QklnRFNb + local exit_status=0 + local timeout=4 + local i + args=('get' '-o' 'yaml' 'service/one-pod-rs0') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ get == \- ]] + [[ get =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -o == \- ]] + [[ -o =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ yaml == \- ]] + [[ yaml =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ service/one-pod-rs0 == \- ]] + [[ service/one-pod-rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl get -o yaml service/one-pod-rs0 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.2thu9yBsm9 + cat /tmp/tmp.E2QklnRFNb + rm /tmp/tmp.2thu9yBsm9 /tmp/tmp.E2QklnRFNb + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.WRJJ8OxYv1/service_one-pod-rs0.yml + arch_scheduling_enabled + [[ -n '' ]] + version_gt 1.22 ++ echo '1.34 >= 1.22' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + yq -i eval 'del(.spec.internalTrafficPolicy)' /tmp/tmp.WRJJ8OxYv1/service_one-pod-rs0.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.WRJJ8OxYv1/service_one-pod-rs0.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/compare/service_one-pod-rs0.yml == */cronjob* ]] + '[' -n '' ']' + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/compare/service_one-pod-rs0.yml /tmp/tmp.WRJJ8OxYv1/service_one-pod-rs0.yml + log 'compare_kubectl: service/one-pod-rs0 OK' + set +o xtrace [2026-11-23T06:54:57+0000] compare_kubectl: service/one-pod-rs0 OK + compare_kubectl pvc/mongod-data-one-pod-rs0-0 + local resource=pvc/mongod-data-one-pod-rs0-0 + local postfix= + local skip_generation_check= + local expected_result=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/compare/pvc_mongod-data-one-pod-rs0-0.yml + local new_result=/tmp/tmp.WRJJ8OxYv1/pvc_mongod-data-one-pod-rs0-0.yml + [[ -n '' ]] + kubectl_bin get -o yaml pvc/mongod-data-one-pod-rs0-0 + yq eval $'\n\t\t\tdel(.metadata.ownerReferences[].apiVersion) |\n\t\t\tdel(.metadata.managedFields) |\n\t\t\tdel(.. | select(has("creationTimestamp")).creationTimestamp) |\n\t\t\tdel(.. | select(has("namespace")).namespace) |\n\t\t\tdel(.. | select(has("uid")).uid) |\n\t\t\tdel(.metadata.resourceVersion) |\n\t\t\tdel(.spec.template.spec.containers[].env[] | select(.name == "NAMESPACE")) |\n\t\t\tdel(.metadata.selfLink) |\n\t\t\tdel(.metadata.annotations."cloud.google.com/neg") |\n\t\t\tdel(.metadata.annotations."field.cattle.io/publicEndpoints") |\n\t\t\tdel(.metadata.annotations."metallb.io/ip-allocated-from-pool") |\n\t\t\tdel(.metadata.annotations."networking.gke.io/target-pool") |\n\t\t\tdel(.metadata.annotations."kubectl.kubernetes.io/last-applied-configuration") |\n\t\t\tdel(.. | select(has("image")).image) |\n\t\t\tdel(.. | select(has("clusterIP")).clusterIP) |\n\t\t\tdel(.. | select(has("clusterIPs")).clusterIPs) |\n\t\t\tdel(.. | select(has("dataSource")).dataSource) |\n\t\t\tdel(.. | select(has("procMount")).procMount) |\n\t\t\tdel(.. | select(has("storageClassName")).storageClassName) |\n\t\t\tdel(.. | select(has("finalizers")).finalizers) |\n\t\t\tdel(.. | select(has("kubernetes.io/pvc-protection"))."kubernetes.io/pvc-protection") |\n\t\t\tdel(.. | select(has("volumeName")).volumeName) |\n\t\t\tdel(.. | select(has("volume.beta.kubernetes.io/storage-provisioner"))."volume.beta.kubernetes.io/storage-provisioner") |\n\t\t\tdel(.. | select(has("volume.kubernetes.io/storage-provisioner"))."volume.kubernetes.io/storage-provisioner") |\n\t\t\tdel(.spec.volumeMode) |\n\t\t\tdel(.. | select(has("volume.kubernetes.io/selected-node"))."volume.kubernetes.io/selected-node") |\n\t\t\tdel(.. | select(has("percona.com/last-config-hash"))."percona.com/last-config-hash") |\n\t\t\tdel(.. | select(has("percona.com/configuration-hash"))."percona.com/configuration-hash") |\n\t\t\tdel(.. | select(has("percona.com/ssl-hash"))."percona.com/ssl-hash") |\n\t\t\tdel(.. | select(has("percona.com/ssl-internal-hash"))."percona.com/ssl-internal-hash") |\n\t\t\tdel(.. | select(has("percona.com/pbm-tls-hash"))."percona.com/pbm-tls-hash") |\n\t\t\tdel(.spec.volumeClaimTemplates[].spec.volumeMode | select(. == "Filesystem")) |\n\t\t\tdel(.. | select(has("healthCheckNodePort")).healthCheckNodePort) |\n\t\t\tdel(.. | select(has("nodePort")).nodePort) |\n\t\t\tdel(.status) |\n\t\t\t(.. | select(tag == "!!str")) |= sub("one-pod-11615", "NAME_SPACE") |\n\t\t\tdel(.spec.volumeClaimTemplates[].apiVersion) |\n\t\t\tdel(.spec.volumeClaimTemplates[].kind) |\n\t\t\tdel(.spec.ipFamilies) |\n\t\t\tdel(.spec.ipFamilyPolicy) |\n\t\t\t(.. | select(. == "extensions/v1beta1")) = "apps/v1" |\n\t\t\t(.. | select(. == "batch/v1beta1")) = "batch/v1" ' - ++ mktemp + local LAST_OUT=/tmp/tmp.XhRBk7zHhD ++ mktemp + local LAST_ERR=/tmp/tmp.ClRGrhUmkn + local exit_status=0 + local timeout=4 + local i + args=('get' '-o' 'yaml' 'pvc/mongod-data-one-pod-rs0-0') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ get == \- ]] + [[ get =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -o == \- ]] + [[ -o =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ yaml == \- ]] + [[ yaml =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ pvc/mongod-data-one-pod-rs0-0 == \- ]] + [[ pvc/mongod-data-one-pod-rs0-0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl get -o yaml pvc/mongod-data-one-pod-rs0-0 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.XhRBk7zHhD + cat /tmp/tmp.ClRGrhUmkn + rm /tmp/tmp.XhRBk7zHhD /tmp/tmp.ClRGrhUmkn + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.WRJJ8OxYv1/pvc_mongod-data-one-pod-rs0-0.yml + arch_scheduling_enabled + [[ -n '' ]] + version_gt 1.22 ++ echo '1.34 >= 1.22' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + yq -i eval 'del(.spec.internalTrafficPolicy)' /tmp/tmp.WRJJ8OxYv1/pvc_mongod-data-one-pod-rs0-0.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.WRJJ8OxYv1/pvc_mongod-data-one-pod-rs0-0.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/compare/pvc_mongod-data-one-pod-rs0-0.yml == */cronjob* ]] + '[' -n '' ']' + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/compare/pvc_mongod-data-one-pod-rs0-0.yml /tmp/tmp.WRJJ8OxYv1/pvc_mongod-data-one-pod-rs0-0.yml + log 'compare_kubectl: pvc/mongod-data-one-pod-rs0-0 OK' + set +o xtrace [2026-11-23T06:54:58+0000] compare_kubectl: pvc/mongod-data-one-pod-rs0-0 OK + desc 'check system log' + set +o xtrace ----------------------------------------------------------------------------------- check system log ----------------------------------------------------------------------------------- + run_mongo 'db.serverCmdLineOpts()' clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615 + local 'command=db.serverCmdLineOpts()' + local uri=clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615 == *cfg* ]] + grep -E -v 'I NETWORK|W NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|bye' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' + /usr/sbin/sed -re 's/((Timestamp|BinData|NumberLong)\((.+?\)))/{}/g' + jq .parsed.systemLog +++ mktemp ++ local LAST_OUT=/tmp/tmp.99Mn8JFDAd +++ mktemp ++ local LAST_ERR=/tmp/tmp.1PmcraMKQ7 ++ 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.99Mn8JFDAd ++ cat /tmp/tmp.1PmcraMKQ7 ++ rm /tmp/tmp.99Mn8JFDAd /tmp/tmp.1PmcraMKQ7 ++ return 0 + local client_container=psmdb-client-c8847c4cd-68n8w + kubectl_bin exec psmdb-client-c8847c4cd-68n8w -- bash -c 'export HOME=/tmp; printf '\''db.serverCmdLineOpts()\n'\'' | mongo mongodb+srv://clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.DdirhwFKDU ++ mktemp + local LAST_ERR=/tmp/tmp.3L78z0MJYC + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-68n8w' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''db.serverCmdLineOpts()\n'\'' | mongo mongodb+srv://clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615.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-68n8w == \- ]] + [[ psmdb-client-c8847c4cd-68n8w =~ ^(-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.serverCmdLineOpts()\n' | mongo mongodb+srv://clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'db.serverCmdLineOpts()\n' | mongo mongodb+srv://clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615.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-68n8w -- bash -c 'export HOME=/tmp; printf '\''db.serverCmdLineOpts()\n'\'' | mongo mongodb+srv://clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.DdirhwFKDU + cat /tmp/tmp.3L78z0MJYC + rm /tmp/tmp.DdirhwFKDU /tmp/tmp.3L78z0MJYC + return 0 + diff /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/compare/serverCmdLineOpts_parsed_systemLog.json /tmp/tmp.WRJJ8OxYv1/parsed_systemLog.json + desc 'create secret and check custom config' + set +o xtrace ----------------------------------------------------------------------------------- create secret and check custom config ----------------------------------------------------------------------------------- + apply_mongod_secret one-pod-rs0 /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/mongod-secret.yml + local cluster=one-pod-rs0 + local secret_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/mongod-secret.yml + local uid ++ kubectl_bin get pod one-pod-rs0-0 -o 'jsonpath={.metadata.uid}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.jmSttmc3R0 +++ mktemp ++ local LAST_ERR=/tmp/tmp.EMWvfjJLhQ ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pod' 'one-pod-rs0-0' '-o' 'jsonpath={.metadata.uid}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pod == \- ]] ++ [[ pod =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ one-pod-rs0-0 == \- ]] ++ [[ one-pod-rs0-0 =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.metadata.uid} == \- ]] ++ [[ jsonpath={.metadata.uid} =~ ^(-f|--filename)=-$ ]] ++ 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 pod one-pod-rs0-0 -o 'jsonpath={.metadata.uid}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.jmSttmc3R0 ++ cat /tmp/tmp.EMWvfjJLhQ ++ rm /tmp/tmp.jmSttmc3R0 /tmp/tmp.EMWvfjJLhQ ++ return 0 + uid=13c3bee7-bec7-43a1-8dc3-497fb8d27076 + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/mongod-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.YdQh0Ofn1P ++ mktemp + local LAST_ERR=/tmp/tmp.aJ3Lm7t6fs + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/mongod-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/one-pod/conf/mongod-secret.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/mongod-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/one-pod/conf/mongod-secret.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.YdQh0Ofn1P secret/one-pod-rs0-mongod created + cat /tmp/tmp.aJ3Lm7t6fs + rm /tmp/tmp.YdQh0Ofn1P /tmp/tmp.aJ3Lm7t6fs + return 0 + wait_for_pod_replaced one-pod-rs0-0 13c3bee7-bec7-43a1-8dc3-497fb8d27076 + local pod=one-pod-rs0-0 + local old_uid=13c3bee7-bec7-43a1-8dc3-497fb8d27076 + local retry=0 + echo -n 'waiting for pod one-pod-rs0-0 to be replaced' waiting for pod one-pod-rs0-0 to be replaced++ kubectl_bin get pod one-pod-rs0-0 -o 'jsonpath={.metadata.uid}' + [[ 13c3bee7-bec7-43a1-8dc3-497fb8d27076 != 13c3bee7\-bec7\-43a1\-8dc3\-497fb8d27076 ]] + let retry+=1 + '[' 1 -ge 60 ']' + echo -n . .+ sleep 5 ++ kubectl_bin get pod one-pod-rs0-0 -o 'jsonpath={.metadata.uid}' + [[ 13c3bee7-bec7-43a1-8dc3-497fb8d27076 != 13c3bee7\-bec7\-43a1\-8dc3\-497fb8d27076 ]] + let retry+=1 + '[' 2 -ge 60 ']' + echo -n . .+ sleep 5 ++ kubectl_bin get pod one-pod-rs0-0 -o 'jsonpath={.metadata.uid}' + [[ 13c3bee7-bec7-43a1-8dc3-497fb8d27076 != 13c3bee7\-bec7\-43a1\-8dc3\-497fb8d27076 ]] + let retry+=1 + '[' 3 -ge 60 ']' + echo -n . .+ sleep 5 ++ kubectl_bin get pod one-pod-rs0-0 -o 'jsonpath={.metadata.uid}' + [[ 1545d7b8-410b-4e52-b476-00c64ac2bf15 != 13c3bee7\-bec7\-43a1\-8dc3\-497fb8d27076 ]] + echo .OK .OK + wait_for_running one-pod-rs0 1 + local name=one-pod-rs0 + let last_pod=0 + : + local check_cluster_readiness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=one-pod ++ seq 0 0 + for i in $(seq 0 $last_pod) + [[ 0 -eq 0 ]] ++ kubectl_bin get psmdb one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.UFaO6MToX6 +++ mktemp ++ local LAST_ERR=/tmp/tmp.YulnoK6wjN ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.UFaO6MToX6 ++ cat /tmp/tmp.YulnoK6wjN ++ rm /tmp/tmp.UFaO6MToX6 /tmp/tmp.YulnoK6wjN ++ return 0 + [[ false == true ]] + wait_pod one-pod-rs0-0 + local pod=one-pod-rs0-0 + set +o xtrace waiting for pod/one-pod-rs0-0 to be ready....OK ++ kubectl_bin get psmdb one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.TjwLWqqU1g +++ mktemp ++ local LAST_ERR=/tmp/tmp.zKAs28oMNu ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.TjwLWqqU1g ++ cat /tmp/tmp.zKAs28oMNu ++ rm /tmp/tmp.TjwLWqqU1g /tmp/tmp.zKAs28oMNu ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.mm2Quhki6s +++ mktemp ++ local LAST_ERR=/tmp/tmp.P4453rjJrN ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.mm2Quhki6s ++ cat /tmp/tmp.P4453rjJrN ++ rm /tmp/tmp.mm2Quhki6s /tmp/tmp.P4453rjJrN ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster one-pod to be ready..... + wait_cluster_consistency one-pod + local cluster_name=one-pod + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster one-pod to be ready' waiting for cluster one-pod to be ready++ kubectl_bin get psmdb one-pod -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.E52Y31DuAE +++ mktemp ++ local LAST_ERR=/tmp/tmp.8eS0TLS6zF ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.E52Y31DuAE ++ cat /tmp/tmp.8eS0TLS6zF ++ rm /tmp/tmp.E52Y31DuAE /tmp/tmp.8eS0TLS6zF ++ return 0 + [[ ready == ready ]] + echo .OK .OK + desc 'check if statefulset created with expected config' + set +o xtrace ----------------------------------------------------------------------------------- check if statefulset created with expected config ----------------------------------------------------------------------------------- + compare_kubectl statefulset/one-pod-rs0 -secret + local resource=statefulset/one-pod-rs0 + local postfix=-secret + local skip_generation_check= + local expected_result=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/compare/statefulset_one-pod-rs0-secret.yml + local new_result=/tmp/tmp.WRJJ8OxYv1/statefulset_one-pod-rs0.yml + [[ -n '' ]] + kubectl_bin get -o yaml statefulset/one-pod-rs0 + yq eval $'\n\t\t\tdel(.metadata.ownerReferences[].apiVersion) |\n\t\t\tdel(.metadata.managedFields) |\n\t\t\tdel(.. | select(has("creationTimestamp")).creationTimestamp) |\n\t\t\tdel(.. | select(has("namespace")).namespace) |\n\t\t\tdel(.. | select(has("uid")).uid) |\n\t\t\tdel(.metadata.resourceVersion) |\n\t\t\tdel(.spec.template.spec.containers[].env[] | select(.name == "NAMESPACE")) |\n\t\t\tdel(.metadata.selfLink) |\n\t\t\tdel(.metadata.annotations."cloud.google.com/neg") |\n\t\t\tdel(.metadata.annotations."field.cattle.io/publicEndpoints") |\n\t\t\tdel(.metadata.annotations."metallb.io/ip-allocated-from-pool") |\n\t\t\tdel(.metadata.annotations."networking.gke.io/target-pool") |\n\t\t\tdel(.metadata.annotations."kubectl.kubernetes.io/last-applied-configuration") |\n\t\t\tdel(.. | select(has("image")).image) |\n\t\t\tdel(.. | select(has("clusterIP")).clusterIP) |\n\t\t\tdel(.. | select(has("clusterIPs")).clusterIPs) |\n\t\t\tdel(.. | select(has("dataSource")).dataSource) |\n\t\t\tdel(.. | select(has("procMount")).procMount) |\n\t\t\tdel(.. | select(has("storageClassName")).storageClassName) |\n\t\t\tdel(.. | select(has("finalizers")).finalizers) |\n\t\t\tdel(.. | select(has("kubernetes.io/pvc-protection"))."kubernetes.io/pvc-protection") |\n\t\t\tdel(.. | select(has("volumeName")).volumeName) |\n\t\t\tdel(.. | select(has("volume.beta.kubernetes.io/storage-provisioner"))."volume.beta.kubernetes.io/storage-provisioner") |\n\t\t\tdel(.. | select(has("volume.kubernetes.io/storage-provisioner"))."volume.kubernetes.io/storage-provisioner") |\n\t\t\tdel(.spec.volumeMode) |\n\t\t\tdel(.. | select(has("volume.kubernetes.io/selected-node"))."volume.kubernetes.io/selected-node") |\n\t\t\tdel(.. | select(has("percona.com/last-config-hash"))."percona.com/last-config-hash") |\n\t\t\tdel(.. | select(has("percona.com/configuration-hash"))."percona.com/configuration-hash") |\n\t\t\tdel(.. | select(has("percona.com/ssl-hash"))."percona.com/ssl-hash") |\n\t\t\tdel(.. | select(has("percona.com/ssl-internal-hash"))."percona.com/ssl-internal-hash") |\n\t\t\tdel(.. | select(has("percona.com/pbm-tls-hash"))."percona.com/pbm-tls-hash") |\n\t\t\tdel(.spec.volumeClaimTemplates[].spec.volumeMode | select(. == "Filesystem")) |\n\t\t\tdel(.. | select(has("healthCheckNodePort")).healthCheckNodePort) |\n\t\t\tdel(.. | select(has("nodePort")).nodePort) |\n\t\t\tdel(.status) |\n\t\t\t(.. | select(tag == "!!str")) |= sub("one-pod-11615", "NAME_SPACE") |\n\t\t\tdel(.spec.volumeClaimTemplates[].apiVersion) |\n\t\t\tdel(.spec.volumeClaimTemplates[].kind) |\n\t\t\tdel(.spec.ipFamilies) |\n\t\t\tdel(.spec.ipFamilyPolicy) |\n\t\t\t(.. | select(. == "extensions/v1beta1")) = "apps/v1" |\n\t\t\t(.. | select(. == "batch/v1beta1")) = "batch/v1" ' - ++ mktemp + local LAST_OUT=/tmp/tmp.Xfuv5IlZmu ++ mktemp + local LAST_ERR=/tmp/tmp.J7zarcAqnN + local exit_status=0 + local timeout=4 + local i + args=('get' '-o' 'yaml' 'statefulset/one-pod-rs0') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ get == \- ]] + [[ get =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -o == \- ]] + [[ -o =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ yaml == \- ]] + [[ yaml =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ statefulset/one-pod-rs0 == \- ]] + [[ statefulset/one-pod-rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl get -o yaml statefulset/one-pod-rs0 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Xfuv5IlZmu + cat /tmp/tmp.J7zarcAqnN + rm /tmp/tmp.Xfuv5IlZmu /tmp/tmp.J7zarcAqnN + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.WRJJ8OxYv1/statefulset_one-pod-rs0.yml + arch_scheduling_enabled + [[ -n '' ]] + version_gt 1.22 ++ echo '1.34 >= 1.22' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + yq -i eval 'del(.spec.internalTrafficPolicy)' /tmp/tmp.WRJJ8OxYv1/statefulset_one-pod-rs0.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.WRJJ8OxYv1/statefulset_one-pod-rs0.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/compare/statefulset_one-pod-rs0-secret.yml == */cronjob* ]] + '[' -n '' ']' + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/compare/statefulset_one-pod-rs0-secret.yml /tmp/tmp.WRJJ8OxYv1/statefulset_one-pod-rs0.yml + log 'compare_kubectl: statefulset/one-pod-rs0 OK' + set +o xtrace [2026-11-23T06:56:03+0000] compare_kubectl: statefulset/one-pod-rs0 OK + run_mongo 'db.serverCmdLineOpts()' clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615 + jq .parsed.systemLog + local 'command=db.serverCmdLineOpts()' + local uri=clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615 == *cfg* ]] + grep -E -v 'I NETWORK|W NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|bye' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp + /usr/sbin/sed -re 's/((Timestamp|BinData|NumberLong)\((.+?\)))/{}/g' ++ local LAST_OUT=/tmp/tmp.ht9TzZVra0 +++ mktemp ++ local LAST_ERR=/tmp/tmp.W92RNr3Zwo ++ 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.ht9TzZVra0 ++ cat /tmp/tmp.W92RNr3Zwo ++ rm /tmp/tmp.ht9TzZVra0 /tmp/tmp.W92RNr3Zwo ++ return 0 + local client_container=psmdb-client-c8847c4cd-68n8w + kubectl_bin exec psmdb-client-c8847c4cd-68n8w -- bash -c 'export HOME=/tmp; printf '\''db.serverCmdLineOpts()\n'\'' | mongo mongodb+srv://clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.cGrnDQ4CmP ++ mktemp + local LAST_ERR=/tmp/tmp.LjVgwtnPDs + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-68n8w' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''db.serverCmdLineOpts()\n'\'' | mongo mongodb+srv://clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615.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-68n8w == \- ]] + [[ psmdb-client-c8847c4cd-68n8w =~ ^(-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.serverCmdLineOpts()\n' | mongo mongodb+srv://clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'db.serverCmdLineOpts()\n' | mongo mongodb+srv://clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615.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-68n8w -- bash -c 'export HOME=/tmp; printf '\''db.serverCmdLineOpts()\n'\'' | mongo mongodb+srv://clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.cGrnDQ4CmP + cat /tmp/tmp.LjVgwtnPDs + rm /tmp/tmp.cGrnDQ4CmP /tmp/tmp.LjVgwtnPDs + return 0 + diff /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/compare/serverCmdLineOpts_parsed_systemLog_secret.json /tmp/tmp.WRJJ8OxYv1/parsed_systemLog_secret.json + desc 'create secret and check custom config' + set +o xtrace ----------------------------------------------------------------------------------- create secret and check custom config ----------------------------------------------------------------------------------- + apply_mongod_secret one-pod-rs0 /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/mongod-secret-2.yml + local cluster=one-pod-rs0 + local secret_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/mongod-secret-2.yml + local uid ++ kubectl_bin get pod one-pod-rs0-0 -o 'jsonpath={.metadata.uid}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.PFEunlpHyB +++ mktemp ++ local LAST_ERR=/tmp/tmp.SIHDhtRt6W ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pod' 'one-pod-rs0-0' '-o' 'jsonpath={.metadata.uid}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pod == \- ]] ++ [[ pod =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ one-pod-rs0-0 == \- ]] ++ [[ one-pod-rs0-0 =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.metadata.uid} == \- ]] ++ [[ jsonpath={.metadata.uid} =~ ^(-f|--filename)=-$ ]] ++ 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 pod one-pod-rs0-0 -o 'jsonpath={.metadata.uid}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.PFEunlpHyB ++ cat /tmp/tmp.SIHDhtRt6W ++ rm /tmp/tmp.PFEunlpHyB /tmp/tmp.SIHDhtRt6W ++ return 0 + uid=1545d7b8-410b-4e52-b476-00c64ac2bf15 + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/mongod-secret-2.yml ++ mktemp + local LAST_OUT=/tmp/tmp.lUsDYYOknf ++ mktemp + local LAST_ERR=/tmp/tmp.MNO7KqlV7Z + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/mongod-secret-2.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/one-pod/conf/mongod-secret-2.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/mongod-secret-2.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/one-pod/conf/mongod-secret-2.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.lUsDYYOknf secret/one-pod-rs0-mongod configured + cat /tmp/tmp.MNO7KqlV7Z + rm /tmp/tmp.lUsDYYOknf /tmp/tmp.MNO7KqlV7Z + return 0 + wait_for_pod_replaced one-pod-rs0-0 1545d7b8-410b-4e52-b476-00c64ac2bf15 + local pod=one-pod-rs0-0 + local old_uid=1545d7b8-410b-4e52-b476-00c64ac2bf15 + local retry=0 + echo -n 'waiting for pod one-pod-rs0-0 to be replaced' waiting for pod one-pod-rs0-0 to be replaced++ kubectl_bin get pod one-pod-rs0-0 -o 'jsonpath={.metadata.uid}' + [[ 1545d7b8-410b-4e52-b476-00c64ac2bf15 != 1545d7b8\-410b\-4e52\-b476\-00c64ac2bf15 ]] + let retry+=1 + '[' 1 -ge 60 ']' + echo -n . .+ sleep 5 ++ kubectl_bin get pod one-pod-rs0-0 -o 'jsonpath={.metadata.uid}' + [[ 1545d7b8-410b-4e52-b476-00c64ac2bf15 != 1545d7b8\-410b\-4e52\-b476\-00c64ac2bf15 ]] + let retry+=1 + '[' 2 -ge 60 ']' + echo -n . .+ sleep 5 ++ kubectl_bin get pod one-pod-rs0-0 -o 'jsonpath={.metadata.uid}' + [[ 1545d7b8-410b-4e52-b476-00c64ac2bf15 != 1545d7b8\-410b\-4e52\-b476\-00c64ac2bf15 ]] + let retry+=1 + '[' 3 -ge 60 ']' + echo -n . .+ sleep 5 ++ kubectl_bin get pod one-pod-rs0-0 -o 'jsonpath={.metadata.uid}' + [[ '' != 1545d7b8\-410b\-4e52\-b476\-00c64ac2bf15 ]] + echo .OK .OK + wait_for_running one-pod-rs0 1 + local name=one-pod-rs0 + let last_pod=0 + : + local check_cluster_readiness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=one-pod ++ seq 0 0 + for i in $(seq 0 $last_pod) + [[ 0 -eq 0 ]] ++ kubectl_bin get psmdb one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.rIzAITkT35 +++ mktemp ++ local LAST_ERR=/tmp/tmp.xJQxJHQw9P ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.rIzAITkT35 ++ cat /tmp/tmp.xJQxJHQw9P ++ rm /tmp/tmp.rIzAITkT35 /tmp/tmp.xJQxJHQw9P ++ return 0 + [[ false == true ]] + wait_pod one-pod-rs0-0 + local pod=one-pod-rs0-0 + set +o xtrace waiting for pod/one-pod-rs0-0 to be ready..OK ++ kubectl_bin get psmdb one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.vJF9xFS9lZ +++ mktemp ++ local LAST_ERR=/tmp/tmp.yG95Gln61d ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.vJF9xFS9lZ ++ cat /tmp/tmp.yG95Gln61d ++ rm /tmp/tmp.vJF9xFS9lZ /tmp/tmp.yG95Gln61d ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ppGvdZx4gA +++ mktemp ++ local LAST_ERR=/tmp/tmp.TB3FovC3v0 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.ppGvdZx4gA ++ cat /tmp/tmp.TB3FovC3v0 ++ rm /tmp/tmp.ppGvdZx4gA /tmp/tmp.TB3FovC3v0 ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster one-pod to be ready. + wait_cluster_consistency one-pod + local cluster_name=one-pod + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster one-pod to be ready' waiting for cluster one-pod to be ready++ kubectl_bin get psmdb one-pod -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.u5UAhkGiaE +++ mktemp ++ local LAST_ERR=/tmp/tmp.cKMJHVrmXK ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.u5UAhkGiaE ++ cat /tmp/tmp.cKMJHVrmXK ++ rm /tmp/tmp.u5UAhkGiaE /tmp/tmp.cKMJHVrmXK ++ return 0 + [[ ready == ready ]] + echo .OK .OK + run_mongo 'db.serverCmdLineOpts()' clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615 + grep -E -v 'I NETWORK|W NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|bye' + local 'command=db.serverCmdLineOpts()' + local uri=clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615 == *cfg* ]] + /usr/sbin/sed -re 's/((Timestamp|BinData|NumberLong)\((.+?\)))/{}/g' + jq .parsed.systemLog ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.fEv3O3lHZd +++ mktemp ++ local LAST_ERR=/tmp/tmp.UKbDIZOJMl ++ 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.fEv3O3lHZd ++ cat /tmp/tmp.UKbDIZOJMl ++ rm /tmp/tmp.fEv3O3lHZd /tmp/tmp.UKbDIZOJMl ++ return 0 + local client_container=psmdb-client-c8847c4cd-68n8w + kubectl_bin exec psmdb-client-c8847c4cd-68n8w -- bash -c 'export HOME=/tmp; printf '\''db.serverCmdLineOpts()\n'\'' | mongo mongodb+srv://clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.G5Ks95Q4nI ++ mktemp + local LAST_ERR=/tmp/tmp.HkOJKloDA1 + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-68n8w' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''db.serverCmdLineOpts()\n'\'' | mongo mongodb+srv://clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615.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-68n8w == \- ]] + [[ psmdb-client-c8847c4cd-68n8w =~ ^(-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.serverCmdLineOpts()\n' | mongo mongodb+srv://clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'db.serverCmdLineOpts()\n' | mongo mongodb+srv://clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615.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-68n8w -- bash -c 'export HOME=/tmp; printf '\''db.serverCmdLineOpts()\n'\'' | mongo mongodb+srv://clusterAdmin:clusterAdmin123456@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.G5Ks95Q4nI + cat /tmp/tmp.HkOJKloDA1 + rm /tmp/tmp.G5Ks95Q4nI /tmp/tmp.HkOJKloDA1 + return 0 + diff /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/compare/serverCmdLineOpts_parsed_systemLog_secret-2.json /tmp/tmp.WRJJ8OxYv1/parsed_systemLog_secret-2.json + run_backup local-s3 + local storage=local-s3 + local backup_name=backup-local-s3 + local type=logical + log 'running backup backup-local-s3' + set +o xtrace [2026-11-23T06:56:57+0000] running backup backup-local-s3 + kubectl_bin apply -f - + yq eval $'.metadata.name = "backup-local-s3"\n\t\t\t| .spec.storageName = "local-s3"\n\t\t\t| .spec.type = "logical"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/backup-local-s3.yml ++ mktemp + local LAST_OUT=/tmp/tmp.DHj7jcNehs ++ mktemp + local LAST_ERR=/tmp/tmp.MCKbfjxRZV + 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.nIMcQOwxMt + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.nIMcQOwxMt + 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.nIMcQOwxMt + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.DHj7jcNehs perconaservermongodbbackup.psmdb.percona.com/backup-local-s3 created + cat /tmp/tmp.MCKbfjxRZV + rm /tmp/tmp.DHj7jcNehs /tmp/tmp.MCKbfjxRZV /tmp/tmp.nIMcQOwxMt + return 0 + wait_backup backup-local-s3 + local backup_name=backup-local-s3 + local target_state=ready + set +o xtrace waiting for backup-local-s3 to reach ready state.......OK + run_recovery_check one-pod-rs0 backup-local-s3 + local cluster=one-pod-rs0 + local backup1=backup-local-s3 + desc 'write data after backup' + set +o xtrace ----------------------------------------------------------------------------------- write data after backup ----------------------------------------------------------------------------------- + run_mongo 'use myApp\n db.test.insert({ x: 100501 })' myApp:myPass@one-pod-rs0.one-pod-11615 + local 'command=use myApp\n db.test.insert({ x: 100501 })' + local uri=myApp:myPass@one-pod-rs0.one-pod-11615 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@one-pod-rs0.one-pod-11615 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.6YsMZn8ItQ +++ mktemp ++ local LAST_ERR=/tmp/tmp.V7VWWuwcFh ++ 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.6YsMZn8ItQ ++ cat /tmp/tmp.V7VWWuwcFh ++ rm /tmp/tmp.6YsMZn8ItQ /tmp/tmp.V7VWWuwcFh ++ return 0 + local client_container=psmdb-client-c8847c4cd-68n8w + kubectl_bin exec psmdb-client-c8847c4cd-68n8w -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb+srv://myApp:myPass@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.XEWmdL3wpt ++ mktemp + local LAST_ERR=/tmp/tmp.DyuUjgZU7u + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-68n8w' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb+srv://myApp:myPass@one-pod-rs0.one-pod-11615.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-68n8w == \- ]] + [[ psmdb-client-c8847c4cd-68n8w =~ ^(-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@one-pod-rs0.one-pod-11615.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@one-pod-rs0.one-pod-11615.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-68n8w -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.insert({ x: 100501 })\n'\'' | mongo mongodb+srv://myApp:myPass@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.XEWmdL3wpt Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://one-pod-rs0-0.one-pod-rs0.one-pod-11615.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("d03ff989-4684-4864-b1f1-12364e2ed78a") } 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.DyuUjgZU7u + rm /tmp/tmp.XEWmdL3wpt /tmp/tmp.DyuUjgZU7u + return 0 + desc 'recover backup' + set +o xtrace ----------------------------------------------------------------------------------- recover backup ----------------------------------------------------------------------------------- + compare_mongo_cmd find myApp:myPass@one-pod-rs0.one-pod-11615 -2nd .svc.cluster.local myApp test + local command=find + local uri=myApp:myPass@one-pod-rs0.one-pod-11615 + local postfix=-2nd + local suffix=.svc.cluster.local + 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:14+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@one-pod-rs0.one-pod-11615 mongodb .svc.cluster.local '' '' + 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@one-pod-rs0.one-pod-11615 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@one-pod-rs0.one-pod-11615 == *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.HW5VgUDJIA +++ mktemp ++ local LAST_ERR=/tmp/tmp.RIiEauuqup ++ 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.HW5VgUDJIA ++ cat /tmp/tmp.RIiEauuqup ++ rm /tmp/tmp.HW5VgUDJIA /tmp/tmp.RIiEauuqup ++ return 0 + local client_container=psmdb-client-c8847c4cd-68n8w + kubectl_bin exec psmdb-client-c8847c4cd-68n8w -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.GajbnjaQjL ++ mktemp + local LAST_ERR=/tmp/tmp.XeU19l06Gx + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-68n8w' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@one-pod-rs0.one-pod-11615.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-68n8w == \- ]] + [[ psmdb-client-c8847c4cd-68n8w =~ ^(-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@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@one-pod-rs0.one-pod-11615.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-68n8w -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.GajbnjaQjL + cat /tmp/tmp.XeU19l06Gx + rm /tmp/tmp.GajbnjaQjL /tmp/tmp.XeU19l06Gx + return 0 + compare_mongo_output find -2nd + local command=find + local postfix=-2nd + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/compare/find-2nd.json /tmp/tmp.WRJJ8OxYv1/find-2nd + return + run_restore backup-local-s3 + local backup_name=backup-local-s3 + local restore_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/restore.yml + log 'running restore restore-backup-local-s3' + set +o xtrace [2026-11-23T06:57:16+0000] running restore restore-backup-local-s3 + /usr/sbin/sed -e 's/name:/name: restore-backup-local-s3/' + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/restore.yml + /usr/sbin/sed -e 's/backupName:/backupName: backup-local-s3/' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.yUiSZwdNZK ++ mktemp + local LAST_ERR=/tmp/tmp.IphsemocIJ + 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.QzaJvCvf7Y + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.QzaJvCvf7Y + 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.QzaJvCvf7Y + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.yUiSZwdNZK perconaservermongodbrestore.psmdb.percona.com/restore-backup-local-s3 created + cat /tmp/tmp.IphsemocIJ + rm /tmp/tmp.yUiSZwdNZK /tmp/tmp.IphsemocIJ /tmp/tmp.QzaJvCvf7Y + return 0 + wait_restore backup-local-s3 one-pod + local backup_name=backup-local-s3 + local cluster_name=one-pod + local target_state=ready + local wait_cluster_consistency=1 + local wait_time=1780 + local ok_if_ready=0 + set +o xtrace Waiting for the psmdb-restore/restore-backup-local-s3 object to be created.OK Waiting psmdb-restore/restore-backup-local-s3 to reach state "ready" .OK after 0 minutes + [[ 1 -eq 1 ]] + wait_cluster_consistency one-pod + local cluster_name=one-pod + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster one-pod to be ready' waiting for cluster one-pod to be ready++ kubectl_bin get psmdb one-pod -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.kVDzYg08KA +++ mktemp ++ local LAST_ERR=/tmp/tmp.hocW1L6nRT ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.kVDzYg08KA ++ cat /tmp/tmp.hocW1L6nRT ++ rm /tmp/tmp.kVDzYg08KA /tmp/tmp.hocW1L6nRT ++ return 0 + [[ ready == ready ]] + echo .OK .OK + compare_mongo_cmd find myApp:myPass@one-pod-rs0.one-pod-11615 '' .svc.cluster.local myApp test + local command=find + local uri=myApp:myPass@one-pod-rs0.one-pod-11615 + local postfix= + local suffix=.svc.cluster.local + 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:43+0000] running db.test.find() in myApp + [[ false == true ]] + mongo_command=run_mongo ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo 'use myApp\n db.test.find()' myApp:myPass@one-pod-rs0.one-pod-11615 mongodb .svc.cluster.local '' '' + local 'command=use myApp\n db.test.find()' + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local uri=myApp:myPass@one-pod-rs0.one-pod-11615 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ myApp:myPass@one-pod-rs0.one-pod-11615 == *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.L2XKyOBX4V +++ mktemp ++ local LAST_ERR=/tmp/tmp.jj9MYwNID5 ++ 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.L2XKyOBX4V ++ cat /tmp/tmp.jj9MYwNID5 ++ rm /tmp/tmp.L2XKyOBX4V /tmp/tmp.jj9MYwNID5 ++ return 0 + local client_container=psmdb-client-c8847c4cd-68n8w + kubectl_bin exec psmdb-client-c8847c4cd-68n8w -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.2Otq3eqVhy ++ mktemp + local LAST_ERR=/tmp/tmp.yEERzc05TE + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-68n8w' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@one-pod-rs0.one-pod-11615.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-68n8w == \- ]] + [[ psmdb-client-c8847c4cd-68n8w =~ ^(-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@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@one-pod-rs0.one-pod-11615.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-68n8w -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@one-pod-rs0.one-pod-11615.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.2Otq3eqVhy + cat /tmp/tmp.yEERzc05TE + rm /tmp/tmp.2Otq3eqVhy /tmp/tmp.yEERzc05TE + 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/one-pod/compare/find.json /tmp/tmp.WRJJ8OxYv1/find + return + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/backup-local-s3.yml ++ mktemp + local LAST_OUT=/tmp/tmp.DkTJOKnhLU ++ mktemp + local LAST_ERR=/tmp/tmp.1MR57XaVwV + local exit_status=0 + local timeout=4 + local i + args=('delete' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/backup-local-s3.yml') + 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/e2e-tests/one-pod/conf/backup-local-s3.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/backup-local-s3.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 delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/one-pod/conf/backup-local-s3.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.DkTJOKnhLU perconaservermongodbbackup.psmdb.percona.com "backup-local-s3" deleted from one-pod-11615 namespace + cat /tmp/tmp.1MR57XaVwV + rm /tmp/tmp.DkTJOKnhLU /tmp/tmp.1MR57XaVwV + return 0 + wait_for_running one-pod-rs0 1 + local name=one-pod-rs0 + let last_pod=0 + : + local check_cluster_readiness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=one-pod ++ seq 0 0 + for i in $(seq 0 $last_pod) + [[ 0 -eq 0 ]] ++ kubectl_bin get psmdb one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ChtsxNhEgO +++ mktemp ++ local LAST_ERR=/tmp/tmp.w507Umi6ku ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.ChtsxNhEgO ++ cat /tmp/tmp.w507Umi6ku ++ rm /tmp/tmp.ChtsxNhEgO /tmp/tmp.w507Umi6ku ++ return 0 + [[ false == true ]] + wait_pod one-pod-rs0-0 + local pod=one-pod-rs0-0 + set +o xtrace waiting for pod/one-pod-rs0-0 to be ready.OK ++ kubectl_bin get psmdb one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.rEkvDPVVdj +++ mktemp ++ local LAST_ERR=/tmp/tmp.Pp5ORGFYL0 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.rEkvDPVVdj ++ cat /tmp/tmp.Pp5ORGFYL0 ++ rm /tmp/tmp.rEkvDPVVdj /tmp/tmp.Pp5ORGFYL0 ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ieTLtlUgEJ +++ mktemp ++ local LAST_ERR=/tmp/tmp.c1l00kdeQZ ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.ieTLtlUgEJ ++ cat /tmp/tmp.c1l00kdeQZ ++ rm /tmp/tmp.ieTLtlUgEJ /tmp/tmp.c1l00kdeQZ ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster one-pod to be ready + wait_cluster_consistency one-pod + local cluster_name=one-pod + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster one-pod to be ready' waiting for cluster one-pod to be ready++ kubectl_bin get psmdb one-pod -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.X5YBzG8NGB +++ mktemp ++ local LAST_ERR=/tmp/tmp.H3CfZT9chO ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'one-pod' '-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[@]}" ++ [[ one-pod == \- ]] ++ [[ one-pod =~ ^(-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 one-pod -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.X5YBzG8NGB ++ cat /tmp/tmp.H3CfZT9chO ++ rm /tmp/tmp.X5YBzG8NGB /tmp/tmp.H3CfZT9chO ++ return 0 + [[ ready == ready ]] + echo .OK .OK + destroy one-pod-11615 + local namespace=one-pod-11615 + local ignore_logs=true + [[ 1 == 1 ]] + echo 'SKIP_DELETE=1, not destroying one-pod-11615' SKIP_DELETE=1, not destroying one-pod-11615 + return + desc 'test passed' + set +o xtrace ----------------------------------------------------------------------------------- test passed ----------------------------------------------------------------------------------- ==================================================================================================== [PASSED] e2e-tests/test_pytest_wrapper.py::test_bash_wrapper ==================================================================================================== [06:58:10.461755] INFO Deleting cert-manager [06:58:27.560776] INFO Cleaning up test environment ------------------------------------------------ generated xml file: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/reports/one-pod.xml ------------------------------------------------- ------------------------------------------- Generated html report: file:///mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/reports/one-pod.html ------------------------------------------- ==================================================================================== 1 passed in 526.66s (0:08:46) =====================================================================================