Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1961/e2e-tests/logs/limits.log WARNING: version difference between client (1.33) and server (1.30) exceeds the supported minor version skew of +/-1 WARNING: version difference between client (1.33) and server (1.30) exceeds the supported minor version skew of +/-1 WARNING: version difference between client (1.33) and server (1.30) exceeds the supported minor version skew of +/-1 + main + create_infra limits-17267 + local ns=limits-17267 + [[ 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-1961/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.k9jkArWhbY ++ mktemp + local LAST_ERR=/tmp/tmp.XitPsCMx0J + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1961/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.k9jkArWhbY customresourcedefinition.apiextensions.k8s.io "perconaservermongodbbackups.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.XitPsCMx0J + rm /tmp/tmp.k9jkArWhbY /tmp/tmp.XitPsCMx0J + return 0 ++ grep -v '\-\-\-' ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1961/deploy/crd.yaml + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbbackups.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' + kubectl get perconaservermongodbbackups.psmdb.percona.com --all-namespaces -o wide error: the server doesn't have a resource type "perconaservermongodbbackups" + kubectl patch perconaservermongodbbackups.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbbackups" + : + kubectl_bin wait --for=delete crd perconaservermongodbbackups.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.vJNrPx7FV9 ++ mktemp + local LAST_ERR=/tmp/tmp.Zcn2hOgYLm + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete crd perconaservermongodbbackups.psmdb.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.vJNrPx7FV9 + cat /tmp/tmp.Zcn2hOgYLm + rm /tmp/tmp.vJNrPx7FV9 /tmp/tmp.Zcn2hOgYLm + return 0 + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbrestores.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' + grep -v NAMESPACE + kubectl get perconaservermongodbrestores.psmdb.percona.com --all-namespaces -o wide error: the server doesn't have a resource type "perconaservermongodbrestores" + kubectl patch perconaservermongodbrestores.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbrestores" + : + kubectl_bin wait --for=delete crd perconaservermongodbrestores.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.Slau323jqx ++ mktemp + local LAST_ERR=/tmp/tmp.hm2fnlQl2O + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete crd perconaservermongodbrestores.psmdb.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Slau323jqx + cat /tmp/tmp.hm2fnlQl2O + rm /tmp/tmp.Slau323jqx /tmp/tmp.hm2fnlQl2O + return 0 + 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" + kubectl patch perconaservermongodbs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbs" + : + kubectl_bin wait --for=delete crd perconaservermongodbs.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.ltVsZn9329 ++ mktemp + local LAST_ERR=/tmp/tmp.slJS3LTpdb + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete crd perconaservermongodbs.psmdb.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ltVsZn9329 + cat /tmp/tmp.slJS3LTpdb + rm /tmp/tmp.ltVsZn9329 /tmp/tmp.slJS3LTpdb + return 0 + local rbac_yaml=rbac.yaml + '[' -n psmdb-operator ']' + rbac_yaml=cw-rbac.yaml + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1961/deploy/cw-rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.4VSvKfa4U0 ++ mktemp + local LAST_ERR=/tmp/tmp.TSF8d5Qr8g + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1961/deploy/cw-rbac.yaml --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.4VSvKfa4U0 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.TSF8d5Qr8g + rm /tmp/tmp.4VSvKfa4U0 /tmp/tmp.TSF8d5Qr8g + return 0 + check_crd_for_deletion PR-1961-db56ee7c + local git_tag=PR-1961-db56ee7c ++ /usr/bin/sed ':a;N;$!ba;s/\n/ /g' ++ /usr/bin/sed s/---//g ++ yq eval .metadata.name ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-1961-db56ee7c/deploy/crd.yaml + 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.EaIFisNjIF +++ mktemp ++ local LAST_ERR=/tmp/tmp.PzpFNSHJUs ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get crd/null -o 'jsonpath={.status.conditions[-1].type}' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.EaIFisNjIF ++ cat /tmp/tmp.PzpFNSHJUs Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 0 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get crd/null -o 'jsonpath={.status.conditions[-1].type}' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.EaIFisNjIF ++ cat /tmp/tmp.PzpFNSHJUs Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 4 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get crd/null -o 'jsonpath={.status.conditions[-1].type}' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.EaIFisNjIF ++ cat /tmp/tmp.PzpFNSHJUs Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 8 ++ cat /tmp/tmp.EaIFisNjIF ++ cat /tmp/tmp.PzpFNSHJUs Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.EaIFisNjIF /tmp/tmp.PzpFNSHJUs ++ return 1 + [[ '' == \T\e\r\m\i\n\a\t\i\n\g ]] + '[' -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 ++ 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 ++ awk '{print $1}' ++ kubectl get crd + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ awk '{print $1}' ++ grep chaos-mesh + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ awk '{print $1}' ++ kubectl get clusterrole ++ grep chaos-mesh + 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 ----------------------------------------------------------------------------------- + '[' -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 ++ mktemp + awk '{print$1}' + kubectl_bin get ns + local LAST_OUT=/tmp/tmp.NluaTc72Ht ++ mktemp + xargs kubectl delete ns + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|gke-mcs|^NAME' ++ mktemp + local LAST_OUT=/tmp/tmp.GseKz3enc7 ++ mktemp + local LAST_ERR=/tmp/tmp.50jdm7fN6b + local exit_status=0 + local timeout=4 + local LAST_ERR=/tmp/tmp.u6TjPKgEXA + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get ns ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace psmdb-operator --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.GseKz3enc7 + cat /tmp/tmp.50jdm7fN6b + rm /tmp/tmp.GseKz3enc7 /tmp/tmp.50jdm7fN6b + return 0 namespace "gke-managed-cim" deleted namespace "gke-managed-system" deleted namespace "gmp-public" deleted namespace "gmp-system" deleted namespace "limits-14309" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.NluaTc72Ht namespace "psmdb-operator" deleted + cat /tmp/tmp.u6TjPKgEXA + rm /tmp/tmp.NluaTc72Ht /tmp/tmp.u6TjPKgEXA + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.VBvFQ2Rahd ++ mktemp + local LAST_ERR=/tmp/tmp.VLSploTfun + 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.VBvFQ2Rahd + cat /tmp/tmp.VLSploTfun + rm /tmp/tmp.VBvFQ2Rahd /tmp/tmp.VLSploTfun + 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.ReMaEtXwa4 ++ mktemp + local LAST_ERR=/tmp/tmp.Kj4wuERc5O + 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.ReMaEtXwa4 namespace/psmdb-operator created + cat /tmp/tmp.Kj4wuERc5O + rm /tmp/tmp.ReMaEtXwa4 /tmp/tmp.Kj4wuERc5O + return 0 + set_kube_ctx psmdb-operator + local namespace=psmdb-operator ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.x6Eq2YPhvA +++ mktemp ++ local LAST_ERR=/tmp/tmp.dbQKPKfAKG ++ 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.x6Eq2YPhvA ++ cat /tmp/tmp.dbQKPKfAKG ++ rm /tmp/tmp.x6Eq2YPhvA /tmp/tmp.dbQKPKfAKG ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1961-db56ee7c-3-cluster10 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.nAmLdI6Qks ++ mktemp + local LAST_ERR=/tmp/tmp.tGuD99WpoG + 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-1961-db56ee7c-3-cluster10 --namespace=psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.nAmLdI6Qks Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1961-db56ee7c-3-cluster10" modified. + cat /tmp/tmp.tGuD99WpoG + rm /tmp/tmp.nAmLdI6Qks /tmp/tmp.tGuD99WpoG + return 0 + deploy_operator + desc 'start PSMDB operator' + set +o xtrace ----------------------------------------------------------------------------------- start PSMDB operator ----------------------------------------------------------------------------------- + local cr_file + '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1961/e2e-tests/limits/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1961/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1961/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.F59Yt7E84r ++ mktemp + local LAST_ERR=/tmp/tmp.pTwu28oIz8 + 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-1961/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.F59Yt7E84r 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.pTwu28oIz8 + rm /tmp/tmp.F59Yt7E84r /tmp/tmp.pTwu28oIz8 + 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-1961/deploy/cw-rbac.yaml + kubectl_bin apply -n psmdb-operator -f - + sed -e 's^namespace: .*^namespace: psmdb-operator^' ++ mktemp + local LAST_OUT=/tmp/tmp.wNvi0lPtTi ++ mktemp + local LAST_ERR=/tmp/tmp.YXQcrN4XnV + 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.wNvi0lPtTi 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.YXQcrN4XnV + rm /tmp/tmp.wNvi0lPtTi /tmp/tmp.YXQcrN4XnV + return 0 + kubectl_bin apply -f - + yq eval ' (.spec.template.spec.containers[].image = "perconalab/percona-server-mongodb-operator:PR-1961-db56ee7c") | ((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") | ((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1961/deploy/cw-operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.sNJEarjZwf ++ mktemp + local LAST_ERR=/tmp/tmp.I4tlxAUeTV + 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.sNJEarjZwf deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.I4tlxAUeTV + rm /tmp/tmp.sNJEarjZwf /tmp/tmp.I4tlxAUeTV + return 0 + sleep 2 ++ 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.LXeivGDkRx +++ mktemp ++ local LAST_ERR=/tmp/tmp.LXU7kghbWE ++ 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.LXeivGDkRx ++ cat /tmp/tmp.LXU7kghbWE ++ rm /tmp/tmp.LXeivGDkRx /tmp/tmp.LXU7kghbWE ++ return 0 + wait_pod percona-server-mongodb-operator-d49c7dc6d-rxnv6 + local pod=percona-server-mongodb-operator-d49c7dc6d-rxnv6 + set +o xtrace waiting for pod/percona-server-mongodb-operator-d49c7dc6d-rxnv6 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.DwEiwnbisH +++ mktemp ++ local LAST_ERR=/tmp/tmp.c9IN7oD3el ++ 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.DwEiwnbisH ++ cat /tmp/tmp.c9IN7oD3el ++ rm /tmp/tmp.DwEiwnbisH /tmp/tmp.c9IN7oD3el ++ return 0 + kubectl_bin logs percona-server-mongodb-operator-d49c7dc6d-rxnv6 ++ mktemp + local LAST_OUT=/tmp/tmp.jCsKHgGHBT ++ mktemp + local LAST_ERR=/tmp/tmp.0kOArdiMQv + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl logs percona-server-mongodb-operator-d49c7dc6d-rxnv6 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.jCsKHgGHBT + cat /tmp/tmp.0kOArdiMQv + rm /tmp/tmp.jCsKHgGHBT /tmp/tmp.0kOArdiMQv + return 0 2025-06-06T08:18:18.131Z INFO setup Manager starting up {"gitCommit": "db56ee7c993f5ad2d1ada9b0fbbd4e3142f61963", "gitBranch": "PR-1961-db56ee7c", "buildTime": "", "goVersion": "go1.24.4", "os": "linux", "arch": "amd64"} + create_namespace limits-17267 + local namespace=limits-17267 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ tail -n1 ++ sed s/NAMESPACE// ++ awk '-F ' '{print $2}' ++ helm list --all-namespaces --filter chaos-mesh + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ awk '{print $1}' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh + 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 + : ++ awk '{print $1}' ++ kubectl get ValidatingWebhookConfiguration ++ 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 + : ++ awk '{print $1}' ++ grep chaos-mesh ++ kubectl get clusterrole + 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 ----------------------------------------------------------------------------------- + '[' -n '' ']' + desc 'cleaned up old namespaces limits-17267' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces limits-17267 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace limits-17267 --ignore-not-found + xargs kubectl delete ns ++ mktemp + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|gke-mcs|^NAME' + local LAST_OUT=/tmp/tmp.uM7sIaZTVB + awk '{print$1}' + kubectl_bin get ns ++ mktemp + local LAST_ERR=/tmp/tmp.swFsPyNrfm + local exit_status=0 + local timeout=4 ++ mktemp + local LAST_OUT=/tmp/tmp.f4J2F9p7OA ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace limits-17267 --ignore-not-found ++ mktemp + local LAST_ERR=/tmp/tmp.L4LrvPosTl + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get ns + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.f4J2F9p7OA + cat /tmp/tmp.L4LrvPosTl + rm /tmp/tmp.f4J2F9p7OA /tmp/tmp.L4LrvPosTl + return 0 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.uM7sIaZTVB + cat /tmp/tmp.swFsPyNrfm + rm /tmp/tmp.uM7sIaZTVB /tmp/tmp.swFsPyNrfm + return 0 + kubectl_bin wait --for=delete namespace limits-17267 ++ mktemp + local LAST_OUT=/tmp/tmp.SpNMJqNQhL ++ mktemp + local LAST_ERR=/tmp/tmp.qy4V9fyDmy + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete namespace limits-17267 namespace "gke-managed-cim" deleted namespace "gke-managed-system" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.SpNMJqNQhL + cat /tmp/tmp.qy4V9fyDmy + rm /tmp/tmp.SpNMJqNQhL /tmp/tmp.qy4V9fyDmy + return 0 + desc 'create namespace limits-17267' + set +o xtrace ----------------------------------------------------------------------------------- create namespace limits-17267 ----------------------------------------------------------------------------------- + kubectl_bin create namespace limits-17267 ++ mktemp + local LAST_OUT=/tmp/tmp.lo61DzrIbR ++ mktemp + local LAST_ERR=/tmp/tmp.uLurfvOe95 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace limits-17267 namespace "gmp-public" deleted namespace "gmp-system" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.lo61DzrIbR namespace/limits-17267 created + cat /tmp/tmp.uLurfvOe95 + rm /tmp/tmp.lo61DzrIbR /tmp/tmp.uLurfvOe95 + return 0 + set_kube_ctx limits-17267 + local namespace=limits-17267 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.CIB8CGEPt4 +++ mktemp ++ local LAST_ERR=/tmp/tmp.Liin2BhEWU ++ 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.CIB8CGEPt4 ++ cat /tmp/tmp.Liin2BhEWU ++ rm /tmp/tmp.CIB8CGEPt4 /tmp/tmp.Liin2BhEWU ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1961-db56ee7c-3-cluster10 --namespace=limits-17267 ++ mktemp + local LAST_OUT=/tmp/tmp.hm8qLy1vvt ++ mktemp + local LAST_ERR=/tmp/tmp.0Ey5xqvUIB + 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-1961-db56ee7c-3-cluster10 --namespace=limits-17267 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.hm8qLy1vvt Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1961-db56ee7c-3-cluster10" modified. + cat /tmp/tmp.0Ey5xqvUIB + rm /tmp/tmp.hm8qLy1vvt /tmp/tmp.0Ey5xqvUIB + return 0 + desc 'create secrets' + set +o xtrace ----------------------------------------------------------------------------------- create secrets ----------------------------------------------------------------------------------- + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1961/e2e-tests/conf/secrets.yml ++ mktemp + local LAST_OUT=/tmp/tmp.w6RYIgsKgM ++ mktemp + local LAST_ERR=/tmp/tmp.BGZa5aeTWq + 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-1961/e2e-tests/conf/secrets.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.w6RYIgsKgM secret/some-users created + cat /tmp/tmp.BGZa5aeTWq + rm /tmp/tmp.w6RYIgsKgM /tmp/tmp.BGZa5aeTWq + return 0 + desc 'check if possible to create cluster without CPU/Memory limits' + set +o xtrace ----------------------------------------------------------------------------------- check if possible to create cluster without CPU/Memory limits ----------------------------------------------------------------------------------- + check_cr_config no-limits-rs0 + local cluster=no-limits-rs0 + desc 'create PSMDB cluster no-limits-rs0' + set +o xtrace ----------------------------------------------------------------------------------- create PSMDB cluster no-limits-rs0 ----------------------------------------------------------------------------------- + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1961/e2e-tests/limits/conf/no-limits-rs0.yml + '[' -z '' ']' + kubectl_bin apply -f - + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1961/e2e-tests/limits/conf/no-limits-rs0.yml + yq eval '(.spec | select(has("pmm"))).pmm.image = "perconalab/pmm-client:dev-latest"' + yq eval '.spec.upgradeOptions.apply="Never"' + yq eval '(.spec | select(.image == null)).image = "perconalab/percona-server-mongodb-operator:main-mongod7.0"' ++ mktemp + local LAST_OUT=/tmp/tmp.oTaKwQlnkI + yq eval '(.spec | select(has("initImage"))).initImage = "perconalab/percona-server-mongodb-operator:PR-1961-db56ee7c"' + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1961/e2e-tests/limits/conf/no-limits-rs0.yml + yq eval '(.spec | select(has("backup"))).backup.image = "perconalab/percona-server-mongodb-operator:main-backup"' ++ mktemp + local LAST_ERR=/tmp/tmp.zmGK6cTR33 + 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.oTaKwQlnkI perconaservermongodb.psmdb.percona.com/no-limits created + cat /tmp/tmp.zmGK6cTR33 + rm /tmp/tmp.oTaKwQlnkI /tmp/tmp.zmGK6cTR33 + return 0 + desc 'check if at least 1 Pod started' + set +o xtrace ----------------------------------------------------------------------------------- check if at least 1 Pod started ----------------------------------------------------------------------------------- + wait_for_running no-limits-rs0 1 false + local name=no-limits-rs0 + let last_pod=0 + : + local check_cluster_readyness=false + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=no-limits ++ seq 0 0 + for i in '$(seq 0 $last_pod)' + [[ 0 -eq 0 ]] ++ kubectl_bin get psmdb no-limits -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.uwKI48x30l +++ mktemp ++ local LAST_ERR=/tmp/tmp.leSFEyf6eO ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get psmdb no-limits -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.uwKI48x30l ++ cat /tmp/tmp.leSFEyf6eO ++ rm /tmp/tmp.uwKI48x30l /tmp/tmp.leSFEyf6eO ++ return 0 + [[ '' == \t\r\u\e ]] + wait_pod no-limits-rs0-0 + local pod=no-limits-rs0-0 + set +o xtrace waiting for pod/no-limits-rs0-0 to be ready.......................................................................................................................................