++ echo 'Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/logs/serviceless-external-nodes.log' Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/logs/serviceless-external-nodes.log ++ '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/conf/cloud-secret.yml ']' ++ SKIP_BACKUPS_TO_AWS_GCP_AZURE= ++ oc get projects ++ kubectl get nodes ++ grep '^minikube' +++ jq -r .serverVersion.gitVersion +++ kubectl version -o json +++ grep -eks- Warning: version difference between client (1.36) and server (1.33) exceeds the supported minor version skew of +/-1 ++ '[' ']' ++ EKS=0 +++ kubectl version -o json +++ jq -r .serverVersion.gitVersion +++ grep gke Warning: version difference between client (1.36) and server (1.33) exceeds the supported minor version skew of +/-1 ++ '[' v1.33.11-gke.1074000 ']' ++ GKE=1 +++ kubectl version -o json +++ jq -r '.serverVersion.major + "." + .serverVersion.minor' +++ /usr/sbin/sed -r 's/[^0-9.]+//g' Warning: version difference between client (1.36) and server (1.33) exceeds the supported minor version skew of +/-1 ++ KUBE_VERSION=1.33 ++ get_mongod_ver_from_image docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 ++ local image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 +++ run_simple_cli_inside_image docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 'mongod --version' +++ /usr/sbin/sed -r 's/^.*db version v(([0-9]+\.){2}[0-9]+-[0-9]+).*$/\1/g' +++ local image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 +++ local 'cli=mongod --version' +++ local pod_name=566 +++ kubectl_bin -n default run 566 --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 --restart=Never --command -- sleep infinity ++++ mktemp +++ local LAST_OUT=/tmp/tmp.tiCK6m1xUn ++++ mktemp +++ local LAST_ERR=/tmp/tmp.MHxd6m7lde +++ local exit_status=0 +++ local timeout=4 ++++ seq 0 2 +++ for i in $(seq 0 2) +++ set +e +++ kubectl -n default run 566 --image=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 --restart=Never --command -- sleep infinity +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 -a -n 1 ']' +++ break +++ cat /tmp/tmp.tiCK6m1xUn +++ cat /tmp/tmp.MHxd6m7lde +++ rm /tmp/tmp.tiCK6m1xUn /tmp/tmp.MHxd6m7lde +++ return 0 +++ kubectl_bin -n default wait --for=condition=Ready pod/566 ++++ mktemp +++ local LAST_OUT=/tmp/tmp.9AL3AqQgOD ++++ mktemp +++ local LAST_ERR=/tmp/tmp.brgKWB7k60 +++ local exit_status=0 +++ local timeout=4 ++++ seq 0 2 +++ for i in $(seq 0 2) +++ set +e +++ kubectl -n default wait --for=condition=Ready pod/566 +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 -a -n 1 ']' +++ break +++ cat /tmp/tmp.9AL3AqQgOD +++ cat /tmp/tmp.brgKWB7k60 +++ rm /tmp/tmp.9AL3AqQgOD /tmp/tmp.brgKWB7k60 +++ return 0 ++++ kubectl_bin -n default exec 566 -- bash -c 'mongod --version 2>&1' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.KmOmKFRZtS +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.Me13kzTp8D ++++ local exit_status=0 ++++ local timeout=4 +++++ seq 0 2 ++++ for i in $(seq 0 2) ++++ set +e ++++ kubectl -n default exec 566 -- bash -c 'mongod --version 2>&1' ++++ exit_status=0 ++++ set -e ++++ '[' 0 '!=' 0 -a -n 1 ']' ++++ break ++++ cat /tmp/tmp.KmOmKFRZtS ++++ cat /tmp/tmp.Me13kzTp8D ++++ rm /tmp/tmp.KmOmKFRZtS /tmp/tmp.Me13kzTp8D ++++ return 0 +++ local $'output=db version v8.0.23-10\nBuild Info: {\n "version": "8.0.23-10",\n "gitVersion": "10286e6c2a0ccd5d65c0b324c6fe29e5412db449",\n "openSSLVersion": "OpenSSL 3.5.5 27 Jan 2026",\n "modules": [],\n "perconaFeatures": [\n "MemoryEngine",\n "HotBackup",\n "BackupCursorAggregationStage",\n "BackupCursorExtendAggregationStage",\n "AWSIAM",\n "Kerberos",\n "LDAP",\n "OIDC",\n "TDE",\n "FIPSMode",\n "FCBIS",\n "Auditing",\n "ProfilingRateLimit",\n "LogRedaction",\n "ngram"\n ],\n "allocator": "tcmalloc-google",\n "environment": {\n "distarch": "x86_64",\n "target_arch": "x86_64"\n }\n}' +++ kubectl_bin -n default delete pod/566 --grace-period=0 --force ++++ mktemp +++ local LAST_OUT=/tmp/tmp.j1Js3c5kgD ++++ mktemp +++ local LAST_ERR=/tmp/tmp.FSKTi9Jxc1 +++ local exit_status=0 +++ local timeout=4 ++++ seq 0 2 +++ for i in $(seq 0 2) +++ set +e +++ kubectl -n default delete pod/566 --grace-period=0 --force +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 -a -n 1 ']' +++ break +++ cat /tmp/tmp.j1Js3c5kgD +++ cat /tmp/tmp.FSKTi9Jxc1 Warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. +++ rm /tmp/tmp.j1Js3c5kgD /tmp/tmp.FSKTi9Jxc1 +++ return 0 +++ echo db version v8.0.23-10 Build Info: '{' '"version":' '"8.0.23-10",' '"gitVersion":' '"10286e6c2a0ccd5d65c0b324c6fe29e5412db449",' '"openSSLVersion":' '"OpenSSL' 3.5.5 27 Jan '2026",' '"modules":' '[],' '"perconaFeatures":' '[' '"MemoryEngine",' '"HotBackup",' '"BackupCursorAggregationStage",' '"BackupCursorExtendAggregationStage",' '"AWSIAM",' '"Kerberos",' '"LDAP",' '"OIDC",' '"TDE",' '"FIPSMode",' '"FCBIS",' '"Auditing",' '"ProfilingRateLimit",' '"LogRedaction",' '"ngram"' '],' '"allocator":' '"tcmalloc-google",' '"environment":' '{' '"distarch":' '"x86_64",' '"target_arch":' '"x86_64"' '}' '}' ++ version_info=8.0.23-10 ++ [[ ! 8.0.23-10 =~ ^([0-9]+\.){2}[0-9]+-[0-9]+$ ]] ++ echo 8.0.23-10 + FULL_VER=8.0.23-10 + MONGO_VER=8.0 + unset OPERATOR_NS + desc 'Create main cluster' + set +o xtrace ----------------------------------------------------------------------------------- Create main cluster ----------------------------------------------------------------------------------- + create_infra serviceless-external-nodes-17137 + local ns=serviceless-external-nodes-17137 + echo serviceless-external-nodes-17137 + [[ 0 == 1 ]] + '[' -n '' ']' + create_namespace serviceless-external-nodes-17137 + local namespace=serviceless-external-nodes-17137 + 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}' ++ awk '{print $1}' ++ grep chaos-mesh.org ++ kubectl get crd + 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 ----------------------------------------------------------------------------------- + kubectl_bin get ns + grep -E -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + awk '{print$1}' ++ mktemp + local LAST_OUT=/tmp/tmp.SrCH9G7jUg + xargs kubectl delete ns ++ mktemp + '[' -n '' ']' + desc 'cleaned up old namespaces serviceless-external-nodes-17137' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces serviceless-external-nodes-17137 ----------------------------------------------------------------------------------- + local LAST_ERR=/tmp/tmp.BQZSc8JiyJ + kubectl_bin delete namespace serviceless-external-nodes-17137 --ignore-not-found + local exit_status=0 + local timeout=4 ++ mktemp ++ seq 0 2 + local LAST_OUT=/tmp/tmp.hXl7Raw8Gm ++ mktemp + for i in $(seq 0 2) + set +e + kubectl get ns + local LAST_ERR=/tmp/tmp.6IXh0b2dvs + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete namespace serviceless-external-nodes-17137 --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.SrCH9G7jUg + cat /tmp/tmp.BQZSc8JiyJ + rm /tmp/tmp.SrCH9G7jUg /tmp/tmp.BQZSc8JiyJ + return 0 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.hXl7Raw8Gm + cat /tmp/tmp.6IXh0b2dvs + rm /tmp/tmp.hXl7Raw8Gm /tmp/tmp.6IXh0b2dvs + return 0 + kubectl_bin wait --for=delete namespace serviceless-external-nodes-17137 ++ mktemp + local LAST_OUT=/tmp/tmp.Fvi8jN6ICP ++ mktemp + local LAST_ERR=/tmp/tmp.DaktjXJb1H + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete namespace serviceless-external-nodes-17137 namespace "replset-remapping-sharded-2427" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Fvi8jN6ICP + cat /tmp/tmp.DaktjXJb1H + rm /tmp/tmp.Fvi8jN6ICP /tmp/tmp.DaktjXJb1H + return 0 + desc 'create namespace serviceless-external-nodes-17137' + set +o xtrace ----------------------------------------------------------------------------------- create namespace serviceless-external-nodes-17137 ----------------------------------------------------------------------------------- + kubectl_bin create namespace serviceless-external-nodes-17137 ++ mktemp + local LAST_OUT=/tmp/tmp.PD4sLthpac ++ mktemp + local LAST_ERR=/tmp/tmp.oDaC7DNSVP + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl create namespace serviceless-external-nodes-17137 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.PD4sLthpac namespace/serviceless-external-nodes-17137 created + cat /tmp/tmp.oDaC7DNSVP + rm /tmp/tmp.PD4sLthpac /tmp/tmp.oDaC7DNSVP + return 0 + set_kube_ctx serviceless-external-nodes-17137 + local namespace=serviceless-external-nodes-17137 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.PO0r5X6h6Z +++ mktemp ++ local LAST_ERR=/tmp/tmp.cjgrE7Rlh0 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.PO0r5X6h6Z ++ cat /tmp/tmp.cjgrE7Rlh0 ++ rm /tmp/tmp.PO0r5X6h6Z /tmp/tmp.cjgrE7Rlh0 ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2058-fb8cc7187-17-cluster13 --namespace=serviceless-external-nodes-17137 ++ mktemp + local LAST_OUT=/tmp/tmp.DYWrjE9CVn ++ mktemp + local LAST_ERR=/tmp/tmp.6Qn1HzW20O + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2058-fb8cc7187-17-cluster13 --namespace=serviceless-external-nodes-17137 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.DYWrjE9CVn Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2058-fb8cc7187-17-cluster13" modified. + cat /tmp/tmp.6Qn1HzW20O + rm /tmp/tmp.DYWrjE9CVn /tmp/tmp.6Qn1HzW20O + return 0 + deploy_operator + desc 'start PSMDB operator: docker.io/perconalab/percona-server-mongodb-operator:PR-2058-fb8cc7187' + set +o xtrace ----------------------------------------------------------------------------------- start PSMDB operator: docker.io/perconalab/percona-server-mongodb-operator:PR-2058-fb8cc7187 ----------------------------------------------------------------------------------- + local cr_file + '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.Ht01xSOtpW ++ mktemp + local LAST_ERR=/tmp/tmp.YkpIqe2PQx + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Ht01xSOtpW customresourcedefinition.apiextensions.k8s.io/perconaservermongodbbackups.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.YkpIqe2PQx + rm /tmp/tmp.Ht01xSOtpW /tmp/tmp.YkpIqe2PQx + return 0 + '[' -n '' ']' + apply_rbac rbac + local operator_namespace=psmdb-operator + local rbac=rbac + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/deploy/rbac.yaml + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.C3myd0if66 ++ mktemp + local LAST_ERR=/tmp/tmp.Y2exsz4U6t + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.C3myd0if66 role.rbac.authorization.k8s.io/percona-server-mongodb-operator created serviceaccount/percona-server-mongodb-operator created rolebinding.rbac.authorization.k8s.io/service-account-percona-server-mongodb-operator created + cat /tmp/tmp.Y2exsz4U6t + rm /tmp/tmp.C3myd0if66 /tmp/tmp.Y2exsz4U6t + return 0 + yq eval $'\n\t\t\t(.spec.template.spec.containers[].image = "docker.io/perconalab/percona-server-mongodb-operator:PR-2058-fb8cc7187") |\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-2058/deploy/operator.yaml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.C0J6ey2q4k ++ mktemp + local LAST_ERR=/tmp/tmp.8tYyf3molu + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.C0J6ey2q4k deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.8tYyf3molu + rm /tmp/tmp.C0J6ey2q4k /tmp/tmp.8tYyf3molu + return 0 + sleep 20 ++ get_operator_pod ++ kubectl_bin get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.FquiNjJxF9 +++ mktemp ++ local LAST_ERR=/tmp/tmp.iIY19U9zWN ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.FquiNjJxF9 ++ cat /tmp/tmp.iIY19U9zWN ++ rm /tmp/tmp.FquiNjJxF9 /tmp/tmp.iIY19U9zWN ++ return 0 + wait_operator_pod percona-server-mongodb-operator-7b4b8bdd9d-nz6m6 + local pod=percona-server-mongodb-operator-7b4b8bdd9d-nz6m6 + set +o xtrace waiting for pod/percona-server-mongodb-operator-7b4b8bdd9d-nz6m6 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}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ZmklAiCd9T +++ mktemp ++ local LAST_ERR=/tmp/tmp.gnAl5rMLth ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.ZmklAiCd9T ++ cat /tmp/tmp.gnAl5rMLth ++ rm /tmp/tmp.ZmklAiCd9T /tmp/tmp.gnAl5rMLth ++ return 0 + kubectl_bin logs percona-server-mongodb-operator-7b4b8bdd9d-nz6m6 ++ mktemp + local LAST_OUT=/tmp/tmp.VefRQpnuhs ++ mktemp + local LAST_ERR=/tmp/tmp.OypfEHyltP + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl logs percona-server-mongodb-operator-7b4b8bdd9d-nz6m6 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.VefRQpnuhs + cat /tmp/tmp.OypfEHyltP + rm /tmp/tmp.VefRQpnuhs /tmp/tmp.OypfEHyltP + return 0 2026-06-09T10:44:26.564Z INFO setup Manager starting up {"gitCommit": "fb8cc718776dc8f9e011cd5f23fe48cf7f65143e", "gitBranch": "PR-2058-fb8cc7187", "buildTime": "", "goVersion": "go1.26.4", "os": "linux", "arch": "amd64"} + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/conf/secrets.yml ++ mktemp + local LAST_OUT=/tmp/tmp.LCXlZISZVe ++ mktemp + local LAST_ERR=/tmp/tmp.wLmuFi4o0q + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/conf/secrets.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.LCXlZISZVe deployment.apps/psmdb-client created secret/mydb-custom-users created secret/mydb-custom-encryption-key created secret/mydb-custom-ssl created secret/mydb-custom-ssl-internal created secret/mydb-custom-mongodb-keyfile created + cat /tmp/tmp.wLmuFi4o0q + rm /tmp/tmp.LCXlZISZVe /tmp/tmp.wLmuFi4o0q + return 0 + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/conf/main.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/conf/main.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/conf/main.yml + yq eval '(.spec | select(.image == null)).image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0"' + yq eval '(.spec | select(has("pmm"))).pmm.image = "docker.io/percona/pmm-client:2.44.1-1"' ++ mktemp + yq eval '(.spec | select(has("initImage"))).initImage = "docker.io/perconalab/percona-server-mongodb-operator:PR-2058-fb8cc7187"' + yq eval '(.spec | select(has("backup"))).backup.image = "docker.io/perconalab/percona-server-mongodb-operator:main-backup"' + /usr/sbin/sed -e s/NAME_SPACE/serviceless-external-nodes-17137/g + local LAST_OUT=/tmp/tmp.xwQpfuKIQD + yq eval '.spec.upgradeOptions.apply="Never"' ++ mktemp + local LAST_ERR=/tmp/tmp.6Ee8sS4l1e + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.xwQpfuKIQD perconaservermongodb.psmdb.percona.com/mydb created + cat /tmp/tmp.6Ee8sS4l1e + rm /tmp/tmp.xwQpfuKIQD /tmp/tmp.6Ee8sS4l1e + return 0 + wait_for_running mydb-rs0 1 + local name=mydb-rs0 + let last_pod=0 + : + local check_cluster_readyness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=mydb ++ seq 0 0 + for i in $(seq 0 $last_pod) + [[ 0 -eq 0 ]] ++ kubectl_bin get psmdb mydb -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.S8jep8SA7c +++ mktemp ++ local LAST_ERR=/tmp/tmp.DfEd2LeKS8 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb mydb -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.S8jep8SA7c ++ cat /tmp/tmp.DfEd2LeKS8 ++ rm /tmp/tmp.S8jep8SA7c /tmp/tmp.DfEd2LeKS8 ++ return 0 + [[ false == true ]] + wait_pod mydb-rs0-0 + local pod=mydb-rs0-0 + set +o xtrace waiting for pod/mydb-rs0-0 to be ready..................OK ++ kubectl_bin get psmdb mydb -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.l4HF65fVv8 +++ mktemp ++ local LAST_ERR=/tmp/tmp.UxOMIe4Nm6 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb mydb -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.l4HF65fVv8 ++ cat /tmp/tmp.UxOMIe4Nm6 ++ rm /tmp/tmp.l4HF65fVv8 /tmp/tmp.UxOMIe4Nm6 ++ return 0 + [[ false == true ]] ++ kubectl_bin get psmdb mydb -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.WkiHSHWoNB +++ mktemp ++ local LAST_ERR=/tmp/tmp.O80SKjgFUP ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb mydb -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.WkiHSHWoNB ++ cat /tmp/tmp.O80SKjgFUP ++ rm /tmp/tmp.WkiHSHWoNB /tmp/tmp.O80SKjgFUP ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster readyness..................................... + compare_kubectl statefulset/mydb-rs0 + local resource=statefulset/mydb-rs0 + local postfix= + local skip_generation_check= + local expected_result=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/compare/statefulset_mydb-rs0.yml + local new_result=/tmp/tmp.cydWUEKIEh/statefulset_mydb-rs0.yml + '[' -n '' -a -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/compare/statefulset_mydb-rs0-oc.yml ']' + kubectl_bin get -o yaml statefulset/mydb-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."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(.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("serviceless-external-nodes-17137", "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.Slg22A2FLc ++ mktemp + local LAST_ERR=/tmp/tmp.TGUgliBLXm + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl get -o yaml statefulset/mydb-rs0 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Slg22A2FLc + cat /tmp/tmp.TGUgliBLXm + rm /tmp/tmp.Slg22A2FLc /tmp/tmp.TGUgliBLXm + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.cydWUEKIEh/statefulset_mydb-rs0.yml + version_gt 1.22 ++ echo '1.33 >= 1.22' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + yq -i eval 'del(.spec.internalTrafficPolicy)' /tmp/tmp.cydWUEKIEh/statefulset_mydb-rs0.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.cydWUEKIEh/statefulset_mydb-rs0.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/compare/statefulset_mydb-rs0.yml == */cronjob* ]] + '[' -n '' ']' + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/compare/statefulset_mydb-rs0.yml /tmp/tmp.cydWUEKIEh/statefulset_mydb-rs0.yml + log 'compare_kubectl: statefulset/mydb-rs0 OK' + set +o xtrace [2026-06-09T10:47:03+0000] compare_kubectl: statefulset/mydb-rs0 OK ++ kubectl_bin get secret -o json ++ jq --arg pattern mydb '[.items[] | select(.metadata.name | test($pattern))] | length' +++ mktemp ++ local LAST_OUT=/tmp/tmp.426v8gV10F +++ mktemp ++ local LAST_ERR=/tmp/tmp.Ru6B3UI37h ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get secret -o json ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.426v8gV10F ++ cat /tmp/tmp.Ru6B3UI37h ++ rm /tmp/tmp.426v8gV10F /tmp/tmp.Ru6B3UI37h ++ return 0 + secrets_count=6 + [[ 6 != 6 ]] + desc 'Start External Cluster in unmanaged mode' + set +o xtrace ----------------------------------------------------------------------------------- Start External Cluster in unmanaged mode ----------------------------------------------------------------------------------- ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.kAhe6I4HHz +++ mktemp ++ local LAST_ERR=/tmp/tmp.gIJPyoIr35 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.kAhe6I4HHz ++ cat /tmp/tmp.gIJPyoIr35 ++ rm /tmp/tmp.kAhe6I4HHz /tmp/tmp.gIJPyoIr35 ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2058-fb8cc7187-17-cluster13 --namespace=serviceless-external-nodes-replica-6703 ++ mktemp + local LAST_OUT=/tmp/tmp.epONw1R3Sd ++ mktemp + local LAST_ERR=/tmp/tmp.8RXiFcOhI7 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2058-fb8cc7187-17-cluster13 --namespace=serviceless-external-nodes-replica-6703 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.epONw1R3Sd Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2058-fb8cc7187-17-cluster13" modified. + cat /tmp/tmp.8RXiFcOhI7 + rm /tmp/tmp.epONw1R3Sd /tmp/tmp.8RXiFcOhI7 + return 0 + create_namespace serviceless-external-nodes-replica-6703 0 + local namespace=serviceless-external-nodes-replica-6703 + local skip_clean_namespace=0 + [[ 1 == 1 ]] + [[ -z 0 ]] + '[' -n '' ']' + desc 'cleaned up old namespaces serviceless-external-nodes-replica-6703' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces serviceless-external-nodes-replica-6703 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace serviceless-external-nodes-replica-6703 --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.lPUnn7DToA ++ mktemp + local LAST_ERR=/tmp/tmp.7Xh4fGDWEe + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete namespace serviceless-external-nodes-replica-6703 --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.lPUnn7DToA + cat /tmp/tmp.7Xh4fGDWEe + rm /tmp/tmp.lPUnn7DToA /tmp/tmp.7Xh4fGDWEe + return 0 + kubectl_bin wait --for=delete namespace serviceless-external-nodes-replica-6703 ++ mktemp + local LAST_OUT=/tmp/tmp.iAxnmG5RNt ++ mktemp + local LAST_ERR=/tmp/tmp.QGID8SXpev + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete namespace serviceless-external-nodes-replica-6703 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.iAxnmG5RNt + cat /tmp/tmp.QGID8SXpev + rm /tmp/tmp.iAxnmG5RNt /tmp/tmp.QGID8SXpev + return 0 + desc 'create namespace serviceless-external-nodes-replica-6703' + set +o xtrace ----------------------------------------------------------------------------------- create namespace serviceless-external-nodes-replica-6703 ----------------------------------------------------------------------------------- + kubectl_bin create namespace serviceless-external-nodes-replica-6703 ++ mktemp + local LAST_OUT=/tmp/tmp.8mdCDC2p2s ++ mktemp + local LAST_ERR=/tmp/tmp.hJtWbD0jpW + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl create namespace serviceless-external-nodes-replica-6703 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.8mdCDC2p2s namespace/serviceless-external-nodes-replica-6703 created + cat /tmp/tmp.hJtWbD0jpW + rm /tmp/tmp.8mdCDC2p2s /tmp/tmp.hJtWbD0jpW + return 0 + set_kube_ctx serviceless-external-nodes-replica-6703 + local namespace=serviceless-external-nodes-replica-6703 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.GTsmkeOVpB +++ mktemp ++ local LAST_ERR=/tmp/tmp.yAcU3t7kSp ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.GTsmkeOVpB ++ cat /tmp/tmp.yAcU3t7kSp ++ rm /tmp/tmp.GTsmkeOVpB /tmp/tmp.yAcU3t7kSp ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2058-fb8cc7187-17-cluster13 --namespace=serviceless-external-nodes-replica-6703 ++ mktemp + local LAST_OUT=/tmp/tmp.0sqB8TRtPs ++ mktemp + local LAST_ERR=/tmp/tmp.GxmcLLYL9J + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2058-fb8cc7187-17-cluster13 --namespace=serviceless-external-nodes-replica-6703 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.0sqB8TRtPs Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2058-fb8cc7187-17-cluster13" modified. + cat /tmp/tmp.GxmcLLYL9J + rm /tmp/tmp.0sqB8TRtPs /tmp/tmp.GxmcLLYL9J + return 0 + deploy_operator + desc 'start PSMDB operator: docker.io/perconalab/percona-server-mongodb-operator:PR-2058-fb8cc7187' + set +o xtrace ----------------------------------------------------------------------------------- start PSMDB operator: docker.io/perconalab/percona-server-mongodb-operator:PR-2058-fb8cc7187 ----------------------------------------------------------------------------------- + local cr_file + '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.S7KTU9vvp3 ++ mktemp + local LAST_ERR=/tmp/tmp.xjumMjUoqf + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.S7KTU9vvp3 customresourcedefinition.apiextensions.k8s.io/perconaservermongodbbackups.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.xjumMjUoqf + rm /tmp/tmp.S7KTU9vvp3 /tmp/tmp.xjumMjUoqf + return 0 + '[' -n '' ']' + apply_rbac rbac + local operator_namespace=psmdb-operator + local rbac=rbac + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/deploy/rbac.yaml + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.yO0ChLmKmN ++ mktemp + local LAST_ERR=/tmp/tmp.rfbKCD7YIR + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.yO0ChLmKmN role.rbac.authorization.k8s.io/percona-server-mongodb-operator created serviceaccount/percona-server-mongodb-operator created rolebinding.rbac.authorization.k8s.io/service-account-percona-server-mongodb-operator created + cat /tmp/tmp.rfbKCD7YIR + rm /tmp/tmp.yO0ChLmKmN /tmp/tmp.rfbKCD7YIR + return 0 + yq eval $'\n\t\t\t(.spec.template.spec.containers[].image = "docker.io/perconalab/percona-server-mongodb-operator:PR-2058-fb8cc7187") |\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-2058/deploy/operator.yaml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.LeAlljYqgg ++ mktemp + local LAST_ERR=/tmp/tmp.46IlfT8z3O + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.LeAlljYqgg deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.46IlfT8z3O + rm /tmp/tmp.LeAlljYqgg /tmp/tmp.46IlfT8z3O + return 0 + sleep 20 ++ get_operator_pod ++ kubectl_bin get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.E9pmv6KUiq +++ mktemp ++ local LAST_ERR=/tmp/tmp.zJdKPIyxN0 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.E9pmv6KUiq ++ cat /tmp/tmp.zJdKPIyxN0 ++ rm /tmp/tmp.E9pmv6KUiq /tmp/tmp.zJdKPIyxN0 ++ return 0 + wait_operator_pod percona-server-mongodb-operator-7b4b8bdd9d-zfrjq + local pod=percona-server-mongodb-operator-7b4b8bdd9d-zfrjq + set +o xtrace waiting for pod/percona-server-mongodb-operator-7b4b8bdd9d-zfrjq 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}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.WBS7FeQFQz +++ mktemp ++ local LAST_ERR=/tmp/tmp.n8BzLELJGG ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.WBS7FeQFQz ++ cat /tmp/tmp.n8BzLELJGG ++ rm /tmp/tmp.WBS7FeQFQz /tmp/tmp.n8BzLELJGG ++ return 0 + kubectl_bin logs percona-server-mongodb-operator-7b4b8bdd9d-zfrjq ++ mktemp + local LAST_OUT=/tmp/tmp.zt21k4YqGX ++ mktemp + local LAST_ERR=/tmp/tmp.2nKPxqlTfn + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl logs percona-server-mongodb-operator-7b4b8bdd9d-zfrjq + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.zt21k4YqGX + cat /tmp/tmp.2nKPxqlTfn + rm /tmp/tmp.zt21k4YqGX /tmp/tmp.2nKPxqlTfn + return 0 2026-06-09T10:47:17.891Z INFO setup Manager starting up {"gitCommit": "fb8cc718776dc8f9e011cd5f23fe48cf7f65143e", "gitBranch": "PR-2058-fb8cc7187", "buildTime": "", "goVersion": "go1.26.4", "os": "linux", "arch": "amd64"} + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/conf/secrets.yml ++ mktemp + local LAST_OUT=/tmp/tmp.hy3R74KAGO ++ mktemp + local LAST_ERR=/tmp/tmp.WEF58EXmP7 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/conf/secrets.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.hy3R74KAGO deployment.apps/psmdb-client created secret/mydb-custom-users created secret/mydb-custom-encryption-key created secret/mydb-custom-ssl created secret/mydb-custom-ssl-internal created secret/mydb-custom-mongodb-keyfile created + cat /tmp/tmp.WEF58EXmP7 + rm /tmp/tmp.hy3R74KAGO /tmp/tmp.WEF58EXmP7 + return 0 + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/conf/external.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/conf/external.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/conf/external.yml + yq eval '(.spec | select(.image == null)).image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0"' + yq eval '(.spec | select(has("pmm"))).pmm.image = "docker.io/percona/pmm-client:2.44.1-1"' + yq eval '(.spec | select(has("initImage"))).initImage = "docker.io/perconalab/percona-server-mongodb-operator:PR-2058-fb8cc7187"' + yq eval '(.spec | select(has("backup"))).backup.image = "docker.io/perconalab/percona-server-mongodb-operator:main-backup"' + yq eval '.spec.upgradeOptions.apply="Never"' + /usr/sbin/sed -e s/NAME_SPACE/serviceless-external-nodes-17137/g ++ mktemp + local LAST_OUT=/tmp/tmp.dVaA1SciBh ++ mktemp + local LAST_ERR=/tmp/tmp.IvfVsXUy8U + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.dVaA1SciBh perconaservermongodb.psmdb.percona.com/mydb created + cat /tmp/tmp.IvfVsXUy8U + rm /tmp/tmp.dVaA1SciBh /tmp/tmp.IvfVsXUy8U + return 0 + wait_pod mydb-rs0-0 + local pod=mydb-rs0-0 + set +o xtrace waiting for pod/mydb-rs0-0 to be ready..................OK + wait_pod mydb-rs0-1 + local pod=mydb-rs0-1 + set +o xtrace waiting for pod/mydb-rs0-1 to be ready.............OK ++ jq --arg pattern mydb '[.items[] | select(.metadata.name | test($pattern))] | length' ++ kubectl_bin get secret -o json +++ mktemp ++ local LAST_OUT=/tmp/tmp.Pc5hs9l0BK +++ mktemp ++ local LAST_ERR=/tmp/tmp.k3v5RZsy4a ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get secret -o json ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.Pc5hs9l0BK ++ cat /tmp/tmp.k3v5RZsy4a ++ rm /tmp/tmp.Pc5hs9l0BK /tmp/tmp.k3v5RZsy4a ++ return 0 + secrets_count=6 + [[ 6 != 6 ]] ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.99V7GqWqSW +++ mktemp ++ local LAST_ERR=/tmp/tmp.jeSZymnZhT ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.99V7GqWqSW ++ cat /tmp/tmp.jeSZymnZhT ++ rm /tmp/tmp.99V7GqWqSW /tmp/tmp.jeSZymnZhT ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2058-fb8cc7187-17-cluster13 --namespace=serviceless-external-nodes-17137 ++ mktemp + local LAST_OUT=/tmp/tmp.oakKhzK1WX ++ mktemp + local LAST_ERR=/tmp/tmp.sKFfHi1OEv + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2058-fb8cc7187-17-cluster13 --namespace=serviceless-external-nodes-17137 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.oakKhzK1WX Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2058-fb8cc7187-17-cluster13" modified. + cat /tmp/tmp.sKFfHi1OEv + rm /tmp/tmp.oakKhzK1WX /tmp/tmp.sKFfHi1OEv + return 0 + kubectl_bin get psmdb mydb -o yaml ++ mktemp + local LAST_OUT=/tmp/tmp.ruG5OjRKAp ++ mktemp + local LAST_ERR=/tmp/tmp.nHNXCkdWW8 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl get psmdb mydb -o yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ruG5OjRKAp + cat /tmp/tmp.nHNXCkdWW8 + rm /tmp/tmp.ruG5OjRKAp /tmp/tmp.nHNXCkdWW8 + return 0 + /usr/sbin/sed -e 's/- host: mydb-rs0-0.mydb-rs0.external.svc.cluster.local/- host: mydb-rs0-0.mydb-rs0.serviceless-external-nodes-replica-6703.svc.cluster.local/' + cat /tmp/tmp.cydWUEKIEh/psmdb.yaml + /usr/sbin/sed -e 's/- host: mydb-rs0-1.mydb-rs0.external.svc.cluster.local/- host: mydb-rs0-1.mydb-rs0.serviceless-external-nodes-replica-6703.svc.cluster.local/' + kubectl_bin apply -f - + /usr/sbin/sed -e 's/- host: mydb-cfg-0.mydb-cfg.external.svc.cluster.local/- host: mydb-cfg-0.mydb-cfg.serviceless-external-nodes-replica-6703.svc.cluster.local/' ++ mktemp + local LAST_OUT=/tmp/tmp.BogEubXwPw ++ mktemp + local LAST_ERR=/tmp/tmp.XE9qKzfalo + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.BogEubXwPw perconaservermongodb.psmdb.percona.com/mydb configured + cat /tmp/tmp.XE9qKzfalo + rm /tmp/tmp.BogEubXwPw /tmp/tmp.XE9qKzfalo + return 0 + wait_cluster_consistency mydb + local cluster_name=mydb + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster readyness' waiting for cluster readyness++ kubectl_bin get psmdb mydb -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Qja1ITirPL +++ mktemp ++ local LAST_ERR=/tmp/tmp.zpcEnchR4J ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb mydb -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.Qja1ITirPL ++ cat /tmp/tmp.zpcEnchR4J ++ rm /tmp/tmp.Qja1ITirPL /tmp/tmp.zpcEnchR4J ++ return 0 + [[ ready == ready ]] + echo .OK .OK + sleep 30 + run_mongo 'rs.status().members.forEach(function(z){printjson(z.name);printjson(z.stateStr); })' clusterAdmin:clusterAdmin123456@mydb-rs0-0.mydb-rs0.serviceless-external-nodes-17137 mongodb + 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=rs.status().members.forEach(function(z){printjson(z.name);printjson(z.stateStr); })' + local uri=clusterAdmin:clusterAdmin123456@mydb-rs0-0.mydb-rs0.serviceless-external-nodes-17137 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ clusterAdmin:clusterAdmin123456@mydb-rs0-0.mydb-rs0.serviceless-external-nodes-17137 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.6K9Z0iPhKE +++ mktemp ++ local LAST_ERR=/tmp/tmp.hsFItUo9R1 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.6K9Z0iPhKE ++ cat /tmp/tmp.hsFItUo9R1 ++ rm /tmp/tmp.6K9Z0iPhKE /tmp/tmp.hsFItUo9R1 ++ return 0 + local client_container=psmdb-client-bb8b97679-tsqps + kubectl_bin exec psmdb-client-bb8b97679-tsqps -- bash -c 'printf '\''rs.status().members.forEach(function(z){printjson(z.name);printjson(z.stateStr); })\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@mydb-rs0-0.mydb-rs0.serviceless-external-nodes-17137.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.xCfFJDOZx0 ++ mktemp + local LAST_ERR=/tmp/tmp.Sc3K89aTs6 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl exec psmdb-client-bb8b97679-tsqps -- bash -c 'printf '\''rs.status().members.forEach(function(z){printjson(z.name);printjson(z.stateStr); })\n'\'' | mongo mongodb://clusterAdmin:clusterAdmin123456@mydb-rs0-0.mydb-rs0.serviceless-external-nodes-17137.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.xCfFJDOZx0 + cat /tmp/tmp.Sc3K89aTs6 + rm /tmp/tmp.xCfFJDOZx0 /tmp/tmp.Sc3K89aTs6 + return 0 + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/serviceless-external-nodes/compare/rs.txt + /usr/sbin/sed -e s/mydb-rs0-0.mydb-rs0.main.svc.cluster.local:27017/mydb-rs0-0.mydb-rs0.serviceless-external-nodes-17137.svc.cluster.local:27017/ + /usr/sbin/sed -e s/mydb-rs0-0.mydb-rs0.external.svc.cluster.local:27017/mydb-rs0-0.mydb-rs0.serviceless-external-nodes-replica-6703.svc.cluster.local:27017/ + /usr/sbin/sed -e s/mydb-rs0-1.mydb-rs0.external.svc.cluster.local:27017/mydb-rs0-1.mydb-rs0.serviceless-external-nodes-replica-6703.svc.cluster.local:27017/ + diff /tmp/tmp.cydWUEKIEh/rs-expected.txt /tmp/tmp.cydWUEKIEh/rs.txt + kubectl_bin -n serviceless-external-nodes-replica-6703 delete psmdb/mydb ++ mktemp + local LAST_OUT=/tmp/tmp.IySaYIKYcw ++ mktemp + local LAST_ERR=/tmp/tmp.0TgtolBlwD + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl -n serviceless-external-nodes-replica-6703 delete psmdb/mydb + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.IySaYIKYcw perconaservermongodb.psmdb.percona.com "mydb" deleted from serviceless-external-nodes-replica-6703 namespace + cat /tmp/tmp.0TgtolBlwD + rm /tmp/tmp.IySaYIKYcw /tmp/tmp.0TgtolBlwD + return 0 + destroy serviceless-external-nodes-replica-6703 true + local namespace=serviceless-external-nodes-replica-6703 + local ignore_logs=true + [[ 1 == 1 ]] + echo 'SKIP_DELETE=1, not destroying serviceless-external-nodes-replica-6703' SKIP_DELETE=1, not destroying serviceless-external-nodes-replica-6703 + return + destroy serviceless-external-nodes-17137 true + local namespace=serviceless-external-nodes-17137 + local ignore_logs=true + [[ 1 == 1 ]] + echo 'SKIP_DELETE=1, not destroying serviceless-external-nodes-17137' SKIP_DELETE=1, not destroying serviceless-external-nodes-17137 + return + desc 'test passed' + set +o xtrace ----------------------------------------------------------------------------------- test passed -----------------------------------------------------------------------------------