Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/logs/security-context.log Warning: version difference between client (1.36) and server (1.33) exceeds the supported minor version skew of +/-1 Warning: version difference between client (1.36) and server (1.33) exceeds the supported minor version skew of +/-1 Warning: version difference between client (1.36) and server (1.33) exceeds the supported minor version skew of +/-1 + create_infra security-context-26886 + local ns=security-context-26886 + echo security-context-26886 + [[ 0 == 1 ]] + '[' -n psmdb-operator ']' + create_namespace psmdb-operator + local namespace=psmdb-operator + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ grep chaos-mesh ++ kubectl get ValidatingWebhookConfiguration ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ awk '{print $1}' ++ grep validate-auth + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + grep -E -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + kubectl_bin get ns + awk '{print$1}' + '[' -n '' ']' + desc 'cleaned up old namespaces psmdb-operator' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin delete namespace psmdb-operator --ignore-not-found + xargs kubectl delete ns ++ mktemp + local LAST_OUT=/tmp/tmp.GTcm4knlsz ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.hb6woKWdYK + local LAST_ERR=/tmp/tmp.MEFWpA572i + local exit_status=0 + local timeout=4 ++ mktemp ++ seq 0 2 + local LAST_ERR=/tmp/tmp.KAmUigHmWQ + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + for i in $(seq 0 2) + set +e + kubectl get ns + set +e + kubectl delete namespace psmdb-operator --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.hb6woKWdYK + cat /tmp/tmp.KAmUigHmWQ + rm /tmp/tmp.hb6woKWdYK /tmp/tmp.KAmUigHmWQ + return 0 namespace "cert-manager" deleted namespace "non-voting-and-hidden-11532" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.GTcm4knlsz namespace "psmdb-operator" deleted + cat /tmp/tmp.MEFWpA572i + rm /tmp/tmp.GTcm4knlsz /tmp/tmp.MEFWpA572i + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.yQ4mJ7GclD ++ mktemp + local LAST_ERR=/tmp/tmp.0HZb9lep4W + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete namespace psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.yQ4mJ7GclD + cat /tmp/tmp.0HZb9lep4W + rm /tmp/tmp.yQ4mJ7GclD /tmp/tmp.0HZb9lep4W + 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.IYakvXZkQ7 ++ mktemp + local LAST_ERR=/tmp/tmp.F2q8Op8Va1 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl create namespace psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.IYakvXZkQ7 namespace/psmdb-operator created + cat /tmp/tmp.F2q8Op8Va1 + rm /tmp/tmp.IYakvXZkQ7 /tmp/tmp.F2q8Op8Va1 + return 0 + set_kube_ctx psmdb-operator + local namespace=psmdb-operator ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.JmtPEKnFMW +++ mktemp ++ local LAST_ERR=/tmp/tmp.z31tJbg0L6 ++ 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.JmtPEKnFMW ++ cat /tmp/tmp.z31tJbg0L6 ++ rm /tmp/tmp.JmtPEKnFMW /tmp/tmp.z31tJbg0L6 ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2058-fb8cc7187-17-cluster2 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.t77ipMfXtG ++ mktemp + local LAST_ERR=/tmp/tmp.nMxpJ6hYLb + 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-cluster2 --namespace=psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.t77ipMfXtG Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2058-fb8cc7187-17-cluster2" modified. + cat /tmp/tmp.nMxpJ6hYLb + rm /tmp/tmp.t77ipMfXtG /tmp/tmp.nMxpJ6hYLb + 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/security-context/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.VNSz1FRxTG ++ mktemp + local LAST_ERR=/tmp/tmp.zUEmp48t0W + 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.VNSz1FRxTG 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.zUEmp48t0W + rm /tmp/tmp.VNSz1FRxTG /tmp/tmp.zUEmp48t0W + 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-2058/deploy/cw-rbac.yaml + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.XJ2mu1wSvE ++ mktemp + local LAST_ERR=/tmp/tmp.CMaFBQ8orW + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -n psmdb-operator -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.XJ2mu1wSvE clusterrole.rbac.authorization.k8s.io/percona-server-mongodb-operator unchanged serviceaccount/percona-server-mongodb-operator created clusterrolebinding.rbac.authorization.k8s.io/service-account-percona-server-mongodb-operator unchanged + cat /tmp/tmp.CMaFBQ8orW + rm /tmp/tmp.XJ2mu1wSvE /tmp/tmp.CMaFBQ8orW + return 0 + kubectl_bin apply -n psmdb-operator -f - + 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/cw-operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.h2PfLxahNe ++ mktemp + local LAST_ERR=/tmp/tmp.NzbtKd7Wi9 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -n psmdb-operator -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.h2PfLxahNe deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.NzbtKd7Wi9 + rm /tmp/tmp.h2PfLxahNe /tmp/tmp.NzbtKd7Wi9 + 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.V9ElM11AWf +++ mktemp ++ local LAST_ERR=/tmp/tmp.48VcfsADjx ++ 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}' -n psmdb-operator ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.V9ElM11AWf ++ cat /tmp/tmp.48VcfsADjx ++ rm /tmp/tmp.V9ElM11AWf /tmp/tmp.48VcfsADjx ++ return 0 + wait_operator_pod percona-server-mongodb-operator-859f4bc6d7-glmxd + local pod=percona-server-mongodb-operator-859f4bc6d7-glmxd + set +o xtrace waiting for pod/percona-server-mongodb-operator-859f4bc6d7-glmxd 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.fhc00EawMN +++ mktemp ++ local LAST_ERR=/tmp/tmp.52LpT4x4SA ++ 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}' -n psmdb-operator ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.fhc00EawMN ++ cat /tmp/tmp.52LpT4x4SA ++ rm /tmp/tmp.fhc00EawMN /tmp/tmp.52LpT4x4SA ++ return 0 + kubectl_bin logs -n psmdb-operator percona-server-mongodb-operator-859f4bc6d7-glmxd ++ mktemp + local LAST_OUT=/tmp/tmp.94WX9oVKQI ++ mktemp + local LAST_ERR=/tmp/tmp.VQTboSLmm3 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl logs -n psmdb-operator percona-server-mongodb-operator-859f4bc6d7-glmxd + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.94WX9oVKQI + cat /tmp/tmp.VQTboSLmm3 + rm /tmp/tmp.94WX9oVKQI /tmp/tmp.VQTboSLmm3 + return 0 2026-06-09T10:44:34.038Z INFO setup Manager starting up {"gitCommit": "fb8cc718776dc8f9e011cd5f23fe48cf7f65143e", "gitBranch": "PR-2058-fb8cc7187", "buildTime": "", "goVersion": "go1.26.4", "os": "linux", "arch": "amd64"} + create_namespace security-context-26886 + local namespace=security-context-26886 + 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 + : ++ grep validate-auth ++ kubectl get ValidatingWebhookConfiguration ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + kubectl_bin get ns + grep -E -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + awk '{print$1}' + xargs kubectl delete ns + '[' -n '' ']' + desc 'cleaned up old namespaces security-context-26886' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces security-context-26886++ mktemp ----------------------------------------------------------------------------------- + kubectl_bin delete namespace security-context-26886 --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.DJqKZR1J9N ++ mktemp + local LAST_OUT=/tmp/tmp.45LzF5A8G8 ++ mktemp + local LAST_ERR=/tmp/tmp.zUswsTXcog + local exit_status=0 + local timeout=4 ++ seq 0 2 + local LAST_ERR=/tmp/tmp.0zSY8TKX2A + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl get ns + for i in $(seq 0 2) + set +e + kubectl delete namespace security-context-26886 --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.DJqKZR1J9N + cat /tmp/tmp.zUswsTXcog + rm /tmp/tmp.DJqKZR1J9N /tmp/tmp.zUswsTXcog + return 0 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.45LzF5A8G8 + cat /tmp/tmp.0zSY8TKX2A + rm /tmp/tmp.45LzF5A8G8 /tmp/tmp.0zSY8TKX2A + return 0 + kubectl_bin wait --for=delete namespace security-context-26886 ++ mktemp + local LAST_OUT=/tmp/tmp.kpa0FbJH27 ++ mktemp + local LAST_ERR=/tmp/tmp.7aQsoiNG1O + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete namespace security-context-26886 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.kpa0FbJH27 + cat /tmp/tmp.7aQsoiNG1O + rm /tmp/tmp.kpa0FbJH27 /tmp/tmp.7aQsoiNG1O + return 0 + desc 'create namespace security-context-26886' + set +o xtrace ----------------------------------------------------------------------------------- create namespace security-context-26886 ----------------------------------------------------------------------------------- + kubectl_bin create namespace security-context-26886 ++ mktemp + local LAST_OUT=/tmp/tmp.QyvGKjS8u7 ++ mktemp + local LAST_ERR=/tmp/tmp.Hy5Y4qsjCN + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl create namespace security-context-26886 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.QyvGKjS8u7 namespace/security-context-26886 created + cat /tmp/tmp.Hy5Y4qsjCN + rm /tmp/tmp.QyvGKjS8u7 /tmp/tmp.Hy5Y4qsjCN + return 0 + set_kube_ctx security-context-26886 + local namespace=security-context-26886 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.8sah60MvDj +++ mktemp ++ local LAST_ERR=/tmp/tmp.ks6nJj0xmH ++ 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.8sah60MvDj ++ cat /tmp/tmp.ks6nJj0xmH ++ rm /tmp/tmp.8sah60MvDj /tmp/tmp.ks6nJj0xmH ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2058-fb8cc7187-17-cluster2 --namespace=security-context-26886 ++ mktemp + local LAST_OUT=/tmp/tmp.5ptWmFLXJY ++ mktemp + local LAST_ERR=/tmp/tmp.32CnJi9tHg + 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-cluster2 --namespace=security-context-26886 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.5ptWmFLXJY Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2058-fb8cc7187-17-cluster2" modified. + cat /tmp/tmp.32CnJi9tHg + rm /tmp/tmp.5ptWmFLXJY /tmp/tmp.32CnJi9tHg + 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-2058/e2e-tests/conf/secrets.yml -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/conf/minio-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.uliySUI1ZZ ++ mktemp + local LAST_ERR=/tmp/tmp.JRkzOCmeW6 + 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/secrets.yml -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/conf/minio-secret.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.uliySUI1ZZ secret/some-users created deployment.apps/psmdb-client created secret/minio-secret created + cat /tmp/tmp.JRkzOCmeW6 + rm /tmp/tmp.uliySUI1ZZ /tmp/tmp.JRkzOCmeW6 + return 0 + desc 'create additional service account' + set +o xtrace ----------------------------------------------------------------------------------- create additional service account ----------------------------------------------------------------------------------- + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/security-context/conf/service-account.yml ++ mktemp + local LAST_OUT=/tmp/tmp.k20kYiiaH5 ++ mktemp + local LAST_ERR=/tmp/tmp.mHul7udK8r + 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/security-context/conf/service-account.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.k20kYiiaH5 serviceaccount/percona-server-mongodb-operator-workload created + cat /tmp/tmp.mHul7udK8r + rm /tmp/tmp.k20kYiiaH5 /tmp/tmp.mHul7udK8r + return 0 + [[ -n '' ]] + cluster=sec-context + desc 'create first PSMDB cluster sec-context' + set +o xtrace ----------------------------------------------------------------------------------- create first PSMDB cluster sec-context ----------------------------------------------------------------------------------- + spinup_psmdb sec-context-rs0 /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/security-context/conf/sec-context-rs0.yml + local cluster=sec-context-rs0 + local config=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/security-context/conf/sec-context-rs0.yml + local size=3 + desc 'create first PSMDB cluster' + set +o xtrace ----------------------------------------------------------------------------------- create first PSMDB cluster ----------------------------------------------------------------------------------- + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/security-context/conf/sec-context-rs0.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/security-context/conf/sec-context-rs0.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2058/e2e-tests/security-context/conf/sec-context-rs0.yml + yq eval '(.spec | select(.image == null)).image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0"' ++ mktemp + yq eval '(.spec | select(has("pmm"))).pmm.image = "docker.io/percona/pmm-client:2.44.1-1"' + local LAST_OUT=/tmp/tmp.RsnPuRJfsH + yq eval '(.spec | select(has("initImage"))).initImage = "docker.io/perconalab/percona-server-mongodb-operator:PR-2058-fb8cc7187"' ++ mktemp + 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/security-context-26886/g + local LAST_ERR=/tmp/tmp.rLP4nF7Hc2 + 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.RsnPuRJfsH perconaservermongodb.psmdb.percona.com/sec-context created + cat /tmp/tmp.rLP4nF7Hc2 + rm /tmp/tmp.RsnPuRJfsH /tmp/tmp.rLP4nF7Hc2 + return 0 + desc 'check if Pod is started' + set +o xtrace ----------------------------------------------------------------------------------- check if Pod is started ----------------------------------------------------------------------------------- + wait_for_running sec-context-rs0 3 + local name=sec-context-rs0 + let last_pod=2 + local check_cluster_readyness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=sec-context ++ seq 0 2 + for i in $(seq 0 $last_pod) + [[ 0 -eq 2 ]] + wait_pod sec-context-rs0-0 + local pod=sec-context-rs0-0 + set +o xtrace waiting for pod/sec-context-rs0-0 to be ready...........................................................................................................................................................