Log: /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/logs/scheduled-backup-azure-8-0.log Warning: version difference between client (1.36) and server (1.33) exceeds the supported minor version skew of +/-1 Warning: version difference between client (1.36) and server (1.33) exceeds the supported minor version skew of +/-1 + main + '[' -n '' ']' + create_infra scheduled-backup-azure-30767 + local ns=scheduled-backup-azure-30767 + '[' -n pxc-operator ']' + kubectl_bin get pxc --all-namespaces -o 'jsonpath={range .items[*]}{.metadata.namespace} {.metadata.name}{"\n"}{end}' + read -r pns name + [[ -z scheduled-backup-azure-26279 ]] + [[ -z scheduled-backup ]] + kubectl_bin patch pxc -n scheduled-backup-azure-26279 scheduled-backup --type=merge -p '{"metadata":{"finalizers":[]}}' ++ mktemp + local LAST_OUT=/tmp/tmp.UTu6dZmv7t ++ mktemp + local LAST_ERR=/tmp/tmp.UhhD2E4Uox + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl patch pxc -n scheduled-backup-azure-26279 scheduled-backup --type=merge -p '{"metadata":{"finalizers":[]}}' + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.UTu6dZmv7t perconaxtradbcluster.pxc.percona.com/scheduled-backup patched (no change) + cat /tmp/tmp.UhhD2E4Uox + rm /tmp/tmp.UTu6dZmv7t /tmp/tmp.UhhD2E4Uox + return 0 + read -r pns name + kubectl_bin get pxc-backup --all-namespaces -o 'jsonpath={range .items[*]}{.metadata.namespace} {.metadata.name}{"\n"}{end}' + read -r pns name + timeout 300 kubectl delete pxc --all --all-namespaces --wait=false --ignore-not-found perconaxtradbcluster.pxc.percona.com "scheduled-backup" deleted from scheduled-backup-azure-26279 namespace + timeout 300 kubectl delete pxc-backup --all --all-namespaces --wait=false --ignore-not-found No resources found + timeout 300 kubectl delete pxc-restore --all --all-namespaces --wait=false --ignore-not-found No resources found + create_namespace pxc-operator + local namespace=pxc-operator + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// + local chaos_mesh_ns= + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ awk '{print $1}' ++ grep chaos-mesh + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ 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 ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ awk '{print $1}' ++ grep chaos-mesh + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + grep -E -v '^kube-|^default|Terminating|pxc-operator|openshift|^gke-|^gmp-|^NAME' + '[' -n '' ']' + desc 'cleaned up old namespaces pxc-operator' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces pxc-operator ----------------------------------------------------------------------------------- + kubectl_bin get ns + kubectl_bin delete namespace pxc-operator + awk '{print$1}' ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.yVkPIISfp0 + local LAST_OUT=/tmp/tmp.qutyD64XyS ++ mktemp ++ mktemp + local LAST_ERR=/tmp/tmp.3PAPSneMqq + local exit_status=0 + local LAST_ERR=/tmp/tmp.f5Bp2WxUiP ++ seq 0 2 + local exit_status=0 + xargs kubectl delete ns ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace pxc-operator + for i in '$(seq 0 2)' + set +e + kubectl get ns + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.yVkPIISfp0 + cat /tmp/tmp.3PAPSneMqq + rm /tmp/tmp.yVkPIISfp0 /tmp/tmp.3PAPSneMqq + return 0 namespace "scheduled-backup-azure-26279" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.qutyD64XyS namespace "pxc-operator" deleted + cat /tmp/tmp.f5Bp2WxUiP + rm /tmp/tmp.qutyD64XyS /tmp/tmp.f5Bp2WxUiP + return 0 + wait_for_delete namespace/pxc-operator + local res=namespace/pxc-operator + echo -n 'waiting for namespace/pxc-operator to be deleted' waiting for namespace/pxc-operator to be deleted+ set +o xtrace Error from server (NotFound): namespaces "pxc-operator" not found + desc 'create namespace pxc-operator' + set +o xtrace ----------------------------------------------------------------------------------- create namespace pxc-operator ----------------------------------------------------------------------------------- + kubectl_bin create namespace pxc-operator ++ mktemp + local LAST_OUT=/tmp/tmp.OEIzMSYx2G ++ mktemp + local LAST_ERR=/tmp/tmp.5nychL6xFA + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace pxc-operator + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.OEIzMSYx2G namespace/pxc-operator created + cat /tmp/tmp.5nychL6xFA + rm /tmp/tmp.OEIzMSYx2G /tmp/tmp.5nychL6xFA + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.HRVWeBt66U +++ mktemp ++ local LAST_ERR=/tmp/tmp.mhhOukaA0F ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.HRVWeBt66U ++ cat /tmp/tmp.mhhOukaA0F ++ rm /tmp/tmp.HRVWeBt66U /tmp/tmp.mhhOukaA0F ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-pxc-2539-dcdf1e8a-1-cluster12 --namespace=pxc-operator ++ mktemp + local LAST_OUT=/tmp/tmp.E536X3PB5x ++ mktemp + local LAST_ERR=/tmp/tmp.LV1k9407Vk + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-pxc-2539-dcdf1e8a-1-cluster12 --namespace=pxc-operator + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.E536X3PB5x Context "gke_cloud-dev-112233_us-central1-a_jen-pxc-2539-dcdf1e8a-1-cluster12" modified. + cat /tmp/tmp.LV1k9407Vk + rm /tmp/tmp.E536X3PB5x /tmp/tmp.LV1k9407Vk + return 0 + deploy_operator + desc 'start PXC operator' + set +o xtrace ----------------------------------------------------------------------------------- start PXC operator ----------------------------------------------------------------------------------- + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.A8TuqL8hmV ++ mktemp + local LAST_ERR=/tmp/tmp.0Sp19lX2St + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.A8TuqL8hmV customresourcedefinition.apiextensions.k8s.io/perconaxtradbclusterbackups.pxc.percona.com serverside-applied customresourcedefinition.apiextensions.k8s.io/perconaxtradbclusterrestores.pxc.percona.com serverside-applied customresourcedefinition.apiextensions.k8s.io/perconaxtradbclusters.pxc.percona.com serverside-applied + cat /tmp/tmp.0Sp19lX2St + rm /tmp/tmp.A8TuqL8hmV /tmp/tmp.0Sp19lX2St + return 0 + kubectl_bin wait --for=condition=Established --timeout=120s crd/perconaxtradbclusters.pxc.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.qDepYA0q8O ++ mktemp + local LAST_ERR=/tmp/tmp.BMnt9DcHTR + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=condition=Established --timeout=120s crd/perconaxtradbclusters.pxc.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.qDepYA0q8O customresourcedefinition.apiextensions.k8s.io/perconaxtradbclusters.pxc.percona.com condition met + cat /tmp/tmp.BMnt9DcHTR E0702 04:10:48.264508 27861 reflector.go:227] "Failed to watch" err="Get \"https://136.119.46.30/apis/apiextensions.k8s.io/v1/customresourcedefinitions?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dperconaxtradbclusters.pxc.percona.com&resourceVersion=1782965445780765000&timeoutSeconds=414&watch=true\": context canceled" reflector="k8s.io/client-go/tools/watch/informerwatcher.go:162" type="*unstructured.Unstructured" + rm /tmp/tmp.qDepYA0q8O /tmp/tmp.BMnt9DcHTR + return 0 + kubectl_bin wait --for=condition=Established --timeout=120s crd/perconaxtradbclusterbackups.pxc.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.xDsGibWQIB ++ mktemp + local LAST_ERR=/tmp/tmp.CaqCXGKKSA + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=condition=Established --timeout=120s crd/perconaxtradbclusterbackups.pxc.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.xDsGibWQIB customresourcedefinition.apiextensions.k8s.io/perconaxtradbclusterbackups.pxc.percona.com condition met + cat /tmp/tmp.CaqCXGKKSA E0702 04:10:49.873118 28036 reflector.go:227] "Failed to watch" err="Get \"https://136.119.46.30/apis/apiextensions.k8s.io/v1/customresourcedefinitions?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dperconaxtradbclusterbackups.pxc.percona.com&resourceVersion=1782965445780765000&timeoutSeconds=414&watch=true\": context canceled" reflector="k8s.io/client-go/tools/watch/informerwatcher.go:162" type="*unstructured.Unstructured" + rm /tmp/tmp.xDsGibWQIB /tmp/tmp.CaqCXGKKSA + return 0 + kubectl_bin wait --for=condition=Established --timeout=120s crd/perconaxtradbclusterrestores.pxc.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.GxmWV4vRAA ++ mktemp + local LAST_ERR=/tmp/tmp.HU96OyukWc + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=condition=Established --timeout=120s crd/perconaxtradbclusterrestores.pxc.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.GxmWV4vRAA customresourcedefinition.apiextensions.k8s.io/perconaxtradbclusterrestores.pxc.percona.com condition met + cat /tmp/tmp.HU96OyukWc E0702 04:10:51.380293 28281 reflector.go:227] "Failed to watch" err="Get \"https://136.119.46.30/apis/apiextensions.k8s.io/v1/customresourcedefinitions?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dperconaxtradbclusterrestores.pxc.percona.com&resourceVersion=1782965450780871000&timeoutSeconds=435&watch=true\": context canceled" reflector="k8s.io/client-go/tools/watch/informerwatcher.go:162" type="*unstructured.Unstructured" + rm /tmp/tmp.GxmWV4vRAA /tmp/tmp.HU96OyukWc + return 0 + '[' -n pxc-operator ']' + apply_rbac cw-rbac + local operator_namespace=pxc-operator + local rbac=cw-rbac + sed -e 's^namespace: .*^namespace: pxc-operator^' + cat /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/deploy/cw-rbac.yaml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.h6iZx2D8Gf ++ mktemp + local LAST_ERR=/tmp/tmp.Jg2HHe8Fli + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.h6iZx2D8Gf clusterrole.rbac.authorization.k8s.io/percona-xtradb-cluster-operator unchanged serviceaccount/percona-xtradb-cluster-operator created clusterrolebinding.rbac.authorization.k8s.io/service-account-percona-xtradb-cluster-operator unchanged + cat /tmp/tmp.Jg2HHe8Fli + rm /tmp/tmp.h6iZx2D8Gf /tmp/tmp.Jg2HHe8Fli + return 0 + kubectl_bin apply -f - + yq eval '(select(.kind == "Deployment").spec.template.spec.containers[] | select(.name == "percona-xtradb-cluster-operator").env[] | select(.name == "PXCO_FEATURE_GATES").value) = ""' - + sed -e 's^failureThreshold: .*^failureThreshold: 10^' + yq eval '(select(.kind == "Deployment").spec.template.spec.containers[] | select(.name == "percona-xtradb-cluster-operator").env[] | select(.name == "DISABLE_TELEMETRY").value) = "true"' - + yq eval '(select(.kind == "Deployment").spec.template.spec.containers[] | select(.name == "percona-xtradb-cluster-operator").env[] | select(.name == "LOG_LEVEL").value) = "VERBOSE"' - + cat /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/deploy/cw-operator.yaml + sed -e 's^image: .*^image: perconalab/percona-xtradb-cluster-operator:PR-2539-dcdf1e8a^' ++ mktemp + local LAST_OUT=/tmp/tmp.iJBIJR87wS ++ mktemp + local LAST_ERR=/tmp/tmp.bExAbl0QRY + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.iJBIJR87wS deployment.apps/percona-xtradb-cluster-operator created service/percona-xtradb-cluster-operator created + cat /tmp/tmp.bExAbl0QRY + rm /tmp/tmp.iJBIJR87wS /tmp/tmp.bExAbl0QRY + return 0 + sleep 10 + kubectl_bin wait --for=condition=Ready pods -l app.kubernetes.io/component=operator,app.kubernetes.io/instance=percona-xtradb-cluster-operator,app.kubernetes.io/name=percona-xtradb-cluster-operator --timeout=30s ++ mktemp + local LAST_OUT=/tmp/tmp.Nl3Z1SwQbH ++ mktemp + local LAST_ERR=/tmp/tmp.kFfkHzqlKl + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=condition=Ready pods -l app.kubernetes.io/component=operator,app.kubernetes.io/instance=percona-xtradb-cluster-operator,app.kubernetes.io/name=percona-xtradb-cluster-operator --timeout=30s + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.Nl3Z1SwQbH pod/percona-xtradb-cluster-operator-65b5d85575-jqkbl condition met + cat /tmp/tmp.kFfkHzqlKl E0702 04:11:11.674126 31043 reflector.go:227] "Failed to watch" err="Get \"https://136.119.46.30/api/v1/namespaces/pxc-operator/pods?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dpercona-xtradb-cluster-operator-65b5d85575-jqkbl&resourceVersion=1782965471223627000&timeoutSeconds=383&watch=true\": context canceled" reflector="k8s.io/client-go/tools/watch/informerwatcher.go:162" type="*unstructured.Unstructured" + rm /tmp/tmp.Nl3Z1SwQbH /tmp/tmp.kFfkHzqlKl + return 0 ++ get_operator_pod ++ local label_prefix=app.kubernetes.io/ +++ kubectl get pods --selector=app.kubernetes.io/name=percona-xtradb-cluster-operator -n pxc-operator +++ grep -c percona-xtradb-cluster-operator ++ local check_label=1 ++ [[ 1 -eq 0 ]] ++ head -1 ++ jq -r '.items[] | select(.metadata.deletionTimestamp == null) | .metadata.name' ++ kubectl_bin get pods --selector=app.kubernetes.io/name=percona-xtradb-cluster-operator --field-selector=status.phase=Running -o json -n pxc-operator +++ mktemp ++ local LAST_OUT=/tmp/tmp.NawBozHR2D +++ mktemp ++ local LAST_ERR=/tmp/tmp.zDm4ECs8dn ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pods --selector=app.kubernetes.io/name=percona-xtradb-cluster-operator --field-selector=status.phase=Running -o json -n pxc-operator ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.NawBozHR2D ++ cat /tmp/tmp.zDm4ECs8dn ++ rm /tmp/tmp.NawBozHR2D /tmp/tmp.zDm4ECs8dn ++ return 0 + wait_pod percona-xtradb-cluster-operator-65b5d85575-jqkbl 480 pxc-operator + local pod=percona-xtradb-cluster-operator-65b5d85575-jqkbl + local max_retry=480 + local ns=pxc-operator ++ echo percona-xtradb-cluster-operator-65b5d85575-jqkbl ++ grep -E '^(pxc|proxysql)$' ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' + local container= + set +o xtrace pod/percona-xtradb-cluster-operator-65b5d85575-jqkbl condition met E0702 04:11:16.466939 31879 reflector.go:227] "Failed to watch" err="Get \"https://136.119.46.30/api/v1/namespaces/pxc-operator/pods?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dpercona-xtradb-cluster-operator-65b5d85575-jqkbl&resourceVersion=1782965474256113000&timeoutSeconds=442&watch=true\": context canceled" reflector="k8s.io/client-go/tools/watch/informerwatcher.go:162" type="*unstructured.Unstructured" waiting for pod/percona-xtradb-cluster-operator-65b5d85575-jqkbl to become Ready.Ok + sleep 3 + create_namespace scheduled-backup-azure-30767 + local namespace=scheduled-backup-azure-30767 + 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= + '[' -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 + : ++ awk '{print $1}' ++ kubectl get ValidatingWebhookConfiguration ++ grep chaos-mesh + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ awk '{print $1}' ++ grep validate-auth + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get crd ++ awk '{print $1}' ++ grep chaos-mesh.org + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ 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-azure-30767' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces scheduled-backup-azure-30767 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace scheduled-backup-azure-30767 ++ mktemp + local LAST_OUT=/tmp/tmp.JEOFX6DthO + xargs kubectl delete ns + kubectl_bin get ns ++ mktemp + grep -E -v '^kube-|^default|Terminating|pxc-operator|openshift|^gke-|^gmp-|^NAME' + local LAST_OUT=/tmp/tmp.PesTP4jHD3 + awk '{print$1}' ++ mktemp + local LAST_ERR=/tmp/tmp.Ava7kPHWJw + local exit_status=0 ++ mktemp ++ seq 0 2 + local LAST_ERR=/tmp/tmp.WM7TmDZZxT + local exit_status=0 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace scheduled-backup-azure-30767 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get ns + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.PesTP4jHD3 + cat /tmp/tmp.WM7TmDZZxT + rm /tmp/tmp.PesTP4jHD3 /tmp/tmp.WM7TmDZZxT + return 0 error: resource(s) were provided, but no name was specified + exit_status=1 + set -e + '[' 1 '!=' 0 ']' + '[' 1 == 1 ']' + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace scheduled-backup-azure-30767 + exit_status=1 + set -e + '[' 1 '!=' 0 ']' + '[' 1 == 1 ']' + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace scheduled-backup-azure-30767 + exit_status=1 + set -e + '[' 1 '!=' 0 ']' + '[' 1 == 1 ']' + sleep 0 + cat /tmp/tmp.JEOFX6DthO + cat /tmp/tmp.Ava7kPHWJw Error from server (NotFound): namespaces "scheduled-backup-azure-30767" not found + rm /tmp/tmp.JEOFX6DthO /tmp/tmp.Ava7kPHWJw + return 1 + : + wait_for_delete namespace/scheduled-backup-azure-30767 + local res=namespace/scheduled-backup-azure-30767 + echo -n 'waiting for namespace/scheduled-backup-azure-30767 to be deleted' waiting for namespace/scheduled-backup-azure-30767 to be deleted+ set +o xtrace Error from server (NotFound): namespaces "scheduled-backup-azure-30767" not found + desc 'create namespace scheduled-backup-azure-30767' + set +o xtrace ----------------------------------------------------------------------------------- create namespace scheduled-backup-azure-30767 ----------------------------------------------------------------------------------- + kubectl_bin create namespace scheduled-backup-azure-30767 ++ mktemp + local LAST_OUT=/tmp/tmp.TgNklQGccV ++ mktemp + local LAST_ERR=/tmp/tmp.FfhDK09TlX + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace scheduled-backup-azure-30767 + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.TgNklQGccV namespace/scheduled-backup-azure-30767 created + cat /tmp/tmp.FfhDK09TlX + rm /tmp/tmp.TgNklQGccV /tmp/tmp.FfhDK09TlX + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.EFM8FfFjGe +++ mktemp ++ local LAST_ERR=/tmp/tmp.6otsu8SVVI ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.EFM8FfFjGe ++ cat /tmp/tmp.6otsu8SVVI ++ rm /tmp/tmp.EFM8FfFjGe /tmp/tmp.6otsu8SVVI ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-pxc-2539-dcdf1e8a-1-cluster12 --namespace=scheduled-backup-azure-30767 ++ mktemp + local LAST_OUT=/tmp/tmp.SHKCDEZmNM ++ mktemp + local LAST_ERR=/tmp/tmp.93HqoHSMp7 + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-pxc-2539-dcdf1e8a-1-cluster12 --namespace=scheduled-backup-azure-30767 + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.SHKCDEZmNM Context "gke_cloud-dev-112233_us-central1-a_jen-pxc-2539-dcdf1e8a-1-cluster12" modified. + cat /tmp/tmp.93HqoHSMp7 + rm /tmp/tmp.SHKCDEZmNM /tmp/tmp.93HqoHSMp7 + return 0 + apply_secrets + desc 'create secrets for cloud storages' + set +o xtrace ----------------------------------------------------------------------------------- create secrets for cloud storages ----------------------------------------------------------------------------------- + '[' -z '' ']' + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/conf/minio-secret.yml -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/conf/cloud-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.RpxOleeXz7 ++ mktemp + local LAST_ERR=/tmp/tmp.hFbsI3BHxi + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/conf/minio-secret.yml -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/conf/cloud-secret.yml + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.RpxOleeXz7 secret/minio-secret created secret/aws-s3-secret created secret/do-spaces-secret created secret/gcp-cs-secret created secret/azure-secret created + cat /tmp/tmp.hFbsI3BHxi + rm /tmp/tmp.RpxOleeXz7 /tmp/tmp.hFbsI3BHxi + return 0 + cluster=scheduled-backup + command -v az + echo 'Azure CLI is installed' Azure CLI is installed + kubectl_bin apply -f - + cat - ++ mktemp + local LAST_OUT=/tmp/tmp.tmo6ZrGSAE ++ mktemp + local LAST_ERR=/tmp/tmp.BpR9OaCyG9 + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.tmo6ZrGSAE priorityclass.scheduling.k8s.io/high-priority configured + cat /tmp/tmp.BpR9OaCyG9 + rm /tmp/tmp.tmo6ZrGSAE /tmp/tmp.BpR9OaCyG9 + return 0 + spinup_pxc scheduled-backup /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml + local cluster=scheduled-backup + local config=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml + local size=3 + local sleep=10 + local secretsFile=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/conf/secrets.yml + local pxcClientFile=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/conf/client.yml + local port=3306 + desc 'create first PXC cluster' + set +o xtrace ----------------------------------------------------------------------------------- create first PXC cluster ----------------------------------------------------------------------------------- + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/conf/secrets.yml ++ mktemp + local LAST_OUT=/tmp/tmp.GjfpgJqZv1 ++ mktemp + local LAST_ERR=/tmp/tmp.GOu9DK3voz + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/conf/secrets.yml + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.GjfpgJqZv1 secret/my-cluster-secrets created secret/some-name-ssl created secret/some-name-ssl-internal created + cat /tmp/tmp.GOu9DK3voz + rm /tmp/tmp.GjfpgJqZv1 /tmp/tmp.GOu9DK3voz + return 0 + apply_config /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/conf/client.yml + local config_file=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/conf/client.yml + local pvc_name= + '[' -z '' ']' + kubectl_bin apply -f - ++ mktemp + cat_config /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/conf/client.yml '' + local input_file=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/conf/client.yml + local pvc_name= + local LAST_OUT=/tmp/tmp.JGVMeiYY5Q + /usr/bin/sed -e s~minio-service.#namespace~minio-service.scheduled-backup-azure-30767~ + /usr/bin/sed -e 's#apply:.*#apply: Never#' + /usr/bin/sed -e 's#claimName:..*-backup-pvc$#claimName: #' + /usr/bin/sed -e 's#image:.*-haproxy$#image: perconalab/percona-xtradb-cluster-operator:main-haproxy#' + /usr/bin/sed -e 's#image:.*-logcollector$#image: perconalab/fluentbit:main-logcollector#' ++ mktemp + /usr/bin/sed -e 's#apiVersion: pxc.percona.com/v.*$#apiVersion: pxc.percona.com/v1#' + /usr/bin/sed -e 's#image:.*-pxc\([0-9]*.[0-9]*\)\{0,1\}$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0#' + /usr/bin/sed -e 's#image:.*\/percona-xtradb-cluster:.*$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0#' + /usr/bin/sed -e 's#image:.*-init$#image: perconalab/percona-xtradb-cluster-operator:PR-2539-dcdf1e8a#' + local LAST_ERR=/tmp/tmp.vacqg9cIqS + local exit_status=0 + /usr/bin/sed -e 's#image:.*-backup$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0-backup#' + /usr/bin/sed -e 's#image:.*-proxysql$#image: perconalab/percona-xtradb-cluster-operator:main-proxysql#' + cat /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/conf/client.yml ++ seq 0 2 + /usr/bin/sed -e 's#image:.*-pmm$#image: perconalab/pmm-client:dev-latest#' + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.JGVMeiYY5Q deployment.apps/pxc-client created + cat /tmp/tmp.vacqg9cIqS + rm /tmp/tmp.JGVMeiYY5Q /tmp/tmp.vacqg9cIqS + return 0 + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 5\.7 ]] + apply_config /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml + local config_file=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml + local pvc_name= + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml '' + local input_file=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml + local pvc_name= + /usr/bin/sed -e 's#image:.*-backup$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0-backup#' + /usr/bin/sed -e 's#image:.*-pmm$#image: perconalab/pmm-client:dev-latest#' + /usr/bin/sed -e s~minio-service.#namespace~minio-service.scheduled-backup-azure-30767~ + /usr/bin/sed -e 's#apply:.*#apply: Never#' + /usr/bin/sed -e 's#image:.*-init$#image: perconalab/percona-xtradb-cluster-operator:PR-2539-dcdf1e8a#' + /usr/bin/sed -e 's#claimName:..*-backup-pvc$#claimName: #' + /usr/bin/sed -e 's#image:.*-proxysql$#image: perconalab/percona-xtradb-cluster-operator:main-proxysql#' + /usr/bin/sed -e 's#image:.*-haproxy$#image: perconalab/percona-xtradb-cluster-operator:main-haproxy#' + /usr/bin/sed -e 's#image:.*-logcollector$#image: perconalab/fluentbit:main-logcollector#' + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml + /usr/bin/sed -e 's#apiVersion: pxc.percona.com/v.*$#apiVersion: pxc.percona.com/v1#' ++ mktemp + local LAST_OUT=/tmp/tmp.PmNR7pOKzX + /usr/bin/sed -e 's#image:.*-pxc\([0-9]*.[0-9]*\)\{0,1\}$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0#' + /usr/bin/sed -e 's#image:.*\/percona-xtradb-cluster:.*$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0#' ++ mktemp + local LAST_ERR=/tmp/tmp.S4AYA1awin + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.PmNR7pOKzX perconaxtradbcluster.pxc.percona.com/scheduled-backup created + cat /tmp/tmp.S4AYA1awin + rm /tmp/tmp.PmNR7pOKzX /tmp/tmp.S4AYA1awin + return 0 + desc 'waiting pods to be running for scheduled-backup' + set +o xtrace ----------------------------------------------------------------------------------- waiting pods to be running for scheduled-backup ----------------------------------------------------------------------------------- ++ get_proxy scheduled-backup ++ local target_cluster=scheduled-backup +++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.haproxy.enabled}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.cQzmM1Q2lP ++++ mktemp +++ local LAST_ERR=/tmp/tmp.jCXQImimxs +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.haproxy.enabled}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.cQzmM1Q2lP +++ cat /tmp/tmp.jCXQImimxs +++ rm /tmp/tmp.cQzmM1Q2lP /tmp/tmp.jCXQImimxs +++ return 0 ++ [[ '' == \t\r\u\e ]] +++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.proxysql.enabled}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.uCblj3vR4G ++++ mktemp +++ local LAST_ERR=/tmp/tmp.JjvrTqmmzu +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.proxysql.enabled}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.uCblj3vR4G +++ cat /tmp/tmp.JjvrTqmmzu +++ rm /tmp/tmp.uCblj3vR4G /tmp/tmp.JjvrTqmmzu +++ return 0 ++ [[ true == \t\r\u\e ]] ++ echo scheduled-backup-proxysql ++ return + local proxy=scheduled-backup-proxysql ++ get_proxy_size scheduled-backup ++ local cluster=scheduled-backup ++ local size=0 +++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.haproxy.enabled}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.hroicKfPzp ++++ mktemp +++ local LAST_ERR=/tmp/tmp.fPNtU7OL28 +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.haproxy.enabled}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.hroicKfPzp +++ cat /tmp/tmp.fPNtU7OL28 +++ rm /tmp/tmp.hroicKfPzp /tmp/tmp.fPNtU7OL28 +++ return 0 ++ [[ '' == \t\r\u\e ]] +++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.proxysql.enabled}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.Pjokp9eI2T ++++ mktemp +++ local LAST_ERR=/tmp/tmp.384MP3GqjU +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.proxysql.enabled}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.Pjokp9eI2T +++ cat /tmp/tmp.384MP3GqjU +++ rm /tmp/tmp.Pjokp9eI2T /tmp/tmp.384MP3GqjU +++ return 0 ++ [[ true == \t\r\u\e ]] +++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.proxysql.size}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.gNBbeRTex7 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.3UJDLTrTVW +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.proxysql.size}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.gNBbeRTex7 +++ cat /tmp/tmp.3UJDLTrTVW +++ rm /tmp/tmp.gNBbeRTex7 /tmp/tmp.3UJDLTrTVW +++ return 0 ++ size=2 ++ echo 2 + local proxy_size=2 + wait_for_running scheduled-backup-pxc 3 + local name=scheduled-backup-pxc + local size=3 + local last_pod + local max_retry=480 + [[ -z scheduled-backup-pxc ]] + [[ 3 -le 0 ]] + last_pod=2 + desc 'Waiting for 3 running pods for scheduled-backup-pxc' + set +o xtrace ----------------------------------------------------------------------------------- Waiting for 3 running pods for scheduled-backup-pxc ----------------------------------------------------------------------------------- ++ seq 0 2 + for i in '$(seq 0 $last_pod)' + wait_pod scheduled-backup-pxc-0 480 + local pod=scheduled-backup-pxc-0 + local max_retry=480 + local ns= ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ grep -E '^(pxc|proxysql)$' ++ echo scheduled-backup-pxc-0 + local container=pxc + set +o xtrace pod/scheduled-backup-pxc-0 condition met waiting for pod/scheduled-backup-pxc-0 to become Ready.Ok + for i in '$(seq 0 $last_pod)' + wait_pod scheduled-backup-pxc-1 480 + local pod=scheduled-backup-pxc-1 + local max_retry=480 + local ns= ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ echo scheduled-backup-pxc-1 ++ grep -E '^(pxc|proxysql)$' + local container=pxc + set +o xtrace pod/scheduled-backup-pxc-1 condition met waiting for pod/scheduled-backup-pxc-1 to become Ready.Ok + for i in '$(seq 0 $last_pod)' + wait_pod scheduled-backup-pxc-2 480 + local pod=scheduled-backup-pxc-2 + local max_retry=480 + local ns= ++ grep -E '^(pxc|proxysql)$' ++ echo scheduled-backup-pxc-2 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' + local container=pxc + set +o xtrace pod/scheduled-backup-pxc-2 condition met waiting for pod/scheduled-backup-pxc-2 to become Ready.Ok + wait_for_running scheduled-backup-proxysql 2 + local name=scheduled-backup-proxysql + local size=2 + local last_pod + local max_retry=480 + [[ -z scheduled-backup-proxysql ]] + [[ 2 -le 0 ]] + last_pod=1 + desc 'Waiting for 2 running pods for scheduled-backup-proxysql' + set +o xtrace ----------------------------------------------------------------------------------- Waiting for 2 running pods for scheduled-backup-proxysql ----------------------------------------------------------------------------------- ++ seq 0 1 + for i in '$(seq 0 $last_pod)' + wait_pod scheduled-backup-proxysql-0 480 + local pod=scheduled-backup-proxysql-0 + local max_retry=480 + local ns= ++ grep -E '^(pxc|proxysql)$' ++ echo scheduled-backup-proxysql-0 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' + local container=proxysql + set +o xtrace pod/scheduled-backup-proxysql-0 condition met E0702 04:16:18.165561 10541 reflector.go:227] "Failed to watch" err="Get \"https://136.119.46.30/api/v1/namespaces/scheduled-backup-azure-30767/pods?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dscheduled-backup-proxysql-0&resourceVersion=1782965774140235000&timeoutSeconds=452&watch=true\": context canceled" reflector="k8s.io/client-go/tools/watch/informerwatcher.go:162" type="*unstructured.Unstructured" waiting for pod/scheduled-backup-proxysql-0 to become Ready.Ok + for i in '$(seq 0 $last_pod)' + wait_pod scheduled-backup-proxysql-1 480 + local pod=scheduled-backup-proxysql-1 + local max_retry=480 + local ns= ++ grep -E '^(pxc|proxysql)$' ++ echo scheduled-backup-proxysql-1 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' + local container=proxysql + set +o xtrace pod/scheduled-backup-proxysql-1 condition met E0702 04:16:27.894938 12003 reflector.go:227] "Failed to watch" err="Get \"https://136.119.46.30/api/v1/namespaces/scheduled-backup-azure-30767/pods?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dscheduled-backup-proxysql-1&resourceVersion=1782965784140448000&timeoutSeconds=330&watch=true\": context canceled" reflector="k8s.io/client-go/tools/watch/informerwatcher.go:162" type="*unstructured.Unstructured" waiting for pod/scheduled-backup-proxysql-1 to become Ready.Ok + wait_cluster_consistency scheduled-backup 3 2 + local cluster_name=scheduled-backup + local pxc_size=3 + local proxy_size=2 + desc 'wait cluster consistency' + set +o xtrace ----------------------------------------------------------------------------------- wait cluster consistency ----------------------------------------------------------------------------------- + local max_seconds=1500 + local delay=5 + local retries=300 + local pxc_ready + local proxy_ready + sleep 7 + echo -n 'waiting for pxc/scheduled-backup to be ready' waiting for pxc/scheduled-backup to be ready++ seq 1 300 + for _ in '$(seq 1 "${retries}")' ++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.UjqxFS2fV5 +++ mktemp ++ local LAST_ERR=/tmp/tmp.v7iym3wLZo ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc scheduled-backup -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.UjqxFS2fV5 ++ cat /tmp/tmp.v7iym3wLZo ++ rm /tmp/tmp.UjqxFS2fV5 /tmp/tmp.v7iym3wLZo ++ return 0 + state=ready ++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.status.pxc.ready}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.WdhnVB0bcQ +++ mktemp ++ local LAST_ERR=/tmp/tmp.HcRXQ1znQ6 ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc scheduled-backup -o 'jsonpath={.status.pxc.ready}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.WdhnVB0bcQ ++ cat /tmp/tmp.HcRXQ1znQ6 ++ rm /tmp/tmp.WdhnVB0bcQ /tmp/tmp.HcRXQ1znQ6 ++ return 0 + pxc_ready=3 + proxy_ready=0 + [[ 2 -gt 0 ]] +++ get_proxy_engine scheduled-backup +++ local cluster_name=scheduled-backup ++++ get_proxy scheduled-backup ++++ local target_cluster=scheduled-backup +++++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.haproxy.enabled}' ++++++ mktemp +++++ local LAST_OUT=/tmp/tmp.L6cCqC7iAL ++++++ mktemp +++++ local LAST_ERR=/tmp/tmp.DI8IphOrF4 +++++ local exit_status=0 ++++++ seq 0 2 +++++ for i in '$(seq 0 2)' +++++ set +e +++++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.haproxy.enabled}' +++++ exit_status=0 +++++ set -e +++++ '[' 0 '!=' 0 ']' +++++ break +++++ cat /tmp/tmp.L6cCqC7iAL +++++ cat /tmp/tmp.DI8IphOrF4 +++++ rm /tmp/tmp.L6cCqC7iAL /tmp/tmp.DI8IphOrF4 +++++ return 0 ++++ [[ '' == \t\r\u\e ]] +++++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.proxysql.enabled}' ++++++ mktemp +++++ local LAST_OUT=/tmp/tmp.qzywAt6JBY ++++++ mktemp +++++ local LAST_ERR=/tmp/tmp.puXJLjvECH +++++ local exit_status=0 ++++++ seq 0 2 +++++ for i in '$(seq 0 2)' +++++ set +e +++++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.proxysql.enabled}' +++++ exit_status=0 +++++ set -e +++++ '[' 0 '!=' 0 ']' +++++ break +++++ cat /tmp/tmp.qzywAt6JBY +++++ cat /tmp/tmp.puXJLjvECH +++++ rm /tmp/tmp.qzywAt6JBY /tmp/tmp.puXJLjvECH +++++ return 0 ++++ [[ true == \t\r\u\e ]] ++++ echo scheduled-backup-proxysql ++++ return +++ local cluster_proxy=scheduled-backup-proxysql +++ echo proxysql ++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.status.proxysql.ready}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.A2A5pMUPaQ +++ mktemp ++ local LAST_ERR=/tmp/tmp.Qtw1L4glt2 ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc scheduled-backup -o 'jsonpath={.status.proxysql.ready}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.A2A5pMUPaQ ++ cat /tmp/tmp.Qtw1L4glt2 ++ rm /tmp/tmp.A2A5pMUPaQ /tmp/tmp.Qtw1L4glt2 ++ return 0 + proxy_ready=2 + [[ ready == \r\e\a\d\y ]] + [[ 3 == \3 ]] + [[ 2 == \2 ]] + echo + return + sleep 10 ++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.secretsName}' + local secret_name=my-cluster-secrets ++ getSecretData my-cluster-secrets root ++ local secretName=my-cluster-secrets ++ local dataKey=root ++ kubectl_bin get secrets/my-cluster-secrets '--template={{.data.root}}' ++ base64 --decode +++ mktemp ++ local LAST_OUT=/tmp/tmp.C0gFlUZ9Fi +++ mktemp ++ local LAST_ERR=/tmp/tmp.I0jMJUCAEU ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get secrets/my-cluster-secrets '--template={{.data.root}}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.C0gFlUZ9Fi ++ cat /tmp/tmp.I0jMJUCAEU ++ rm /tmp/tmp.C0gFlUZ9Fi /tmp/tmp.I0jMJUCAEU ++ return 0 + local root_pass=root_password + desc 'write data' + set +o xtrace ----------------------------------------------------------------------------------- write data ----------------------------------------------------------------------------------- + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 5\.7 ]] + run_mysql 'CREATE DATABASE IF NOT EXISTS myApp; use myApp; CREATE TABLE IF NOT EXISTS myApp (id int PRIMARY KEY) ;' '-h scheduled-backup-pxc-0.scheduled-backup-pxc -uroot -p'\''root_password'\'' -P3306' + local 'command=CREATE DATABASE IF NOT EXISTS myApp; use myApp; CREATE TABLE IF NOT EXISTS myApp (id int PRIMARY KEY) ;' + local 'uri=-h scheduled-backup-pxc-0.scheduled-backup-pxc -uroot -p'\''root_password'\'' -P3306' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.GmEaMCin1b +++ mktemp ++ local LAST_ERR=/tmp/tmp.Qsga9qUvZk ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.GmEaMCin1b ++ cat /tmp/tmp.Qsga9qUvZk ++ rm /tmp/tmp.GmEaMCin1b /tmp/tmp.Qsga9qUvZk ++ return 0 + client_pod=pxc-client-67fc4995bb-k9xjq + wait_pod pxc-client-67fc4995bb-k9xjq + local pod=pxc-client-67fc4995bb-k9xjq + local max_retry=480 + local ns= ++ echo pxc-client-67fc4995bb-k9xjq ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ grep -E '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-67fc4995bb-k9xjq condition met E0702 04:17:09.835312 18355 reflector.go:227] "Failed to watch" err="Get \"https://136.119.46.30/api/v1/namespaces/scheduled-backup-azure-30767/pods?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dpxc-client-67fc4995bb-k9xjq&resourceVersion=1782965827763885000&timeoutSeconds=513&watch=true\": context canceled" reflector="k8s.io/client-go/tools/watch/informerwatcher.go:162" type="*unstructured.Unstructured" waiting for pod/pxc-client-67fc4995bb-k9xjq to become ReadyDefaulted container "pxc-client" out of: pxc-client, backup .Ok + set +o xtrace + write_data scheduled-backup 100500 no-proxy -P3306 + local cluster=scheduled-backup + local id=100500 + local use_proxy=no-proxy + local port=-P3306 + local database=myApp + local table=myApp + local root_pass ++ get_password scheduled-backup root ++ local cluster=scheduled-backup ++ local user=root +++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.SfxjtNLkYn ++++ mktemp +++ local LAST_ERR=/tmp/tmp.QboMkLSTEP +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.SfxjtNLkYn +++ cat /tmp/tmp.QboMkLSTEP +++ rm /tmp/tmp.SfxjtNLkYn /tmp/tmp.QboMkLSTEP +++ return 0 ++ getSecretData my-cluster-secrets root ++ local secretName=my-cluster-secrets ++ local dataKey=root ++ base64 --decode ++ kubectl_bin get secrets/my-cluster-secrets '--template={{.data.root}}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.oWb0Y17fZJ +++ mktemp ++ local LAST_ERR=/tmp/tmp.d2exKayIUn ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get secrets/my-cluster-secrets '--template={{.data.root}}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.oWb0Y17fZJ ++ cat /tmp/tmp.d2exKayIUn ++ rm /tmp/tmp.oWb0Y17fZJ /tmp/tmp.d2exKayIUn ++ return 0 + root_pass=root_password ++ get_proxy scheduled-backup ++ local target_cluster=scheduled-backup +++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.haproxy.enabled}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.Sexo2GPqa9 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.cmvwC8cZcf +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.haproxy.enabled}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.Sexo2GPqa9 +++ cat /tmp/tmp.cmvwC8cZcf +++ rm /tmp/tmp.Sexo2GPqa9 /tmp/tmp.cmvwC8cZcf +++ return 0 ++ [[ '' == \t\r\u\e ]] +++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.proxysql.enabled}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.RcUJFQlj0L ++++ mktemp +++ local LAST_ERR=/tmp/tmp.ArtllL4z5T +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.proxysql.enabled}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.RcUJFQlj0L +++ cat /tmp/tmp.ArtllL4z5T +++ rm /tmp/tmp.RcUJFQlj0L /tmp/tmp.ArtllL4z5T +++ return 0 ++ [[ true == \t\r\u\e ]] ++ echo scheduled-backup-proxysql ++ return + proxy=scheduled-backup-proxysql + [[ no-proxy == true ]] + [[ no-proxy == \u\s\e\-\p\r\o\x\y ]] + host='-h scheduled-backup-pxc-0.scheduled-backup-pxc' + run_mysql 'INSERT IGNORE myApp.myApp (id) VALUES (100500)' '-h scheduled-backup-pxc-0.scheduled-backup-pxc -P3306 -uroot -p'\''root_password'\''' + local 'command=INSERT IGNORE myApp.myApp (id) VALUES (100500)' + local 'uri=-h scheduled-backup-pxc-0.scheduled-backup-pxc -P3306 -uroot -p'\''root_password'\''' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.PftDNiSVhh +++ mktemp ++ local LAST_ERR=/tmp/tmp.o2hza7NmwO ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.PftDNiSVhh ++ cat /tmp/tmp.o2hza7NmwO ++ rm /tmp/tmp.PftDNiSVhh /tmp/tmp.o2hza7NmwO ++ return 0 + client_pod=pxc-client-67fc4995bb-k9xjq + wait_pod pxc-client-67fc4995bb-k9xjq + local pod=pxc-client-67fc4995bb-k9xjq + local max_retry=480 + local ns= ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ echo pxc-client-67fc4995bb-k9xjq ++ grep -E '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-67fc4995bb-k9xjq condition met E0702 04:17:26.487370 20809 reflector.go:227] "Failed to watch" err="Get \"https://136.119.46.30/api/v1/namespaces/scheduled-backup-azure-30767/pods?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dpxc-client-67fc4995bb-k9xjq&resourceVersion=1782965844042615000&timeoutSeconds=325&watch=true\": context canceled" reflector="k8s.io/client-go/tools/watch/informerwatcher.go:162" type="*unstructured.Unstructured" waiting for pod/pxc-client-67fc4995bb-k9xjq to become ReadyDefaulted container "pxc-client" out of: pxc-client, backup .Ok + set +o xtrace + sleep 30 + desc 'compare initial data' + set +o xtrace ----------------------------------------------------------------------------------- compare initial data ----------------------------------------------------------------------------------- + compare_data scheduled-backup select-1 no-proxy -P3306 + local cluster=scheduled-backup + local compare=select-1 + local use_proxy=no-proxy + local port=-P3306 + local database=myApp + local table=myApp + local size + local root_pass ++ get_password scheduled-backup root ++ local cluster=scheduled-backup ++ local user=root +++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.secretsName}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.coZujgzyHH ++++ mktemp +++ local LAST_ERR=/tmp/tmp.R9jGzWEGlN +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.secretsName}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.coZujgzyHH +++ cat /tmp/tmp.R9jGzWEGlN +++ rm /tmp/tmp.coZujgzyHH /tmp/tmp.R9jGzWEGlN +++ return 0 ++ getSecretData my-cluster-secrets root ++ local secretName=my-cluster-secrets ++ local dataKey=root ++ base64 --decode ++ kubectl_bin get secrets/my-cluster-secrets '--template={{.data.root}}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.p0IvcDhWKf +++ mktemp ++ local LAST_ERR=/tmp/tmp.NpUhSv2CWx ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get secrets/my-cluster-secrets '--template={{.data.root}}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.p0IvcDhWKf ++ cat /tmp/tmp.NpUhSv2CWx ++ rm /tmp/tmp.p0IvcDhWKf /tmp/tmp.NpUhSv2CWx ++ return 0 + root_pass=root_password + [[ no-proxy == true ]] + [[ no-proxy == \u\s\e\-\p\r\o\x\y ]] ++ get_pxc_size scheduled-backup ++ local cluster=scheduled-backup ++ local size=0 +++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.pxc.size}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.2A4f6kPtK2 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.PAP4rHnso6 +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.pxc.size}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.2A4f6kPtK2 +++ cat /tmp/tmp.PAP4rHnso6 +++ rm /tmp/tmp.2A4f6kPtK2 /tmp/tmp.PAP4rHnso6 +++ return 0 ++ size=3 ++ echo 3 + size=3 ++ seq 0 2 + for i in '$(seq 0 $((size - 1)))' + compare_mysql_cmd select-1 'SELECT id FROM myApp.myApp ORDER BY id;' '-h scheduled-backup-pxc-0.scheduled-backup-pxc -P3306 -uroot -p'\''root_password'\''' + local command_id=select-1 + local 'command=SELECT id FROM myApp.myApp ORDER BY id;' + local 'uri=-h scheduled-backup-pxc-0.scheduled-backup-pxc -P3306 -uroot -p'\''root_password'\''' + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-1.sql + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.4 ]] + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.0 ]] + [[ -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-1-80.sql ]] + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 5\.7 ]] + run_mysql 'SELECT id FROM myApp.myApp ORDER BY id;' '-h scheduled-backup-pxc-0.scheduled-backup-pxc -P3306 -uroot -p'\''root_password'\''' + local 'command=SELECT id FROM myApp.myApp ORDER BY id;' + local 'uri=-h scheduled-backup-pxc-0.scheduled-backup-pxc -P3306 -uroot -p'\''root_password'\''' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.R4XGcTOKuA +++ mktemp ++ local LAST_ERR=/tmp/tmp.ebpF0ZpVvT ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.R4XGcTOKuA ++ cat /tmp/tmp.ebpF0ZpVvT ++ rm /tmp/tmp.R4XGcTOKuA /tmp/tmp.ebpF0ZpVvT ++ return 0 + client_pod=pxc-client-67fc4995bb-k9xjq + wait_pod pxc-client-67fc4995bb-k9xjq + local pod=pxc-client-67fc4995bb-k9xjq + local max_retry=480 + local ns= ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ grep -E '^(pxc|proxysql)$' ++ echo pxc-client-67fc4995bb-k9xjq + local container= + set +o xtrace pod/pxc-client-67fc4995bb-k9xjq condition met E0702 04:18:16.158784 28375 reflector.go:227] "Failed to watch" err="Get \"https://136.119.46.30/api/v1/namespaces/scheduled-backup-azure-30767/pods?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dpxc-client-67fc4995bb-k9xjq&resourceVersion=1782965893376246000&timeoutSeconds=418&watch=true\": context canceled" reflector="k8s.io/client-go/tools/watch/informerwatcher.go:162" type="*unstructured.Unstructured" waiting for pod/pxc-client-67fc4995bb-k9xjq to become ReadyDefaulted container "pxc-client" out of: pxc-client, backup .Ok + set +o xtrace + [[ ! -s /tmp/tmp.5ow2TvOAnh/select-1.sql ]] ++ grep 'Unknown MySQL server host' /tmp/tmp.5ow2TvOAnh/select-1.sql + [[ -n '' ]] + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-1.sql /tmp/tmp.5ow2TvOAnh/select-1.sql + for i in '$(seq 0 $((size - 1)))' + compare_mysql_cmd select-1 'SELECT id FROM myApp.myApp ORDER BY id;' '-h scheduled-backup-pxc-1.scheduled-backup-pxc -P3306 -uroot -p'\''root_password'\''' + local command_id=select-1 + local 'command=SELECT id FROM myApp.myApp ORDER BY id;' + local 'uri=-h scheduled-backup-pxc-1.scheduled-backup-pxc -P3306 -uroot -p'\''root_password'\''' + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-1.sql + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.4 ]] + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.0 ]] + [[ -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-1-80.sql ]] + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 5\.7 ]] + run_mysql 'SELECT id FROM myApp.myApp ORDER BY id;' '-h scheduled-backup-pxc-1.scheduled-backup-pxc -P3306 -uroot -p'\''root_password'\''' + local 'command=SELECT id FROM myApp.myApp ORDER BY id;' + local 'uri=-h scheduled-backup-pxc-1.scheduled-backup-pxc -P3306 -uroot -p'\''root_password'\''' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.WDK42DTrSD +++ mktemp ++ local LAST_ERR=/tmp/tmp.x5hIAAG2T0 ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.WDK42DTrSD ++ cat /tmp/tmp.x5hIAAG2T0 ++ rm /tmp/tmp.WDK42DTrSD /tmp/tmp.x5hIAAG2T0 ++ return 0 + client_pod=pxc-client-67fc4995bb-k9xjq + wait_pod pxc-client-67fc4995bb-k9xjq + local pod=pxc-client-67fc4995bb-k9xjq + local max_retry=480 + local ns= ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ echo pxc-client-67fc4995bb-k9xjq ++ grep -E '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-67fc4995bb-k9xjq condition met E0702 04:18:27.988331 30352 reflector.go:227] "Failed to watch" err="Get \"https://136.119.46.30/api/v1/namespaces/scheduled-backup-azure-30767/pods?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dpxc-client-67fc4995bb-k9xjq&resourceVersion=1782965906356149000&timeoutSeconds=467&watch=true\": context canceled" reflector="k8s.io/client-go/tools/watch/informerwatcher.go:162" type="*unstructured.Unstructured" waiting for pod/pxc-client-67fc4995bb-k9xjq to become ReadyDefaulted container "pxc-client" out of: pxc-client, backup .Ok + set +o xtrace + [[ ! -s /tmp/tmp.5ow2TvOAnh/select-1.sql ]] ++ grep 'Unknown MySQL server host' /tmp/tmp.5ow2TvOAnh/select-1.sql + [[ -n '' ]] + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-1.sql /tmp/tmp.5ow2TvOAnh/select-1.sql + for i in '$(seq 0 $((size - 1)))' + compare_mysql_cmd select-1 'SELECT id FROM myApp.myApp ORDER BY id;' '-h scheduled-backup-pxc-2.scheduled-backup-pxc -P3306 -uroot -p'\''root_password'\''' + local command_id=select-1 + local 'command=SELECT id FROM myApp.myApp ORDER BY id;' + local 'uri=-h scheduled-backup-pxc-2.scheduled-backup-pxc -P3306 -uroot -p'\''root_password'\''' + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-1.sql + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.4 ]] + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.0 ]] + [[ -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-1-80.sql ]] + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 5\.7 ]] + run_mysql 'SELECT id FROM myApp.myApp ORDER BY id;' '-h scheduled-backup-pxc-2.scheduled-backup-pxc -P3306 -uroot -p'\''root_password'\''' + local 'command=SELECT id FROM myApp.myApp ORDER BY id;' + local 'uri=-h scheduled-backup-pxc-2.scheduled-backup-pxc -P3306 -uroot -p'\''root_password'\''' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.kzadD4x2Tu +++ mktemp ++ local LAST_ERR=/tmp/tmp.vC5sEJbgSf ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.kzadD4x2Tu ++ cat /tmp/tmp.vC5sEJbgSf ++ rm /tmp/tmp.kzadD4x2Tu /tmp/tmp.vC5sEJbgSf ++ return 0 + client_pod=pxc-client-67fc4995bb-k9xjq + wait_pod pxc-client-67fc4995bb-k9xjq + local pod=pxc-client-67fc4995bb-k9xjq + local max_retry=480 + local ns= ++ echo pxc-client-67fc4995bb-k9xjq ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ grep -E '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-67fc4995bb-k9xjq condition met E0702 04:18:39.516338 31989 reflector.go:227] "Failed to watch" err="Get \"https://136.119.46.30/api/v1/namespaces/scheduled-backup-azure-30767/pods?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dpxc-client-67fc4995bb-k9xjq&resourceVersion=1782965917107299000&timeoutSeconds=352&watch=true\": context canceled" reflector="k8s.io/client-go/tools/watch/informerwatcher.go:162" type="*unstructured.Unstructured" waiting for pod/pxc-client-67fc4995bb-k9xjq to become ReadyDefaulted container "pxc-client" out of: pxc-client, backup .Ok + set +o xtrace + [[ ! -s /tmp/tmp.5ow2TvOAnh/select-1.sql ]] ++ grep 'Unknown MySQL server host' /tmp/tmp.5ow2TvOAnh/select-1.sql + [[ -n '' ]] + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-1.sql /tmp/tmp.5ow2TvOAnh/select-1.sql + is_keyring_plugin_in_use scheduled-backup + local cluster=scheduled-backup + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.4 ]] + grep -E -o 'early-plugin-load=keyring_\w+.so' + kubectl exec scheduled-backup-pxc-0 -c pxc -- bash -c 'cat /etc/mysql/node.cnf' + return 1 + label_node ++ awk '{print $1}' ++ head -n1 ++ kubectl_bin get nodes --no-headers=true ++ grep -v master +++ mktemp ++ local LAST_OUT=/tmp/tmp.pBLfNBpxwn +++ mktemp ++ local LAST_ERR=/tmp/tmp.AbHMBIjwNp ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get nodes --no-headers=true ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.pBLfNBpxwn ++ cat /tmp/tmp.AbHMBIjwNp ++ rm /tmp/tmp.pBLfNBpxwn /tmp/tmp.AbHMBIjwNp ++ return 0 + LABELED_NODE=gke-jen-pxc-2539-dcdf1e8-default-pool-1c47d625-fn7b + kubectl_bin label nodes gke-jen-pxc-2539-dcdf1e8-default-pool-1c47d625-fn7b backupWorker=True --overwrite ++ mktemp + local LAST_OUT=/tmp/tmp.yzqj2KZxWI ++ mktemp + local LAST_ERR=/tmp/tmp.W2I5liqW1t + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl label nodes gke-jen-pxc-2539-dcdf1e8-default-pool-1c47d625-fn7b backupWorker=True --overwrite + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.yzqj2KZxWI node/gke-jen-pxc-2539-dcdf1e8-default-pool-1c47d625-fn7b labeled + cat /tmp/tmp.W2I5liqW1t + rm /tmp/tmp.yzqj2KZxWI /tmp/tmp.W2I5liqW1t + return 0 + desc 'add backups schedule for azure storage' + set +o xtrace ----------------------------------------------------------------------------------- add backups schedule for azure storage ----------------------------------------------------------------------------------- ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.34TdMn68QT +++ mktemp ++ local LAST_ERR=/tmp/tmp.J4qZYfNoZX ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.34TdMn68QT ++ cat /tmp/tmp.J4qZYfNoZX ++ rm /tmp/tmp.34TdMn68QT /tmp/tmp.J4qZYfNoZX ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-pxc-2539-dcdf1e8a-1-cluster12 --namespace=scheduled-backup-azure-30767 ++ mktemp + local LAST_OUT=/tmp/tmp.bUw61XFg5b ++ mktemp + local LAST_ERR=/tmp/tmp.IJh3QNujN8 + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-pxc-2539-dcdf1e8a-1-cluster12 --namespace=scheduled-backup-azure-30767 + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.bUw61XFg5b Context "gke_cloud-dev-112233_us-central1-a_jen-pxc-2539-dcdf1e8a-1-cluster12" modified. + cat /tmp/tmp.IJh3QNujN8 + rm /tmp/tmp.bUw61XFg5b /tmp/tmp.IJh3QNujN8 + return 0 + apply_config /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-azure.yml + local config_file=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-azure.yml + local pvc_name= + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-azure.yml '' + local input_file=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-azure.yml + local pvc_name= + /usr/bin/sed -e 's#image:.*-proxysql$#image: perconalab/percona-xtradb-cluster-operator:main-proxysql#' + /usr/bin/sed -e 's#image:.*-backup$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0-backup#' + /usr/bin/sed -e 's#image:.*-pmm$#image: perconalab/pmm-client:dev-latest#' + /usr/bin/sed -e 's#apiVersion: pxc.percona.com/v.*$#apiVersion: pxc.percona.com/v1#' + /usr/bin/sed -e s~minio-service.#namespace~minio-service.scheduled-backup-azure-30767~ + /usr/bin/sed -e 's#image:.*-haproxy$#image: perconalab/percona-xtradb-cluster-operator:main-haproxy#' + /usr/bin/sed -e 's#image:.*-logcollector$#image: perconalab/fluentbit:main-logcollector#' + /usr/bin/sed -e 's#apply:.*#apply: Never#' + /usr/bin/sed -e 's#claimName:..*-backup-pvc$#claimName: #' + kubectl_bin apply -f - ++ mktemp + /usr/bin/sed -e 's#image:.*\/percona-xtradb-cluster:.*$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0#' + /usr/bin/sed -e 's#image:.*-init$#image: perconalab/percona-xtradb-cluster-operator:PR-2539-dcdf1e8a#' + local LAST_OUT=/tmp/tmp.VkMxRhhEdI + /usr/bin/sed -e 's#image:.*-pxc\([0-9]*.[0-9]*\)\{0,1\}$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0#' ++ mktemp + local LAST_ERR=/tmp/tmp.VxOuvrhALM + local exit_status=0 + cat /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-azure.yml ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.VkMxRhhEdI perconaxtradbcluster.pxc.percona.com/scheduled-backup configured + cat /tmp/tmp.VxOuvrhALM + rm /tmp/tmp.VkMxRhhEdI /tmp/tmp.VxOuvrhALM + return 0 + wait_first_backup_appears azure-blob + local storage=azure-blob + local retry=0 ++ grep -c '^azure-blob$' ++ kubectl_bin get pxc-backup -o 'jsonpath={range .items[*]}{.spec.storageName}{"\n"}{end}' + [[ 0 -gt 0 ]] + '[' 0 -ge 24 ']' + sleep 5 + retry=1 ++ kubectl_bin get pxc-backup -o 'jsonpath={range .items[*]}{.spec.storageName}{"\n"}{end}' ++ grep -c '^azure-blob$' + [[ 0 -gt 0 ]] + '[' 1 -ge 24 ']' + sleep 5 + retry=2 ++ kubectl_bin get pxc-backup -o 'jsonpath={range .items[*]}{.spec.storageName}{"\n"}{end}' ++ grep -c '^azure-blob$' + [[ 0 -gt 0 ]] + '[' 2 -ge 24 ']' + sleep 5 + retry=3 ++ kubectl_bin get pxc-backup -o 'jsonpath={range .items[*]}{.spec.storageName}{"\n"}{end}' ++ grep -c '^azure-blob$' + [[ 0 -gt 0 ]] + '[' 3 -ge 24 ']' + sleep 5 + retry=4 ++ grep -c '^azure-blob$' ++ kubectl_bin get pxc-backup -o 'jsonpath={range .items[*]}{.spec.storageName}{"\n"}{end}' + [[ 0 -gt 0 ]] + '[' 4 -ge 24 ']' + sleep 5 + retry=5 ++ kubectl_bin get pxc-backup -o 'jsonpath={range .items[*]}{.spec.storageName}{"\n"}{end}' ++ grep -c '^azure-blob$' + [[ 0 -gt 0 ]] + '[' 5 -ge 24 ']' + sleep 5 + retry=6 ++ grep -c '^azure-blob$' ++ kubectl_bin get pxc-backup -o 'jsonpath={range .items[*]}{.spec.storageName}{"\n"}{end}' + [[ 0 -gt 0 ]] + '[' 6 -ge 24 ']' + sleep 5 + retry=7 ++ kubectl_bin get pxc-backup -o 'jsonpath={range .items[*]}{.spec.storageName}{"\n"}{end}' ++ grep -c '^azure-blob$' + [[ 0 -gt 0 ]] + '[' 7 -ge 24 ']' + sleep 5 + retry=8 ++ grep -c '^azure-blob$' ++ kubectl_bin get pxc-backup -o 'jsonpath={range .items[*]}{.spec.storageName}{"\n"}{end}' + [[ 1 -gt 0 ]] + apply_config /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml + local config_file=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml + local pvc_name= + '[' -z '' ']' + kubectl_bin apply -f - + cat_config /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml '' + local input_file=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml + local pvc_name= + /usr/bin/sed -e 's#image:.*-proxysql$#image: perconalab/percona-xtradb-cluster-operator:main-proxysql#' + /usr/bin/sed -e 's#image:.*-backup$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0-backup#' ++ mktemp + /usr/bin/sed -e 's#image:.*-pmm$#image: perconalab/pmm-client:dev-latest#' + /usr/bin/sed -e 's#image:.*-haproxy$#image: perconalab/percona-xtradb-cluster-operator:main-haproxy#' + local LAST_OUT=/tmp/tmp.e46JyWFi8c + /usr/bin/sed -e 's#image:.*-init$#image: perconalab/percona-xtradb-cluster-operator:PR-2539-dcdf1e8a#' + /usr/bin/sed -e s~minio-service.#namespace~minio-service.scheduled-backup-azure-30767~ + /usr/bin/sed -e 's#apply:.*#apply: Never#' + /usr/bin/sed -e 's#claimName:..*-backup-pvc$#claimName: #' + /usr/bin/sed -e 's#image:.*-logcollector$#image: perconalab/fluentbit:main-logcollector#' + /usr/bin/sed -e 's#image:.*-pxc\([0-9]*.[0-9]*\)\{0,1\}$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0#' + /usr/bin/sed -e 's#image:.*\/percona-xtradb-cluster:.*$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0#' + cat /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml + /usr/bin/sed -e 's#apiVersion: pxc.percona.com/v.*$#apiVersion: pxc.percona.com/v1#' ++ mktemp + local LAST_ERR=/tmp/tmp.6W6R3bcRMq + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.e46JyWFi8c perconaxtradbcluster.pxc.percona.com/scheduled-backup configured + cat /tmp/tmp.6W6R3bcRMq + rm /tmp/tmp.e46JyWFi8c /tmp/tmp.6W6R3bcRMq + return 0 + wait_all_backups ++ get_running_backups_amount ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ grep -vE ':Succeeded|:Failed' ++ wc -l +++ mktemp ++ local LAST_OUT=/tmp/tmp.HtrMGwnUNZ +++ mktemp ++ local LAST_ERR=/tmp/tmp.pWr0OlR4Sd ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.HtrMGwnUNZ ++ cat /tmp/tmp.pWr0OlR4Sd ++ rm /tmp/tmp.HtrMGwnUNZ /tmp/tmp.pWr0OlR4Sd ++ return 0 + [[ 1 -ne 0 ]] ++ get_failed_backups_amount ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ wc -l ++ grep :Failed +++ mktemp ++ local LAST_OUT=/tmp/tmp.Ehs6n6VLtS +++ mktemp ++ local LAST_ERR=/tmp/tmp.ILCf0Mq3yJ ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.Ehs6n6VLtS ++ cat /tmp/tmp.ILCf0Mq3yJ ++ rm /tmp/tmp.Ehs6n6VLtS /tmp/tmp.ILCf0Mq3yJ ++ return 0 + [[ 0 -eq 0 ]] + wait_for_running scheduled-backup-pxc 3 1 + local name=scheduled-backup-pxc + local size=3 + local last_pod + local max_retry=1 + [[ -z scheduled-backup-pxc ]] + [[ 3 -le 0 ]] + last_pod=2 + desc 'Waiting for 3 running pods for scheduled-backup-pxc' + set +o xtrace ----------------------------------------------------------------------------------- Waiting for 3 running pods for scheduled-backup-pxc ----------------------------------------------------------------------------------- ++ seq 0 2 + for i in '$(seq 0 $last_pod)' + wait_pod scheduled-backup-pxc-0 1 + local pod=scheduled-backup-pxc-0 + local max_retry=1 + local ns= ++ grep -E '^(pxc|proxysql)$' ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ echo scheduled-backup-pxc-0 + local container=pxc + set +o xtrace error: timed out waiting for the condition on pods/scheduled-backup-pxc-0 waiting for pod/scheduled-backup-pxc-0 to become Ready.Ok + for i in '$(seq 0 $last_pod)' + wait_pod scheduled-backup-pxc-1 1 + local pod=scheduled-backup-pxc-1 + local max_retry=1 + local ns= ++ grep -E '^(pxc|proxysql)$' ++ echo scheduled-backup-pxc-1 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' + local container=pxc + set +o xtrace error: timed out waiting for the condition on pods/scheduled-backup-pxc-1 waiting for pod/scheduled-backup-pxc-1 to become Ready.Ok + for i in '$(seq 0 $last_pod)' + wait_pod scheduled-backup-pxc-2 1 + local pod=scheduled-backup-pxc-2 + local max_retry=1 + local ns= ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ grep -E '^(pxc|proxysql)$' ++ echo scheduled-backup-pxc-2 + local container=pxc + set +o xtrace error: timed out waiting for the condition on pods/scheduled-backup-pxc-2 waiting for pod/scheduled-backup-pxc-2 to become Ready.Ok + echo + kubectl_bin get pxc-backup ++ mktemp + local LAST_OUT=/tmp/tmp.xchLaOgKzn ++ mktemp + local LAST_ERR=/tmp/tmp.Z8jYCXQ2oY + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get pxc-backup + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.xchLaOgKzn NAME CLUSTER STORAGE DESTINATION STATUS COMPLETED AGE cron-scheduled-backup-azure-blob-2026724200-q6fav scheduled-backup azure-blob azure://operator-testing/scheduled-backup-2026-07-02-04:20:00-full Succeeded 14s 44s + cat /tmp/tmp.Z8jYCXQ2oY + rm /tmp/tmp.xchLaOgKzn /tmp/tmp.Z8jYCXQ2oY + return 0 + echo + kubectl_bin get pods ++ mktemp + local LAST_OUT=/tmp/tmp.8XOYVVOQOY ++ mktemp + local LAST_ERR=/tmp/tmp.hIhj76pEiE + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get pods + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.8XOYVVOQOY NAME READY STATUS RESTARTS AGE pxc-client-67fc4995bb-k9xjq 2/2 Running 0 8m45s scheduled-backup-proxysql-0 3/3 Running 0 8m41s scheduled-backup-proxysql-1 3/3 Running 0 8m16s scheduled-backup-pxc-0 1/1 Running 0 8m41s scheduled-backup-pxc-1 1/1 Running 0 7m23s scheduled-backup-pxc-2 1/1 Running 0 6m3s xb-cron-scheduled-backup-azure-blob-2026724200-q6fav-mr25w 0/1 Completed 0 46s + cat /tmp/tmp.hIhj76pEiE + rm /tmp/tmp.8XOYVVOQOY /tmp/tmp.hIhj76pEiE + return 0 + sleep 20 ++ get_running_backups_amount ++ grep -vE ':Succeeded|:Failed' ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ wc -l +++ mktemp ++ local LAST_OUT=/tmp/tmp.RksqiaVt6F +++ mktemp ++ local LAST_ERR=/tmp/tmp.hCX16rIANk ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.RksqiaVt6F ++ cat /tmp/tmp.hCX16rIANk ++ rm /tmp/tmp.RksqiaVt6F /tmp/tmp.hCX16rIANk ++ return 0 + [[ 0 -ne 0 ]] ++ get_failed_backups_amount ++ grep :Failed ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ wc -l +++ mktemp ++ local LAST_OUT=/tmp/tmp.yqBKz3WWss +++ mktemp ++ local LAST_ERR=/tmp/tmp.sOsVtdVfx6 ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.yqBKz3WWss ++ cat /tmp/tmp.sOsVtdVfx6 ++ rm /tmp/tmp.yqBKz3WWss /tmp/tmp.sOsVtdVfx6 ++ return 0 + [[ 0 -gt 0 ]] ++ grep ':Succeeded$' ++ cut -d: -f1 ++ kubectl_bin get pxc-backup --sort-by=.metadata.creationTimestamp -o 'jsonpath={range .items[?(@.spec.storageName=="azure-blob")]}{.metadata.name}:{.status.state}{"\n"}{end}' ++ head -n1 +++ mktemp ++ local LAST_OUT=/tmp/tmp.3LwsJs9qC6 +++ mktemp ++ local LAST_ERR=/tmp/tmp.260re5EHby ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup --sort-by=.metadata.creationTimestamp -o 'jsonpath={range .items[?(@.spec.storageName=="azure-blob")]}{.metadata.name}:{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.3LwsJs9qC6 ++ cat /tmp/tmp.260re5EHby ++ rm /tmp/tmp.3LwsJs9qC6 /tmp/tmp.260re5EHby ++ return 0 + FIRST_AZURE_BACKUP=cron-scheduled-backup-azure-blob-2026724200-q6fav ++ cut -c 9- ++ kubectl_bin get pxc-backup cron-scheduled-backup-azure-blob-2026724200-q6fav -o 'jsonpath={.status.destination}' +++ mktemp ++ sed -e 's/.json$//' ++ local LAST_OUT=/tmp/tmp.Et2DluB5Mj +++ mktemp ++ local LAST_ERR=/tmp/tmp.eIAgHIqYdM ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup cron-scheduled-backup-azure-blob-2026724200-q6fav -o 'jsonpath={.status.destination}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.Et2DluB5Mj ++ cat /tmp/tmp.eIAgHIqYdM ++ rm /tmp/tmp.Et2DluB5Mj /tmp/tmp.eIAgHIqYdM ++ return 0 + BACKUP_DEST_AZURE=operator-testing/scheduled-backup-2026-07-02-04:20:00-full + desc 'Check backup existence in Azure Blob Storage' + set +o xtrace ----------------------------------------------------------------------------------- Check backup existence in Azure Blob Storage ----------------------------------------------------------------------------------- + setup_azure_credentials + local secret_name=azure-secret + echo 'Setting up Azure credentials from K8s secret: azure-secret' Setting up Azure credentials from K8s secret: azure-secret + local trace_was_on=0 + [[ ehxB == *x* ]] + trace_was_on=1 + set +x + echo 'Azure credentials configured successfully' Azure credentials configured successfully + check_backup_existence_azure operator-testing/scheduled-backup-2026-07-02-04:20:00-full .sst_info/sst_info.00000000000000000000 ++ cut -d/ -f1 ++ echo operator-testing/scheduled-backup-2026-07-02-04:20:00-full + container=operator-testing ++ echo operator-testing/scheduled-backup-2026-07-02-04:20:00-full ++ cut -d/ -f2- + blob_prefix=scheduled-backup-2026-07-02-04:20:00-full + blob=.sst_info/sst_info.00000000000000000000 + storage_name=azure-blob + retry=0 + blob_path=scheduled-backup-2026-07-02-04:20:00-full.sst_info/sst_info.00000000000000000000 + az storage blob show --container-name operator-testing --name scheduled-backup-2026-07-02-04:20:00-full.sst_info/sst_info.00000000000000000000 + echo 'Backup scheduled-backup-2026-07-02-04:20:00-full.sst_info/sst_info.00000000000000000000 found in container operator-testing in azure-blob' Backup scheduled-backup-2026-07-02-04:20:00-full.sst_info/sst_info.00000000000000000000 found in container operator-testing in azure-blob + desc 'Check that KEEP option saves correct backup'\''s amount (1 for our settings)' + set +o xtrace ----------------------------------------------------------------------------------- Check that KEEP option saves correct backup's amount (1 for our settings) ----------------------------------------------------------------------------------- + apply_config /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-azure.yml + local config_file=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-azure.yml + local pvc_name= + '[' -z '' ']' + kubectl_bin apply -f - + cat_config /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-azure.yml '' + local input_file=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-azure.yml + local pvc_name= + /usr/bin/sed -e s~minio-service.#namespace~minio-service.scheduled-backup-azure-30767~ + /usr/bin/sed -e 's#image:.*-logcollector$#image: perconalab/fluentbit:main-logcollector#' + /usr/bin/sed -e 's#image:.*-pmm$#image: perconalab/pmm-client:dev-latest#' + /usr/bin/sed -e 's#image:.*\/percona-xtradb-cluster:.*$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0#' + /usr/bin/sed -e 's#apply:.*#apply: Never#' + /usr/bin/sed -e 's#claimName:..*-backup-pvc$#claimName: #' + /usr/bin/sed -e 's#image:.*-backup$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0-backup#' + /usr/bin/sed -e 's#image:.*-proxysql$#image: perconalab/percona-xtradb-cluster-operator:main-proxysql#' + /usr/bin/sed -e 's#image:.*-haproxy$#image: perconalab/percona-xtradb-cluster-operator:main-haproxy#' + cat /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-azure.yml + /usr/bin/sed -e 's#image:.*-init$#image: perconalab/percona-xtradb-cluster-operator:PR-2539-dcdf1e8a#' ++ mktemp + /usr/bin/sed -e 's#image:.*-pxc\([0-9]*.[0-9]*\)\{0,1\}$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0#' + local LAST_OUT=/tmp/tmp.tpORGzPIim ++ mktemp + local LAST_ERR=/tmp/tmp.nS6GC742MW + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + /usr/bin/sed -e 's#apiVersion: pxc.percona.com/v.*$#apiVersion: pxc.percona.com/v1#' + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.tpORGzPIim perconaxtradbcluster.pxc.percona.com/scheduled-backup configured + cat /tmp/tmp.nS6GC742MW + rm /tmp/tmp.tpORGzPIim /tmp/tmp.nS6GC742MW + return 0 + wait_num_backups azure-blob 2 + local storage=azure-blob + local num=2 + local timer=0 + echo 'Starting to check number 2 of backups for azure-blob' Starting to check number 2 of backups for azure-blob ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ wc -l ++ grep azure-blob ++ grep -E :Succeeded ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.1KIshDk0x6 +++ mktemp ++ local LAST_ERR=/tmp/tmp.zqpNf5EorE ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.1KIshDk0x6 ++ cat /tmp/tmp.zqpNf5EorE ++ rm /tmp/tmp.1KIshDk0x6 /tmp/tmp.zqpNf5EorE ++ return 0 + [[ 1 -ne 2 ]] + [[ 0 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ wc -l ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' +++ mktemp ++ grep -E :Succeeded ++ grep azure-blob ++ local LAST_OUT=/tmp/tmp.cKGkgcgdGG +++ mktemp ++ local LAST_ERR=/tmp/tmp.ATxzV3gr42 ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.cKGkgcgdGG ++ cat /tmp/tmp.ATxzV3gr42 ++ rm /tmp/tmp.cKGkgcgdGG /tmp/tmp.ATxzV3gr42 ++ return 0 + [[ 1 -ne 2 ]] + [[ 1 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ grep azure-blob ++ grep -E :Succeeded ++ wc -l +++ mktemp ++ local LAST_OUT=/tmp/tmp.t5Dvg3UMDe +++ mktemp ++ local LAST_ERR=/tmp/tmp.7fVXFpsFdd ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.t5Dvg3UMDe ++ cat /tmp/tmp.7fVXFpsFdd ++ rm /tmp/tmp.t5Dvg3UMDe /tmp/tmp.7fVXFpsFdd ++ return 0 + [[ 1 -ne 2 ]] + [[ 2 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ grep -E :Succeeded ++ wc -l ++ grep azure-blob ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.9kLlLjmlKL +++ mktemp ++ local LAST_ERR=/tmp/tmp.hh57egv8YB ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.9kLlLjmlKL ++ cat /tmp/tmp.hh57egv8YB ++ rm /tmp/tmp.9kLlLjmlKL /tmp/tmp.hh57egv8YB ++ return 0 + [[ 1 -ne 2 ]] + [[ 3 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ grep -E :Succeeded ++ grep azure-blob ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ wc -l +++ mktemp ++ local LAST_OUT=/tmp/tmp.w52eLEWDha +++ mktemp ++ local LAST_ERR=/tmp/tmp.oU7HHRgsf3 ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.w52eLEWDha ++ cat /tmp/tmp.oU7HHRgsf3 ++ rm /tmp/tmp.w52eLEWDha /tmp/tmp.oU7HHRgsf3 ++ return 0 + [[ 1 -ne 2 ]] + [[ 4 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ grep -E :Succeeded ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ grep azure-blob ++ wc -l +++ mktemp ++ local LAST_OUT=/tmp/tmp.ODr6nfed9L +++ mktemp ++ local LAST_ERR=/tmp/tmp.uYcviUxqzG ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.ODr6nfed9L ++ cat /tmp/tmp.uYcviUxqzG ++ rm /tmp/tmp.ODr6nfed9L /tmp/tmp.uYcviUxqzG ++ return 0 + [[ 1 -ne 2 ]] + [[ 5 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ grep azure-blob ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ grep -E :Succeeded ++ wc -l +++ mktemp ++ local LAST_OUT=/tmp/tmp.6whkhKq193 +++ mktemp ++ local LAST_ERR=/tmp/tmp.Y5U9i9NrTw ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.6whkhKq193 ++ cat /tmp/tmp.Y5U9i9NrTw ++ rm /tmp/tmp.6whkhKq193 /tmp/tmp.Y5U9i9NrTw ++ return 0 + [[ 1 -ne 2 ]] + [[ 6 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ grep -E :Succeeded ++ wc -l ++ grep azure-blob +++ mktemp ++ local LAST_OUT=/tmp/tmp.Q6i0WlXRri +++ mktemp ++ local LAST_ERR=/tmp/tmp.oEdJ7xdfMg ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.Q6i0WlXRri ++ cat /tmp/tmp.oEdJ7xdfMg ++ rm /tmp/tmp.Q6i0WlXRri /tmp/tmp.oEdJ7xdfMg ++ return 0 + [[ 1 -ne 2 ]] + [[ 7 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ grep azure-blob ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ wc -l ++ grep -E :Succeeded +++ mktemp ++ local LAST_OUT=/tmp/tmp.4qOpGLwnew +++ mktemp ++ local LAST_ERR=/tmp/tmp.wQP4PzE6V1 ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.4qOpGLwnew ++ cat /tmp/tmp.wQP4PzE6V1 ++ rm /tmp/tmp.4qOpGLwnew /tmp/tmp.wQP4PzE6V1 ++ return 0 + [[ 1 -ne 2 ]] + [[ 8 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ wc -l ++ grep azure-blob ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ grep -E :Succeeded +++ mktemp ++ local LAST_OUT=/tmp/tmp.he3iNzXQ6H +++ mktemp ++ local LAST_ERR=/tmp/tmp.SwGzyWNUyi ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.he3iNzXQ6H ++ cat /tmp/tmp.SwGzyWNUyi ++ rm /tmp/tmp.he3iNzXQ6H /tmp/tmp.SwGzyWNUyi ++ return 0 + [[ 1 -ne 2 ]] + [[ 9 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ wc -l +++ mktemp ++ grep azure-blob ++ grep -E :Succeeded ++ local LAST_OUT=/tmp/tmp.9EinsMzUHX +++ mktemp ++ local LAST_ERR=/tmp/tmp.tLHV4hQnLy ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.9EinsMzUHX ++ cat /tmp/tmp.tLHV4hQnLy ++ rm /tmp/tmp.9EinsMzUHX /tmp/tmp.tLHV4hQnLy ++ return 0 + [[ 1 -ne 2 ]] + [[ 10 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ grep azure-blob ++ wc -l ++ grep -E :Succeeded ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.wmwc3h4lxZ +++ mktemp ++ local LAST_ERR=/tmp/tmp.zsvLgF6WxA ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.wmwc3h4lxZ ++ cat /tmp/tmp.zsvLgF6WxA ++ rm /tmp/tmp.wmwc3h4lxZ /tmp/tmp.zsvLgF6WxA ++ return 0 + [[ 1 -ne 2 ]] + [[ 11 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ grep azure-blob ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' +++ mktemp ++ wc -l ++ grep -E :Succeeded ++ local LAST_OUT=/tmp/tmp.Rp1ODlBG53 +++ mktemp ++ local LAST_ERR=/tmp/tmp.1xKtDazZo0 ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.Rp1ODlBG53 ++ cat /tmp/tmp.1xKtDazZo0 ++ rm /tmp/tmp.Rp1ODlBG53 /tmp/tmp.1xKtDazZo0 ++ return 0 + [[ 1 -ne 2 ]] + [[ 12 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ grep -E :Succeeded ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ wc -l ++ grep azure-blob +++ mktemp ++ local LAST_OUT=/tmp/tmp.l97QKSKoCM +++ mktemp ++ local LAST_ERR=/tmp/tmp.acpIEToGoP ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.l97QKSKoCM ++ cat /tmp/tmp.acpIEToGoP ++ rm /tmp/tmp.l97QKSKoCM /tmp/tmp.acpIEToGoP ++ return 0 + [[ 1 -ne 2 ]] + [[ 13 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ grep azure-blob ++ wc -l ++ grep -E :Succeeded +++ mktemp ++ local LAST_OUT=/tmp/tmp.brTvCPluFH +++ mktemp ++ local LAST_ERR=/tmp/tmp.jcb3QsWO8C ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.brTvCPluFH ++ cat /tmp/tmp.jcb3QsWO8C ++ rm /tmp/tmp.brTvCPluFH /tmp/tmp.jcb3QsWO8C ++ return 0 + [[ 1 -ne 2 ]] + [[ 14 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ grep -E :Succeeded ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ wc -l ++ grep azure-blob +++ mktemp ++ local LAST_OUT=/tmp/tmp.cvj9UWP0Os +++ mktemp ++ local LAST_ERR=/tmp/tmp.m9mI5FZj9V ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.cvj9UWP0Os ++ cat /tmp/tmp.m9mI5FZj9V ++ rm /tmp/tmp.cvj9UWP0Os /tmp/tmp.m9mI5FZj9V ++ return 0 + [[ 1 -ne 2 ]] + [[ 15 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ grep -E :Succeeded ++ wc -l ++ grep azure-blob +++ mktemp ++ local LAST_OUT=/tmp/tmp.r2srtMOvze +++ mktemp ++ local LAST_ERR=/tmp/tmp.KhJhFj37qS ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.r2srtMOvze ++ cat /tmp/tmp.KhJhFj37qS ++ rm /tmp/tmp.r2srtMOvze /tmp/tmp.KhJhFj37qS ++ return 0 + [[ 1 -ne 2 ]] + [[ 16 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ grep -E :Succeeded ++ wc -l ++ grep azure-blob +++ mktemp ++ local LAST_OUT=/tmp/tmp.tiVYT77ofv +++ mktemp ++ local LAST_ERR=/tmp/tmp.0TBSI5P9J8 ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.tiVYT77ofv ++ cat /tmp/tmp.0TBSI5P9J8 ++ rm /tmp/tmp.tiVYT77ofv /tmp/tmp.0TBSI5P9J8 ++ return 0 + [[ 1 -ne 2 ]] + [[ 17 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ wc -l ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ grep azure-blob ++ grep -E :Succeeded +++ mktemp ++ local LAST_OUT=/tmp/tmp.0uZEh3v8sx +++ mktemp ++ local LAST_ERR=/tmp/tmp.DpoC51Sx5i ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.0uZEh3v8sx ++ cat /tmp/tmp.DpoC51Sx5i ++ rm /tmp/tmp.0uZEh3v8sx /tmp/tmp.DpoC51Sx5i ++ return 0 + [[ 1 -ne 2 ]] + [[ 18 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ grep -E :Succeeded ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ grep azure-blob +++ mktemp ++ wc -l ++ local LAST_OUT=/tmp/tmp.NsOkynF4Eq +++ mktemp ++ local LAST_ERR=/tmp/tmp.mmRNwME9Up ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.NsOkynF4Eq ++ cat /tmp/tmp.mmRNwME9Up ++ rm /tmp/tmp.NsOkynF4Eq /tmp/tmp.mmRNwME9Up ++ return 0 + [[ 1 -ne 2 ]] + [[ 19 -le 400 ]] + sleep 2 + (( timer += 1 )) ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ grep -E :Succeeded ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ wc -l ++ grep azure-blob +++ mktemp ++ local LAST_OUT=/tmp/tmp.DpB0OYKVrO +++ mktemp ++ local LAST_ERR=/tmp/tmp.f3jlGFc9kO ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.DpB0OYKVrO ++ cat /tmp/tmp.f3jlGFc9kO ++ rm /tmp/tmp.DpB0OYKVrO /tmp/tmp.f3jlGFc9kO ++ return 0 + [[ 2 -ne 2 ]] ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ grep -E :Succeeded ++ grep azure-blob ++ wc -l ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.BWnNE8tFm8 +++ mktemp ++ local LAST_ERR=/tmp/tmp.QZjNifjOKt ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.BWnNE8tFm8 ++ cat /tmp/tmp.QZjNifjOKt ++ rm /tmp/tmp.BWnNE8tFm8 /tmp/tmp.QZjNifjOKt ++ return 0 + [[ 2 -ne 2 ]] + echo 'Finished to check number 2 of backups for azure-blob. Timer: 20' Finished to check number 2 of backups for azure-blob. Timer: 20 + echo 'Patch backup schedule to yearly to stop new backups and verify keep=1 deletes the oldest' Patch backup schedule to yearly to stop new backups and verify keep=1 deletes the oldest + kubectl patch pxc scheduled-backup --type=merge -p '{"spec":{"backup":{"schedule":[{"name":"each-min-azure-every","storageName":"azure-blob","keep":1,"schedule":"0 0 1 * *"}]}}}' perconaxtradbcluster.pxc.percona.com/scheduled-backup patched + wait_num_backups azure-blob 1 + local storage=azure-blob + local num=1 + local timer=0 + echo 'Starting to check number 1 of backups for azure-blob' Starting to check number 1 of backups for azure-blob ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ wc -l ++ grep azure-blob ++ grep -E :Succeeded ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.H0V3ZAkZd4 +++ mktemp ++ local LAST_ERR=/tmp/tmp.bdIa4XJpZ9 ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.H0V3ZAkZd4 ++ cat /tmp/tmp.bdIa4XJpZ9 ++ rm /tmp/tmp.H0V3ZAkZd4 /tmp/tmp.bdIa4XJpZ9 ++ return 0 + [[ 1 -ne 1 ]] ++ get_successful_backups_amount azure-blob ++ local storage=azure-blob ++ wc -l ++ grep -E :Succeeded ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' +++ mktemp ++ grep azure-blob ++ local LAST_OUT=/tmp/tmp.UElwIIIdzf +++ mktemp ++ local LAST_ERR=/tmp/tmp.ostoGJquzt ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.UElwIIIdzf ++ cat /tmp/tmp.ostoGJquzt ++ rm /tmp/tmp.UElwIIIdzf /tmp/tmp.ostoGJquzt ++ return 0 + [[ 1 -ne 1 ]] + echo 'Finished to check number 1 of backups for azure-blob. Timer: 0' Finished to check number 1 of backups for azure-blob. Timer: 0 + apply_config /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml + local config_file=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml + local pvc_name= + '[' -z '' ']' + kubectl_bin apply -f - + cat_config /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml '' + local input_file=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml + local pvc_name= + /usr/bin/sed -e 's#image:.*-init$#image: perconalab/percona-xtradb-cluster-operator:PR-2539-dcdf1e8a#' + /usr/bin/sed -e 's#image:.*\/percona-xtradb-cluster:.*$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0#' + /usr/bin/sed -e 's#claimName:..*-backup-pvc$#claimName: #' + cat /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/conf/scheduled-backup-azure-init.yml + /usr/bin/sed -e 's#image:.*-pmm$#image: perconalab/pmm-client:dev-latest#' + /usr/bin/sed -e 's#image:.*-backup$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0-backup#' + /usr/bin/sed -e 's#apply:.*#apply: Never#' + /usr/bin/sed -e s~minio-service.#namespace~minio-service.scheduled-backup-azure-30767~ + /usr/bin/sed -e 's#image:.*-proxysql$#image: perconalab/percona-xtradb-cluster-operator:main-proxysql#' + /usr/bin/sed -e 's#image:.*-haproxy$#image: perconalab/percona-xtradb-cluster-operator:main-haproxy#' + /usr/bin/sed -e 's#image:.*-logcollector$#image: perconalab/fluentbit:main-logcollector#' + /usr/bin/sed -e 's#apiVersion: pxc.percona.com/v.*$#apiVersion: pxc.percona.com/v1#' + /usr/bin/sed -e 's#image:.*-pxc\([0-9]*.[0-9]*\)\{0,1\}$#image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0#' ++ mktemp + local LAST_OUT=/tmp/tmp.0B7P4eWVGi ++ mktemp + local LAST_ERR=/tmp/tmp.wO9w6ZlNuE + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.0B7P4eWVGi perconaxtradbcluster.pxc.percona.com/scheduled-backup configured + cat /tmp/tmp.wO9w6ZlNuE + rm /tmp/tmp.0B7P4eWVGi /tmp/tmp.wO9w6ZlNuE + return 0 + wait_all_backups ++ get_running_backups_amount ++ grep -vE ':Succeeded|:Failed' ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' +++ mktemp ++ wc -l ++ local LAST_OUT=/tmp/tmp.MWci9eQge3 +++ mktemp ++ local LAST_ERR=/tmp/tmp.cmf5CqL3zG ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.MWci9eQge3 ++ cat /tmp/tmp.cmf5CqL3zG ++ rm /tmp/tmp.MWci9eQge3 /tmp/tmp.cmf5CqL3zG ++ return 0 + [[ 0 -ne 0 ]] ++ get_failed_backups_amount ++ wc -l ++ kubectl_bin get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ grep :Failed +++ mktemp ++ local LAST_OUT=/tmp/tmp.bcqFF5GHZe +++ mktemp ++ local LAST_ERR=/tmp/tmp.ZwDZnbTYSS ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup '-o=jsonpath={range .items[*]}{.metadata.name}{":"}{.spec.storageName}{":"}{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.bcqFF5GHZe ++ cat /tmp/tmp.ZwDZnbTYSS ++ rm /tmp/tmp.bcqFF5GHZe /tmp/tmp.ZwDZnbTYSS ++ return 0 + [[ 0 -gt 0 ]] + wait_cluster_consistency scheduled-backup 3 + local cluster_name=scheduled-backup + local pxc_size=3 ++ get_proxy_size scheduled-backup ++ local cluster=scheduled-backup ++ local size=0 +++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.haproxy.enabled}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.xS0IvLw1jn ++++ mktemp +++ local LAST_ERR=/tmp/tmp.4fgucdEEGh +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.haproxy.enabled}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.xS0IvLw1jn +++ cat /tmp/tmp.4fgucdEEGh +++ rm /tmp/tmp.xS0IvLw1jn /tmp/tmp.4fgucdEEGh +++ return 0 ++ [[ '' == \t\r\u\e ]] +++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.proxysql.enabled}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.sAaVFciepP ++++ mktemp +++ local LAST_ERR=/tmp/tmp.YGjfcBMd1k +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.proxysql.enabled}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.sAaVFciepP +++ cat /tmp/tmp.YGjfcBMd1k +++ rm /tmp/tmp.sAaVFciepP /tmp/tmp.YGjfcBMd1k +++ return 0 ++ [[ true == \t\r\u\e ]] +++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.proxysql.size}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.cJ4vaJR7hf ++++ mktemp +++ local LAST_ERR=/tmp/tmp.A8yCLErskf +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.proxysql.size}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.cJ4vaJR7hf +++ cat /tmp/tmp.A8yCLErskf +++ rm /tmp/tmp.cJ4vaJR7hf /tmp/tmp.A8yCLErskf +++ return 0 ++ size=2 ++ echo 2 + local proxy_size=2 + desc 'wait cluster consistency' + set +o xtrace ----------------------------------------------------------------------------------- wait cluster consistency ----------------------------------------------------------------------------------- + local max_seconds=1500 + local delay=5 + local retries=300 + local pxc_ready + local proxy_ready + sleep 7 + echo -n 'waiting for pxc/scheduled-backup to be ready' waiting for pxc/scheduled-backup to be ready++ seq 1 300 + for _ in '$(seq 1 "${retries}")' ++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Z8qbR26kVW +++ mktemp ++ local LAST_ERR=/tmp/tmp.2xiJap4sJr ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc scheduled-backup -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.Z8qbR26kVW ++ cat /tmp/tmp.2xiJap4sJr ++ rm /tmp/tmp.Z8qbR26kVW /tmp/tmp.2xiJap4sJr ++ return 0 + state=ready ++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.status.pxc.ready}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.mEZ9P1YJzj +++ mktemp ++ local LAST_ERR=/tmp/tmp.SuNOND3AXW ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc scheduled-backup -o 'jsonpath={.status.pxc.ready}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.mEZ9P1YJzj ++ cat /tmp/tmp.SuNOND3AXW ++ rm /tmp/tmp.mEZ9P1YJzj /tmp/tmp.SuNOND3AXW ++ return 0 + pxc_ready=3 + proxy_ready=0 + [[ 2 -gt 0 ]] +++ get_proxy_engine scheduled-backup +++ local cluster_name=scheduled-backup ++++ get_proxy scheduled-backup ++++ local target_cluster=scheduled-backup +++++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.haproxy.enabled}' ++++++ mktemp +++++ local LAST_OUT=/tmp/tmp.H2ArhPqpVB ++++++ mktemp +++++ local LAST_ERR=/tmp/tmp.rBTKQdp5eQ +++++ local exit_status=0 ++++++ seq 0 2 +++++ for i in '$(seq 0 2)' +++++ set +e +++++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.haproxy.enabled}' +++++ exit_status=0 +++++ set -e +++++ '[' 0 '!=' 0 ']' +++++ break +++++ cat /tmp/tmp.H2ArhPqpVB +++++ cat /tmp/tmp.rBTKQdp5eQ +++++ rm /tmp/tmp.H2ArhPqpVB /tmp/tmp.rBTKQdp5eQ +++++ return 0 ++++ [[ '' == \t\r\u\e ]] +++++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.spec.proxysql.enabled}' ++++++ mktemp +++++ local LAST_OUT=/tmp/tmp.epkeTbng0d ++++++ mktemp +++++ local LAST_ERR=/tmp/tmp.Q7E31nB6Jn +++++ local exit_status=0 ++++++ seq 0 2 +++++ for i in '$(seq 0 2)' +++++ set +e +++++ kubectl get pxc scheduled-backup -o 'jsonpath={.spec.proxysql.enabled}' +++++ exit_status=0 +++++ set -e +++++ '[' 0 '!=' 0 ']' +++++ break +++++ cat /tmp/tmp.epkeTbng0d +++++ cat /tmp/tmp.Q7E31nB6Jn +++++ rm /tmp/tmp.epkeTbng0d /tmp/tmp.Q7E31nB6Jn +++++ return 0 ++++ [[ true == \t\r\u\e ]] ++++ echo scheduled-backup-proxysql ++++ return +++ local cluster_proxy=scheduled-backup-proxysql +++ echo proxysql ++ kubectl_bin get pxc scheduled-backup -o 'jsonpath={.status.proxysql.ready}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.GtDRlCXtT1 +++ mktemp ++ local LAST_ERR=/tmp/tmp.SG6qB637fb ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc scheduled-backup -o 'jsonpath={.status.proxysql.ready}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.GtDRlCXtT1 ++ cat /tmp/tmp.SG6qB637fb ++ rm /tmp/tmp.GtDRlCXtT1 /tmp/tmp.SG6qB637fb ++ return 0 + proxy_ready=2 + [[ ready == \r\e\a\d\y ]] + [[ 3 == \3 ]] + [[ 2 == \2 ]] + echo + return ++ cut -d: -f1 ++ kubectl_bin get pxc-backup --sort-by=.metadata.creationTimestamp -o 'jsonpath={range .items[?(@.spec.storageName=="azure-blob")]}{.metadata.name}:{.status.state}{"\n"}{end}' +++ mktemp ++ grep ':Succeeded$' ++ head -n1 ++ local LAST_OUT=/tmp/tmp.ATxWzjryvR +++ mktemp ++ local LAST_ERR=/tmp/tmp.HMjSswfAd5 ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc-backup --sort-by=.metadata.creationTimestamp -o 'jsonpath={range .items[?(@.spec.storageName=="azure-blob")]}{.metadata.name}:{.status.state}{"\n"}{end}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.ATxWzjryvR ++ cat /tmp/tmp.HMjSswfAd5 ++ rm /tmp/tmp.ATxWzjryvR /tmp/tmp.HMjSswfAd5 ++ return 0 + SECOND_AZURE_BACKUP=cron-scheduled-backup-azure-blob-20267242230-q6fav + [[ cron-scheduled-backup-azure-blob-2026724200-q6fav == \c\r\o\n\-\s\c\h\e\d\u\l\e\d\-\b\a\c\k\u\p\-\a\z\u\r\e\-\b\l\o\b\-\2\0\2\6\7\2\4\2\2\3\0\-\q\6\f\a\v ]] + desc 'Restore from Azure scheduled backup and verify data integrity' + set +o xtrace ----------------------------------------------------------------------------------- Restore from Azure scheduled backup and verify data integrity ----------------------------------------------------------------------------------- + run_scheduled_recovery_check scheduled-backup cron-scheduled-backup-azure-blob-20267242230-q6fav + local cluster=scheduled-backup + local backup1=cron-scheduled-backup-azure-blob-20267242230-q6fav + restore_name=azure-blob-20267242230-q6fav + desc 'write data after backup' + set +o xtrace ----------------------------------------------------------------------------------- write data after backup ----------------------------------------------------------------------------------- + run_mysql 'INSERT myApp.myApp (id) VALUES (100501)' '-h scheduled-backup-proxysql -uroot -proot_password' + local 'command=INSERT myApp.myApp (id) VALUES (100501)' + local 'uri=-h scheduled-backup-proxysql -uroot -proot_password' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.1v1Kr8p0sm +++ mktemp ++ local LAST_ERR=/tmp/tmp.WaBnQEUoeU ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.1v1Kr8p0sm ++ cat /tmp/tmp.WaBnQEUoeU ++ rm /tmp/tmp.1v1Kr8p0sm /tmp/tmp.WaBnQEUoeU ++ return 0 + client_pod=pxc-client-67fc4995bb-k9xjq + wait_pod pxc-client-67fc4995bb-k9xjq + local pod=pxc-client-67fc4995bb-k9xjq + local max_retry=480 + local ns= ++ echo pxc-client-67fc4995bb-k9xjq ++ grep -E '^(pxc|proxysql)$' ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' + local container= + set +o xtrace pod/pxc-client-67fc4995bb-k9xjq condition met E0702 04:23:58.859987 15374 reflector.go:227] "Failed to watch" err="Get \"https://136.119.46.30/api/v1/namespaces/scheduled-backup-azure-30767/pods?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dpxc-client-67fc4995bb-k9xjq&resourceVersion=1782966235417195000&timeoutSeconds=558&watch=true\": context canceled" reflector="k8s.io/client-go/tools/watch/informerwatcher.go:162" type="*unstructured.Unstructured" waiting for pod/pxc-client-67fc4995bb-k9xjq to become ReadyDefaulted container "pxc-client" out of: pxc-client, backup .Ok + set +o xtrace + for node in '"$cluster-pxc-0.$cluster-pxc"' '"$cluster-pxc-1.$cluster-pxc"' '"$cluster-pxc-2.$cluster-pxc"' + local retry=0 ++ run_mysql 'SELECT COUNT(*) FROM myApp.myApp;' '-h scheduled-backup-pxc-0.scheduled-backup-pxc -uroot -proot_password' + [[ 2 == \2 ]] + for node in '"$cluster-pxc-0.$cluster-pxc"' '"$cluster-pxc-1.$cluster-pxc"' '"$cluster-pxc-2.$cluster-pxc"' + local retry=0 ++ run_mysql 'SELECT COUNT(*) FROM myApp.myApp;' '-h scheduled-backup-pxc-1.scheduled-backup-pxc -uroot -proot_password' + [[ 2 == \2 ]] + for node in '"$cluster-pxc-0.$cluster-pxc"' '"$cluster-pxc-1.$cluster-pxc"' '"$cluster-pxc-2.$cluster-pxc"' + local retry=0 ++ run_mysql 'SELECT COUNT(*) FROM myApp.myApp;' '-h scheduled-backup-pxc-2.scheduled-backup-pxc -uroot -proot_password' + [[ 2 == \2 ]] + compare_mysql_cmd select-2 'SELECT * from myApp.myApp;' '-h scheduled-backup-pxc-0.scheduled-backup-pxc -uroot -proot_password' + local command_id=select-2 + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h scheduled-backup-pxc-0.scheduled-backup-pxc -uroot -proot_password' + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-2.sql + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.4 ]] + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.0 ]] + [[ -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-2-80.sql ]] + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 5\.7 ]] + run_mysql 'SELECT * from myApp.myApp;' '-h scheduled-backup-pxc-0.scheduled-backup-pxc -uroot -proot_password' + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h scheduled-backup-pxc-0.scheduled-backup-pxc -uroot -proot_password' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Te4C4H17zQ +++ mktemp ++ local LAST_ERR=/tmp/tmp.UefJ2qALRc ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.Te4C4H17zQ ++ cat /tmp/tmp.UefJ2qALRc ++ rm /tmp/tmp.Te4C4H17zQ /tmp/tmp.UefJ2qALRc ++ return 0 + client_pod=pxc-client-67fc4995bb-k9xjq + wait_pod pxc-client-67fc4995bb-k9xjq + local pod=pxc-client-67fc4995bb-k9xjq + local max_retry=480 + local ns= ++ echo pxc-client-67fc4995bb-k9xjq ++ grep -E '^(pxc|proxysql)$' ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' + local container= + set +o xtrace pod/pxc-client-67fc4995bb-k9xjq condition met E0702 04:25:12.895755 25991 reflector.go:227] "Failed to watch" err="Get \"https://136.119.46.30/api/v1/namespaces/scheduled-backup-azure-30767/pods?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dpxc-client-67fc4995bb-k9xjq&resourceVersion=1782966308944695000&timeoutSeconds=412&watch=true\": context canceled" reflector="k8s.io/client-go/tools/watch/informerwatcher.go:162" type="*unstructured.Unstructured" waiting for pod/pxc-client-67fc4995bb-k9xjq to become ReadyDefaulted container "pxc-client" out of: pxc-client, backup .Ok + set +o xtrace + [[ ! -s /tmp/tmp.5ow2TvOAnh/select-2.sql ]] ++ grep 'Unknown MySQL server host' /tmp/tmp.5ow2TvOAnh/select-2.sql + [[ -n '' ]] + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-2.sql /tmp/tmp.5ow2TvOAnh/select-2.sql + compare_mysql_cmd select-2 'SELECT * from myApp.myApp;' '-h scheduled-backup-pxc-1.scheduled-backup-pxc -uroot -proot_password' + local command_id=select-2 + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h scheduled-backup-pxc-1.scheduled-backup-pxc -uroot -proot_password' + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-2.sql + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.4 ]] + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.0 ]] + [[ -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-2-80.sql ]] + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 5\.7 ]] + run_mysql 'SELECT * from myApp.myApp;' '-h scheduled-backup-pxc-1.scheduled-backup-pxc -uroot -proot_password' + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h scheduled-backup-pxc-1.scheduled-backup-pxc -uroot -proot_password' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.yijD4cSw56 +++ mktemp ++ local LAST_ERR=/tmp/tmp.MUYK8xWFHq ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.yijD4cSw56 ++ cat /tmp/tmp.MUYK8xWFHq ++ rm /tmp/tmp.yijD4cSw56 /tmp/tmp.MUYK8xWFHq ++ return 0 + client_pod=pxc-client-67fc4995bb-k9xjq + wait_pod pxc-client-67fc4995bb-k9xjq + local pod=pxc-client-67fc4995bb-k9xjq + local max_retry=480 + local ns= ++ grep -E '^(pxc|proxysql)$' ++ echo pxc-client-67fc4995bb-k9xjq ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' + local container= + set +o xtrace pod/pxc-client-67fc4995bb-k9xjq condition met E0702 04:25:31.356323 28793 reflector.go:227] "Failed to watch" err="Get \"https://136.119.46.30/api/v1/namespaces/scheduled-backup-azure-30767/pods?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dpxc-client-67fc4995bb-k9xjq&resourceVersion=1782966327910066000&timeoutSeconds=337&watch=true\": context canceled" reflector="k8s.io/client-go/tools/watch/informerwatcher.go:162" type="*unstructured.Unstructured" waiting for pod/pxc-client-67fc4995bb-k9xjq to become ReadyDefaulted container "pxc-client" out of: pxc-client, backup .Ok + set +o xtrace + [[ ! -s /tmp/tmp.5ow2TvOAnh/select-2.sql ]] ++ grep 'Unknown MySQL server host' /tmp/tmp.5ow2TvOAnh/select-2.sql + [[ -n '' ]] + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-2.sql /tmp/tmp.5ow2TvOAnh/select-2.sql + compare_mysql_cmd select-2 'SELECT * from myApp.myApp;' '-h scheduled-backup-pxc-2.scheduled-backup-pxc -uroot -proot_password' + local command_id=select-2 + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h scheduled-backup-pxc-2.scheduled-backup-pxc -uroot -proot_password' + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-2.sql + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.4 ]] + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.0 ]] + [[ -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-2-80.sql ]] + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 5\.7 ]] + run_mysql 'SELECT * from myApp.myApp;' '-h scheduled-backup-pxc-2.scheduled-backup-pxc -uroot -proot_password' + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h scheduled-backup-pxc-2.scheduled-backup-pxc -uroot -proot_password' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.9kYwt3lGMO +++ mktemp ++ local LAST_ERR=/tmp/tmp.hwe7gba6ps ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.9kYwt3lGMO ++ cat /tmp/tmp.hwe7gba6ps ++ rm /tmp/tmp.9kYwt3lGMO /tmp/tmp.hwe7gba6ps ++ return 0 + client_pod=pxc-client-67fc4995bb-k9xjq + wait_pod pxc-client-67fc4995bb-k9xjq + local pod=pxc-client-67fc4995bb-k9xjq + local max_retry=480 + local ns= ++ echo pxc-client-67fc4995bb-k9xjq ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ grep -E '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-67fc4995bb-k9xjq condition met E0702 04:25:47.647992 31319 reflector.go:227] "Failed to watch" err="Get \"https://136.119.46.30/api/v1/namespaces/scheduled-backup-azure-30767/pods?allowWatchBookmarks=true&fieldSelector=metadata.name%3Dpxc-client-67fc4995bb-k9xjq&resourceVersion=1782966344705869000&timeoutSeconds=455&watch=true\": context canceled" reflector="k8s.io/client-go/tools/watch/informerwatcher.go:162" type="*unstructured.Unstructured" waiting for pod/pxc-client-67fc4995bb-k9xjq to become ReadyDefaulted container "pxc-client" out of: pxc-client, backup .Ok + set +o xtrace + [[ ! -s /tmp/tmp.5ow2TvOAnh/select-2.sql ]] ++ grep 'Unknown MySQL server host' /tmp/tmp.5ow2TvOAnh/select-2.sql + [[ -n '' ]] + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/e2e-tests/scheduled-backup-azure/compare/select-2.sql /tmp/tmp.5ow2TvOAnh/select-2.sql + desc 'recover backup' + set +o xtrace ----------------------------------------------------------------------------------- recover backup ----------------------------------------------------------------------------------- + kubectl_bin apply -f - ++ mktemp + /usr/bin/sed 's/pxcCluster: .*/pxcCluster: scheduled-backup/' + /usr/bin/sed 's/backupName: .*/backupName: cron-scheduled-backup-azure-blob-20267242230-q6fav/' + cat /mnt/jenkins/workspace/cloud-pxc-operator_PR-2539/deploy/backup/restore.yaml + /usr/bin/sed 's/name: .*/name: azure-blob-20267242230-q6fav/' + local LAST_OUT=/tmp/tmp.x5H6Hzc3dO ++ mktemp + local LAST_ERR=/tmp/tmp.D1i8vzdyTK + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.x5H6Hzc3dO perconaxtradbclusterrestore.pxc.percona.com/azure-blob-20267242230-q6fav created + cat /tmp/tmp.D1i8vzdyTK + rm /tmp/tmp.x5H6Hzc3dO /tmp/tmp.D1i8vzdyTK + return 0 + wait_backup_restore azure-blob-20267242230-q6fav + local backup_name=azure-blob-20267242230-q6fav + local target_state=Succeeded + local wait_time=720 + set +o xtrace waiting for pxc-restore/azure-blob-20267242230-q6fav to reach Succeeded state 2026-07-02T04:26:04 pxc-restore/azure-blob-20267242230-q6fav state: Stopping Cluster 2026-07-02T04:26:08 pxc-restore/azure-blob-20267242230-q6fav state: Stopping Cluster 2026-07-02T04:26:12 pxc-restore/azure-blob-20267242230-q6fav state: Stopping Cluster 2026-07-02T04:26:16 pxc-restore/azure-blob-20267242230-q6fav state: Stopping Cluster 2026-07-02T04:26:20 pxc-restore/azure-blob-20267242230-q6fav state: Stopping Cluster 2026-07-02T04:26:25 pxc-restore/azure-blob-20267242230-q6fav state: Stopping Cluster 2026-07-02T04:26:29 pxc-restore/azure-blob-20267242230-q6fav state: Stopping Cluster 2026-07-02T04:26:33 pxc-restore/azure-blob-20267242230-q6fav state: Stopping Cluster 2026-07-02T04:26:37 pxc-restore/azure-blob-20267242230-q6fav state: Stopping Cluster 2026-07-02T04:26:42 pxc-restore/azure-blob-20267242230-q6fav state: Stopping Cluster 2026-07-02T04:26:46 pxc-restore/azure-blob-20267242230-q6fav state: Restoring 2026-07-02T04:26:50 pxc-restore/azure-blob-20267242230-q6fav state: Restoring 2026-07-02T04:26:53 pxc-restore/azure-blob-20267242230-q6fav state: Restoring 2026-07-02T04:26:56 pxc-restore/azure-blob-20267242230-q6fav state: Restoring 2026-07-02T04:26:59 pxc-restore/azure-blob-20267242230-q6fav state: Restoring 2026-07-02T04:27:02 pxc-restore/azure-blob-20267242230-q6fav state: Restoring 2026-07-02T04:27:06 pxc-restore/azure-blob-20267242230-q6fav state: Restoring 2026-07-02T04:27:09 pxc-restore/azure-blob-20267242230-q6fav state: Restoring 2026-07-02T04:27:12 pxc-restore/azure-blob-20267242230-q6fav state: Restoring 2026-07-02T04:27:15 pxc-restore/azure-blob-20267242230-q6fav state: Restoring 2026-07-02T04:27:19 pxc-restore/azure-blob-20267242230-q6fav state: Restoring 2026-07-02T04:27:23 pxc-restore/azure-blob-20267242230-q6fav state: Restoring 2026-07-02T04:27:26 pxc-restore/azure-blob-20267242230-q6fav state: Restoring 2026-07-02T04:27:30 pxc-restore/azure-blob-20267242230-q6fav state: Restoring 2026-07-02T04:27:34 pxc-restore/azure-blob-20267242230-q6fav state: Restoring 2026-07-02T04:27:37 pxc-restore/azure-blob-20267242230-q6fav state: Restoring 2026-07-02T04:27:40 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:27:43 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:27:46 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:27:49 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:27:53 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:27:56 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:00 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:03 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:06 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:09 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:11 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:15 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:18 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:21 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:24 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:27 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:30 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:34 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:38 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:41 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:44 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:47 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:50 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:54 pxc-restore/azure-blob-20267242230-q6fav state: Preparing Cluster 2026-07-02T04:28:57 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:01 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:03 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:07 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:10 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:13 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:15 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:18 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:20 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:23 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:27 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:30 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:33 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:36 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:40 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:43 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:46 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:50 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:53 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:29:56 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:00 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:04 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:07 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:12 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:15 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:19 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:23 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:27 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:31 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:34 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:37 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:40 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:42 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:46 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:49 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:52 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:30:56 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:00 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:04 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:07 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:10 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:14 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:17 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:22 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:25 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:28 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:31 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:33 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:36 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:39 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:42 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:45 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:48 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:51 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:53 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:31:57 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:32:01 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:32:04 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:32:08 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:32:12 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:32:16 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:32:19 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:32:22 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:32:26 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:32:31 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:32:35 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:32:39 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:32:43 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:32:46 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:32:50 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:32:54 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:32:58 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:02 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:07 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:11 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:15 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:19 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:22 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:24 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:27 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:30 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:34 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:38 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:40 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:44 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:47 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:51 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:54 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:33:58 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:01 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:06 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:10 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:13 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:17 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:20 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:23 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:26 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:30 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:33 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:36 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:39 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:42 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:45 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:48 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:50 pxc-restore/azure-blob-20267242230-q6fav state: Starting Cluster 2026-07-02T04:34:53 pxc-restore/azure-blob-20267242230-q6fav state: Succeeded + kubectl_bin logs job/restore-job-azure-blob-20267242230-q6fav-scheduled-backup ++ mktemp + local LAST_OUT=/tmp/tmp.PL45SWsAnx ++ mktemp + local LAST_ERR=/tmp/tmp.EqKmGimPBO + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl logs job/restore-job-azure-blob-20267242230-q6fav-scheduled-backup + exit_status=1 + set -e + '[' 1 '!=' 0 ']' + '[' 1 == 1 ']' + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl logs job/restore-job-azure-blob-20267242230-q6fav-scheduled-backup + exit_status=1 + set -e + '[' 1 '!=' 0 ']' + '[' 1 == 1 ']' + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl logs job/restore-job-azure-blob-20267242230-q6fav-scheduled-backup + exit_status=1 + set -e + '[' 1 '!=' 0 ']' + '[' 1 == 1 ']' + sleep 0 + cat /tmp/tmp.PL45SWsAnx + cat /tmp/tmp.EqKmGimPBO error: timed out waiting for the condition + rm /tmp/tmp.PL45SWsAnx /tmp/tmp.EqKmGimPBO + return 1