Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/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-18831 + local ns=scheduled-backup-18831 + [[ 1 == 1 ]] + delete_crd + desc 'get and delete old CRDs and RBAC' + set +o xtrace ----------------------------------------------------------------------------------- get and delete old CRDs and RBAC ----------------------------------------------------------------------------------- + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.kmK5kpgFEY ++ mktemp + local LAST_ERR=/tmp/tmp.TgNG6YRpRd + 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-1897/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.kmK5kpgFEY 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.TgNG6YRpRd + rm /tmp/tmp.kmK5kpgFEY /tmp/tmp.TgNG6YRpRd + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/deploy/crd.yaml ++ grep -v '\-\-\-' + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + grep -v NAMESPACE + 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\":[]}}"' 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.afAfVu742d ++ mktemp + local LAST_ERR=/tmp/tmp.kfNWBkmWTC + 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.afAfVu742d + cat /tmp/tmp.kfNWBkmWTC + rm /tmp/tmp.afAfVu742d /tmp/tmp.kfNWBkmWTC + return 0 + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbrestores.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' + grep -v NAMESPACE + kubectl get perconaservermongodbrestores.psmdb.percona.com --all-namespaces -o wide error: the server doesn't have a resource type "perconaservermongodbrestores" + kubectl patch perconaservermongodbrestores.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbrestores" + : + kubectl_bin wait --for=delete crd perconaservermongodbrestores.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.ZtMzfSvbkL ++ mktemp + local LAST_ERR=/tmp/tmp.s5eQPHSulv + 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.ZtMzfSvbkL + cat /tmp/tmp.s5eQPHSulv + rm /tmp/tmp.ZtMzfSvbkL /tmp/tmp.s5eQPHSulv + return 0 + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + grep -v NAMESPACE + kubectl get perconaservermongodbs.psmdb.percona.com --all-namespaces -o wide + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbs.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' 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.nuNQBJAmDI ++ mktemp + local LAST_ERR=/tmp/tmp.E2AmUJSXJ9 + 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.nuNQBJAmDI + cat /tmp/tmp.E2AmUJSXJ9 + rm /tmp/tmp.nuNQBJAmDI /tmp/tmp.E2AmUJSXJ9 + 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-1897/deploy/cw-rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.EvQxTtbyxN ++ mktemp + local LAST_ERR=/tmp/tmp.tuwF8MrmgN + 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-1897/deploy/cw-rbac.yaml --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.EvQxTtbyxN 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.tuwF8MrmgN + rm /tmp/tmp.EvQxTtbyxN /tmp/tmp.tuwF8MrmgN + return 0 + check_crd_for_deletion PR-1897-ea494d1c + local git_tag=PR-1897-ea494d1c ++ yq eval .metadata.name ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-1897-ea494d1c/deploy/crd.yaml ++ /usr/bin/sed s/---//g ++ /usr/bin/sed ':a;N;$!ba;s/\n/ /g' + for crd_name in '$(curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/${git_tag}/deploy/crd.yaml | yq eval '\''.metadata.name'\'' | $sed '\''s/---//g'\'' | $sed '\'':a;N;$!ba;s/\n/ /g'\'')' ++ kubectl_bin get crd/null -o 'jsonpath={.status.conditions[-1].type}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.vNgXntJPUD +++ mktemp ++ local LAST_ERR=/tmp/tmp.P55TLE8sKI ++ 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.vNgXntJPUD ++ cat /tmp/tmp.P55TLE8sKI 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.vNgXntJPUD ++ cat /tmp/tmp.P55TLE8sKI 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.vNgXntJPUD ++ cat /tmp/tmp.P55TLE8sKI Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 8 ++ cat /tmp/tmp.vNgXntJPUD ++ cat /tmp/tmp.P55TLE8sKI Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.vNgXntJPUD /tmp/tmp.P55TLE8sKI ++ 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 ++ sed s/NAMESPACE// ++ awk '-F ' '{print $2}' ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ awk '{print $1}' ++ grep chaos-mesh ++ kubectl get MutatingWebhookConfiguration + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ grep chaos-mesh ++ kubectl get ValidatingWebhookConfiguration ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ grep validate-auth ++ kubectl get ValidatingWebhookConfiguration ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ grep chaos-mesh ++ kubectl api-resources ++ awk '{print $1}' ++ grep chaos-mesh.org ++ kubectl get crd ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ grep chaos-mesh ++ kubectl get clusterrolebinding ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|gke-mcs|^NAME' + awk '{print$1}' + '[' -n '' ']' + desc 'cleaned up old namespaces psmdb-operator' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin delete namespace psmdb-operator --ignore-not-found ++ mktemp + xargs kubectl delete ns + local LAST_OUT=/tmp/tmp.DkHvecOxxv + kubectl_bin get ns ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.WihTq7AjdD + local LAST_ERR=/tmp/tmp.KEwvZyxQQY + local exit_status=0 + local timeout=4 ++ seq 0 2 ++ mktemp + local LAST_ERR=/tmp/tmp.2nrcbrv7RH + 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 + 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.WihTq7AjdD + cat /tmp/tmp.2nrcbrv7RH + rm /tmp/tmp.WihTq7AjdD /tmp/tmp.2nrcbrv7RH + return 0 namespace "gke-managed-cim" deleted namespace "gke-managed-system" deleted namespace "gmp-public" deleted namespace "gmp-system" deleted namespace "scheduled-backup-19354" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.DkHvecOxxv namespace "psmdb-operator" deleted + cat /tmp/tmp.KEwvZyxQQY + rm /tmp/tmp.DkHvecOxxv /tmp/tmp.KEwvZyxQQY + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.vEE46X6YSf ++ mktemp + local LAST_ERR=/tmp/tmp.rOreXCr0Jv + 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.vEE46X6YSf + cat /tmp/tmp.rOreXCr0Jv + rm /tmp/tmp.vEE46X6YSf /tmp/tmp.rOreXCr0Jv + 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.DoOoEtXxlp ++ mktemp + local LAST_ERR=/tmp/tmp.MjgqZLG7yJ + 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.DoOoEtXxlp namespace/psmdb-operator created + cat /tmp/tmp.MjgqZLG7yJ + rm /tmp/tmp.DoOoEtXxlp /tmp/tmp.MjgqZLG7yJ + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.t7elu9BGFR +++ mktemp ++ local LAST_ERR=/tmp/tmp.AtageAqShb ++ 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.t7elu9BGFR ++ cat /tmp/tmp.AtageAqShb ++ rm /tmp/tmp.t7elu9BGFR /tmp/tmp.AtageAqShb ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1897-ea494d1c-6-cluster7 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.Yh134oC1IS ++ mktemp + local LAST_ERR=/tmp/tmp.Z20peG8wu5 + 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-1897-ea494d1c-6-cluster7 --namespace=psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Yh134oC1IS Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1897-ea494d1c-6-cluster7" modified. + cat /tmp/tmp.Z20peG8wu5 + rm /tmp/tmp.Yh134oC1IS /tmp/tmp.Z20peG8wu5 + 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-1897/e2e-tests/scheduled-backup/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.RMJATjoQ3b ++ mktemp + local LAST_ERR=/tmp/tmp.HDG5lyxE8f + 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-1897/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.RMJATjoQ3b 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.HDG5lyxE8f + rm /tmp/tmp.RMJATjoQ3b /tmp/tmp.HDG5lyxE8f + 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-1897/deploy/cw-rbac.yaml + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.Cry3tmf04k ++ mktemp + local LAST_ERR=/tmp/tmp.CFlaqO0sld + 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.Cry3tmf04k 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.CFlaqO0sld + rm /tmp/tmp.Cry3tmf04k /tmp/tmp.CFlaqO0sld + return 0 + yq eval ' (.spec.template.spec.containers[].image = "perconalab/percona-server-mongodb-operator:PR-1897-ea494d1c") | ((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") | ((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/deploy/cw-operator.yaml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.PJI7RoeBKn ++ mktemp + local LAST_ERR=/tmp/tmp.q1IOvJkapH + 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.PJI7RoeBKn deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.q1IOvJkapH + rm /tmp/tmp.PJI7RoeBKn /tmp/tmp.q1IOvJkapH + 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.a8e3Sz92KC +++ mktemp ++ local LAST_ERR=/tmp/tmp.NR7HRqyZg3 ++ 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.a8e3Sz92KC ++ cat /tmp/tmp.NR7HRqyZg3 ++ rm /tmp/tmp.a8e3Sz92KC /tmp/tmp.NR7HRqyZg3 ++ return 0 + wait_pod percona-server-mongodb-operator-564698798-2qvzn + local pod=percona-server-mongodb-operator-564698798-2qvzn + set +o xtrace waiting for pod/percona-server-mongodb-operator-564698798-2qvzn to be ready.OK + create_namespace scheduled-backup-18831 + local namespace=scheduled-backup-18831 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get MutatingWebhookConfiguration + 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 + : ++ awk '{print $1}' ++ grep validate-auth ++ 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 ++ grep chaos-mesh.org ++ kubectl get crd ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ awk '{print $1}' ++ 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 ----------------------------------------------------------------------------------- + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|gke-mcs|^NAME' + awk '{print$1}' + '[' -n '' ']' + desc 'cleaned up old namespaces scheduled-backup-18831' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces scheduled-backup-18831 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace scheduled-backup-18831 --ignore-not-found + kubectl_bin get ns ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.jCKge1VJL7 + xargs kubectl delete ns + local LAST_OUT=/tmp/tmp.V6ht0TdY8S ++ mktemp ++ mktemp + local LAST_ERR=/tmp/tmp.kjTuGsfcG4 + local exit_status=0 + local timeout=4 + local LAST_ERR=/tmp/tmp.3GyNuYlFbU + local exit_status=0 + local timeout=4 ++ seq 0 2 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace scheduled-backup-18831 --ignore-not-found + 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.V6ht0TdY8S + cat /tmp/tmp.3GyNuYlFbU + rm /tmp/tmp.V6ht0TdY8S /tmp/tmp.3GyNuYlFbU + return 0 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.jCKge1VJL7 + cat /tmp/tmp.kjTuGsfcG4 + rm /tmp/tmp.jCKge1VJL7 /tmp/tmp.kjTuGsfcG4 + return 0 + kubectl_bin wait --for=delete namespace scheduled-backup-18831 ++ mktemp + local LAST_OUT=/tmp/tmp.cdRCi2kh6M ++ mktemp + local LAST_ERR=/tmp/tmp.bEBpGE6ytS + 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-18831 namespace "gke-managed-cim" deleted namespace "gke-managed-system" deleted namespace "gmp-public" deleted namespace "gmp-system" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.cdRCi2kh6M + cat /tmp/tmp.bEBpGE6ytS + rm /tmp/tmp.cdRCi2kh6M /tmp/tmp.bEBpGE6ytS + return 0 + desc 'create namespace scheduled-backup-18831' + set +o xtrace ----------------------------------------------------------------------------------- create namespace scheduled-backup-18831 ----------------------------------------------------------------------------------- + kubectl_bin create namespace scheduled-backup-18831 ++ mktemp + local LAST_OUT=/tmp/tmp.UsM69d1IDF ++ mktemp + local LAST_ERR=/tmp/tmp.wHZz5OjaAl + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace scheduled-backup-18831 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.UsM69d1IDF namespace/scheduled-backup-18831 created + cat /tmp/tmp.wHZz5OjaAl + rm /tmp/tmp.UsM69d1IDF /tmp/tmp.wHZz5OjaAl + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.oXvUv5rSYk +++ mktemp ++ local LAST_ERR=/tmp/tmp.HrYnIUrgt7 ++ 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.oXvUv5rSYk ++ cat /tmp/tmp.HrYnIUrgt7 ++ rm /tmp/tmp.oXvUv5rSYk /tmp/tmp.HrYnIUrgt7 ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1897-ea494d1c-6-cluster7 --namespace=scheduled-backup-18831 ++ mktemp + local LAST_OUT=/tmp/tmp.OYwr96sLA9 ++ mktemp + local LAST_ERR=/tmp/tmp.x8YZNV8Ikj + 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-1897-ea494d1c-6-cluster7 --namespace=scheduled-backup-18831 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.OYwr96sLA9 Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1897-ea494d1c-6-cluster7" modified. + cat /tmp/tmp.x8YZNV8Ikj + rm /tmp/tmp.OYwr96sLA9 /tmp/tmp.x8YZNV8Ikj + 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 19 15:47:32 2025 NAMESPACE: scheduled-backup-18831 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-18831.svc.cluster.local To access MinIO from localhost, run the below commands: 1. export POD_NAME=$(kubectl get pods --namespace scheduled-backup-18831 -l "release=minio-service" -o jsonpath="{.items[0].metadata.name}") 2. kubectl port-forward $POD_NAME 9000 --namespace scheduled-backup-18831 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-18831 minio-service -o jsonpath="{.data.rootUser}" | base64 --decode):$(kubectl get secret --namespace scheduled-backup-18831 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.41KbISkPB5 +++ mktemp ++ local LAST_ERR=/tmp/tmp.FTPZVvyNil ++ 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.41KbISkPB5 ++ cat /tmp/tmp.FTPZVvyNil ++ rm /tmp/tmp.41KbISkPB5 /tmp/tmp.FTPZVvyNil ++ return 0 + MINIO_POD=minio-service-8967c7f7f-vvkvr + wait_pod minio-service-8967c7f7f-vvkvr + local pod=minio-service-8967c7f7f-vvkvr + set +o xtrace waiting for pod/minio-service-8967c7f7f-vvkvr to be ready.OK + '[' -n psmdb-operator ']' + kubectl_bin create svc -n psmdb-operator externalname minio-service --external-name=minio-service.scheduled-backup-18831.svc.cluster.local --tcp=9000 ++ mktemp + local LAST_OUT=/tmp/tmp.OiOOtzyG0R ++ mktemp + local LAST_ERR=/tmp/tmp.xVczbv5RL0 + 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-18831.svc.cluster.local --tcp=9000 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.OiOOtzyG0R service/minio-service created + cat /tmp/tmp.xVczbv5RL0 + rm /tmp/tmp.OiOOtzyG0R /tmp/tmp.xVczbv5RL0 + 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.kP3Ux9KMQo ++ mktemp + local LAST_ERR=/tmp/tmp.8cm28cwDlm + 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.kP3Ux9KMQo make_bucket: operator-testing pod "aws-cli" deleted + cat /tmp/tmp.8cm28cwDlm 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-18831 + rm /tmp/tmp.kP3Ux9KMQo /tmp/tmp.8cm28cwDlm + 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.DVE2gaGvPJ +++ mktemp ++ local LAST_ERR=/tmp/tmp.iM8GItdNIX ++ 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.DVE2gaGvPJ ++ cat /tmp/tmp.iM8GItdNIX ++ rm /tmp/tmp.DVE2gaGvPJ /tmp/tmp.iM8GItdNIX ++ return 0 + LABELED_NODE=gke-jen-psmdb-1897-ea494-default-pool-0fde550f-0m8l + desc 'add labels' + set +o xtrace ----------------------------------------------------------------------------------- add labels ----------------------------------------------------------------------------------- + kubectl_bin label nodes gke-jen-psmdb-1897-ea494-default-pool-0fde550f-0m8l backupWorker=True --overwrite ++ mktemp + local LAST_OUT=/tmp/tmp.ifnzEUomzD ++ mktemp + local LAST_ERR=/tmp/tmp.ypC6o9HYGz + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl label nodes gke-jen-psmdb-1897-ea494-default-pool-0fde550f-0m8l backupWorker=True --overwrite + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ifnzEUomzD node/gke-jen-psmdb-1897-ea494-default-pool-0fde550f-0m8l not labeled + cat /tmp/tmp.ypC6o9HYGz + rm /tmp/tmp.ifnzEUomzD /tmp/tmp.ypC6o9HYGz + return 0 + desc 'create PriorityClass' + set +o xtrace ----------------------------------------------------------------------------------- create PriorityClass ----------------------------------------------------------------------------------- + cat - + kubectl apply -f - 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-1897/e2e-tests/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/conf/client.yml ++ mktemp + local LAST_OUT=/tmp/tmp.v0wA73w3To ++ mktemp + local LAST_ERR=/tmp/tmp.uOJ0PbDUE2 + 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-1897/e2e-tests/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/conf/client.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.v0wA73w3To secret/some-users created deployment.apps/psmdb-client created + cat /tmp/tmp.uOJ0PbDUE2 + rm /tmp/tmp.v0wA73w3To /tmp/tmp.uOJ0PbDUE2 + 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-1897/e2e-tests/conf/minio-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/conf/cloud-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.9P8mZQS6Ay ++ mktemp + local LAST_ERR=/tmp/tmp.UUNp0Ccecl + 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-1897/e2e-tests/conf/minio-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/conf/cloud-secret.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.9P8mZQS6Ay secret/minio-secret created secret/aws-s3-secret created secret/gcp-cs-secret created secret/azure-secret created + cat /tmp/tmp.UUNp0Ccecl + rm /tmp/tmp.9P8mZQS6Ay /tmp/tmp.UUNp0Ccecl + 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-1897/e2e-tests/scheduled-backup/conf/some-name-rs0.yml + '[' -z '' ']' + kubectl_bin apply -f - + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/scheduled-backup/conf/some-name-rs0.yml + yq eval '(.spec | select(.image == null)).image = "perconalab/percona-server-mongodb-operator:main-mongod8.0"' + yq eval '(.spec | select(has("backup"))).backup.image = "perconalab/percona-server-mongodb-operator:main-backup"' ++ mktemp + yq eval '.spec.upgradeOptions.apply="Never"' + 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-1897-ea494d1c"' + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/scheduled-backup/conf/some-name-rs0.yml + local LAST_OUT=/tmp/tmp.PUYzTP0Rl8 ++ mktemp + local LAST_ERR=/tmp/tmp.EjlLTGTSS4 + 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.PUYzTP0Rl8 perconaservermongodb.psmdb.percona.com/some-name created + cat /tmp/tmp.EjlLTGTSS4 + rm /tmp/tmp.PUYzTP0Rl8 /tmp/tmp.EjlLTGTSS4 + 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.IMv02afaC3 +++ mktemp ++ local LAST_ERR=/tmp/tmp.VQQ1mA5uuE ++ 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.IMv02afaC3 ++ cat /tmp/tmp.VQQ1mA5uuE ++ rm /tmp/tmp.IMv02afaC3 /tmp/tmp.VQQ1mA5uuE ++ 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.6txniqCXdx +++ mktemp ++ local LAST_ERR=/tmp/tmp.b2vsBSNoTT ++ 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.6txniqCXdx ++ cat /tmp/tmp.b2vsBSNoTT ++ rm /tmp/tmp.6txniqCXdx /tmp/tmp.b2vsBSNoTT ++ 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-1897/e2e-tests/scheduled-backup/compare/statefulset_some-name-rs0.yml + local new_result=/tmp/tmp.zeKG2dKkGH/statefulset_some-name-rs0.yml + '[' -n '' -a -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/scheduled-backup/compare/statefulset_some-name-rs0-oc.yml ']' + kubectl_bin get -o yaml statefulset/some-name-rs0 ++ mktemp + 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-18831", "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" ' - + local LAST_OUT=/tmp/tmp.EqP9rEY6Hs ++ mktemp + local LAST_ERR=/tmp/tmp.GkdRdPzEir + 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.EqP9rEY6Hs + cat /tmp/tmp.GkdRdPzEir + rm /tmp/tmp.EqP9rEY6Hs /tmp/tmp.GkdRdPzEir + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.zeKG2dKkGH/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.zeKG2dKkGH/statefulset_some-name-rs0.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.zeKG2dKkGH/statefulset_some-name-rs0.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/scheduled-backup/compare/statefulset_some-name-rs0.yml == */cronjob* ]] + '[' -n '' ']' + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/scheduled-backup/compare/statefulset_some-name-rs0.yml /tmp/tmp.zeKG2dKkGH/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-18831 + local 'command=db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})' + local uri=userAdmin:userAdmin123456@some-name-rs0.scheduled-backup-18831 + 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.PDqUlcede5 +++ mktemp ++ local LAST_ERR=/tmp/tmp.w6ZOcgB7Uh ++ 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.PDqUlcede5 ++ cat /tmp/tmp.w6ZOcgB7Uh ++ rm /tmp/tmp.PDqUlcede5 /tmp/tmp.w6ZOcgB7Uh ++ return 0 + local client_container=psmdb-client-66f577db5f-6n8p9 + local mongo_flag= + [[ userAdmin:userAdmin123456@some-name-rs0.scheduled-backup-18831 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-66f577db5f-6n8p9 -- 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-18831.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.uqj2wMhfOQ ++ mktemp + local LAST_ERR=/tmp/tmp.qBV6zvph5i + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl exec psmdb-client-66f577db5f-6n8p9 -- 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-18831.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.uqj2wMhfOQ Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-0.some-name-rs0.scheduled-backup-18831.svc.cluster.local:27017,some-name-rs0-1.some-name-rs0.scheduled-backup-18831.svc.cluster.local:27017,some-name-rs0-2.some-name-rs0.scheduled-backup-18831.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("f41ef1b8-38e1-44c2-8471-9963a8a780a1") } 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.qBV6zvph5i + rm /tmp/tmp.uqj2wMhfOQ /tmp/tmp.qBV6zvph5i + 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-18831 + local 'command=use myApp\n db.test.insert({ x: 100500 })' + local uri=myApp:myPass@some-name-rs0.scheduled-backup-18831 + 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.BMFs6BQnyJ +++ mktemp ++ local LAST_ERR=/tmp/tmp.qtGz3y1MlM ++ 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.BMFs6BQnyJ ++ cat /tmp/tmp.qtGz3y1MlM ++ rm /tmp/tmp.BMFs6BQnyJ /tmp/tmp.qtGz3y1MlM ++ return 0 + local client_container=psmdb-client-66f577db5f-6n8p9 + local mongo_flag= + [[ myApp:myPass@some-name-rs0.scheduled-backup-18831 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-66f577db5f-6n8p9 -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.scheduled-backup-18831.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.5n9NSHPFPb ++ mktemp + local LAST_ERR=/tmp/tmp.R9AvQit71I + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl exec psmdb-client-66f577db5f-6n8p9 -- bash -c 'printf '\''use myApp\n db.test.insert({ x: 100500 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.scheduled-backup-18831.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.5n9NSHPFPb Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-2.some-name-rs0.scheduled-backup-18831.svc.cluster.local:27017,some-name-rs0-0.some-name-rs0.scheduled-backup-18831.svc.cluster.local:27017,some-name-rs0-1.some-name-rs0.scheduled-backup-18831.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("e7cd6d1a-8316-45c0-bb29-cd73e7c9a2ee") } 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.R9AvQit71I + rm /tmp/tmp.5n9NSHPFPb /tmp/tmp.R9AvQit71I + return 0 + compare_mongo_cmd find myApp:myPass@some-name-rs0-0.some-name-rs0.scheduled-backup-18831 + local command=find + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.scheduled-backup-18831 + 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-19T15:50:04+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-18831 mongodb '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.scheduled-backup-18831 + local driver=mongodb + local suffix=.svc.cluster.local + 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/' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.bGGD3Ktgfi +++ mktemp ++ local LAST_ERR=/tmp/tmp.rkHHPSCyKU ++ 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.bGGD3Ktgfi ++ cat /tmp/tmp.rkHHPSCyKU ++ rm /tmp/tmp.bGGD3Ktgfi /tmp/tmp.rkHHPSCyKU ++ return 0 + local client_container=psmdb-client-66f577db5f-6n8p9 + local mongo_flag= + [[ myApp:myPass@some-name-rs0-0.some-name-rs0.scheduled-backup-18831 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-66f577db5f-6n8p9 -- bash -c 'printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.scheduled-backup-18831.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.oZs508mq6m ++ mktemp + local LAST_ERR=/tmp/tmp.nsVp8XzjSM + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl exec psmdb-client-66f577db5f-6n8p9 -- bash -c 'printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.scheduled-backup-18831.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.oZs508mq6m + cat /tmp/tmp.nsVp8XzjSM + rm /tmp/tmp.oZs508mq6m /tmp/tmp.nsVp8XzjSM + return 0 + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/scheduled-backup/compare/find.json /tmp/tmp.zeKG2dKkGH/find + compare_mongo_cmd find myApp:myPass@some-name-rs0-1.some-name-rs0.scheduled-backup-18831 + local command=find + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.scheduled-backup-18831 + 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-19T15:50:09+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-18831 mongodb '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.scheduled-backup-18831 + 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.GmcovEDgVG +++ mktemp ++ local LAST_ERR=/tmp/tmp.Yz49hlIFAq ++ 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.GmcovEDgVG ++ cat /tmp/tmp.Yz49hlIFAq ++ rm /tmp/tmp.GmcovEDgVG /tmp/tmp.Yz49hlIFAq ++ return 0 + local client_container=psmdb-client-66f577db5f-6n8p9 + local mongo_flag= + [[ myApp:myPass@some-name-rs0-1.some-name-rs0.scheduled-backup-18831 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-66f577db5f-6n8p9 -- bash -c 'printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.scheduled-backup-18831.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.4JXhloDvb8 ++ mktemp + local LAST_ERR=/tmp/tmp.tIngokzqqW + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl exec psmdb-client-66f577db5f-6n8p9 -- bash -c 'printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.scheduled-backup-18831.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.4JXhloDvb8 + cat /tmp/tmp.tIngokzqqW + rm /tmp/tmp.4JXhloDvb8 /tmp/tmp.tIngokzqqW + return 0 + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/scheduled-backup/compare/find.json /tmp/tmp.zeKG2dKkGH/find + compare_mongo_cmd find myApp:myPass@some-name-rs0-2.some-name-rs0.scheduled-backup-18831 + local command=find + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.scheduled-backup-18831 + 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-19T15:50:14+0000] running db.test.find() in myApp + run_mongo 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-2.some-name-rs0.scheduled-backup-18831 mongodb '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.scheduled-backup-18831 + 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.fY40hdUoVC +++ mktemp ++ local LAST_ERR=/tmp/tmp.wT7JhwopIu ++ 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.fY40hdUoVC ++ cat /tmp/tmp.wT7JhwopIu ++ rm /tmp/tmp.fY40hdUoVC /tmp/tmp.wT7JhwopIu ++ return 0 + local client_container=psmdb-client-66f577db5f-6n8p9 + local mongo_flag= + [[ myApp:myPass@some-name-rs0-2.some-name-rs0.scheduled-backup-18831 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-66f577db5f-6n8p9 -- bash -c 'printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.scheduled-backup-18831.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.7zaXLAncy8 ++ mktemp + local LAST_ERR=/tmp/tmp.KfOXXHpLNY + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl exec psmdb-client-66f577db5f-6n8p9 -- bash -c 'printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.scheduled-backup-18831.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.7zaXLAncy8 + cat /tmp/tmp.KfOXXHpLNY + rm /tmp/tmp.7zaXLAncy8 /tmp/tmp.KfOXXHpLNY + return 0 + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/scheduled-backup/compare/find.json /tmp/tmp.zeKG2dKkGH/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-19T15:49:46.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-19T15:49:50.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-19T15:49: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-1897/e2e-tests/scheduled-backup/conf/some-name-rs0-2.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/scheduled-backup/conf/some-name-rs0-2.yml + kubectl_bin apply -f - + yq eval '(.spec | select(has("initImage"))).initImage = "perconalab/percona-server-mongodb-operator:PR-1897-ea494d1c"' + yq eval '(.spec | select(has("backup"))).backup.image = "perconalab/percona-server-mongodb-operator:main-backup"' ++ mktemp + yq eval '(.spec | select(has("pmm"))).pmm.image = "perconalab/pmm-client:dev-latest"' + local LAST_OUT=/tmp/tmp.SC37xe9avb + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/scheduled-backup/conf/some-name-rs0-2.yml + yq eval '(.spec | select(.image == null)).image = "perconalab/percona-server-mongodb-operator:main-mongod8.0"' + yq eval '.spec.upgradeOptions.apply="Never"' ++ mktemp + local LAST_ERR=/tmp/tmp.prmObuXbvO + 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.SC37xe9avb perconaservermongodb.psmdb.percona.com/some-name configured + cat /tmp/tmp.prmObuXbvO + rm /tmp/tmp.SC37xe9avb /tmp/tmp.prmObuXbvO + return 0 + sleep 55 + desc 'disable backups schedule' + set +o xtrace ----------------------------------------------------------------------------------- disable backups schedule ----------------------------------------------------------------------------------- + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/scheduled-backup/conf/some-name-rs0.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/scheduled-backup/conf/some-name-rs0.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1897/e2e-tests/scheduled-backup/conf/some-name-rs0.yml + yq eval '(.spec | select(has("initImage"))).initImage = "perconalab/percona-server-mongodb-operator:PR-1897-ea494d1c"' + yq eval '(.spec | select(has("backup"))).backup.image = "perconalab/percona-server-mongodb-operator:main-backup"' ++ mktemp + yq eval '(.spec | select(has("pmm"))).pmm.image = "perconalab/pmm-client:dev-latest"' + yq eval '.spec.upgradeOptions.apply="Never"' + yq eval '(.spec | select(.image == null)).image = "perconalab/percona-server-mongodb-operator:main-mongod8.0"' + local LAST_OUT=/tmp/tmp.kbaTTlB8Rx ++ mktemp + local LAST_ERR=/tmp/tmp.E6YyFU8P13 + 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.kbaTTlB8Rx perconaservermongodb.psmdb.percona.com/some-name configured + cat /tmp/tmp.E6YyFU8P13 + rm /tmp/tmp.kbaTTlB8Rx /tmp/tmp.E6YyFU8P13 + return 0 + '[' -z '' ']' ++ kubectl_bin get psmdb-backup ++ grep aws-s3 +++ mktemp ++ awk '{print$1}' ++ head -1 ++ local LAST_OUT=/tmp/tmp.HpPTk5JY6l +++ mktemp ++ local LAST_ERR=/tmp/tmp.S0haxke3rr ++ 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.HpPTk5JY6l ++ cat /tmp/tmp.S0haxke3rr ++ rm /tmp/tmp.HpPTk5JY6l /tmp/tmp.S0haxke3rr ++ return 0 + backup_name_aws=cron-some-name-20250519155100-75nll ++ grep gcp-cs ++ awk '{print$1}' ++ head -1 ++ kubectl_bin get psmdb-backup +++ mktemp ++ local LAST_OUT=/tmp/tmp.ogOOKuHrmV +++ mktemp ++ local LAST_ERR=/tmp/tmp.sodllfmHOM ++ 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.ogOOKuHrmV ++ cat /tmp/tmp.sodllfmHOM ++ rm /tmp/tmp.ogOOKuHrmV /tmp/tmp.sodllfmHOM ++ return 0 + backup_name_gcp=cron-some-name-20250519155100-l7pzl ++ kubectl_bin get psmdb-backup ++ head -1 +++ mktemp ++ grep azure-blob ++ awk '{print$1}' ++ local LAST_OUT=/tmp/tmp.7wTaYPAKzt +++ mktemp ++ local LAST_ERR=/tmp/tmp.SYNxSfFucx ++ 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.7wTaYPAKzt ++ cat /tmp/tmp.SYNxSfFucx ++ rm /tmp/tmp.7wTaYPAKzt /tmp/tmp.SYNxSfFucx ++ return 0 + backup_name_azure=cron-some-name-20250519155100-t2lp2 + wait_backup cron-some-name-20250519155100-75nll + local backup_name=cron-some-name-20250519155100-75nll + local target_state=ready + set +o xtrace waiting for cron-some-name-20250519155100-75nll to reach ready state. + wait_backup cron-some-name-20250519155100-l7pzl + local backup_name=cron-some-name-20250519155100-l7pzl + local target_state=ready + set +o xtrace waiting for cron-some-name-20250519155100-l7pzl to reach ready state. + wait_backup cron-some-name-20250519155100-t2lp2 + local backup_name=cron-some-name-20250519155100-t2lp2 + local target_state=ready + set +o xtrace waiting for cron-some-name-20250519155100-t2lp2 to reach ready state. ++ awk '{print$1}' ++ grep minio ++ kubectl_bin get psmdb-backup ++ head -1 +++ mktemp ++ local LAST_OUT=/tmp/tmp.VfGdjLOGw9 +++ mktemp ++ local LAST_ERR=/tmp/tmp.YpK9uJjUtP ++ 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.VfGdjLOGw9 ++ cat /tmp/tmp.YpK9uJjUtP ++ rm /tmp/tmp.VfGdjLOGw9 /tmp/tmp.YpK9uJjUtP ++ return 0 + backup_name_minio=cron-some-name-20250519155100-cdmq8 + wait_backup cron-some-name-20250519155100-cdmq8 + local backup_name=cron-some-name-20250519155100-cdmq8 + local target_state=ready + set +o xtrace waiting for cron-some-name-20250519155100-cdmq8 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 ++ wc -l ++ kubectl_bin get psmdb-backup -l percona.com/backup-ancestor=every-min-minio ++ grep ready +++ mktemp ++ local LAST_OUT=/tmp/tmp.6OgCGyzGcn +++ mktemp ++ local LAST_ERR=/tmp/tmp.a5KzPeez9e ++ 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.6OgCGyzGcn ++ cat /tmp/tmp.a5KzPeez9e ++ rm /tmp/tmp.6OgCGyzGcn /tmp/tmp.a5KzPeez9e ++ return 0 + local count=1 + 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 ++ wc -l ++ grep ready +++ mktemp ++ local LAST_OUT=/tmp/tmp.LtNqfgFZOm +++ mktemp ++ local LAST_ERR=/tmp/tmp.F1gMV0auoh ++ 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.LtNqfgFZOm ++ cat /tmp/tmp.F1gMV0auoh ++ rm /tmp/tmp.LtNqfgFZOm /tmp/tmp.F1gMV0auoh ++ return 0 + local count=1 + 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 +++ mktemp ++ local LAST_OUT=/tmp/tmp.x7mIIj3cy4 +++ mktemp ++ local LAST_ERR=/tmp/tmp.mad6YbjFfP ++ 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 ++ wc -l ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.x7mIIj3cy4 ++ cat /tmp/tmp.mad6YbjFfP ++ rm /tmp/tmp.x7mIIj3cy4 /tmp/tmp.mad6YbjFfP ++ return 0 + local count=1 + 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 ++ grep ready ++ kubectl_bin get psmdb-backup -l percona.com/backup-ancestor=every-min-azure-blob ++ wc -l +++ mktemp ++ local LAST_OUT=/tmp/tmp.PSl6aTlfsH +++ mktemp ++ local LAST_ERR=/tmp/tmp.Oeki8zy4pF ++ 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.PSl6aTlfsH ++ cat /tmp/tmp.Oeki8zy4pF ++ rm /tmp/tmp.PSl6aTlfsH /tmp/tmp.Oeki8zy4pF ++ return 0 + local count=1 + 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-20250519155100-cdmq8 ++ local backup_name=cron-some-name-20250519155100-cdmq8 ++ sed 's|azure://||' ++ kubectl_bin get psmdb-backup cron-some-name-20250519155100-cdmq8 -o 'jsonpath={.status.destination}' +++ mktemp ++ sed -e 's/.json$//' ++ sed 's|s3://||' ++ local LAST_OUT=/tmp/tmp.IPFFH8YoKs +++ mktemp ++ local LAST_ERR=/tmp/tmp.7AYk4WEy6X ++ 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-20250519155100-cdmq8 -o 'jsonpath={.status.destination}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.IPFFH8YoKs ++ cat /tmp/tmp.7AYk4WEy6X ++ rm /tmp/tmp.IPFFH8YoKs /tmp/tmp.7AYk4WEy6X ++ return 0 + backup_dest_minio=operator-testing/2025-05-19T15:51:21Z + 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-19T15:51:21Z/rs0/ + grep myApp.test.gz ++ mktemp + local LAST_OUT=/tmp/tmp.MZ65Orj3DW ++ mktemp + local LAST_ERR=/tmp/tmp.pIj8v3pFdc + 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 -- /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-19T15:51:21Z/rs0/ + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.MZ65Orj3DW + cat /tmp/tmp.pIj8v3pFdc If you don't see a command prompt, try pressing enter. + rm /tmp/tmp.MZ65Orj3DW /tmp/tmp.pIj8v3pFdc + return 0