Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/logs/scheduled-backup.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 + create_infra scheduled-backup-26686 + local ns=scheduled-backup-26686 + 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-1914/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.fJYLOqluvl ++ mktemp + local LAST_ERR=/tmp/tmp.sgpK0qZx3s + 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-1914/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.fJYLOqluvl 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.sgpK0qZx3s + rm /tmp/tmp.fJYLOqluvl /tmp/tmp.sgpK0qZx3s + return 0 ++ grep -v '\-\-\-' ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/deploy/crd.yaml + 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 No resources found + 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.Y4x7frLZ67 ++ mktemp + local LAST_ERR=/tmp/tmp.dSEsnQrKf5 + 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.Y4x7frLZ67 + cat /tmp/tmp.dSEsnQrKf5 + rm /tmp/tmp.Y4x7frLZ67 /tmp/tmp.dSEsnQrKf5 + 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.zk8AfH5NAO ++ mktemp + local LAST_ERR=/tmp/tmp.oWw4NBj48G + 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.zk8AfH5NAO + cat /tmp/tmp.oWw4NBj48G + rm /tmp/tmp.zk8AfH5NAO /tmp/tmp.oWw4NBj48G + return 0 + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + kubectl get perconaservermongodbs.psmdb.percona.com --all-namespaces -o wide + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbs.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' + 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.DpGme2xjPw ++ mktemp + local LAST_ERR=/tmp/tmp.kJHoUQqc3D + 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.DpGme2xjPw + cat /tmp/tmp.kJHoUQqc3D + rm /tmp/tmp.DpGme2xjPw /tmp/tmp.kJHoUQqc3D + 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-1914/deploy/cw-rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.jGmG5946Fe ++ mktemp + local LAST_ERR=/tmp/tmp.SCVL4O7aAu + 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-1914/deploy/cw-rbac.yaml --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.jGmG5946Fe 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.SCVL4O7aAu + rm /tmp/tmp.jGmG5946Fe /tmp/tmp.SCVL4O7aAu + return 0 + check_crd_for_deletion PR-1914-868a9e61 + local git_tag=PR-1914-868a9e61 ++ yq eval .metadata.name ++ /usr/bin/sed s/---//g ++ /usr/bin/sed ':a;N;$!ba;s/\n/ /g' ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-1914-868a9e61/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.UuXKmwODJE +++ mktemp ++ local LAST_ERR=/tmp/tmp.SskOjrQPK5 ++ 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.UuXKmwODJE ++ cat /tmp/tmp.SskOjrQPK5 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.UuXKmwODJE ++ cat /tmp/tmp.SskOjrQPK5 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.UuXKmwODJE ++ cat /tmp/tmp.SskOjrQPK5 Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 8 ++ cat /tmp/tmp.UuXKmwODJE ++ cat /tmp/tmp.SskOjrQPK5 Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.UuXKmwODJE /tmp/tmp.SskOjrQPK5 ++ 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 ++ 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 + : ++ awk '{print $1}' ++ grep chaos-mesh ++ kubectl api-resources ++ awk '{print $1}' ++ grep chaos-mesh.org ++ kubectl get crd + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ awk '{print $1}' ++ kubectl get clusterrole ++ grep chaos-mesh + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + '[' -n '' ']' + desc 'cleaned up old namespaces psmdb-operator' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin delete namespace psmdb-operator --ignore-not-found + xargs kubectl delete ns + awk '{print$1}' + kubectl_bin get ns ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.C2oPvQBysE + local LAST_OUT=/tmp/tmp.Xos3KgJOUq ++ mktemp + local LAST_ERR=/tmp/tmp.SQW4b4c4i0 + local exit_status=0 + local timeout=4 ++ mktemp + local LAST_ERR=/tmp/tmp.SU4vw2LJHL + local exit_status=0 + local timeout=4 ++ seq 0 2 + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|gke-mcs|^NAME' + for i in '$(seq 0 2)' + set +e + kubectl get ns ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace psmdb-operator --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.C2oPvQBysE + cat /tmp/tmp.SQW4b4c4i0 + rm /tmp/tmp.C2oPvQBysE /tmp/tmp.SQW4b4c4i0 + return 0 namespace "gke-managed-cim" deleted namespace "gke-managed-system" deleted namespace "gmp-public" deleted namespace "gmp-system" deleted namespace "scheduled-backup-911" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Xos3KgJOUq namespace "psmdb-operator" deleted + cat /tmp/tmp.SU4vw2LJHL + rm /tmp/tmp.Xos3KgJOUq /tmp/tmp.SU4vw2LJHL + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.1kkq79B74N ++ mktemp + local LAST_ERR=/tmp/tmp.CrMSezMbdo + 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.1kkq79B74N + cat /tmp/tmp.CrMSezMbdo + rm /tmp/tmp.1kkq79B74N /tmp/tmp.CrMSezMbdo + 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.LE81HRN0Yx ++ mktemp + local LAST_ERR=/tmp/tmp.DGaWEYZY5n + 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.LE81HRN0Yx namespace/psmdb-operator created + cat /tmp/tmp.DGaWEYZY5n + rm /tmp/tmp.LE81HRN0Yx /tmp/tmp.DGaWEYZY5n + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.C1PGWRnYWb +++ mktemp ++ local LAST_ERR=/tmp/tmp.Tz60ceYmtK ++ 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.C1PGWRnYWb ++ cat /tmp/tmp.Tz60ceYmtK ++ rm /tmp/tmp.C1PGWRnYWb /tmp/tmp.Tz60ceYmtK ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1914-868a9e61-1-cluster6 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.lambxEyLAN ++ mktemp + local LAST_ERR=/tmp/tmp.nM1J7DGysf + 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-1914-868a9e61-1-cluster6 --namespace=psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.lambxEyLAN Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1914-868a9e61-1-cluster6" modified. + cat /tmp/tmp.nM1J7DGysf + rm /tmp/tmp.lambxEyLAN /tmp/tmp.nM1J7DGysf + 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-1914/e2e-tests/scheduled-backup/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.4Q7LTDIwDb ++ mktemp + local LAST_ERR=/tmp/tmp.zhcMZKMcQo + 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-1914/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.4Q7LTDIwDb 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.zhcMZKMcQo + rm /tmp/tmp.4Q7LTDIwDb /tmp/tmp.zhcMZKMcQo + return 0 + '[' -n psmdb-operator ']' + apply_rbac cw-rbac + local operator_namespace=psmdb-operator + local rbac=cw-rbac + sed -e 's^namespace: .*^namespace: psmdb-operator^' + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/deploy/cw-rbac.yaml + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.SvkMwWkyoa ++ mktemp + local LAST_ERR=/tmp/tmp.RRYf8egzA1 + 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.SvkMwWkyoa 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.RRYf8egzA1 + rm /tmp/tmp.SvkMwWkyoa /tmp/tmp.RRYf8egzA1 + return 0 + yq eval ' (.spec.template.spec.containers[].image = "perconalab/percona-server-mongodb-operator:PR-1914-868a9e61") | ((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") | ((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/deploy/cw-operator.yaml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.x18RubfnXL ++ mktemp + local LAST_ERR=/tmp/tmp.i2FOJO0FIu + 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.x18RubfnXL deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.i2FOJO0FIu + rm /tmp/tmp.x18RubfnXL /tmp/tmp.i2FOJO0FIu + 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.nZsG1V3Ass +++ mktemp ++ local LAST_ERR=/tmp/tmp.hFubezhy0G ++ 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.nZsG1V3Ass ++ cat /tmp/tmp.hFubezhy0G ++ rm /tmp/tmp.nZsG1V3Ass /tmp/tmp.hFubezhy0G ++ return 0 + wait_pod percona-server-mongodb-operator-76fddbf487-sl8ch + local pod=percona-server-mongodb-operator-76fddbf487-sl8ch + set +o xtrace waiting for pod/percona-server-mongodb-operator-76fddbf487-sl8ch to be ready.OK + create_namespace scheduled-backup-26686 + local namespace=scheduled-backup-26686 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ awk '-F ' '{print $2}' ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ 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 ++ awk '{print $1}' ++ grep validate-auth + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ awk '{print $1}' ++ grep chaos-mesh ++ kubectl api-resources ++ 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 + : ++ 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 scheduled-backup-26686' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces scheduled-backup-26686 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace scheduled-backup-26686 --ignore-not-found + kubectl_bin get ns + awk '{print$1}' + xargs kubectl delete ns + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|gke-mcs|^NAME' ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.CzGVEyqax9 + local LAST_OUT=/tmp/tmp.822y0NM67s ++ mktemp + local LAST_ERR=/tmp/tmp.sE1t0wpV4o + local exit_status=0 + local timeout=4 ++ mktemp + local LAST_ERR=/tmp/tmp.ZKqLPktyVB + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace scheduled-backup-26686 --ignore-not-found ++ 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.CzGVEyqax9 + cat /tmp/tmp.ZKqLPktyVB + rm /tmp/tmp.CzGVEyqax9 /tmp/tmp.ZKqLPktyVB + return 0 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.822y0NM67s + cat /tmp/tmp.sE1t0wpV4o + rm /tmp/tmp.822y0NM67s /tmp/tmp.sE1t0wpV4o + return 0 + kubectl_bin wait --for=delete namespace scheduled-backup-26686 ++ mktemp + local LAST_OUT=/tmp/tmp.PFgbLkkZR0 ++ mktemp + local LAST_ERR=/tmp/tmp.hwpUp5v4Wx + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete namespace scheduled-backup-26686 namespace "gke-managed-cim" deleted namespace "gke-managed-system" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.PFgbLkkZR0 + cat /tmp/tmp.hwpUp5v4Wx + rm /tmp/tmp.PFgbLkkZR0 /tmp/tmp.hwpUp5v4Wx + return 0 + desc 'create namespace scheduled-backup-26686' + set +o xtrace ----------------------------------------------------------------------------------- create namespace scheduled-backup-26686 ----------------------------------------------------------------------------------- + kubectl_bin create namespace scheduled-backup-26686 namespace "gmp-public" deleted ++ mktemp + local LAST_OUT=/tmp/tmp.hiSpfKc6b1 ++ mktemp + local LAST_ERR=/tmp/tmp.308DHcZL9f + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace scheduled-backup-26686 namespace "gmp-system" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.hiSpfKc6b1 namespace/scheduled-backup-26686 created + cat /tmp/tmp.308DHcZL9f + rm /tmp/tmp.hiSpfKc6b1 /tmp/tmp.308DHcZL9f + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.9RPbdw5OoQ +++ mktemp ++ local LAST_ERR=/tmp/tmp.pK5yrq0kPM ++ 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.9RPbdw5OoQ ++ cat /tmp/tmp.pK5yrq0kPM ++ rm /tmp/tmp.9RPbdw5OoQ /tmp/tmp.pK5yrq0kPM ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1914-868a9e61-1-cluster6 --namespace=scheduled-backup-26686 ++ mktemp + local LAST_OUT=/tmp/tmp.iXVEGImBIg ++ mktemp + local LAST_ERR=/tmp/tmp.aAxgBhccQV + 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-1914-868a9e61-1-cluster6 --namespace=scheduled-backup-26686 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.iXVEGImBIg Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1914-868a9e61-1-cluster6" modified. + cat /tmp/tmp.aAxgBhccQV + rm /tmp/tmp.iXVEGImBIg /tmp/tmp.aAxgBhccQV + 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: Mon May 12 03:21:29 2025 NAMESPACE: scheduled-backup-26686 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.scheduled-backup-26686.svc.cluster.local To access MinIO from localhost, run the below commands: 1. export POD_NAME=$(kubectl get pods --namespace scheduled-backup-26686 -l "release=minio-service" -o jsonpath="{.items[0].metadata.name}") 2. kubectl port-forward $POD_NAME 9000 --namespace scheduled-backup-26686 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 scheduled-backup-26686 minio-service -o jsonpath="{.data.rootUser}" | base64 --decode):$(kubectl get secret --namespace scheduled-backup-26686 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.pNHrrmVU0Y +++ mktemp ++ local LAST_ERR=/tmp/tmp.zagQ1Si2cm ++ 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.pNHrrmVU0Y ++ cat /tmp/tmp.zagQ1Si2cm ++ rm /tmp/tmp.pNHrrmVU0Y /tmp/tmp.zagQ1Si2cm ++ return 0 + MINIO_POD=minio-service-8967c7f7f-8wjlq + wait_pod minio-service-8967c7f7f-8wjlq + local pod=minio-service-8967c7f7f-8wjlq + set +o xtrace waiting for pod/minio-service-8967c7f7f-8wjlq to be ready.OK + '[' -n psmdb-operator ']' + kubectl_bin create svc -n psmdb-operator externalname minio-service --external-name=minio-service.scheduled-backup-26686.svc.cluster.local --tcp=9000 ++ mktemp + local LAST_OUT=/tmp/tmp.sA5wpLZ3Hc ++ mktemp + local LAST_ERR=/tmp/tmp.TwcCQsuDgR + 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.scheduled-backup-26686.svc.cluster.local --tcp=9000 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.sA5wpLZ3Hc service/minio-service created + cat /tmp/tmp.TwcCQsuDgR + rm /tmp/tmp.sA5wpLZ3Hc /tmp/tmp.TwcCQsuDgR + return 0 + create_minio_bucket operator-testing + local bucket=operator-testing + 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.M4dUqYEIWB ++ mktemp + local LAST_ERR=/tmp/tmp.g1HQSGSxia + 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.M4dUqYEIWB make_bucket: operator-testing pod "aws-cli" deleted + cat /tmp/tmp.g1HQSGSxia If you don't see a command prompt, try pressing enter. warning: couldn't attach to pod/aws-cli, falling back to streaming logs: Internal error occurred: unable to upgrade connection: container aws-cli not found in pod aws-cli_scheduled-backup-26686 + rm /tmp/tmp.M4dUqYEIWB /tmp/tmp.g1HQSGSxia + return 0 + label_node ++ kubectl_bin get nodes -o custom-columns=NAME:.metadata.name --no-headers=true ++ head -n1 +++ mktemp ++ local LAST_OUT=/tmp/tmp.s7oAxGxBVS +++ mktemp ++ local LAST_ERR=/tmp/tmp.sCSVswsYkK ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get nodes -o custom-columns=NAME:.metadata.name --no-headers=true ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.s7oAxGxBVS ++ cat /tmp/tmp.sCSVswsYkK ++ rm /tmp/tmp.s7oAxGxBVS /tmp/tmp.sCSVswsYkK ++ return 0 + LABELED_NODE=gke-jen-psmdb-1914-868a9-default-pool-9b46a98a-6pnk + desc 'add labels' + set +o xtrace ----------------------------------------------------------------------------------- add labels ----------------------------------------------------------------------------------- + kubectl_bin label nodes gke-jen-psmdb-1914-868a9-default-pool-9b46a98a-6pnk backupWorker=True --overwrite ++ mktemp + local LAST_OUT=/tmp/tmp.h6oTXtldFk ++ mktemp + local LAST_ERR=/tmp/tmp.1jzmkbq99g + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl label nodes gke-jen-psmdb-1914-868a9-default-pool-9b46a98a-6pnk backupWorker=True --overwrite + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.h6oTXtldFk node/gke-jen-psmdb-1914-868a9-default-pool-9b46a98a-6pnk not labeled + cat /tmp/tmp.1jzmkbq99g + rm /tmp/tmp.h6oTXtldFk /tmp/tmp.1jzmkbq99g + return 0 + desc 'create PriorityClass' + set +o xtrace ----------------------------------------------------------------------------------- create PriorityClass ----------------------------------------------------------------------------------- + kubectl apply -f - + cat - priorityclass.scheduling.k8s.io/high-priority configured + desc 'create secrets and start client' + set +o xtrace ----------------------------------------------------------------------------------- create secrets and start client ----------------------------------------------------------------------------------- + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/conf/client.yml ++ mktemp + local LAST_OUT=/tmp/tmp.ugb9FTwra8 ++ mktemp + local LAST_ERR=/tmp/tmp.HxBzvNxp8S + 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-1914/e2e-tests/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/conf/client.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ugb9FTwra8 secret/some-users created deployment.apps/psmdb-client created + cat /tmp/tmp.HxBzvNxp8S + rm /tmp/tmp.ugb9FTwra8 /tmp/tmp.HxBzvNxp8S + 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-1914/e2e-tests/conf/minio-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/conf/cloud-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.77EFhKhul2 ++ mktemp + local LAST_ERR=/tmp/tmp.LxRzPpQQqi + 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-1914/e2e-tests/conf/minio-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/conf/cloud-secret.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.77EFhKhul2 secret/minio-secret created secret/aws-s3-secret created secret/gcp-cs-secret created secret/azure-secret created + cat /tmp/tmp.LxRzPpQQqi + rm /tmp/tmp.77EFhKhul2 /tmp/tmp.LxRzPpQQqi + return 0 + cluster=some-name-rs0 + desc 'create first PSMDB cluster some-name-rs0' + set +o xtrace ----------------------------------------------------------------------------------- create first PSMDB cluster some-name-rs0 ----------------------------------------------------------------------------------- + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/scheduled-backup/conf/some-name-rs0.yml + '[' -z '' ']' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.8gzCFgN5AJ + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/scheduled-backup/conf/some-name-rs0.yml + yq eval '.spec.upgradeOptions.apply="Never"' + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/scheduled-backup/conf/some-name-rs0.yml + yq eval '(.spec | select(.image == null)).image = "perconalab/percona-server-mongodb-operator:main-mongod8.0"' ++ mktemp + local LAST_ERR=/tmp/tmp.XCOE2nbcPI + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + yq eval '(.spec | select(has("pmm"))).pmm.image = "perconalab/pmm-client:dev-latest"' + yq eval '(.spec | select(has("initImage"))).initImage = "perconalab/percona-server-mongodb-operator:PR-1914-868a9e61"' + yq eval '(.spec | select(has("backup"))).backup.image = "perconalab/percona-server-mongodb-operator:main-backup"' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.8gzCFgN5AJ perconaservermongodb.psmdb.percona.com/some-name created + cat /tmp/tmp.XCOE2nbcPI + rm /tmp/tmp.8gzCFgN5AJ /tmp/tmp.XCOE2nbcPI + return 0 + desc 'check if all 3 Pods started' + set +o xtrace ----------------------------------------------------------------------------------- check if all 3 Pods started ----------------------------------------------------------------------------------- + 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.gsWHlT6I5s +++ mktemp ++ local LAST_ERR=/tmp/tmp.veOkXc5Nfo ++ 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.gsWHlT6I5s ++ cat /tmp/tmp.veOkXc5Nfo ++ rm /tmp/tmp.gsWHlT6I5s /tmp/tmp.veOkXc5Nfo ++ 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.aPsFhp7aZl +++ mktemp ++ local LAST_ERR=/tmp/tmp.9Z9H4qD5EB ++ 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.aPsFhp7aZl ++ cat /tmp/tmp.9Z9H4qD5EB ++ rm /tmp/tmp.aPsFhp7aZl /tmp/tmp.9Z9H4qD5EB ++ return 0 + [[ '' == \t\r\u\e ]] + sleep 10 + [[ true == \t\r\u\e ]] + set +x Waiting for cluster readyness. + desc 'check if service and statefulset created with expected config' + set +o xtrace ----------------------------------------------------------------------------------- check if service and 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-1914/e2e-tests/scheduled-backup/compare/statefulset_some-name-rs0.yml + local new_result=/tmp/tmp.KXrhaSAExI/statefulset_some-name-rs0.yml + '[' -n '' -a -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/scheduled-backup/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("scheduled-backup-26686", "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.rGz4a67EPQ ++ mktemp + local LAST_ERR=/tmp/tmp.ERSasHZ38h + 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.rGz4a67EPQ + cat /tmp/tmp.ERSasHZ38h + rm /tmp/tmp.rGz4a67EPQ /tmp/tmp.ERSasHZ38h + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.KXrhaSAExI/statefulset_some-name-rs0.yml + version_gt 1.22 ++ echo '1.30 >= 1.22' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + yq -i eval 'del(.spec.internalTrafficPolicy)' /tmp/tmp.KXrhaSAExI/statefulset_some-name-rs0.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.KXrhaSAExI/statefulset_some-name-rs0.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/scheduled-backup/compare/statefulset_some-name-rs0.yml == */cronjob* ]] + '[' -n '' ']' + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/scheduled-backup/compare/statefulset_some-name-rs0.yml /tmp/tmp.KXrhaSAExI/statefulset_some-name-rs0.yml + desc 'create user myApp' + set +o xtrace ----------------------------------------------------------------------------------- create user myApp ----------------------------------------------------------------------------------- + run_mongo 'db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})' userAdmin:userAdmin123456@some-name-rs0.scheduled-backup-26686 + local 'command=db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})' + local uri=userAdmin:userAdmin123456@some-name-rs0.scheduled-backup-26686 + local driver=mongodb+srv + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.cyT3EZH3XI +++ mktemp ++ local LAST_ERR=/tmp/tmp.4BHDIs6i1l ++ 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.cyT3EZH3XI ++ cat /tmp/tmp.4BHDIs6i1l ++ rm /tmp/tmp.cyT3EZH3XI /tmp/tmp.4BHDIs6i1l ++ return 0 + local client_container=psmdb-client-66f577db5f-bbsb7 + local mongo_flag= + [[ userAdmin:userAdmin123456@some-name-rs0.scheduled-backup-26686 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-66f577db5f-bbsb7 -- bash -c 'printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n'\'' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.scheduled-backup-26686.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.bUD0aLVh6U ++ mktemp + local LAST_ERR=/tmp/tmp.VQR9GNUaOF + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl exec psmdb-client-66f577db5f-bbsb7 -- bash -c 'printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n'\'' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.scheduled-backup-26686.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.bUD0aLVh6U Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-0.some-name-rs0.scheduled-backup-26686.svc.cluster.local:27017,some-name-rs0-1.some-name-rs0.scheduled-backup-26686.svc.cluster.local:27017,some-name-rs0-2.some-name-rs0.scheduled-backup-26686.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("8883427d-0d01-4986-9ddc-72365c6f4ac7") } Percona Server for MongoDB server version: v8.0.8-3 WARNING: shell and server versions do not match Successfully added user: { "user" : "myApp", "roles" : [ { "db" : "myApp", "role" : "readWrite" } ] } bye + cat /tmp/tmp.VQR9GNUaOF + rm /tmp/tmp.bUD0aLVh6U /tmp/tmp.VQR9GNUaOF + return 0 + sleep 2 + desc 'write data, read from all' + set +o xtrace ----------------------------------------------------------------------------------- write data, read from all ----------------------------------------------------------------------------------- + run_mongo 'use myApp\n db.test.insert({ x: 100500 })' myApp:myPass@some-name-rs0.scheduled-backup-26686 + local 'command=use myApp\n db.test.insert({ x: 100500 })' + local uri=myApp:myPass@some-name-rs0.scheduled-backup-26686 + local driver=mongodb+srv + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.xJlq5lKgTG +++ mktemp ++ local LAST_ERR=/tmp/tmp.4MtdCNQprf ++ 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.xJlq5lKgTG ++ cat /tmp/tmp.4MtdCNQprf ++ rm /tmp/tmp.xJlq5lKgTG /tmp/tmp.4MtdCNQprf ++ return 0 + local client_container=psmdb-client-66f577db5f-bbsb7 + local mongo_flag= + [[ myApp:myPass@some-name-rs0.scheduled-backup-26686 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-66f577db5f-bbsb7 -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.scheduled-backup-26686.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.XueFnZJwwN ++ mktemp + local LAST_ERR=/tmp/tmp.VXqmoRUYPK + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl exec psmdb-client-66f577db5f-bbsb7 -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.scheduled-backup-26686.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.XueFnZJwwN Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-0.some-name-rs0.scheduled-backup-26686.svc.cluster.local:27017,some-name-rs0-1.some-name-rs0.scheduled-backup-26686.svc.cluster.local:27017,some-name-rs0-2.some-name-rs0.scheduled-backup-26686.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("2445c8b1-3232-49ed-978c-39a539e18406") } Percona Server for MongoDB server version: v8.0.8-3 WARNING: shell and server versions do not match switched to db myApp WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.VXqmoRUYPK + rm /tmp/tmp.XueFnZJwwN /tmp/tmp.VXqmoRUYPK + return 0 + compare_mongo_cmd find myApp:myPass@some-name-rs0-0.some-name-rs0.scheduled-backup-26686 + local command=find + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.scheduled-backup-26686 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local 'full_command=db.test.find()' + [[ ! -z '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2025-05-12T03:24:02+0000] running db.test.find() in myApp + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-0.some-name-rs0.scheduled-backup-26686 mongodb '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.scheduled-backup-26686 + egrep -v 'I NETWORK|W NETWORK|F NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:' + local driver=mongodb + local suffix=.svc.cluster.local + /usr/bin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.lOM9DGWmGG +++ mktemp ++ local LAST_ERR=/tmp/tmp.ccS351khN8 ++ 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.lOM9DGWmGG ++ cat /tmp/tmp.ccS351khN8 ++ rm /tmp/tmp.lOM9DGWmGG /tmp/tmp.ccS351khN8 ++ return 0 + local client_container=psmdb-client-66f577db5f-bbsb7 + local mongo_flag= + [[ myApp:myPass@some-name-rs0-0.some-name-rs0.scheduled-backup-26686 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-66f577db5f-bbsb7 -- bash -c 'printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.scheduled-backup-26686.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.Rq50wkSDBG ++ mktemp + local LAST_ERR=/tmp/tmp.Q0DjXqVSZQ + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl exec psmdb-client-66f577db5f-bbsb7 -- bash -c 'printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.scheduled-backup-26686.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Rq50wkSDBG + cat /tmp/tmp.Q0DjXqVSZQ + rm /tmp/tmp.Rq50wkSDBG /tmp/tmp.Q0DjXqVSZQ + return 0 + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/scheduled-backup/compare/find.json /tmp/tmp.KXrhaSAExI/find + compare_mongo_cmd find myApp:myPass@some-name-rs0-1.some-name-rs0.scheduled-backup-26686 + local command=find + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.scheduled-backup-26686 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local 'full_command=db.test.find()' + [[ ! -z '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2025-05-12T03:24:05+0000] running db.test.find() in myApp + egrep -v 'I NETWORK|W NETWORK|F NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:' + /usr/bin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-1.some-name-rs0.scheduled-backup-26686 mongodb '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.scheduled-backup-26686 + 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.OYfqahmr3G +++ mktemp ++ local LAST_ERR=/tmp/tmp.u2MT4WvqRe ++ 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.OYfqahmr3G ++ cat /tmp/tmp.u2MT4WvqRe ++ rm /tmp/tmp.OYfqahmr3G /tmp/tmp.u2MT4WvqRe ++ return 0 + local client_container=psmdb-client-66f577db5f-bbsb7 + local mongo_flag= + [[ myApp:myPass@some-name-rs0-1.some-name-rs0.scheduled-backup-26686 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-66f577db5f-bbsb7 -- bash -c 'printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.scheduled-backup-26686.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.WNnVvTomXq ++ mktemp + local LAST_ERR=/tmp/tmp.vj2q7wd1Vd + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl exec psmdb-client-66f577db5f-bbsb7 -- bash -c 'printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.scheduled-backup-26686.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.WNnVvTomXq + cat /tmp/tmp.vj2q7wd1Vd + rm /tmp/tmp.WNnVvTomXq /tmp/tmp.vj2q7wd1Vd + return 0 + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/scheduled-backup/compare/find.json /tmp/tmp.KXrhaSAExI/find + compare_mongo_cmd find myApp:myPass@some-name-rs0-2.some-name-rs0.scheduled-backup-26686 + local command=find + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.scheduled-backup-26686 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local 'full_command=db.test.find()' + [[ ! -z '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2025-05-12T03:24:08+0000] running db.test.find() in myApp + egrep -v 'I NETWORK|W NETWORK|F NETWORK|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:' + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-2.some-name-rs0.scheduled-backup-26686 mongodb '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.scheduled-backup-26686 + local driver=mongodb + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp + /usr/bin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ local LAST_OUT=/tmp/tmp.tivX34mKg2 +++ mktemp ++ local LAST_ERR=/tmp/tmp.xB5nONn7S1 ++ 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.tivX34mKg2 ++ cat /tmp/tmp.xB5nONn7S1 ++ rm /tmp/tmp.tivX34mKg2 /tmp/tmp.xB5nONn7S1 ++ return 0 + local client_container=psmdb-client-66f577db5f-bbsb7 + local mongo_flag= + [[ myApp:myPass@some-name-rs0-2.some-name-rs0.scheduled-backup-26686 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-66f577db5f-bbsb7 -- bash -c 'printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.scheduled-backup-26686.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.euS9DCvkl6 ++ mktemp + local LAST_ERR=/tmp/tmp.qrwGHXjBRM + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl exec psmdb-client-66f577db5f-bbsb7 -- bash -c 'printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.scheduled-backup-26686.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.euS9DCvkl6 + cat /tmp/tmp.qrwGHXjBRM + rm /tmp/tmp.euS9DCvkl6 /tmp/tmp.qrwGHXjBRM + return 0 + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/scheduled-backup/compare/find.json /tmp/tmp.KXrhaSAExI/find + wait_backup_agent some-name-rs0-0 + local agent_pod=some-name-rs0-0 + set +o xtrace waiting for pbm-agent to be ready in some-name-rs0-0...2025-05-12T03:23:45.000+0000 I listening for the commands + wait_backup_agent some-name-rs0-1 + local agent_pod=some-name-rs0-1 + set +o xtrace waiting for pbm-agent to be ready in some-name-rs0-1...2025-05-12T03:23:49.000+0000 I listening for the commands + wait_backup_agent some-name-rs0-2 + local agent_pod=some-name-rs0-2 + set +o xtrace waiting for pbm-agent to be ready in some-name-rs0-2...2025-05-12T03:23:50.000+0000 I listening for the commands + desc 'add backups schedule, wait for backups' + set +o xtrace ----------------------------------------------------------------------------------- add backups schedule, wait for backups ----------------------------------------------------------------------------------- + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/scheduled-backup/conf/some-name-rs0-2.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/scheduled-backup/conf/some-name-rs0-2.yml + yq eval '.spec.upgradeOptions.apply="Never"' + yq eval '(.spec | select(has("backup"))).backup.image = "perconalab/percona-server-mongodb-operator:main-backup"' + yq eval '(.spec | select(.image == null)).image = "perconalab/percona-server-mongodb-operator:main-mongod8.0"' + kubectl_bin apply -f - ++ mktemp + yq eval '(.spec | select(has("initImage"))).initImage = "perconalab/percona-server-mongodb-operator:PR-1914-868a9e61"' + yq eval '(.spec | select(has("pmm"))).pmm.image = "perconalab/pmm-client:dev-latest"' + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/scheduled-backup/conf/some-name-rs0-2.yml + local LAST_OUT=/tmp/tmp.ZyPIyq8MRe ++ mktemp + local LAST_ERR=/tmp/tmp.RHI5Zwrb6R + 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.ZyPIyq8MRe perconaservermongodb.psmdb.percona.com/some-name configured + cat /tmp/tmp.RHI5Zwrb6R + rm /tmp/tmp.ZyPIyq8MRe /tmp/tmp.RHI5Zwrb6R + return 0 + sleep 55 + desc 'disable backups schedule' + set +o xtrace ----------------------------------------------------------------------------------- disable backups schedule ----------------------------------------------------------------------------------- + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/scheduled-backup/conf/some-name-rs0.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/scheduled-backup/conf/some-name-rs0.yml + kubectl_bin apply -f - ++ mktemp + yq eval '(.spec | select(.image == null)).image = "perconalab/percona-server-mongodb-operator:main-mongod8.0"' + local LAST_OUT=/tmp/tmp.XhGqp6zX6m + yq eval '(.spec | select(has("pmm"))).pmm.image = "perconalab/pmm-client:dev-latest"' + yq eval '.spec.upgradeOptions.apply="Never"' + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1914/e2e-tests/scheduled-backup/conf/some-name-rs0.yml ++ mktemp + local LAST_ERR=/tmp/tmp.YlyS9pIT4e + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + yq eval '(.spec | select(has("initImage"))).initImage = "perconalab/percona-server-mongodb-operator:PR-1914-868a9e61"' + yq eval '(.spec | select(has("backup"))).backup.image = "perconalab/percona-server-mongodb-operator:main-backup"' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.XhGqp6zX6m perconaservermongodb.psmdb.percona.com/some-name configured + cat /tmp/tmp.YlyS9pIT4e + rm /tmp/tmp.XhGqp6zX6m /tmp/tmp.YlyS9pIT4e + return 0 + '[' -z '' ']' ++ grep aws-s3 ++ awk '{print$1}' ++ head -1 ++ kubectl_bin get psmdb-backup +++ mktemp ++ local LAST_OUT=/tmp/tmp.JhqsaL11Pv +++ mktemp ++ local LAST_ERR=/tmp/tmp.tlSLjZ5Son ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get psmdb-backup ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.JhqsaL11Pv ++ cat /tmp/tmp.tlSLjZ5Son ++ rm /tmp/tmp.JhqsaL11Pv /tmp/tmp.tlSLjZ5Son ++ return 0 + backup_name_aws=cron-some-name-20250512032500-dwfmj ++ kubectl_bin get psmdb-backup ++ awk '{print$1}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.3X7CcqWbtT +++ mktemp ++ local LAST_ERR=/tmp/tmp.72m60tZaqw ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ head -1 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get psmdb-backup ++ grep gcp-cs ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.3X7CcqWbtT ++ cat /tmp/tmp.72m60tZaqw ++ rm /tmp/tmp.3X7CcqWbtT /tmp/tmp.72m60tZaqw ++ return 0 + backup_name_gcp=cron-some-name-20250512032500-qxngc ++ kubectl_bin get psmdb-backup ++ awk '{print$1}' +++ mktemp ++ head -1 ++ grep azure-blob ++ local LAST_OUT=/tmp/tmp.D509hqIW7A +++ mktemp ++ local LAST_ERR=/tmp/tmp.DrYHQXg7vc ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get psmdb-backup ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.D509hqIW7A ++ cat /tmp/tmp.DrYHQXg7vc ++ rm /tmp/tmp.D509hqIW7A /tmp/tmp.DrYHQXg7vc ++ return 0 + backup_name_azure=cron-some-name-20250512032500-zfmx4 + wait_backup cron-some-name-20250512032500-dwfmj + local backup_name=cron-some-name-20250512032500-dwfmj + local target_state=ready + set +o xtrace waiting for cron-some-name-20250512032500-dwfmj to reach ready state. + wait_backup cron-some-name-20250512032500-qxngc + local backup_name=cron-some-name-20250512032500-qxngc + local target_state=ready + set +o xtrace waiting for cron-some-name-20250512032500-qxngc to reach ready state.... + wait_backup cron-some-name-20250512032500-zfmx4 + local backup_name=cron-some-name-20250512032500-zfmx4 + local target_state=ready + set +o xtrace waiting for cron-some-name-20250512032500-zfmx4 to reach ready state..... ++ kubectl_bin get psmdb-backup ++ awk '{print$1}' +++ mktemp ++ grep minio ++ head -1 ++ local LAST_OUT=/tmp/tmp.gH30CrES8m +++ mktemp ++ local LAST_ERR=/tmp/tmp.wZYFNEgZGe ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get psmdb-backup ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.gH30CrES8m ++ cat /tmp/tmp.wZYFNEgZGe ++ rm /tmp/tmp.gH30CrES8m /tmp/tmp.wZYFNEgZGe ++ return 0 + backup_name_minio=cron-some-name-20250512032500-8pqxr + wait_backup cron-some-name-20250512032500-8pqxr + local backup_name=cron-some-name-20250512032500-8pqxr + local target_state=ready + set +o xtrace waiting for cron-some-name-20250512032500-8pqxr to reach ready state. + sleep 5 + echo -n 'checking backup count for every-min-minio...' checking backup count for every-min-minio...+ check_backup_count every-min-minio 1 + local ancestor=every-min-minio + local expected=1 ++ kubectl_bin get psmdb-backup -l percona.com/backup-ancestor=every-min-minio ++ grep ready ++ wc -l +++ mktemp ++ local LAST_OUT=/tmp/tmp.1I0RRSzyvn +++ mktemp ++ local LAST_ERR=/tmp/tmp.DUP4wJWBTk ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get psmdb-backup -l percona.com/backup-ancestor=every-min-minio ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.1I0RRSzyvn ++ cat /tmp/tmp.DUP4wJWBTk ++ rm /tmp/tmp.1I0RRSzyvn /tmp/tmp.DUP4wJWBTk ++ return 0 + local count=1 + [[ 1 != 1 ]] + echo OK OK + echo -n 'checking backup count for every-min-aws-s3...' checking backup count for every-min-aws-s3...+ check_backup_count every-min-aws-s3 1 + local ancestor=every-min-aws-s3 + local expected=1 ++ kubectl_bin get psmdb-backup -l percona.com/backup-ancestor=every-min-aws-s3 ++ grep ready ++ wc -l +++ mktemp ++ local LAST_OUT=/tmp/tmp.ycBOunnK7L +++ mktemp ++ local LAST_ERR=/tmp/tmp.p0uVWnRBGw ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get psmdb-backup -l percona.com/backup-ancestor=every-min-aws-s3 ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.ycBOunnK7L ++ cat /tmp/tmp.p0uVWnRBGw ++ rm /tmp/tmp.ycBOunnK7L /tmp/tmp.p0uVWnRBGw ++ return 0 + local count=1 + [[ 1 != 1 ]] + echo OK OK + echo -n 'checking backup count for every-min-gcp-cs...' checking backup count for every-min-gcp-cs...+ check_backup_count every-min-gcp-cs 1 + local ancestor=every-min-gcp-cs + local expected=1 ++ kubectl_bin get psmdb-backup -l percona.com/backup-ancestor=every-min-gcp-cs ++ grep ready ++ wc -l +++ mktemp ++ local LAST_OUT=/tmp/tmp.QE3WmrjgwS +++ mktemp ++ local LAST_ERR=/tmp/tmp.AU3h5FHLfN ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get psmdb-backup -l percona.com/backup-ancestor=every-min-gcp-cs ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.QE3WmrjgwS ++ cat /tmp/tmp.AU3h5FHLfN ++ rm /tmp/tmp.QE3WmrjgwS /tmp/tmp.AU3h5FHLfN ++ return 0 + local count=1 + [[ 1 != 1 ]] + echo OK OK + echo -n 'checking backup count for every-min-azure-blob...' checking backup count for every-min-azure-blob...+ check_backup_count every-min-azure-blob 1 + local ancestor=every-min-azure-blob + local expected=1 ++ kubectl_bin get psmdb-backup -l percona.com/backup-ancestor=every-min-azure-blob ++ wc -l +++ mktemp ++ grep ready ++ local LAST_OUT=/tmp/tmp.zSloHeR3DS +++ mktemp ++ local LAST_ERR=/tmp/tmp.iC39CtoKWI ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get psmdb-backup -l percona.com/backup-ancestor=every-min-azure-blob ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.zSloHeR3DS ++ cat /tmp/tmp.iC39CtoKWI ++ rm /tmp/tmp.zSloHeR3DS /tmp/tmp.iC39CtoKWI ++ return 0 + local count=1 + [[ 1 != 1 ]] + echo OK OK + desc 'check backup and restore -- minio' + set +o xtrace ----------------------------------------------------------------------------------- check backup and restore -- minio ----------------------------------------------------------------------------------- ++ get_backup_dest cron-some-name-20250512032500-8pqxr ++ local backup_name=cron-some-name-20250512032500-8pqxr ++ sed -e 's/.json$//' ++ sed 's|azure://||' ++ kubectl_bin get psmdb-backup cron-some-name-20250512032500-8pqxr -o 'jsonpath={.status.destination}' ++ sed 's|s3://||' +++ mktemp ++ local LAST_OUT=/tmp/tmp.kEPAegN0R1 +++ mktemp ++ local LAST_ERR=/tmp/tmp.3LEL851QvI ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get psmdb-backup cron-some-name-20250512032500-8pqxr -o 'jsonpath={.status.destination}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.kEPAegN0R1 ++ cat /tmp/tmp.3LEL851QvI ++ rm /tmp/tmp.kEPAegN0R1 /tmp/tmp.3LEL851QvI ++ return 0 + backup_dest_minio=operator-testing/2025-05-12T03:25:00Z + kubectl_bin run -i --rm aws-cli --image=perconalab/awscli --restart=Never -- /usr/bin/env 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 ls s3://operator-testing/2025-05-12T03:25:00Z/rs0/ ++ mktemp + local LAST_OUT=/tmp/tmp.G1pE3ag07U ++ mktemp + local LAST_ERR=/tmp/tmp.4Epu7qLK5k + local exit_status=0 + local timeout=4 ++ seq 0 2 + grep myApp.test.gz + for i in '$(seq 0 2)' + set +e + kubectl run -i --rm aws-cli --image=perconalab/awscli --restart=Never -- /usr/bin/env 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 ls s3://operator-testing/2025-05-12T03:25:00Z/rs0/ + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.G1pE3ag07U + cat /tmp/tmp.4Epu7qLK5k If you don't see a command prompt, try pressing enter. + rm /tmp/tmp.G1pE3ag07U /tmp/tmp.4Epu7qLK5k + return 0