++ echo 'Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/e2e-tests/logs/custom-replset-name.log' Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/e2e-tests/logs/custom-replset-name.log ++ '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/e2e-tests/conf/cloud-secret.yml ']' ++ SKIP_BACKUPS_TO_AWS_GCP_AZURE= ++ oc get projects ++ kubectl get nodes ++ grep '^minikube' +++ grep '\-eks\-' +++ jq -r .serverVersion.gitVersion +++ kubectl version -o json WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1 ++ '[' ']' ++ EKS=0 +++ jq -r .serverVersion.gitVersion +++ grep gke +++ kubectl version -o json WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1 ++ '[' v1.26.15-gke.1243000 ']' ++ GKE=1 +++ jq -r '.serverVersion.major + "." + .serverVersion.minor' +++ /usr/bin/sed -r 's/[^0-9.]+//g' +++ kubectl version -o json WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1 ++ KUBE_VERSION=1.26 + create_infra custom-replset-name-7848 + local ns=custom-replset-name-7848 + 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-1545/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.CfmNl2OAQw ++ mktemp + local LAST_ERR=/tmp/tmp.6q6keNambF + 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-1545/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.CfmNl2OAQw 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.6q6keNambF + rm /tmp/tmp.CfmNl2OAQw /tmp/tmp.6q6keNambF + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/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.9E6oREevin ++ mktemp + local LAST_ERR=/tmp/tmp.zC6hGAvwtf + 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.9E6oREevin + cat /tmp/tmp.zC6hGAvwtf + rm /tmp/tmp.9E6oREevin /tmp/tmp.zC6hGAvwtf + return 0 + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + kubectl get perconaservermongodbrestores.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbrestores.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' E0507 17:57:36.299828 20083 memcache.go:287] couldn't get resource list for psmdb.percona.com/v1-10-0: the server could not find the requested resource E0507 17:57:36.301271 20083 memcache.go:287] couldn't get resource list for psmdb.percona.com/v1-12-0: the server could not find the requested resource E0507 17:57:36.301503 20083 memcache.go:287] couldn't get resource list for psmdb.percona.com/v1: the server could not find the requested resource E0507 17:57:36.301720 20083 memcache.go:287] couldn't get resource list for psmdb.percona.com/v1-11-0: the server could not find the requested resource 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.40EaeZ99Rh ++ mktemp + local LAST_ERR=/tmp/tmp.WSejgZPPBb + 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.40EaeZ99Rh + cat /tmp/tmp.WSejgZPPBb + rm /tmp/tmp.40EaeZ99Rh /tmp/tmp.WSejgZPPBb + return 0 + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbs.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' + kubectl get perconaservermongodbs.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE 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.I4HgU3C0Ws ++ mktemp + local LAST_ERR=/tmp/tmp.o9o4ybewW0 + 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.I4HgU3C0Ws + cat /tmp/tmp.o9o4ybewW0 + rm /tmp/tmp.I4HgU3C0Ws /tmp/tmp.o9o4ybewW0 + 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-1545/deploy/cw-rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.pJFigmDmAD ++ mktemp + local LAST_ERR=/tmp/tmp.eSrBnMb5qy + 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-1545/deploy/cw-rbac.yaml --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.pJFigmDmAD 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.eSrBnMb5qy + rm /tmp/tmp.pJFigmDmAD /tmp/tmp.eSrBnMb5qy + return 0 + check_crd_for_deletion PR-1545-63b8c179 + local git_tag=PR-1545-63b8c179 ++ /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-1545-63b8c179/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.QzVT1dhYA5 +++ mktemp ++ local LAST_ERR=/tmp/tmp.jC7XyuZOEz ++ 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.QzVT1dhYA5 ++ cat /tmp/tmp.jC7XyuZOEz 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.QzVT1dhYA5 ++ cat /tmp/tmp.jC7XyuZOEz 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.QzVT1dhYA5 ++ cat /tmp/tmp.jC7XyuZOEz Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 8 ++ cat /tmp/tmp.QzVT1dhYA5 ++ cat /tmp/tmp.jC7XyuZOEz Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.QzVT1dhYA5 /tmp/tmp.jC7XyuZOEz ++ 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 ++ sed s/NAMESPACE// ++ awk '-F ' '{print $2}' ++ tail -n1 + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ awk '{print $1}' ++ grep chaos-mesh + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get ValidatingWebhookConfiguration + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ grep validate-auth ++ awk '{print $1}' ++ kubectl get ValidatingWebhookConfiguration + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ awk '{print $1}' ++ grep chaos-mesh ++ 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 + : ++ 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 ++ awk '{print $1}' ++ 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 ----------------------------------------------------------------------------------- + kubectl_bin get ns + '[' -n '' ']' + desc 'cleaned up old namespaces psmdb-operator' + xargs kubectl delete ns + 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' + local LAST_OUT=/tmp/tmp.Kateu8O3Vs ++ mktemp + local LAST_ERR=/tmp/tmp.Kl06IDUsTU + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace psmdb-operator --ignore-not-found + awk '{print$1}' ++ mktemp + local LAST_OUT=/tmp/tmp.dllBDQBBTJ ++ mktemp + local LAST_ERR=/tmp/tmp.5XEjrNahT4 + 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.dllBDQBBTJ + cat /tmp/tmp.5XEjrNahT4 + rm /tmp/tmp.dllBDQBBTJ /tmp/tmp.5XEjrNahT4 + return 0 namespace "custom-replset-name-4045" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Kateu8O3Vs namespace "psmdb-operator" deleted + cat /tmp/tmp.Kl06IDUsTU + rm /tmp/tmp.Kateu8O3Vs /tmp/tmp.Kl06IDUsTU + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.VBNr6X6G8I ++ mktemp + local LAST_ERR=/tmp/tmp.om93ZalTzy + 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.VBNr6X6G8I + cat /tmp/tmp.om93ZalTzy + rm /tmp/tmp.VBNr6X6G8I /tmp/tmp.om93ZalTzy + 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.umsY7hD77N ++ mktemp + local LAST_ERR=/tmp/tmp.buZSwbePxf + 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.umsY7hD77N namespace/psmdb-operator created + cat /tmp/tmp.buZSwbePxf + rm /tmp/tmp.umsY7hD77N /tmp/tmp.buZSwbePxf + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.Xg76qCT4we +++ mktemp ++ local LAST_ERR=/tmp/tmp.8rRtngCuxG ++ 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.Xg76qCT4we ++ cat /tmp/tmp.8rRtngCuxG ++ rm /tmp/tmp.Xg76qCT4we /tmp/tmp.8rRtngCuxG ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1545-63b8c179-7-cluster3 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.PSYgrh66ip ++ mktemp + local LAST_ERR=/tmp/tmp.Q9e6cLUTOd + 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-1545-63b8c179-7-cluster3 --namespace=psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.PSYgrh66ip Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1545-63b8c179-7-cluster3" modified. + cat /tmp/tmp.Q9e6cLUTOd + rm /tmp/tmp.PSYgrh66ip /tmp/tmp.Q9e6cLUTOd + 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-1545/e2e-tests/custom-replset-name/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.RUy0QdBZef ++ mktemp + local LAST_ERR=/tmp/tmp.XOaKYZASux + 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-1545/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.RUy0QdBZef 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.XOaKYZASux + rm /tmp/tmp.RUy0QdBZef /tmp/tmp.XOaKYZASux + 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-1545/deploy/cw-rbac.yaml + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.j1lzgvenSt ++ mktemp + local LAST_ERR=/tmp/tmp.lu2cKWAM3x + 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.j1lzgvenSt 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.lu2cKWAM3x + rm /tmp/tmp.j1lzgvenSt /tmp/tmp.lu2cKWAM3x + return 0 + yq eval ' (.spec.template.spec.containers[].image = "perconalab/percona-server-mongodb-operator:PR-1545-63b8c179") | ((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") | ((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/deploy/cw-operator.yaml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.wEPdtjWMPK ++ mktemp + local LAST_ERR=/tmp/tmp.vpGDjHyPGt + 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.wEPdtjWMPK deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.vpGDjHyPGt + rm /tmp/tmp.wEPdtjWMPK /tmp/tmp.vpGDjHyPGt + 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.WZXeB6z09M +++ mktemp ++ local LAST_ERR=/tmp/tmp.OEpeApHKn7 ++ 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.WZXeB6z09M ++ cat /tmp/tmp.OEpeApHKn7 ++ rm /tmp/tmp.WZXeB6z09M /tmp/tmp.OEpeApHKn7 ++ return 0 + wait_pod percona-server-mongodb-operator-76d59f67c-w5bd5 + local pod=percona-server-mongodb-operator-76d59f67c-w5bd5 + set +o xtrace waiting for pod/percona-server-mongodb-operator-76d59f67c-w5bd5 to be ready.OK + create_namespace custom-replset-name-7848 + local namespace=custom-replset-name-7848 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ awk '-F ' '{print $2}' ++ tail -n1 ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get MutatingWebhookConfiguration + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ awk '{print $1}' ++ kubectl get ValidatingWebhookConfiguration ++ 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 + : ++ awk '{print $1}' ++ kubectl api-resources ++ grep chaos-mesh ++ 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 + : ++ kubectl get clusterrolebinding ++ awk '{print $1}' ++ grep chaos-mesh + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ awk '{print $1}' ++ 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 custom-replset-name-7848' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces custom-replset-name-7848 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace custom-replset-name-7848 --ignore-not-found ++ mktemp + xargs kubectl delete ns + kubectl_bin get ns ++ mktemp + local LAST_OUT=/tmp/tmp.L7Vg1yeDqE ++ mktemp + local LAST_ERR=/tmp/tmp.vE0VcqzFe1 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get ns + awk '{print$1}' + local LAST_OUT=/tmp/tmp.zx14GwfUti + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|gke-mcs|^NAME' ++ mktemp + local LAST_ERR=/tmp/tmp.jZwPewmiQR + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace custom-replset-name-7848 --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.L7Vg1yeDqE + cat /tmp/tmp.vE0VcqzFe1 + rm /tmp/tmp.L7Vg1yeDqE /tmp/tmp.vE0VcqzFe1 + 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.zx14GwfUti + cat /tmp/tmp.jZwPewmiQR + rm /tmp/tmp.zx14GwfUti /tmp/tmp.jZwPewmiQR + return 0 + kubectl_bin wait --for=delete namespace custom-replset-name-7848 ++ mktemp + local LAST_OUT=/tmp/tmp.CsgusipgIO ++ mktemp + local LAST_ERR=/tmp/tmp.jCxa3Psmnb + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete namespace custom-replset-name-7848 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.CsgusipgIO + cat /tmp/tmp.jCxa3Psmnb + rm /tmp/tmp.CsgusipgIO /tmp/tmp.jCxa3Psmnb + return 0 + desc 'create namespace custom-replset-name-7848' + set +o xtrace ----------------------------------------------------------------------------------- create namespace custom-replset-name-7848 ----------------------------------------------------------------------------------- + kubectl_bin create namespace custom-replset-name-7848 ++ mktemp + local LAST_OUT=/tmp/tmp.XjQxq2KUbK ++ mktemp + local LAST_ERR=/tmp/tmp.Qbzuc5qyrm + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace custom-replset-name-7848 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.XjQxq2KUbK namespace/custom-replset-name-7848 created + cat /tmp/tmp.Qbzuc5qyrm + rm /tmp/tmp.XjQxq2KUbK /tmp/tmp.Qbzuc5qyrm + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.CnzaUoz81d +++ mktemp ++ local LAST_ERR=/tmp/tmp.aYFvonu9Ct ++ 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.CnzaUoz81d ++ cat /tmp/tmp.aYFvonu9Ct ++ rm /tmp/tmp.CnzaUoz81d /tmp/tmp.aYFvonu9Ct ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1545-63b8c179-7-cluster3 --namespace=custom-replset-name-7848 ++ mktemp + local LAST_OUT=/tmp/tmp.XI3BZBJsFs ++ mktemp + local LAST_ERR=/tmp/tmp.Lt5av5P5tT + 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-1545-63b8c179-7-cluster3 --namespace=custom-replset-name-7848 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.XI3BZBJsFs Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1545-63b8c179-7-cluster3" modified. + cat /tmp/tmp.Lt5av5P5tT + rm /tmp/tmp.XI3BZBJsFs /tmp/tmp.Lt5av5P5tT + return 0 + apply_s3_storage_secrets + desc 'create secrets for cloud storages' + set +o xtrace ----------------------------------------------------------------------------------- create secrets for cloud storages ----------------------------------------------------------------------------------- + '[' -z '' ']' + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/e2e-tests/conf/minio-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/e2e-tests/conf/cloud-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.vEpxiSOdU9 ++ mktemp + local LAST_ERR=/tmp/tmp.bUj120gsb7 + 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-1545/e2e-tests/conf/minio-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/e2e-tests/conf/cloud-secret.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.vEpxiSOdU9 secret/minio-secret created secret/aws-s3-secret created secret/gcp-cs-secret created secret/azure-secret created + cat /tmp/tmp.bUj120gsb7 + rm /tmp/tmp.vEpxiSOdU9 /tmp/tmp.bUj120gsb7 + return 0 + deploy_minio + desc 'install Minio' + set +o xtrace ----------------------------------------------------------------------------------- install Minio ----------------------------------------------------------------------------------- + helm uninstall minio-service Error: uninstall: Release not loaded: minio-service: release: not found + : + helm repo remove minio "minio" has been removed from your repositories + helm repo add minio https://charts.min.io/ "minio" has been added to your repositories + retry 10 60 helm install minio-service --version 5.0.14 --set replicas=1 --set mode=standalone --set resources.requests.memory=256Mi --set rootUser=rootuser --set rootPassword=rootpass123 --set 'users[0].accessKey=some-access-key' --set 'users[0].secretKey=some-secret-key' --set 'users[0].policy=consoleAdmin' --set service.type=ClusterIP --set configPathmc=/tmp/.minio/ --set persistence.size=2G --set securityContext.enabled=false minio/minio + local max=10 + local delay=60 + shift 2 + local n=1 + helm install minio-service --version 5.0.14 --set replicas=1 --set mode=standalone --set resources.requests.memory=256Mi --set rootUser=rootuser --set rootPassword=rootpass123 --set 'users[0].accessKey=some-access-key' --set 'users[0].secretKey=some-secret-key' --set 'users[0].policy=consoleAdmin' --set service.type=ClusterIP --set configPathmc=/tmp/.minio/ --set persistence.size=2G --set securityContext.enabled=false minio/minio NAME: minio-service LAST DEPLOYED: Tue May 7 17:59:03 2024 NAMESPACE: custom-replset-name-7848 STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: MinIO can be accessed via port 9000 on the following DNS name from within your cluster: minio-service.custom-replset-name-7848.svc.cluster.local To access MinIO from localhost, run the below commands: 1. export POD_NAME=$(kubectl get pods --namespace custom-replset-name-7848 -l "release=minio-service" -o jsonpath="{.items[0].metadata.name}") 2. kubectl port-forward $POD_NAME 9000 --namespace custom-replset-name-7848 Read more about port forwarding here: http://kubernetes.io/docs/user-guide/kubectl/kubectl_port-forward/ You can now access MinIO server on http://localhost:9000. Follow the below steps to connect to MinIO server with mc client: 1. Download the MinIO mc client - https://min.io/docs/minio/linux/reference/minio-mc.html#quickstart 2. export MC_HOST_minio-service-local=http://$(kubectl get secret --namespace custom-replset-name-7848 minio-service -o jsonpath="{.data.rootUser}" | base64 --decode):$(kubectl get secret --namespace custom-replset-name-7848 minio-service -o jsonpath="{.data.rootPassword}" | base64 --decode)@localhost:9000 3. mc ls minio-service-local ++ kubectl_bin get pods --selector=release=minio-service -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.EQqCKC5cJw +++ mktemp ++ local LAST_ERR=/tmp/tmp.RwjaE8f6Sc ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pods --selector=release=minio-service -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.EQqCKC5cJw ++ cat /tmp/tmp.RwjaE8f6Sc ++ rm /tmp/tmp.EQqCKC5cJw /tmp/tmp.RwjaE8f6Sc ++ return 0 + MINIO_POD=minio-service-57dd49b-pddrm + wait_pod minio-service-57dd49b-pddrm + local pod=minio-service-57dd49b-pddrm + set +o xtrace waiting for pod/minio-service-57dd49b-pddrm to be ready.OK + '[' -n psmdb-operator ']' + kubectl_bin create svc -n psmdb-operator externalname minio-service --external-name=minio-service.custom-replset-name-7848.svc.cluster.local --tcp=9000 ++ mktemp + local LAST_OUT=/tmp/tmp.aQvvQgaoP0 ++ mktemp + local LAST_ERR=/tmp/tmp.wxuqDBSj52 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create svc -n psmdb-operator externalname minio-service --external-name=minio-service.custom-replset-name-7848.svc.cluster.local --tcp=9000 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.aQvvQgaoP0 service/minio-service created + cat /tmp/tmp.wxuqDBSj52 + rm /tmp/tmp.aQvvQgaoP0 /tmp/tmp.wxuqDBSj52 + return 0 + kubectl_bin run -i --rm aws-cli --image=perconalab/awscli --restart=Never -- bash -c 'AWS_ACCESS_KEY_ID=some-access-key AWS_SECRET_ACCESS_KEY=some-secret-key AWS_DEFAULT_REGION=us-east-1 \ /usr/bin/aws --endpoint-url http://minio-service:9000 s3 mb s3://operator-testing' ++ mktemp + local LAST_OUT=/tmp/tmp.q7N6eMN4Rs ++ mktemp + local LAST_ERR=/tmp/tmp.dUH0vrcVJu + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl run -i --rm aws-cli --image=perconalab/awscli --restart=Never -- bash -c 'AWS_ACCESS_KEY_ID=some-access-key AWS_SECRET_ACCESS_KEY=some-secret-key AWS_DEFAULT_REGION=us-east-1 \ /usr/bin/aws --endpoint-url http://minio-service:9000 s3 mb s3://operator-testing' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.q7N6eMN4Rs make_bucket: operator-testing pod "aws-cli" deleted + cat /tmp/tmp.dUH0vrcVJu If you don't see a command prompt, try pressing enter. warning: couldn't attach to pod/aws-cli, falling back to streaming logs: unable to upgrade connection: container aws-cli not found in pod aws-cli_custom-replset-name-7848 + rm /tmp/tmp.q7N6eMN4Rs /tmp/tmp.dUH0vrcVJu + return 0 + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/e2e-tests/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/e2e-tests/conf/minio-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.xKhQVQ0for ++ mktemp + local LAST_ERR=/tmp/tmp.xEIIhKQSm6 + 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-1545/e2e-tests/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/e2e-tests/conf/minio-secret.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.xKhQVQ0for secret/some-users created deployment.apps/psmdb-client created secret/minio-secret unchanged + cat /tmp/tmp.xEIIhKQSm6 + rm /tmp/tmp.xKhQVQ0for /tmp/tmp.xEIIhKQSm6 + return 0 + cluster=some-name + desc 'create first PSMDB cluster' + set +o xtrace ----------------------------------------------------------------------------------- create first PSMDB cluster ----------------------------------------------------------------------------------- ++ kubectl get storageclass -o custom-columns=NAME:.metadata.name --no-headers=true ++ tail -n1 + sc=standard-rwo + yq eval '(.. | select(has("storageClassName")).storageClassName) = "standard-rwo"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/e2e-tests/custom-replset-name/conf/some-name.yml + apply_cluster /tmp/tmp.z0tEMGHOYv/some-name.yml + '[' -z '' ']' + cat_config /tmp/tmp.z0tEMGHOYv/some-name.yml + 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"' + yq eval '.spec.upgradeOptions.apply="Never"' + kubectl_bin apply -f - + yq eval '(.spec | select(.image == null)).image = "perconalab/percona-server-mongodb-operator:main-mongod7.0"' + yq eval '(.spec | select(has("initImage"))).initImage = "perconalab/percona-server-mongodb-operator:PR-1545-63b8c179"' + cat /tmp/tmp.z0tEMGHOYv/some-name.yml ++ mktemp + local LAST_OUT=/tmp/tmp.o4lp8HTLuq ++ mktemp + local LAST_ERR=/tmp/tmp.c7TfbUSxpU + 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.o4lp8HTLuq perconaservermongodb.psmdb.percona.com/some-name created + cat /tmp/tmp.c7TfbUSxpU + rm /tmp/tmp.o4lp8HTLuq /tmp/tmp.c7TfbUSxpU + return 0 + wait_cluster_consistency some-name + local cluster_name=some-name + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster readyness' waiting for cluster readyness++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ypM6uTef3e +++ mktemp ++ local LAST_ERR=/tmp/tmp.xqp8jBY4mC ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.ypM6uTef3e ++ cat /tmp/tmp.xqp8jBY4mC ++ rm /tmp/tmp.ypM6uTef3e /tmp/tmp.xqp8jBY4mC ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 1 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.IybljoNMPV +++ mktemp ++ local LAST_ERR=/tmp/tmp.uC2KHZlRJ5 ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.IybljoNMPV ++ cat /tmp/tmp.uC2KHZlRJ5 ++ rm /tmp/tmp.IybljoNMPV /tmp/tmp.uC2KHZlRJ5 ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 2 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.vzibmhVCkA +++ mktemp ++ local LAST_ERR=/tmp/tmp.CY4snbr0mg ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.vzibmhVCkA ++ cat /tmp/tmp.CY4snbr0mg ++ rm /tmp/tmp.vzibmhVCkA /tmp/tmp.CY4snbr0mg ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 3 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.2ryNlVl3vY +++ mktemp ++ local LAST_ERR=/tmp/tmp.skcT5lJJfM ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.2ryNlVl3vY ++ cat /tmp/tmp.skcT5lJJfM ++ rm /tmp/tmp.2ryNlVl3vY /tmp/tmp.skcT5lJJfM ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 4 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.LoN2rBlHAi +++ mktemp ++ local LAST_ERR=/tmp/tmp.FMXcNYIIrC ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.LoN2rBlHAi ++ cat /tmp/tmp.FMXcNYIIrC ++ rm /tmp/tmp.LoN2rBlHAi /tmp/tmp.FMXcNYIIrC ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 5 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.J8xF6CUXHb +++ mktemp ++ local LAST_ERR=/tmp/tmp.1pIb6gnCcs ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.J8xF6CUXHb ++ cat /tmp/tmp.1pIb6gnCcs ++ rm /tmp/tmp.J8xF6CUXHb /tmp/tmp.1pIb6gnCcs ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 6 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.JJK7148e5Z +++ mktemp ++ local LAST_ERR=/tmp/tmp.9241vA1HqL ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.JJK7148e5Z ++ cat /tmp/tmp.9241vA1HqL ++ rm /tmp/tmp.JJK7148e5Z /tmp/tmp.9241vA1HqL ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 7 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.6IxZx5Ua1j +++ mktemp ++ local LAST_ERR=/tmp/tmp.05sgmoS58x ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.6IxZx5Ua1j ++ cat /tmp/tmp.05sgmoS58x ++ rm /tmp/tmp.6IxZx5Ua1j /tmp/tmp.05sgmoS58x ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 8 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.DjNx2jpNW8 +++ mktemp ++ local LAST_ERR=/tmp/tmp.xxQsCP68UZ ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.DjNx2jpNW8 ++ cat /tmp/tmp.xxQsCP68UZ ++ rm /tmp/tmp.DjNx2jpNW8 /tmp/tmp.xxQsCP68UZ ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 9 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.I8gXdUrrnX +++ mktemp ++ local LAST_ERR=/tmp/tmp.RckVwoQlyQ ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.I8gXdUrrnX ++ cat /tmp/tmp.RckVwoQlyQ ++ rm /tmp/tmp.I8gXdUrrnX /tmp/tmp.RckVwoQlyQ ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 10 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.bNHpmkzuRR +++ mktemp ++ local LAST_ERR=/tmp/tmp.4vwJTiaiAW ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.bNHpmkzuRR ++ cat /tmp/tmp.4vwJTiaiAW ++ rm /tmp/tmp.bNHpmkzuRR /tmp/tmp.4vwJTiaiAW ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 11 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.sDo8rz0XCu +++ mktemp ++ local LAST_ERR=/tmp/tmp.nJlqbUdICv ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.sDo8rz0XCu ++ cat /tmp/tmp.nJlqbUdICv ++ rm /tmp/tmp.sDo8rz0XCu /tmp/tmp.nJlqbUdICv ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 12 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.F3UbASOiZi +++ mktemp ++ local LAST_ERR=/tmp/tmp.g4jdwLfDHD ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.F3UbASOiZi ++ cat /tmp/tmp.g4jdwLfDHD ++ rm /tmp/tmp.F3UbASOiZi /tmp/tmp.g4jdwLfDHD ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 13 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.FeFrHXsnyZ +++ mktemp ++ local LAST_ERR=/tmp/tmp.S5RJL0bk2B ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.FeFrHXsnyZ ++ cat /tmp/tmp.S5RJL0bk2B ++ rm /tmp/tmp.FeFrHXsnyZ /tmp/tmp.S5RJL0bk2B ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 14 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.iFaEZoCgF8 +++ mktemp ++ local LAST_ERR=/tmp/tmp.shxE6X03eQ ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.iFaEZoCgF8 ++ cat /tmp/tmp.shxE6X03eQ ++ rm /tmp/tmp.iFaEZoCgF8 /tmp/tmp.shxE6X03eQ ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 15 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.As8A8d21R0 +++ mktemp ++ local LAST_ERR=/tmp/tmp.dRaES35AqL ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.As8A8d21R0 ++ cat /tmp/tmp.dRaES35AqL ++ rm /tmp/tmp.As8A8d21R0 /tmp/tmp.dRaES35AqL ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 16 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.eVrTxB0MGH +++ mktemp ++ local LAST_ERR=/tmp/tmp.WAUzwOjnuJ ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.eVrTxB0MGH ++ cat /tmp/tmp.WAUzwOjnuJ ++ rm /tmp/tmp.eVrTxB0MGH /tmp/tmp.WAUzwOjnuJ ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 17 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.qJSIbOZO6s +++ mktemp ++ local LAST_ERR=/tmp/tmp.UDhC9mWlEP ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.qJSIbOZO6s ++ cat /tmp/tmp.UDhC9mWlEP ++ rm /tmp/tmp.qJSIbOZO6s /tmp/tmp.UDhC9mWlEP ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 18 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Dlb6y1f1dz +++ mktemp ++ local LAST_ERR=/tmp/tmp.OpK6hZobxy ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.Dlb6y1f1dz ++ cat /tmp/tmp.OpK6hZobxy ++ rm /tmp/tmp.Dlb6y1f1dz /tmp/tmp.OpK6hZobxy ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 19 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.fr5neBthY4 +++ mktemp ++ local LAST_ERR=/tmp/tmp.tM9b52tA5K ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.fr5neBthY4 ++ cat /tmp/tmp.tM9b52tA5K ++ rm /tmp/tmp.fr5neBthY4 /tmp/tmp.tM9b52tA5K ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 20 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.lO72DUqz26 +++ mktemp ++ local LAST_ERR=/tmp/tmp.hA5M9tUftW ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.lO72DUqz26 ++ cat /tmp/tmp.hA5M9tUftW ++ rm /tmp/tmp.lO72DUqz26 /tmp/tmp.hA5M9tUftW ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 21 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.K1UqC8VK4c +++ mktemp ++ local LAST_ERR=/tmp/tmp.Pp4MGK8J2b ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.K1UqC8VK4c ++ cat /tmp/tmp.Pp4MGK8J2b ++ rm /tmp/tmp.K1UqC8VK4c /tmp/tmp.Pp4MGK8J2b ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 22 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.uiyNetx51E +++ mktemp ++ local LAST_ERR=/tmp/tmp.iMXDC9RmyF ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.uiyNetx51E ++ cat /tmp/tmp.iMXDC9RmyF ++ rm /tmp/tmp.uiyNetx51E /tmp/tmp.iMXDC9RmyF ++ return 0 + [[ ready == \r\e\a\d\y ]] + desc 'write data, read from all' + set +o xtrace ----------------------------------------------------------------------------------- write data, read from all ----------------------------------------------------------------------------------- + run_mongos 'db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})' userAdmin:userAdmin123456@some-name-mongos.custom-replset-name-7848 + local 'command=db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})' + local uri=userAdmin:userAdmin123456@some-name-mongos.custom-replset-name-7848 + local driver=mongodb + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.LeobFN5NsA +++ mktemp ++ local LAST_ERR=/tmp/tmp.oHG8G6ZEQy ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.LeobFN5NsA ++ cat /tmp/tmp.oHG8G6ZEQy ++ rm /tmp/tmp.LeobFN5NsA /tmp/tmp.oHG8G6ZEQy ++ return 0 + local client_container=psmdb-client-7469665986-tc45v + local mongo_flag= + kubectl_bin exec psmdb-client-7469665986-tc45v -- bash -c 'printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n'\'' | mongo mongodb://userAdmin:userAdmin123456@some-name-mongos.custom-replset-name-7848.svc.cluster.local/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.SWlOQqBZ7T ++ mktemp + local LAST_ERR=/tmp/tmp.0jDsnGlJUF + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl exec psmdb-client-7469665986-tc45v -- bash -c 'printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n'\'' | mongo mongodb://userAdmin:userAdmin123456@some-name-mongos.custom-replset-name-7848.svc.cluster.local/admin ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.SWlOQqBZ7T Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.custom-replset-name-7848.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("3b59b799-4f74-46ca-97bf-44ad5fed5ab3") } Percona Server for MongoDB server version: v4.4.10-11 Successfully added user: { "user" : "myApp", "roles" : [ { "db" : "myApp", "role" : "readWrite" } ] } bye + cat /tmp/tmp.0jDsnGlJUF + rm /tmp/tmp.SWlOQqBZ7T /tmp/tmp.0jDsnGlJUF + return 0 + sleep 2 + run_mongos 'use myApp\n db.test.insert({ x: 100500 })' myApp:myPass@some-name-mongos.custom-replset-name-7848 + local 'command=use myApp\n db.test.insert({ x: 100500 })' + local uri=myApp:myPass@some-name-mongos.custom-replset-name-7848 + local driver=mongodb + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.d9kvPck27h +++ mktemp ++ local LAST_ERR=/tmp/tmp.TvtnO2VqpU ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.d9kvPck27h ++ cat /tmp/tmp.TvtnO2VqpU ++ rm /tmp/tmp.d9kvPck27h /tmp/tmp.TvtnO2VqpU ++ return 0 + local client_container=psmdb-client-7469665986-tc45v + local mongo_flag= + kubectl_bin exec psmdb-client-7469665986-tc45v -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.custom-replset-name-7848.svc.cluster.local/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.nNlPx4h9ME ++ mktemp + local LAST_ERR=/tmp/tmp.K3gKHmEYhr + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl exec psmdb-client-7469665986-tc45v -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb://myApp:myPass@some-name-mongos.custom-replset-name-7848.svc.cluster.local/admin ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.nNlPx4h9ME Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-mongos.custom-replset-name-7848.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("8ddf0d5d-8755-4cd9-bc67-ceab6030c596") } Percona Server for MongoDB server version: v4.4.10-11 switched to db myApp WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.K3gKHmEYhr + rm /tmp/tmp.nNlPx4h9ME /tmp/tmp.K3gKHmEYhr + return 0 + wait_backup_agent some-name-shard1-0 + local agent_pod=some-name-shard1-0 + set +o xtrace some-name-shard1-0 + wait_backup_agent some-name-shard1-1 + local agent_pod=some-name-shard1-1 + set +o xtrace some-name-shard1-1 + wait_backup_agent some-name-shard1-2 + local agent_pod=some-name-shard1-2 + set +o xtrace some-name-shard1-2 + wait_backup_agent some-name-shard3-0 + local agent_pod=some-name-shard3-0 + set +o xtrace some-name-shard3-0 + wait_backup_agent some-name-shard3-1 + local agent_pod=some-name-shard3-1 + set +o xtrace some-name-shard3-1 + wait_backup_agent some-name-shard3-2 + local agent_pod=some-name-shard3-2 + set +o xtrace some-name-shard3-2 + wait_backup_agent some-name-shard5-0 + local agent_pod=some-name-shard5-0 + set +o xtrace some-name-shard5-0 + wait_backup_agent some-name-shard5-1 + local agent_pod=some-name-shard5-1 + set +o xtrace some-name-shard5-1 + wait_backup_agent some-name-shard5-2 + local agent_pod=some-name-shard5-2 + set +o xtrace some-name-shard5-2 + wait_backup_agent some-name-shard7-0 + local agent_pod=some-name-shard7-0 + set +o xtrace some-name-shard7-0 + wait_backup_agent some-name-shard7-1 + local agent_pod=some-name-shard7-1 + set +o xtrace some-name-shard7-1 + wait_backup_agent some-name-shard7-2 + local agent_pod=some-name-shard7-2 + set +o xtrace some-name-shard7-2 + backup_name_minio=backup-minio + desc 'run backups' + set +o xtrace ----------------------------------------------------------------------------------- run backups ----------------------------------------------------------------------------------- + run_backup minio + local storage=minio + local backup_name=backup-minio + desc 'run backup backup-minio' + set +o xtrace ----------------------------------------------------------------------------------- run backup backup-minio ----------------------------------------------------------------------------------- + kubectl_bin apply -f - + yq eval '.metadata.name = "backup-minio" | .spec.storageName = "minio"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/e2e-tests/custom-replset-name/conf/backup-minio.yml ++ mktemp + local LAST_OUT=/tmp/tmp.R28k2Svh6L ++ mktemp + local LAST_ERR=/tmp/tmp.Enp0YP4sNC + 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.R28k2Svh6L perconaservermongodbbackup.psmdb.percona.com/backup-minio created + cat /tmp/tmp.Enp0YP4sNC + rm /tmp/tmp.R28k2Svh6L /tmp/tmp.Enp0YP4sNC + return 0 + wait_backup backup-minio + local backup_name=backup-minio + set +o xtrace backup-minio................ + desc 'check backup and restore -- minio' + set +o xtrace ----------------------------------------------------------------------------------- check backup and restore -- minio ----------------------------------------------------------------------------------- + run_restore backup-minio 3 1 -mongos + local backup_name=backup-minio + /usr/bin/sed -e 's/name:/name: restore-backup-minio/' + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/e2e-tests/custom-replset-name/conf/restore.yml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.cA7j4koXVx ++ mktemp + local LAST_ERR=/tmp/tmp.llbsquevWf + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + /usr/bin/sed -e 's/backupName:/backupName: backup-minio/' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.cA7j4koXVx perconaservermongodbrestore.psmdb.percona.com/restore-backup-minio created + cat /tmp/tmp.llbsquevWf + rm /tmp/tmp.cA7j4koXVx /tmp/tmp.llbsquevWf + return 0 + sleep 120 + wait_restore backup-minio some-name ready + local backup_name=backup-minio + local cluster_name=some-name + local target_state=ready + local wait_cluster_consistency=1 + local wait_time=780 + set +o xtrace waiting psmdb-restore/backup-minio to reach ready state. + '[' 1 -eq 1 ']' + wait_cluster_consistency some-name + local cluster_name=some-name + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster readyness' waiting for cluster readyness++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.uVa54geX6g +++ mktemp ++ local LAST_ERR=/tmp/tmp.UXy3jDc1mj ++ 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={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.uVa54geX6g ++ cat /tmp/tmp.UXy3jDc1mj ++ rm /tmp/tmp.uVa54geX6g /tmp/tmp.UXy3jDc1mj ++ return 0 + [[ ready == \r\e\a\d\y ]] + destroy custom-replset-name-7848 + local namespace=custom-replset-name-7848 + local ignore_logs=true + desc 'destroy cluster/operator and all other resources' + set +o xtrace ----------------------------------------------------------------------------------- destroy cluster/operator and all other resources ----------------------------------------------------------------------------------- + '[' true == false ']' + 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-1545/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.xB6ZCq49TT ++ mktemp + local LAST_ERR=/tmp/tmp.yC10eNJqa9 + 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-1545/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.xB6ZCq49TT 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.yC10eNJqa9 + rm /tmp/tmp.xB6ZCq49TT /tmp/tmp.yC10eNJqa9 + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1545/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 + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbbackups.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' + grep -v NAMESPACE 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.hkpMlgmbvi ++ mktemp + local LAST_ERR=/tmp/tmp.y9oK1OGk0Z + 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.hkpMlgmbvi + cat /tmp/tmp.y9oK1OGk0Z + rm /tmp/tmp.hkpMlgmbvi /tmp/tmp.y9oK1OGk0Z + return 0 + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + kubectl get perconaservermongodbrestores.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbrestores.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbrestores" + 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.fOKTTqMt9M ++ mktemp + local LAST_ERR=/tmp/tmp.0gTiNqvs1Z + 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.fOKTTqMt9M + cat /tmp/tmp.0gTiNqvs1Z + rm /tmp/tmp.fOKTTqMt9M /tmp/tmp.0gTiNqvs1Z + return 0 + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbs.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' + kubectl get perconaservermongodbs.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE 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.kQe3LqM1gS ++ mktemp + local LAST_ERR=/tmp/tmp.im2OrMe6C2 + 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.kQe3LqM1gS + cat /tmp/tmp.im2OrMe6C2 + rm /tmp/tmp.kQe3LqM1gS /tmp/tmp.im2OrMe6C2 + 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-1545/deploy/cw-rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.g7wkMX7Fo9 ++ mktemp + local LAST_ERR=/tmp/tmp.lBfia0U7sa + 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-1545/deploy/cw-rbac.yaml --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.g7wkMX7Fo9 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.lBfia0U7sa + rm /tmp/tmp.g7wkMX7Fo9 /tmp/tmp.lBfia0U7sa + return 0 + kubectl_bin delete -f https://github.com/cert-manager/cert-manager/releases/download/v1.12.4/cert-manager.yaml + : + '[' -n '' ']' + '[' -n psmdb-operator ']' + rm -rf /tmp/tmp.z0tEMGHOYv + kubectl_bin delete --grace-period=0 --force=true namespace custom-replset-name-7848 ++ mktemp + local LAST_OUT=/tmp/tmp.GeahrjL1Po ++ mktemp + local LAST_ERR=/tmp/tmp.jaFHhnLhxq + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete --grace-period=0 --force=true namespace custom-replset-name-7848 + kubectl_bin delete --grace-period=0 --force=true namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.FvZypGwpyT ++ mktemp + local LAST_ERR=/tmp/tmp.YAG9mvYF2k + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete --grace-period=0 --force=true namespace psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.FvZypGwpyT namespace "psmdb-operator" force deleted + cat /tmp/tmp.YAG9mvYF2k Warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. + rm /tmp/tmp.FvZypGwpyT /tmp/tmp.YAG9mvYF2k + return 0