Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/e2e-tests/logs/demand-backup-fs.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 + [[ -n '' ]] + cluster=some-name + create_infra demand-backup-fs-30828 + local ns=demand-backup-fs-30828 + 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-1917/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.7afsqqPtW1 ++ mktemp + local LAST_ERR=/tmp/tmp.c33JjhXivH + 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-1917/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.7afsqqPtW1 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.c33JjhXivH + rm /tmp/tmp.7afsqqPtW1 /tmp/tmp.c33JjhXivH + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/deploy/crd.yaml ++ grep -v '\-\-\-' + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + kubectl get perconaservermongodbbackups.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbbackups.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbbackups" + 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.CkTru1h3E5 ++ mktemp + local LAST_ERR=/tmp/tmp.O3VeA5yvw0 + 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.CkTru1h3E5 + cat /tmp/tmp.O3VeA5yvw0 + rm /tmp/tmp.CkTru1h3E5 /tmp/tmp.O3VeA5yvw0 + return 0 + 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 perconaservermongodbrestores.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' + 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.vtjobd7neE ++ mktemp + local LAST_ERR=/tmp/tmp.KuBstN6a0O + 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.vtjobd7neE + cat /tmp/tmp.KuBstN6a0O + rm /tmp/tmp.vtjobd7neE /tmp/tmp.KuBstN6a0O + return 0 + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + grep -v NAMESPACE + kubectl get perconaservermongodbs.psmdb.percona.com --all-namespaces -o wide + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbs.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' + kubectl patch perconaservermongodbs.psmdb.percona.com -n demand-backup-fs-21480 some-name --type=merge -p '{"metadata":{"finalizers":[]}}' perconaservermongodb.psmdb.percona.com/some-name patched + kubectl_bin wait --for=delete crd perconaservermongodbs.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.9CvruAKJPb ++ mktemp + local LAST_ERR=/tmp/tmp.g2u23ilI0J + 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.9CvruAKJPb + cat /tmp/tmp.g2u23ilI0J + rm /tmp/tmp.9CvruAKJPb /tmp/tmp.g2u23ilI0J + 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-1917/deploy/cw-rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.1tgocLW3iC ++ mktemp + local LAST_ERR=/tmp/tmp.x7DIfKuip2 + 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-1917/deploy/cw-rbac.yaml --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.1tgocLW3iC 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.x7DIfKuip2 + rm /tmp/tmp.1tgocLW3iC /tmp/tmp.x7DIfKuip2 + return 0 + check_crd_for_deletion PR-1917-d6e9d6b1 + local git_tag=PR-1917-d6e9d6b1 ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-1917-d6e9d6b1/deploy/crd.yaml ++ /usr/bin/sed s/---//g ++ yq eval .metadata.name ++ /usr/bin/sed ':a;N;$!ba;s/\n/ /g' + for crd_name in '$(curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/${git_tag}/deploy/crd.yaml | yq eval '\''.metadata.name'\'' | $sed '\''s/---//g'\'' | $sed '\'':a;N;$!ba;s/\n/ /g'\'')' ++ kubectl_bin get crd/null -o 'jsonpath={.status.conditions[-1].type}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.koRjQjtSQs +++ mktemp ++ local LAST_ERR=/tmp/tmp.BjzJaC8L3W ++ 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.koRjQjtSQs ++ cat /tmp/tmp.BjzJaC8L3W 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.koRjQjtSQs ++ cat /tmp/tmp.BjzJaC8L3W 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.koRjQjtSQs ++ cat /tmp/tmp.BjzJaC8L3W Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 8 ++ cat /tmp/tmp.koRjQjtSQs ++ cat /tmp/tmp.BjzJaC8L3W Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.koRjQjtSQs /tmp/tmp.BjzJaC8L3W ++ 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 + : ++ grep chaos-mesh ++ kubectl api-resources ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ awk '{print $1}' ++ grep chaos-mesh + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ grep chaos-mesh ++ awk '{print $1}' ++ 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 psmdb-operator' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin delete namespace psmdb-operator --ignore-not-found ++ mktemp + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|gke-mcs|^NAME' + xargs kubectl delete ns + local LAST_OUT=/tmp/tmp.p8cYrBk10b + kubectl_bin get ns ++ mktemp + awk '{print$1}' + local LAST_ERR=/tmp/tmp.7f4haIv63k + local exit_status=0 + local timeout=4 ++ mktemp + local LAST_OUT=/tmp/tmp.Bw7xnAIH12 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace psmdb-operator --ignore-not-found ++ mktemp + local LAST_ERR=/tmp/tmp.qHg0VzwCE2 + 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.Bw7xnAIH12 + cat /tmp/tmp.qHg0VzwCE2 + rm /tmp/tmp.Bw7xnAIH12 /tmp/tmp.qHg0VzwCE2 + return 0 namespace "demand-backup-fs-21480" deleted namespace "gke-managed-cim" deleted namespace "gke-managed-system" deleted namespace "gmp-public" deleted namespace "gmp-system" deleted namespace "storage" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.p8cYrBk10b namespace "psmdb-operator" deleted + cat /tmp/tmp.7f4haIv63k + rm /tmp/tmp.p8cYrBk10b /tmp/tmp.7f4haIv63k + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.ERq1ca8U0A ++ mktemp + local LAST_ERR=/tmp/tmp.TDUjB5RCAm + 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.ERq1ca8U0A + cat /tmp/tmp.TDUjB5RCAm + rm /tmp/tmp.ERq1ca8U0A /tmp/tmp.TDUjB5RCAm + 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.iw8BAm0yeu ++ mktemp + local LAST_ERR=/tmp/tmp.MI8YXM7b6S + 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.iw8BAm0yeu namespace/psmdb-operator created + cat /tmp/tmp.MI8YXM7b6S + rm /tmp/tmp.iw8BAm0yeu /tmp/tmp.MI8YXM7b6S + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.3wRvNxFQ6c +++ mktemp ++ local LAST_ERR=/tmp/tmp.9TIhEJhIz9 ++ 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.3wRvNxFQ6c ++ cat /tmp/tmp.9TIhEJhIz9 ++ rm /tmp/tmp.3wRvNxFQ6c /tmp/tmp.9TIhEJhIz9 ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1917-d6e9d6b1-1-cluster10 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.606wf158U0 ++ mktemp + local LAST_ERR=/tmp/tmp.cRz6A5V04E + 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-1917-d6e9d6b1-1-cluster10 --namespace=psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.606wf158U0 Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1917-d6e9d6b1-1-cluster10" modified. + cat /tmp/tmp.cRz6A5V04E + rm /tmp/tmp.606wf158U0 /tmp/tmp.cRz6A5V04E + 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-1917/e2e-tests/demand-backup-fs/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.frc4RWGPut ++ mktemp + local LAST_ERR=/tmp/tmp.rQeh2MRYs6 + 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-1917/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.frc4RWGPut 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.rQeh2MRYs6 + rm /tmp/tmp.frc4RWGPut /tmp/tmp.rQeh2MRYs6 + 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-1917/deploy/cw-rbac.yaml + kubectl_bin apply -n psmdb-operator -f - + sed -e 's^namespace: .*^namespace: psmdb-operator^' ++ mktemp + local LAST_OUT=/tmp/tmp.IsD3AwNMSL ++ mktemp + local LAST_ERR=/tmp/tmp.wVDsLjHF3Z + 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.IsD3AwNMSL 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.wVDsLjHF3Z + rm /tmp/tmp.IsD3AwNMSL /tmp/tmp.wVDsLjHF3Z + return 0 + yq eval ' (.spec.template.spec.containers[].image = "perconalab/percona-server-mongodb-operator:PR-1917-d6e9d6b1") | ((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") | ((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/deploy/cw-operator.yaml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.P3MtlJM7bs ++ mktemp + local LAST_ERR=/tmp/tmp.X1WCKzNqyp + 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.P3MtlJM7bs deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.X1WCKzNqyp + rm /tmp/tmp.P3MtlJM7bs /tmp/tmp.X1WCKzNqyp + 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.p3tcHSXWXq +++ mktemp ++ local LAST_ERR=/tmp/tmp.Ns290reLg1 ++ 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.p3tcHSXWXq ++ cat /tmp/tmp.Ns290reLg1 ++ rm /tmp/tmp.p3tcHSXWXq /tmp/tmp.Ns290reLg1 ++ return 0 + wait_pod percona-server-mongodb-operator-758b744857-xtzrw + local pod=percona-server-mongodb-operator-758b744857-xtzrw + set +o xtrace waiting for pod/percona-server-mongodb-operator-758b744857-xtzrw to be ready.OK + create_namespace demand-backup-fs-30828 + local namespace=demand-backup-fs-30828 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ sed s/NAMESPACE// ++ awk '-F ' '{print $2}' + 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 + : ++ kubectl get ValidatingWebhookConfiguration ++ awk '{print $1}' ++ grep chaos-mesh + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ 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 ++ awk '{print $1}' ++ grep chaos-mesh.org + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ awk '{print $1}' ++ grep chaos-mesh ++ kubectl get clusterrolebinding + 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 ----------------------------------------------------------------------------------- + '[' -n '' ']' + desc 'cleaned up old namespaces demand-backup-fs-30828' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces demand-backup-fs-30828 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace demand-backup-fs-30828 --ignore-not-found ++ mktemp + xargs kubectl delete ns + kubectl_bin get ns ++ mktemp + local LAST_OUT=/tmp/tmp.9ZybGLjfcd + local LAST_OUT=/tmp/tmp.MfnjGAWBdD ++ mktemp + local LAST_ERR=/tmp/tmp.hV6kzHDAc9 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get ns + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|gke-mcs|^NAME' ++ mktemp + awk '{print$1}' + local LAST_ERR=/tmp/tmp.xjXE4bldPH + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace demand-backup-fs-30828 --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.9ZybGLjfcd + cat /tmp/tmp.hV6kzHDAc9 + rm /tmp/tmp.9ZybGLjfcd /tmp/tmp.hV6kzHDAc9 + return 0 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.MfnjGAWBdD + cat /tmp/tmp.xjXE4bldPH + rm /tmp/tmp.MfnjGAWBdD /tmp/tmp.xjXE4bldPH + return 0 + kubectl_bin wait --for=delete namespace demand-backup-fs-30828 ++ mktemp + local LAST_OUT=/tmp/tmp.5s8GoaARg7 ++ mktemp + local LAST_ERR=/tmp/tmp.rEIJBFlnLM + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete namespace demand-backup-fs-30828 namespace "gke-managed-cim" deleted namespace "gke-managed-system" deleted namespace "gmp-public" deleted namespace "gmp-system" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.5s8GoaARg7 + cat /tmp/tmp.rEIJBFlnLM + rm /tmp/tmp.5s8GoaARg7 /tmp/tmp.rEIJBFlnLM + return 0 + desc 'create namespace demand-backup-fs-30828' + set +o xtrace ----------------------------------------------------------------------------------- create namespace demand-backup-fs-30828 ----------------------------------------------------------------------------------- + kubectl_bin create namespace demand-backup-fs-30828 ++ mktemp + local LAST_OUT=/tmp/tmp.zTbMuXgMnB ++ mktemp + local LAST_ERR=/tmp/tmp.i6DSLt2xL7 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace demand-backup-fs-30828 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.zTbMuXgMnB namespace/demand-backup-fs-30828 created + cat /tmp/tmp.i6DSLt2xL7 + rm /tmp/tmp.zTbMuXgMnB /tmp/tmp.i6DSLt2xL7 + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.ST7683UnkJ +++ mktemp ++ local LAST_ERR=/tmp/tmp.xlxAtSsAZB ++ 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.ST7683UnkJ ++ cat /tmp/tmp.xlxAtSsAZB ++ rm /tmp/tmp.ST7683UnkJ /tmp/tmp.xlxAtSsAZB ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1917-d6e9d6b1-1-cluster10 --namespace=demand-backup-fs-30828 ++ mktemp + local LAST_OUT=/tmp/tmp.9Xo4j1boXR ++ mktemp + local LAST_ERR=/tmp/tmp.Duhp3gKHTN + 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-1917-d6e9d6b1-1-cluster10 --namespace=demand-backup-fs-30828 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.9Xo4j1boXR Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1917-d6e9d6b1-1-cluster10" modified. + cat /tmp/tmp.Duhp3gKHTN + rm /tmp/tmp.9Xo4j1boXR /tmp/tmp.Duhp3gKHTN + return 0 + kubectl_bin delete ns storage ++ mktemp + local LAST_OUT=/tmp/tmp.vU4gPqtJCD ++ mktemp + local LAST_ERR=/tmp/tmp.mUctPBX1xv + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete ns storage + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.vU4gPqtJCD + cat /tmp/tmp.mUctPBX1xv Error from server (NotFound): namespaces "storage" not found + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl delete ns storage + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.vU4gPqtJCD + cat /tmp/tmp.mUctPBX1xv Error from server (NotFound): namespaces "storage" not found + sleep 4 + for i in '$(seq 0 2)' + set +e + kubectl delete ns storage + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.vU4gPqtJCD + cat /tmp/tmp.mUctPBX1xv Error from server (NotFound): namespaces "storage" not found + sleep 8 + cat /tmp/tmp.vU4gPqtJCD + cat /tmp/tmp.mUctPBX1xv Error from server (NotFound): namespaces "storage" not found + rm /tmp/tmp.vU4gPqtJCD /tmp/tmp.mUctPBX1xv + return 1 + : + [[ 1 != 1 ]] + log 'deploying NFS server' + set +o xtrace [2025-05-12T12:36:55+0000] deploying NFS server + deploy_nfs_server + kubectl_bin create namespace storage ++ mktemp + local LAST_OUT=/tmp/tmp.2NtOuVhoNb ++ mktemp + local LAST_ERR=/tmp/tmp.fZhn96ITBS + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace storage + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.2NtOuVhoNb namespace/storage created + cat /tmp/tmp.fZhn96ITBS + rm /tmp/tmp.2NtOuVhoNb /tmp/tmp.fZhn96ITBS + return 0 + kubectl_bin apply -n storage -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/e2e-tests/demand-backup-fs/conf/nfs-server.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.c1BuZPCPrK ++ mktemp + local LAST_ERR=/tmp/tmp.qaaUGfrjIM + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -n storage -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/e2e-tests/demand-backup-fs/conf/nfs-server.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.c1BuZPCPrK persistentvolumeclaim/nfs-pvc created deployment.apps/nfs-server created service/nfs-service created + cat /tmp/tmp.qaaUGfrjIM + rm /tmp/tmp.c1BuZPCPrK /tmp/tmp.qaaUGfrjIM + return 0 + sleep 5 ++ kubectl_bin get pod -n storage -l app=nfs-server -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.nKRdW1GoeR +++ mktemp ++ local LAST_ERR=/tmp/tmp.mIM8KGIHf9 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pod -n storage -l app=nfs-server -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.nKRdW1GoeR ++ cat /tmp/tmp.mIM8KGIHf9 ++ rm /tmp/tmp.nKRdW1GoeR /tmp/tmp.mIM8KGIHf9 ++ return 0 + local nfsPod=nfs-server-d6d48c54d-wwprp ++ kubectl_bin get pod nfs-server-d6d48c54d-wwprp -n storage -o 'jsonpath={.status.phase}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.6L5A7D144G +++ mktemp ++ local LAST_ERR=/tmp/tmp.EJ1Vdb2ZoF ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pod nfs-server-d6d48c54d-wwprp -n storage -o 'jsonpath={.status.phase}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.6L5A7D144G ++ cat /tmp/tmp.EJ1Vdb2ZoF ++ rm /tmp/tmp.6L5A7D144G /tmp/tmp.EJ1Vdb2ZoF ++ return 0 + [[ Pending == \R\u\n\n\i\n\g ]] + log 'Waiting for nfs-server-d6d48c54d-wwprp to start Running' + set +o xtrace [2025-05-12T12:37:05+0000] Waiting for nfs-server-d6d48c54d-wwprp to start Running + sleep 1 ++ kubectl_bin get pod nfs-server-d6d48c54d-wwprp -n storage -o 'jsonpath={.status.phase}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.QdFVzYkNaV +++ mktemp ++ local LAST_ERR=/tmp/tmp.qKNBVoRnih ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pod nfs-server-d6d48c54d-wwprp -n storage -o 'jsonpath={.status.phase}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.QdFVzYkNaV ++ cat /tmp/tmp.qKNBVoRnih ++ rm /tmp/tmp.QdFVzYkNaV /tmp/tmp.qKNBVoRnih ++ return 0 + [[ Pending == \R\u\n\n\i\n\g ]] + log 'Waiting for nfs-server-d6d48c54d-wwprp to start Running' + set +o xtrace [2025-05-12T12:37:07+0000] Waiting for nfs-server-d6d48c54d-wwprp to start Running + sleep 1 ++ kubectl_bin get pod nfs-server-d6d48c54d-wwprp -n storage -o 'jsonpath={.status.phase}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ks8QfvCUoW +++ mktemp ++ local LAST_ERR=/tmp/tmp.xfgVGwFnPz ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pod nfs-server-d6d48c54d-wwprp -n storage -o 'jsonpath={.status.phase}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.ks8QfvCUoW ++ cat /tmp/tmp.xfgVGwFnPz ++ rm /tmp/tmp.ks8QfvCUoW /tmp/tmp.xfgVGwFnPz ++ return 0 + [[ Pending == \R\u\n\n\i\n\g ]] + log 'Waiting for nfs-server-d6d48c54d-wwprp to start Running' + set +o xtrace [2025-05-12T12:37:09+0000] Waiting for nfs-server-d6d48c54d-wwprp to start Running + sleep 1 ++ kubectl_bin get pod nfs-server-d6d48c54d-wwprp -n storage -o 'jsonpath={.status.phase}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.HDdbTQnvkW +++ mktemp ++ local LAST_ERR=/tmp/tmp.uqYZddWmNT ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pod nfs-server-d6d48c54d-wwprp -n storage -o 'jsonpath={.status.phase}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.HDdbTQnvkW ++ cat /tmp/tmp.uqYZddWmNT ++ rm /tmp/tmp.HDdbTQnvkW /tmp/tmp.uqYZddWmNT ++ return 0 + [[ Pending == \R\u\n\n\i\n\g ]] + log 'Waiting for nfs-server-d6d48c54d-wwprp to start Running' + set +o xtrace [2025-05-12T12:37:11+0000] Waiting for nfs-server-d6d48c54d-wwprp to start Running + sleep 1 ++ kubectl_bin get pod nfs-server-d6d48c54d-wwprp -n storage -o 'jsonpath={.status.phase}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.JxzXxtJsD5 +++ mktemp ++ local LAST_ERR=/tmp/tmp.iz0Iyxbhxx ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pod nfs-server-d6d48c54d-wwprp -n storage -o 'jsonpath={.status.phase}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.JxzXxtJsD5 ++ cat /tmp/tmp.iz0Iyxbhxx ++ rm /tmp/tmp.JxzXxtJsD5 /tmp/tmp.iz0Iyxbhxx ++ return 0 + [[ Pending == \R\u\n\n\i\n\g ]] + log 'Waiting for nfs-server-d6d48c54d-wwprp to start Running' + set +o xtrace [2025-05-12T12:37:14+0000] Waiting for nfs-server-d6d48c54d-wwprp to start Running + sleep 1 ++ kubectl_bin get pod nfs-server-d6d48c54d-wwprp -n storage -o 'jsonpath={.status.phase}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.oXMBpaYdCd +++ mktemp ++ local LAST_ERR=/tmp/tmp.AElghTO6aV ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pod nfs-server-d6d48c54d-wwprp -n storage -o 'jsonpath={.status.phase}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.oXMBpaYdCd ++ cat /tmp/tmp.AElghTO6aV ++ rm /tmp/tmp.oXMBpaYdCd /tmp/tmp.AElghTO6aV ++ return 0 + [[ Pending == \R\u\n\n\i\n\g ]] + log 'Waiting for nfs-server-d6d48c54d-wwprp to start Running' + set +o xtrace [2025-05-12T12:37:17+0000] Waiting for nfs-server-d6d48c54d-wwprp to start Running + sleep 1 ++ kubectl_bin get pod nfs-server-d6d48c54d-wwprp -n storage -o 'jsonpath={.status.phase}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.1KxhOdmtg6 +++ mktemp ++ local LAST_ERR=/tmp/tmp.EIq7PYX7kF ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pod nfs-server-d6d48c54d-wwprp -n storage -o 'jsonpath={.status.phase}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.1KxhOdmtg6 ++ cat /tmp/tmp.EIq7PYX7kF ++ rm /tmp/tmp.1KxhOdmtg6 /tmp/tmp.EIq7PYX7kF ++ return 0 + [[ Running == \R\u\n\n\i\n\g ]] + kubectl_bin exec -n storage nfs-server-d6d48c54d-wwprp -- mkdir /exports/psmdb-some-name-rs0 ++ mktemp + local LAST_OUT=/tmp/tmp.DnrSrUuzjL ++ mktemp + local LAST_ERR=/tmp/tmp.mDAqQI62Bo + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl exec -n storage nfs-server-d6d48c54d-wwprp -- mkdir /exports/psmdb-some-name-rs0 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.DnrSrUuzjL + cat /tmp/tmp.mDAqQI62Bo + rm /tmp/tmp.DnrSrUuzjL /tmp/tmp.mDAqQI62Bo + return 0 + kubectl_bin exec -n storage nfs-server-d6d48c54d-wwprp -- chown 1001:1001 /exports/psmdb-some-name-rs0 ++ mktemp + local LAST_OUT=/tmp/tmp.eWqiJH0wmt ++ mktemp + local LAST_ERR=/tmp/tmp.awbNmALrXa + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl exec -n storage nfs-server-d6d48c54d-wwprp -- chown 1001:1001 /exports/psmdb-some-name-rs0 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.eWqiJH0wmt + cat /tmp/tmp.awbNmALrXa + rm /tmp/tmp.eWqiJH0wmt /tmp/tmp.awbNmALrXa + return 0 + log 'creating secrets and start client' + set +o xtrace [2025-05-12T12:37:23+0000] creating secrets and start client + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/e2e-tests/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/e2e-tests/conf/client.yml ++ mktemp + local LAST_OUT=/tmp/tmp.Ch2YSwiX5T ++ mktemp + local LAST_ERR=/tmp/tmp.pyKAEhuefM + 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-1917/e2e-tests/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/e2e-tests/conf/client.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Ch2YSwiX5T secret/some-users created deployment.apps/psmdb-client created + cat /tmp/tmp.pyKAEhuefM + rm /tmp/tmp.Ch2YSwiX5T /tmp/tmp.pyKAEhuefM + return 0 + log 'creating PSMDB cluster some-name' + set +o xtrace [2025-05-12T12:37:26+0000] creating PSMDB cluster some-name + [[ 1 != 1 ]] + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/e2e-tests/demand-backup-fs/conf/some-name.yaml + '[' -z '' ']' + kubectl_bin apply -f - ++ mktemp + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/e2e-tests/demand-backup-fs/conf/some-name.yaml + local LAST_OUT=/tmp/tmp.pjGITYwUrZ + yq eval '(.spec | select(has("initImage"))).initImage = "perconalab/percona-server-mongodb-operator:PR-1917-d6e9d6b1"' + yq eval '.spec.upgradeOptions.apply="Never"' + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/e2e-tests/demand-backup-fs/conf/some-name.yaml + yq eval '(.spec | select(.image == null)).image = "perconalab/percona-server-mongodb-operator:main-mongod8.0"' + yq eval '(.spec | select(has("pmm"))).pmm.image = "perconalab/pmm-client:dev-latest"' + yq eval '(.spec | select(has("backup"))).backup.image = "perconalab/percona-server-mongodb-operator:main-backup"' ++ mktemp + local LAST_ERR=/tmp/tmp.ZrdQuizvTf + 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.pjGITYwUrZ perconaservermongodb.psmdb.percona.com/some-name created + cat /tmp/tmp.ZrdQuizvTf + rm /tmp/tmp.pjGITYwUrZ /tmp/tmp.ZrdQuizvTf + return 0 + log 'wait for all 3 pods to start' + set +o xtrace [2025-05-12T12:37:29+0000] wait for all 3 pods to start + wait_for_running some-name-rs0 3 + local name=some-name-rs0 + let last_pod=2 + local check_cluster_readyness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=some-name ++ seq 0 2 + for i in '$(seq 0 $last_pod)' + [[ 0 -eq 2 ]] + wait_pod some-name-rs0-0 + local pod=some-name-rs0-0 + set +o xtrace waiting for pod/some-name-rs0-0 to be ready........OK + for i in '$(seq 0 $last_pod)' + [[ 1 -eq 2 ]] + wait_pod some-name-rs0-1 + local pod=some-name-rs0-1 + set +o xtrace waiting for pod/some-name-rs0-1 to be ready.....OK + for i in '$(seq 0 $last_pod)' + [[ 2 -eq 2 ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.hqTZFngriP +++ mktemp ++ local LAST_ERR=/tmp/tmp.pcYW1ltxrr ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.hqTZFngriP ++ cat /tmp/tmp.pcYW1ltxrr ++ rm /tmp/tmp.hqTZFngriP /tmp/tmp.pcYW1ltxrr ++ return 0 + [[ '' == \t\r\u\e ]] + wait_pod some-name-rs0-2 + local pod=some-name-rs0-2 + set +o xtrace waiting for pod/some-name-rs0-2 to be ready.....OK ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].non_voting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.E7fwntJB3C +++ mktemp ++ local LAST_ERR=/tmp/tmp.wWQjmB40I8 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].non_voting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.E7fwntJB3C ++ cat /tmp/tmp.wWQjmB40I8 ++ rm /tmp/tmp.E7fwntJB3C /tmp/tmp.wWQjmB40I8 ++ return 0 + [[ '' == \t\r\u\e ]] + sleep 10 + [[ true == \t\r\u\e ]] + set +x Waiting for cluster readyness... + [[ 1 == 1 ]] + log 'checking if statefulset created with expected config' + set +o xtrace [2025-05-12T12:39:03+0000] checking if statefulset created with expected config + compare_kubectl statefulset/some-name-rs0 + local resource=statefulset/some-name-rs0 + local postfix= + local skip_generation_check= + local expected_result=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/e2e-tests/demand-backup-fs/compare/statefulset_some-name-rs0.yml + local new_result=/tmp/tmp.RwKVT2es8E/statefulset_some-name-rs0.yml + '[' -n '' -a -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/e2e-tests/demand-backup-fs/compare/statefulset_some-name-rs0-oc.yml ']' + kubectl_bin get -o yaml statefulset/some-name-rs0 + yq eval ' del(.metadata.ownerReferences[].apiVersion) | del(.metadata.managedFields) | del(.. | select(has("creationTimestamp")).creationTimestamp) | del(.. | select(has("namespace")).namespace) | del(.. | select(has("uid")).uid) | del(.metadata.resourceVersion) | del(.spec.template.spec.containers[].env[] | select(.name == "NAMESPACE")) | del(.metadata.selfLink) | del(.metadata.annotations."cloud.google.com/neg") | del(.metadata.annotations."kubectl.kubernetes.io/last-applied-configuration") | del(.. | select(has("image")).image) | del(.. | select(has("clusterIP")).clusterIP) | del(.. | select(has("clusterIPs")).clusterIPs) | del(.. | select(has("dataSource")).dataSource) | del(.. | select(has("procMount")).procMount) | del(.. | select(has("storageClassName")).storageClassName) | del(.. | select(has("finalizers")).finalizers) | del(.. | select(has("kubernetes.io/pvc-protection"))."kubernetes.io/pvc-protection") | del(.. | select(has("volumeName")).volumeName) | del(.. | select(has("volume.beta.kubernetes.io/storage-provisioner"))."volume.beta.kubernetes.io/storage-provisioner") | del(.. | select(has("volume.kubernetes.io/storage-provisioner"))."volume.kubernetes.io/storage-provisioner") | del(.spec.volumeMode) | del(.. | select(has("volume.kubernetes.io/selected-node"))."volume.kubernetes.io/selected-node") | del(.. | select(has("percona.com/last-config-hash"))."percona.com/last-config-hash") | del(.. | select(has("percona.com/configuration-hash"))."percona.com/configuration-hash") | del(.. | select(has("percona.com/ssl-hash"))."percona.com/ssl-hash") | del(.. | select(has("percona.com/ssl-internal-hash"))."percona.com/ssl-internal-hash") | del(.spec.volumeClaimTemplates[].spec.volumeMode | select(. == "Filesystem")) | del(.. | select(has("healthCheckNodePort")).healthCheckNodePort) | del(.. | select(has("nodePort")).nodePort) | del(.status) | (.. | select(tag == "!!str")) |= sub("demand-backup-fs-30828", "NAME_SPACE") | del(.spec.volumeClaimTemplates[].apiVersion) | del(.spec.volumeClaimTemplates[].kind) | del(.spec.ipFamilies) | del(.spec.ipFamilyPolicy) | (.. | select(. == "extensions/v1beta1")) = "apps/v1" | (.. | select(. == "batch/v1beta1")) = "batch/v1" ' - ++ mktemp + local LAST_OUT=/tmp/tmp.k3vpLNsChk ++ mktemp + local LAST_ERR=/tmp/tmp.Be7gLhP2pf + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get -o yaml statefulset/some-name-rs0 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.k3vpLNsChk + cat /tmp/tmp.Be7gLhP2pf + rm /tmp/tmp.k3vpLNsChk /tmp/tmp.Be7gLhP2pf + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.RwKVT2es8E/statefulset_some-name-rs0.yml + version_gt 1.22 ++ bc -l ++ echo '1.30 >= 1.22' + '[' 1 -eq 1 ']' + return 0 + yq -i eval 'del(.spec.internalTrafficPolicy)' /tmp/tmp.RwKVT2es8E/statefulset_some-name-rs0.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.RwKVT2es8E/statefulset_some-name-rs0.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/e2e-tests/demand-backup-fs/compare/statefulset_some-name-rs0.yml == */cronjob* ]] + '[' -n '' ']' + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/e2e-tests/demand-backup-fs/compare/statefulset_some-name-rs0.yml /tmp/tmp.RwKVT2es8E/statefulset_some-name-rs0.yml --- /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1917/e2e-tests/demand-backup-fs/compare/statefulset_some-name-rs0.yml 2025-05-12 12:04:34.288097170 +0000 +++ /tmp/tmp.RwKVT2es8E/statefulset_some-name-rs0.yml 2025-05-12 12:39:05.496071362 +0000 @@ -114,12 +114,6 @@ - readiness - --component - mongod - - --ssl - - --sslInsecure - - --sslCAFile - - /etc/mongodb-ssl/ca.crt - - --sslPEMKeyFile - - /tmp/tls.pem failureThreshold: 8 initialDelaySeconds: 10 periodSeconds: 3