Log: /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/logs/proxy-protocol-8-0.log WARNING: version difference between client (1.29) and server (1.25) exceeds the supported minor version skew of +/-1 WARNING: version difference between client (1.29) and server (1.25) exceeds the supported minor version skew of +/-1 + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 5\.7 ]] + prepare_config + desc 'prepare config' + set +o xtrace ----------------------------------------------------------------------------------- prepare config ----------------------------------------------------------------------------------- ++ awk '{print $1}' ++ grep -v master ++ kubectl get nodes ++ grep -v NAME + nodes='gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-d7v1 gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-krf6 gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-zfbs' ++ printf 'gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-d7v1 gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-krf6 gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-zfbs\n' ++ wc -l + '[' 3 -lt 3 ']' ++ echo 'gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-d7v1 gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-krf6 gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-zfbs' ++ tail -n1 + haproxy_node=gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-zfbs ++ echo 'gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-d7v1 gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-krf6 gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-zfbs' ++ tail -n2 ++ head -n1 + pxc_node=gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-krf6 ++ echo 'gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-d7v1 gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-krf6 gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-zfbs' ++ head -n1 ++ tail -n3 + client_node=gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-d7v1 + /usr/bin/sed -e 's#kubernetes.io/hostname:.*-node2$#kubernetes.io/hostname: gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-krf6#' + /usr/bin/sed -e 's#kubernetes.io/hostname:.*-node1$#kubernetes.io/hostname: gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-zfbs#' + cat /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/conf/proxy-protocol.yml + /usr/bin/sed -e 's#kubernetes.io/hostname:.*-node3$#kubernetes.io/hostname: gke-jen-pxc-1522-1ed4605-default-pool-1850f81e-d7v1#' + cat /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/conf/client.yml + create_infra proxy-protocol-2189 + local ns=proxy-protocol-2189 + '[' -n pxc-operator ']' + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch pxc -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' + kubectl get pxc --all-namespaces -o wide + kubectl patch pxc -n proxy-protocol-17311 proxy-protocol --type=merge -p '{"metadata":{"finalizers":[]}}' perconaxtradbcluster.pxc.percona.com/proxy-protocol patched + kubectl_bin delete pxc --all --all-namespaces ++ mktemp + local LAST_OUT=/tmp/tmp.G6WlKkyQty ++ mktemp + local LAST_ERR=/tmp/tmp.jwajS2Jj3T + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete pxc --all --all-namespaces + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.G6WlKkyQty No resources found + cat /tmp/tmp.jwajS2Jj3T + rm /tmp/tmp.G6WlKkyQty /tmp/tmp.jwajS2Jj3T + return 0 + kubectl_bin delete pxc-backup --all --all-namespaces ++ mktemp + local LAST_OUT=/tmp/tmp.fVSElOLANQ ++ mktemp + local LAST_ERR=/tmp/tmp.JF70zukye2 + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete pxc-backup --all --all-namespaces + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.fVSElOLANQ No resources found + cat /tmp/tmp.JF70zukye2 + rm /tmp/tmp.fVSElOLANQ /tmp/tmp.JF70zukye2 + return 0 + kubectl_bin delete pxc-restore --all --all-namespaces ++ mktemp + local LAST_OUT=/tmp/tmp.LoubC5wyrF ++ mktemp + local LAST_ERR=/tmp/tmp.TqKavrbkg0 + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete pxc-restore --all --all-namespaces + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.LoubC5wyrF No resources found + cat /tmp/tmp.TqKavrbkg0 + rm /tmp/tmp.LoubC5wyrF /tmp/tmp.TqKavrbkg0 + return 0 + create_namespace pxc-operator + local namespace=pxc-operator + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ awk '-F ' '{print $2}' ++ tail -n1 ++ helm list --all-namespaces --filter chaos-mesh ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl api-resources + '[' -n '' ']' ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ awk '{print $1}' ++ grep chaos-mesh + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep validate-auth ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + egrep -v '^kube-|^default$|Terminating|pxc-operator|openshift|^NAME' + awk '{print$1}' + '[' -n '' ']' + desc 'cleaned up old namespaces pxc-operator' + xargs kubectl delete ns + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces pxc-operator ----------------------------------------------------------------------------------- + kubectl_bin delete namespace pxc-operator + kubectl_bin get ns ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.UHSj3tGsFn ++ mktemp + local LAST_OUT=/tmp/tmp.YWfEhoTbFu ++ mktemp + local LAST_ERR=/tmp/tmp.1msSkhwzzt + local exit_status=0 + local LAST_ERR=/tmp/tmp.YM5MCGD353 + local exit_status=0 ++ seq 0 2 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get ns + for i in '$(seq 0 2)' + set +e + kubectl delete namespace pxc-operator + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.UHSj3tGsFn + cat /tmp/tmp.1msSkhwzzt + rm /tmp/tmp.UHSj3tGsFn /tmp/tmp.1msSkhwzzt + return 0 namespace "proxy-protocol-17311" deleted Error from server (Forbidden): namespaces "default" is forbidden: this namespace may not be deleted + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.YWfEhoTbFu namespace "pxc-operator" deleted + cat /tmp/tmp.YM5MCGD353 + rm /tmp/tmp.YWfEhoTbFu /tmp/tmp.YM5MCGD353 + return 0 + wait_for_delete namespace/pxc-operator + local res=namespace/pxc-operator + echo -n 'namespace/pxc-operator - ' namespace/pxc-operator - + 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.UBhg9Q4pMB ++ mktemp + local LAST_ERR=/tmp/tmp.jJR6Md0EGH + 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.UBhg9Q4pMB namespace/pxc-operator created + cat /tmp/tmp.jJR6Md0EGH + rm /tmp/tmp.UBhg9Q4pMB /tmp/tmp.jJR6Md0EGH + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.HEiB6YGwRQ +++ mktemp ++ local LAST_ERR=/tmp/tmp.KMZVhPnpGf ++ 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.HEiB6YGwRQ ++ cat /tmp/tmp.KMZVhPnpGf ++ rm /tmp/tmp.HEiB6YGwRQ /tmp/tmp.KMZVhPnpGf ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-pxc-1522-1ed4605b-21-cluster2 --namespace=pxc-operator ++ mktemp + local LAST_OUT=/tmp/tmp.yf5eF2vwQz ++ mktemp + local LAST_ERR=/tmp/tmp.8MlbYpKy8h + 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-1522-1ed4605b-21-cluster2 --namespace=pxc-operator + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.yf5eF2vwQz Context "gke_cloud-dev-112233_us-central1-a_jen-pxc-1522-1ed4605b-21-cluster2" modified. + cat /tmp/tmp.8MlbYpKy8h + rm /tmp/tmp.yf5eF2vwQz /tmp/tmp.8MlbYpKy8h + 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-1522/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.4b5aOn4bMe ++ mktemp + local LAST_ERR=/tmp/tmp.6TNaCCVnYN + 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-1522/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.4b5aOn4bMe 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.6TNaCCVnYN + rm /tmp/tmp.4b5aOn4bMe /tmp/tmp.6TNaCCVnYN + return 0 + '[' -n pxc-operator ']' + apply_rbac cw-rbac + local operator_namespace=pxc-operator + local rbac=cw-rbac + cat /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/deploy/cw-rbac.yaml + sed -e 's^namespace: .*^namespace: pxc-operator^' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.kwTiAoyOxN ++ mktemp + local LAST_ERR=/tmp/tmp.O7ks8lqb64 + 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.kwTiAoyOxN 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.O7ks8lqb64 + rm /tmp/tmp.kwTiAoyOxN /tmp/tmp.O7ks8lqb64 + return 0 + sed -e 's^image: .*^image: perconalab/percona-xtradb-cluster-operator:PR-1522-1ed4605b^' + sed -e 's^failureThreshold: .*^failureThreshold: 10^' + yq eval '(select(.kind == "Deployment").spec.template.spec.containers[] | select(.name == "percona-xtradb-cluster-operator").env[] | select(.name == "LOG_LEVEL").value) = "DEBUG"' - + cat /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/deploy/cw-operator.yaml + kubectl_bin apply -f - + yq eval '(select(.kind == "Deployment").spec.template.spec.containers[] | select(.name == "percona-xtradb-cluster-operator").env[] | select(.name == "DISABLE_TELEMETRY").value) = "true"' - ++ mktemp + local LAST_OUT=/tmp/tmp.fycW0qnFpU ++ mktemp + local LAST_ERR=/tmp/tmp.BvnLLZW14I + 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.fycW0qnFpU deployment.apps/percona-xtradb-cluster-operator created service/percona-xtradb-cluster-operator created + cat /tmp/tmp.BvnLLZW14I + rm /tmp/tmp.fycW0qnFpU /tmp/tmp.BvnLLZW14I + 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.8jeqAIfgJM ++ mktemp + local LAST_ERR=/tmp/tmp.0td5LPE9hW + 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.8jeqAIfgJM pod/percona-xtradb-cluster-operator-6dbd475d79-qx8jx condition met + cat /tmp/tmp.0td5LPE9hW + rm /tmp/tmp.8jeqAIfgJM /tmp/tmp.0td5LPE9hW + 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 ]] ++ kubectl_bin get pods --selector=app.kubernetes.io/name=percona-xtradb-cluster-operator -o 'jsonpath={.items[].metadata.name}' -n pxc-operator +++ mktemp ++ local LAST_OUT=/tmp/tmp.WsRvZWxkAO +++ mktemp ++ local LAST_ERR=/tmp/tmp.eHByuFDBJZ ++ 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 -o 'jsonpath={.items[].metadata.name}' -n pxc-operator ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.WsRvZWxkAO ++ cat /tmp/tmp.eHByuFDBJZ ++ rm /tmp/tmp.WsRvZWxkAO /tmp/tmp.eHByuFDBJZ ++ return 0 + wait_pod percona-xtradb-cluster-operator-6dbd475d79-qx8jx 480 pxc-operator + local pod=percona-xtradb-cluster-operator-6dbd475d79-qx8jx + local max_retry=480 + local ns=pxc-operator ++ echo percona-xtradb-cluster-operator-6dbd475d79-qx8jx ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container= + set +o xtrace pod/percona-xtradb-cluster-operator-6dbd475d79-qx8jx condition met percona-xtradb-cluster-operator-6dbd475d79-qx8jx.Ok + sleep 3 + create_namespace proxy-protocol-2189 + local namespace=proxy-protocol-2189 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' + '[' -n '' ']' ++ 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 + : ++ grep chaos-mesh ++ kubectl get clusterrole ++ awk '{print $1}' + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep validate-auth ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + '[' -n '' ']' + desc 'cleaned up old namespaces proxy-protocol-2189' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces proxy-protocol-2189 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace proxy-protocol-2189 + awk '{print$1}' ++ mktemp + xargs kubectl delete ns + local LAST_OUT=/tmp/tmp.H7zSZBBPDU + kubectl_bin get ns ++ mktemp + egrep -v '^kube-|^default$|Terminating|pxc-operator|openshift|^NAME' ++ mktemp + local LAST_OUT=/tmp/tmp.0sqhXQ6JyS + local LAST_ERR=/tmp/tmp.3wYG8tPpjA + local exit_status=0 ++ mktemp + local LAST_ERR=/tmp/tmp.AWmoV7XIzS + local exit_status=0 ++ seq 0 2 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace proxy-protocol-2189 + for i in '$(seq 0 2)' + set +e + kubectl get ns + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.0sqhXQ6JyS + cat /tmp/tmp.AWmoV7XIzS + rm /tmp/tmp.0sqhXQ6JyS /tmp/tmp.AWmoV7XIzS + return 0 + exit_status=1 + set -e + '[' 1 '!=' 0 ']' + '[' 1 == 1 ']' + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace proxy-protocol-2189 + exit_status=1 + set -e + '[' 1 '!=' 0 ']' + '[' 1 == 1 ']' + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace proxy-protocol-2189 Error from server (Forbidden): namespaces "default" is forbidden: this namespace may not be deleted + exit_status=1 + set -e + '[' 1 '!=' 0 ']' + '[' 1 == 1 ']' + sleep 0 + cat /tmp/tmp.H7zSZBBPDU + cat /tmp/tmp.3wYG8tPpjA Error from server (NotFound): namespaces "proxy-protocol-2189" not found + rm /tmp/tmp.H7zSZBBPDU /tmp/tmp.3wYG8tPpjA + return 1 + : + wait_for_delete namespace/proxy-protocol-2189 + local res=namespace/proxy-protocol-2189 + echo -n 'namespace/proxy-protocol-2189 - ' namespace/proxy-protocol-2189 - + set +o xtrace Error from server (NotFound): namespaces "proxy-protocol-2189" not found + desc 'create namespace proxy-protocol-2189' + set +o xtrace ----------------------------------------------------------------------------------- create namespace proxy-protocol-2189 ----------------------------------------------------------------------------------- + kubectl_bin create namespace proxy-protocol-2189 ++ mktemp + local LAST_OUT=/tmp/tmp.UUgB0VxKHM ++ mktemp + local LAST_ERR=/tmp/tmp.plJnUte0jF + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace proxy-protocol-2189 + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.UUgB0VxKHM namespace/proxy-protocol-2189 created + cat /tmp/tmp.plJnUte0jF + rm /tmp/tmp.UUgB0VxKHM /tmp/tmp.plJnUte0jF + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.bxEXIg5z0z +++ mktemp ++ local LAST_ERR=/tmp/tmp.WyHNcvYFpu ++ 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.bxEXIg5z0z ++ cat /tmp/tmp.WyHNcvYFpu ++ rm /tmp/tmp.bxEXIg5z0z /tmp/tmp.WyHNcvYFpu ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-pxc-1522-1ed4605b-21-cluster2 --namespace=proxy-protocol-2189 ++ mktemp + local LAST_OUT=/tmp/tmp.aGchlyhnQt ++ mktemp + local LAST_ERR=/tmp/tmp.bSBTZRW8yN + 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-1522-1ed4605b-21-cluster2 --namespace=proxy-protocol-2189 + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.aGchlyhnQt Context "gke_cloud-dev-112233_us-central1-a_jen-pxc-1522-1ed4605b-21-cluster2" modified. + cat /tmp/tmp.bSBTZRW8yN + rm /tmp/tmp.aGchlyhnQt /tmp/tmp.bSBTZRW8yN + 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-1522/e2e-tests/conf/minio-secret.yml -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/conf/cloud-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.38cAovq4in ++ mktemp + local LAST_ERR=/tmp/tmp.zNGUGL9Q8z + 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-1522/e2e-tests/conf/minio-secret.yml -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/conf/cloud-secret.yml + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.38cAovq4in secret/minio-secret created secret/aws-s3-secret created secret/gcp-cs-secret created secret/azure-secret created + cat /tmp/tmp.zNGUGL9Q8z + rm /tmp/tmp.38cAovq4in /tmp/tmp.zNGUGL9Q8z + return 0 + desc 'create first PXC cluster' + set +o xtrace ----------------------------------------------------------------------------------- create first PXC cluster ----------------------------------------------------------------------------------- + spinup_pxc proxy-protocol /tmp/tmp.gpxkUFr4JN/proxy-protocol.yml 3 15 /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/conf/secrets.yml /tmp/tmp.gpxkUFr4JN/client.yml 33062 + local cluster=proxy-protocol + local config=/tmp/tmp.gpxkUFr4JN/proxy-protocol.yml + local size=3 + local sleep=15 + local secretsFile=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/conf/secrets.yml + local pxcClientFile=/tmp/tmp.gpxkUFr4JN/client.yml + local port=33062 + desc 'create first PXC cluster' + set +o xtrace ----------------------------------------------------------------------------------- create first PXC cluster ----------------------------------------------------------------------------------- + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/conf/secrets.yml ++ mktemp + local LAST_OUT=/tmp/tmp.0PFyLgyw1T ++ mktemp + local LAST_ERR=/tmp/tmp.cHDv5KW5F6 + 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-1522/e2e-tests/conf/secrets.yml + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.0PFyLgyw1T secret/my-cluster-secrets created secret/some-name-ssl created secret/some-name-ssl-internal created + cat /tmp/tmp.cHDv5KW5F6 + rm /tmp/tmp.0PFyLgyw1T /tmp/tmp.cHDv5KW5F6 + return 0 + apply_config /tmp/tmp.gpxkUFr4JN/client.yml + '[' -z '' ']' + kubectl_bin apply -f - + cat_config /tmp/tmp.gpxkUFr4JN/client.yml ++ mktemp + local LAST_OUT=/tmp/tmp.Iy9nq3ihBA + /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:k8spxc-1313-8.0-backup#' + /usr/bin/sed -e 's#image:.*-init$#image: perconalab/percona-xtradb-cluster-operator:PR-1522-1ed4605b#' + /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#apiVersion: pxc.percona.com/v.*$#apiVersion: pxc.percona.com/v1#' + cat /tmp/tmp.gpxkUFr4JN/client.yml ++ mktemp + /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#' + local LAST_ERR=/tmp/tmp.SJlyGZi9sd + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + /usr/bin/sed -e s~minio-service.#namespace~minio-service.proxy-protocol-2189~ + /usr/bin/sed -e 's#apply:.*#apply: Never#' + /usr/bin/sed -e 's#image:.*-logcollector$#image: perconalab/percona-xtradb-cluster-operator:main-logcollector#' + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.Iy9nq3ihBA deployment.apps/pxc-client created + cat /tmp/tmp.SJlyGZi9sd + rm /tmp/tmp.Iy9nq3ihBA /tmp/tmp.SJlyGZi9sd + return 0 + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 5\.7 ]] + apply_config /tmp/tmp.gpxkUFr4JN/proxy-protocol.yml + '[' -z '' ']' + kubectl_bin apply -f - + cat_config /tmp/tmp.gpxkUFr4JN/proxy-protocol.yml + cat /tmp/tmp.gpxkUFr4JN/proxy-protocol.yml + /usr/bin/sed -e 's#apiVersion: pxc.percona.com/v.*$#apiVersion: pxc.percona.com/v1#' ++ mktemp + /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-1522-1ed4605b#' + /usr/bin/sed -e 's#image:.*-proxysql$#image: perconalab/percona-xtradb-cluster-operator:main-proxysql#' + local LAST_OUT=/tmp/tmp.di66qSYenf + /usr/bin/sed -e 's#image:.*-logcollector$#image: perconalab/percona-xtradb-cluster-operator:main-logcollector#' ++ mktemp + /usr/bin/sed -e s~minio-service.#namespace~minio-service.proxy-protocol-2189~ + /usr/bin/sed -e 's#image:.*-haproxy$#image: perconalab/percona-xtradb-cluster-operator:main-haproxy#' + /usr/bin/sed -e 's#image:.*-pmm$#image: perconalab/pmm-client:dev-latest#' + local LAST_ERR=/tmp/tmp.XrTYGSS0j6 + local exit_status=0 + /usr/bin/sed -e 's#apply:.*#apply: Never#' + /usr/bin/sed -e 's#image:.*-backup$#image: perconalab/percona-xtradb-cluster-operator:k8spxc-1313-8.0-backup#' ++ 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.di66qSYenf perconaxtradbcluster.pxc.percona.com/proxy-protocol created + cat /tmp/tmp.XrTYGSS0j6 + rm /tmp/tmp.di66qSYenf /tmp/tmp.XrTYGSS0j6 + return 0 + desc 'check if all 3 Pods started' + set +o xtrace ----------------------------------------------------------------------------------- check if all 3 Pods started ----------------------------------------------------------------------------------- ++ get_proxy proxy-protocol ++ local target_cluster=proxy-protocol +++ kubectl_bin get pxc proxy-protocol -o 'jsonpath={.spec.haproxy.enabled}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.DLHwQQQiLl ++++ mktemp +++ local LAST_ERR=/tmp/tmp.r26YQccgaY +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc proxy-protocol -o 'jsonpath={.spec.haproxy.enabled}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.DLHwQQQiLl +++ cat /tmp/tmp.r26YQccgaY +++ rm /tmp/tmp.DLHwQQQiLl /tmp/tmp.r26YQccgaY +++ return 0 ++ [[ true == \t\r\u\e ]] ++ echo proxy-protocol-haproxy ++ return + local proxy=proxy-protocol-haproxy + kubectl_bin wait --for=condition=Ready pod -l app.kubernetes.io/instance=monitoring,app.kubernetes.io/managed-by=percona-xtradb-cluster-operator --timeout=300s -n proxy-protocol-2189 ++ mktemp + local LAST_OUT=/tmp/tmp.onzwCMga16 ++ mktemp + local LAST_ERR=/tmp/tmp.nfSCdduhF3 + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=monitoring,app.kubernetes.io/managed-by=percona-xtradb-cluster-operator --timeout=300s -n proxy-protocol-2189 + exit_status=1 + set -e + '[' 1 '!=' 0 ']' + '[' 1 == 1 ']' + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=monitoring,app.kubernetes.io/managed-by=percona-xtradb-cluster-operator --timeout=300s -n proxy-protocol-2189 + exit_status=1 + set -e + '[' 1 '!=' 0 ']' + '[' 1 == 1 ']' + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=monitoring,app.kubernetes.io/managed-by=percona-xtradb-cluster-operator --timeout=300s -n proxy-protocol-2189 + exit_status=1 + set -e + '[' 1 '!=' 0 ']' + '[' 1 == 1 ']' + sleep 0 + cat /tmp/tmp.onzwCMga16 + cat /tmp/tmp.nfSCdduhF3 error: no matching resources found + rm /tmp/tmp.onzwCMga16 /tmp/tmp.nfSCdduhF3 + return 1 + true + wait_for_running proxy-protocol-haproxy 1 + local name=proxy-protocol-haproxy + let last_pod=0 + : + local max_retry=480 + desc 'wait for running cluster' + set +o xtrace ----------------------------------------------------------------------------------- wait for running cluster ----------------------------------------------------------------------------------- ++ seq 0 0 + for i in '$(seq 0 $last_pod)' + wait_pod proxy-protocol-haproxy-0 480 + local pod=proxy-protocol-haproxy-0 + local max_retry=480 + local ns= ++ echo proxy-protocol-haproxy-0 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container= + set +o xtrace Error from server (NotFound): pods "proxy-protocol-haproxy-0" not found proxy-protocol-haproxy-0................................................Defaulted container "haproxy" out of: haproxy, pxc-monit, pxc-init (init) .Ok + wait_for_running proxy-protocol-pxc 3 + local name=proxy-protocol-pxc + let last_pod=2 + local max_retry=480 + desc 'wait for running cluster' + set +o xtrace ----------------------------------------------------------------------------------- wait for running cluster ----------------------------------------------------------------------------------- ++ seq 0 2 + for i in '$(seq 0 $last_pod)' + wait_pod proxy-protocol-pxc-0 480 + local pod=proxy-protocol-pxc-0 + local max_retry=480 + local ns= ++ echo proxy-protocol-pxc-0 ++ egrep '^(pxc|proxysql)$' ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' + local container=pxc + set +o xtrace pod/proxy-protocol-pxc-0 condition met proxy-protocol-pxc-0.Ok + for i in '$(seq 0 $last_pod)' + wait_pod proxy-protocol-pxc-1 480 + local pod=proxy-protocol-pxc-1 + local max_retry=480 + local ns= ++ echo proxy-protocol-pxc-1 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container=pxc + set +o xtrace pod/proxy-protocol-pxc-1 condition met proxy-protocol-pxc-1.Ok + for i in '$(seq 0 $last_pod)' + wait_pod proxy-protocol-pxc-2 480 + local pod=proxy-protocol-pxc-2 + local max_retry=480 + local ns= ++ echo proxy-protocol-pxc-2 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container=pxc + set +o xtrace pod/proxy-protocol-pxc-2 condition met proxy-protocol-pxc-2.Ok + sleep 15 + 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 proxy-protocol-haproxy -uroot -proot_password -P33062' + local 'command=CREATE DATABASE IF NOT EXISTS myApp; use myApp; CREATE TABLE IF NOT EXISTS myApp (id int PRIMARY KEY) ;' + local 'uri=-h proxy-protocol-haproxy -uroot -proot_password -P33062' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.3e1ftrsLuZ +++ mktemp ++ local LAST_ERR=/tmp/tmp.d4Kp0Af686 ++ 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.3e1ftrsLuZ ++ cat /tmp/tmp.d4Kp0Af686 ++ rm /tmp/tmp.3e1ftrsLuZ /tmp/tmp.d4Kp0Af686 ++ return 0 + client_pod=pxc-client-5cf6f579c9-2bnc7 + wait_pod pxc-client-5cf6f579c9-2bnc7 + local pod=pxc-client-5cf6f579c9-2bnc7 + local max_retry=480 + local ns= ++ echo pxc-client-5cf6f579c9-2bnc7 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-5cf6f579c9-2bnc7 condition met pxc-client-5cf6f579c9-2bnc7.Ok + set +o xtrace + run_mysql 'INSERT myApp.myApp (id) VALUES (100500)' '-h proxy-protocol-haproxy -uroot -proot_password -P33062' + local 'command=INSERT myApp.myApp (id) VALUES (100500)' + local 'uri=-h proxy-protocol-haproxy -uroot -proot_password -P33062' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.sOjUAA2dzh +++ mktemp ++ local LAST_ERR=/tmp/tmp.0VDcJ4G6UX ++ 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.sOjUAA2dzh ++ cat /tmp/tmp.0VDcJ4G6UX ++ rm /tmp/tmp.sOjUAA2dzh /tmp/tmp.0VDcJ4G6UX ++ return 0 + client_pod=pxc-client-5cf6f579c9-2bnc7 + wait_pod pxc-client-5cf6f579c9-2bnc7 + local pod=pxc-client-5cf6f579c9-2bnc7 + local max_retry=480 + local ns= ++ echo pxc-client-5cf6f579c9-2bnc7 ++ egrep '^(pxc|proxysql)$' ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' + local container= + set +o xtrace pod/pxc-client-5cf6f579c9-2bnc7 condition met pxc-client-5cf6f579c9-2bnc7.Ok + set +o xtrace + sleep 30 ++ seq 0 2 + for i in '$(seq 0 $((size - 1)))' + compare_mysql_cmd select-1 'SELECT * from myApp.myApp;' '-h proxy-protocol-pxc-0.proxy-protocol-pxc -uroot -proot_password -P33062' + local command_id=select-1 + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h proxy-protocol-pxc-0.proxy-protocol-pxc -uroot -proot_password -P33062' + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/select-1.sql + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.0 ]] + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/select-1-80.sql ']' + run_mysql 'SELECT * from myApp.myApp;' '-h proxy-protocol-pxc-0.proxy-protocol-pxc -uroot -proot_password -P33062' + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h proxy-protocol-pxc-0.proxy-protocol-pxc -uroot -proot_password -P33062' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.nt1uhAVt6n +++ mktemp ++ local LAST_ERR=/tmp/tmp.kpX1gpEvUM ++ 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.nt1uhAVt6n ++ cat /tmp/tmp.kpX1gpEvUM ++ rm /tmp/tmp.nt1uhAVt6n /tmp/tmp.kpX1gpEvUM ++ return 0 + client_pod=pxc-client-5cf6f579c9-2bnc7 + wait_pod pxc-client-5cf6f579c9-2bnc7 + local pod=pxc-client-5cf6f579c9-2bnc7 + local max_retry=480 + local ns= ++ echo pxc-client-5cf6f579c9-2bnc7 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-5cf6f579c9-2bnc7 condition met pxc-client-5cf6f579c9-2bnc7.Ok + set +o xtrace + '[' '!' -s /tmp/tmp.gpxkUFr4JN/select-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/select-1.sql /tmp/tmp.gpxkUFr4JN/select-1.sql + for i in '$(seq 0 $((size - 1)))' + compare_mysql_cmd select-1 'SELECT * from myApp.myApp;' '-h proxy-protocol-pxc-1.proxy-protocol-pxc -uroot -proot_password -P33062' + local command_id=select-1 + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h proxy-protocol-pxc-1.proxy-protocol-pxc -uroot -proot_password -P33062' + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/select-1.sql + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.0 ]] + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/select-1-80.sql ']' + run_mysql 'SELECT * from myApp.myApp;' '-h proxy-protocol-pxc-1.proxy-protocol-pxc -uroot -proot_password -P33062' + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h proxy-protocol-pxc-1.proxy-protocol-pxc -uroot -proot_password -P33062' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ArxedH9Cwf +++ mktemp ++ local LAST_ERR=/tmp/tmp.qqLeZff1Oj ++ 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.ArxedH9Cwf ++ cat /tmp/tmp.qqLeZff1Oj ++ rm /tmp/tmp.ArxedH9Cwf /tmp/tmp.qqLeZff1Oj ++ return 0 + client_pod=pxc-client-5cf6f579c9-2bnc7 + wait_pod pxc-client-5cf6f579c9-2bnc7 + local pod=pxc-client-5cf6f579c9-2bnc7 + local max_retry=480 + local ns= ++ echo pxc-client-5cf6f579c9-2bnc7 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-5cf6f579c9-2bnc7 condition met pxc-client-5cf6f579c9-2bnc7.Ok + set +o xtrace + '[' '!' -s /tmp/tmp.gpxkUFr4JN/select-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/select-1.sql /tmp/tmp.gpxkUFr4JN/select-1.sql + for i in '$(seq 0 $((size - 1)))' + compare_mysql_cmd select-1 'SELECT * from myApp.myApp;' '-h proxy-protocol-pxc-2.proxy-protocol-pxc -uroot -proot_password -P33062' + local command_id=select-1 + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h proxy-protocol-pxc-2.proxy-protocol-pxc -uroot -proot_password -P33062' + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/select-1.sql + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.0 ]] + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/select-1-80.sql ']' + run_mysql 'SELECT * from myApp.myApp;' '-h proxy-protocol-pxc-2.proxy-protocol-pxc -uroot -proot_password -P33062' + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h proxy-protocol-pxc-2.proxy-protocol-pxc -uroot -proot_password -P33062' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.dNqhCZRP9D +++ mktemp ++ local LAST_ERR=/tmp/tmp.Enp50iye4L ++ 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.dNqhCZRP9D ++ cat /tmp/tmp.Enp50iye4L ++ rm /tmp/tmp.dNqhCZRP9D /tmp/tmp.Enp50iye4L ++ return 0 + client_pod=pxc-client-5cf6f579c9-2bnc7 + wait_pod pxc-client-5cf6f579c9-2bnc7 + local pod=pxc-client-5cf6f579c9-2bnc7 + local max_retry=480 + local ns= ++ echo pxc-client-5cf6f579c9-2bnc7 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-5cf6f579c9-2bnc7 condition met pxc-client-5cf6f579c9-2bnc7.Ok + set +o xtrace + '[' '!' -s /tmp/tmp.gpxkUFr4JN/select-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/select-1.sql /tmp/tmp.gpxkUFr4JN/select-1.sql ++ is_keyring_plugin_in_use proxy-protocol ++ local cluster=proxy-protocol ++ kubectl_bin exec -it proxy-protocol-pxc-0 -c pxc -- bash -c 'cat /etc/mysql/node.cnf' ++ egrep -o 'early-plugin-load=keyring_\w+.so' +++ mktemp ++ local LAST_OUT=/tmp/tmp.DxxglCxWbX +++ mktemp ++ local LAST_ERR=/tmp/tmp.f08apcedfB ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl exec -it proxy-protocol-pxc-0 -c pxc -- bash -c 'cat /etc/mysql/node.cnf' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.DxxglCxWbX ++ cat /tmp/tmp.f08apcedfB Unable to use a TTY - input is not a terminal or the right kind of file ++ rm /tmp/tmp.DxxglCxWbX /tmp/tmp.f08apcedfB ++ return 0 + '[' '' ']' + sleep 120 ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].status.podIP}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.d4IGHsOuFW +++ mktemp ++ local LAST_ERR=/tmp/tmp.lTPBKHzvMS ++ 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[].status.podIP}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.d4IGHsOuFW ++ cat /tmp/tmp.lTPBKHzvMS ++ rm /tmp/tmp.d4IGHsOuFW /tmp/tmp.lTPBKHzvMS ++ return 0 + client_ip=10.252.218.15 + '[' 0 -eq 1 ']' + [[ -n '' ]] ++ get_service_endpoint proxy-protocol-haproxy ++ local service=proxy-protocol-haproxy +++ kubectl_bin get service/proxy-protocol-haproxy -o json +++ jq '.status.loadBalancer.ingress[].hostname' +++ sed -e 's/^"//; s/"$//;' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.LPBbdZ8ZdX ++++ mktemp +++ local LAST_ERR=/tmp/tmp.AIK53jub7V +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get service/proxy-protocol-haproxy -o json +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.LPBbdZ8ZdX +++ cat /tmp/tmp.AIK53jub7V +++ rm /tmp/tmp.LPBbdZ8ZdX /tmp/tmp.AIK53jub7V +++ return 0 ++ local hostname=null ++ '[' -n null -a null '!=' null ']' +++ kubectl_bin get service/proxy-protocol-haproxy -o json +++ jq '.status.loadBalancer.ingress[].ip' +++ sed -e 's/^"//; s/"$//;' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.mBQGqz15fX ++++ mktemp +++ local LAST_ERR=/tmp/tmp.DOgTmmUejD +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get service/proxy-protocol-haproxy -o json +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.mBQGqz15fX +++ cat /tmp/tmp.DOgTmmUejD +++ rm /tmp/tmp.mBQGqz15fX /tmp/tmp.DOgTmmUejD +++ return 0 ++ local ip=34.172.50.44 ++ '[' -n 34.172.50.44 -a 34.172.50.44 '!=' null ']' ++ echo 34.172.50.44 ++ return + service_ip=34.172.50.44 + desc 'check if service and statefulset created with expected config' + set +o xtrace ----------------------------------------------------------------------------------- check if service and statefulset created with expected config ----------------------------------------------------------------------------------- + compare_kubectl statefulset/proxy-protocol-pxc + local resource=statefulset/proxy-protocol-pxc + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-pxc.yml + local new_result=/tmp/tmp.gpxkUFr4JN/statefulset_proxy-protocol-pxc.yml + desc 'compare statefulset/proxy-protocol-pxc-' + set +o xtrace ----------------------------------------------------------------------------------- compare statefulset/proxy-protocol-pxc- ----------------------------------------------------------------------------------- + '[' 0 = 1 -a -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-pxc-eks.yml ']' + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.0 ]] + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-pxc-80.yml ']' + version_gt 1.27 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.27' ++ bc -l + '[' 0 -eq 1 ']' + return 1 + version_gt 1.24 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.24' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-pxc-k124.yml ']' + version_gt 1.22 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.22' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-pxc-k122.yml ']' + version_gt 1.21 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.21' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-pxc-k121.yml ']' + '[' '!' -z '' -a -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-pxc-oc.yml ']' + '[' 0 = 1 -a -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-pxc-eks.yml ']' + kubectl_bin get -o yaml statefulset/proxy-protocol-pxc ++ mktemp + yq eval ' del(.metadata.managedFields) | del(.. | select(has("creationTimestamp")).creationTimestamp) | del(.. | select(has("namespace")).namespace) | del(.. | select(has("uid")).uid) | del(.metadata.resourceVersion) | del(.spec.template.spec.containers[].env[] | select(.name == "CLUSTER_HASH")) | del(.spec.template.spec.containers[].env[] | select(.name == "S3_BUCKET_PATH")) | del(.spec.template.spec.containers[].env[] | select(.name == "BACKUP_PATH")) | del(.spec.template.spec.containers[].env[] | select(.name == "S3_BUCKET_URL")) | del(.spec.template.spec.containers[].env[] | select(.name == "AZURE_CONTAINER_NAME")) | del(.metadata.selfLink) | del(.metadata.deletionTimestamp) | del(.metadata.annotations."kubernetes.io/psp") | del(.metadata.annotations."batch.kubernetes.io/job-tracking") | del(.metadata.annotations."cloud.google.com/neg") | del(.metadata.annotations."k8s.v1.cni.cncf.io*") | del(.metadata.annotations."k8s.ovn.org/pod-networks") | del(.spec.template.metadata.annotations."last-applied-secret") | del(.. | select(has("batch.kubernetes.io/controller-uid"))."batch.kubernetes.io/controller-uid") | del(.. | select(has("image")).image) | del(.. | select(has("clusterIP")).clusterIP) | del(.. | select(has("clusterIPs")).clusterIPs) | del(.. | select(has("dataSource")).dataSource) | del(.. | select(has("procMount")).procMount) | del(.. | select(has("storageClassName")).storageClassName) | del(.. | select(has("finalizers")).finalizers) | del(.. | select(has("kubernetes.io/pvc-protection"))."kubernetes.io/pvc-protection") | del(.. | select(has("volumeName")).volumeName) | del(.. | select(has("volume.beta.kubernetes.io/storage-provisioner"))."volume.beta.kubernetes.io/storage-provisioner") | del(.. | select(has("volume.kubernetes.io/storage-provisioner"))."volume.kubernetes.io/storage-provisioner") | del(.spec.volumeMode) | del(.spec.nodeName) | del(.. | select(has("volume.kubernetes.io/selected-node"))."volume.kubernetes.io/selected-node") | del(.. | select(has("percona.com/last-config-hash"))."percona.com/last-config-hash") | del(.. | select(has("percona.com/configuration-hash"))."percona.com/configuration-hash") | del(.. | select(has("percona.com/env-secret-config-hash"))."percona.com/env-secret-config-hash") | del(.. | select(has("percona.com/ssl-hash"))."percona.com/ssl-hash") | del(.. | select(has("percona.com/ssl-internal-hash"))."percona.com/ssl-internal-hash") | del(.spec.volumeClaimTemplates[].spec.volumeMode | select(. == "Filesystem")) | del(.. | select(has("healthCheckNodePort")).healthCheckNodePort) | del(.. | select(has("nodePort")).nodePort) | del(.. | select(has("imagePullSecrets")).imagePullSecrets) | del(.. | select(has("enableServiceLinks")).enableServiceLinks) | del(.status) | del(.spec.volumeClaimTemplates[].apiVersion) | del(.spec.volumeClaimTemplates[].kind) | del(.metadata.ownerReferences[].apiVersion) | del(.. | select(has("controller-uid")).controller-uid) | del(.. | select(has("preemptionPolicy")).preemptionPolicy) | del(.spec.ipFamilies) | del(.spec.ipFamilyPolicy) | (.. | select(. == "policy/v1beta1")) = "policy/v1" | del(.. | select(has("kubernetes.io/hostname"))."kubernetes.io/hostname") | (.. | select(tag == "!!str")) |= sub("proxy-protocol-2189", "namespace") | (.. | select(tag == "!!str")) |= sub("kube-api-access-.*", "kube-api-access") | del(.. | select(has("annotations")).annotations | select(length==0)) | del(.. | select(.[] == "percona-xtradb-cluster-operator-workload-token*"))' - + local LAST_OUT=/tmp/tmp.Ei3fuRGRuu ++ mktemp + local LAST_ERR=/tmp/tmp.5K3CMKWWSr + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get -o yaml statefulset/proxy-protocol-pxc + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.Ei3fuRGRuu + cat /tmp/tmp.5K3CMKWWSr + rm /tmp/tmp.Ei3fuRGRuu /tmp/tmp.5K3CMKWWSr + return 0 + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-pxc.yml /tmp/tmp.gpxkUFr4JN/statefulset_proxy-protocol-pxc.yml + compare_kubectl statefulset/proxy-protocol-haproxy + local resource=statefulset/proxy-protocol-haproxy + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-haproxy.yml + local new_result=/tmp/tmp.gpxkUFr4JN/statefulset_proxy-protocol-haproxy.yml + desc 'compare statefulset/proxy-protocol-haproxy-' + set +o xtrace ----------------------------------------------------------------------------------- compare statefulset/proxy-protocol-haproxy- ----------------------------------------------------------------------------------- + '[' 0 = 1 -a -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-haproxy-eks.yml ']' + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.0 ]] + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-haproxy-80.yml ']' + version_gt 1.27 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.27' ++ bc -l + '[' 0 -eq 1 ']' + return 1 + version_gt 1.24 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.24' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-haproxy-k124.yml ']' + version_gt 1.22 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.22' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-haproxy-k122.yml ']' + version_gt 1.21 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.21' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-haproxy-k121.yml ']' + '[' '!' -z '' -a -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-haproxy-oc.yml ']' + '[' 0 = 1 -a -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-haproxy-eks.yml ']' + kubectl_bin get -o yaml statefulset/proxy-protocol-haproxy ++ mktemp + yq eval ' del(.metadata.managedFields) | del(.. | select(has("creationTimestamp")).creationTimestamp) | del(.. | select(has("namespace")).namespace) | del(.. | select(has("uid")).uid) | del(.metadata.resourceVersion) | del(.spec.template.spec.containers[].env[] | select(.name == "CLUSTER_HASH")) | del(.spec.template.spec.containers[].env[] | select(.name == "S3_BUCKET_PATH")) | del(.spec.template.spec.containers[].env[] | select(.name == "BACKUP_PATH")) | del(.spec.template.spec.containers[].env[] | select(.name == "S3_BUCKET_URL")) | del(.spec.template.spec.containers[].env[] | select(.name == "AZURE_CONTAINER_NAME")) | del(.metadata.selfLink) | del(.metadata.deletionTimestamp) | del(.metadata.annotations."kubernetes.io/psp") | del(.metadata.annotations."batch.kubernetes.io/job-tracking") | del(.metadata.annotations."cloud.google.com/neg") | del(.metadata.annotations."k8s.v1.cni.cncf.io*") | del(.metadata.annotations."k8s.ovn.org/pod-networks") | del(.spec.template.metadata.annotations."last-applied-secret") | del(.. | select(has("batch.kubernetes.io/controller-uid"))."batch.kubernetes.io/controller-uid") | del(.. | select(has("image")).image) | del(.. | select(has("clusterIP")).clusterIP) | del(.. | select(has("clusterIPs")).clusterIPs) | del(.. | select(has("dataSource")).dataSource) | del(.. | select(has("procMount")).procMount) | del(.. | select(has("storageClassName")).storageClassName) | del(.. | select(has("finalizers")).finalizers) | del(.. | select(has("kubernetes.io/pvc-protection"))."kubernetes.io/pvc-protection") | del(.. | select(has("volumeName")).volumeName) | del(.. | select(has("volume.beta.kubernetes.io/storage-provisioner"))."volume.beta.kubernetes.io/storage-provisioner") | del(.. | select(has("volume.kubernetes.io/storage-provisioner"))."volume.kubernetes.io/storage-provisioner") | del(.spec.volumeMode) | del(.spec.nodeName) | del(.. | select(has("volume.kubernetes.io/selected-node"))."volume.kubernetes.io/selected-node") | del(.. | select(has("percona.com/last-config-hash"))."percona.com/last-config-hash") | del(.. | select(has("percona.com/configuration-hash"))."percona.com/configuration-hash") | del(.. | select(has("percona.com/env-secret-config-hash"))."percona.com/env-secret-config-hash") | del(.. | select(has("percona.com/ssl-hash"))."percona.com/ssl-hash") | del(.. | select(has("percona.com/ssl-internal-hash"))."percona.com/ssl-internal-hash") | del(.spec.volumeClaimTemplates[].spec.volumeMode | select(. == "Filesystem")) | del(.. | select(has("healthCheckNodePort")).healthCheckNodePort) | del(.. | select(has("nodePort")).nodePort) | del(.. | select(has("imagePullSecrets")).imagePullSecrets) | del(.. | select(has("enableServiceLinks")).enableServiceLinks) | del(.status) | del(.spec.volumeClaimTemplates[].apiVersion) | del(.spec.volumeClaimTemplates[].kind) | del(.metadata.ownerReferences[].apiVersion) | del(.. | select(has("controller-uid")).controller-uid) | del(.. | select(has("preemptionPolicy")).preemptionPolicy) | del(.spec.ipFamilies) | del(.spec.ipFamilyPolicy) | (.. | select(. == "policy/v1beta1")) = "policy/v1" | del(.. | select(has("kubernetes.io/hostname"))."kubernetes.io/hostname") | (.. | select(tag == "!!str")) |= sub("proxy-protocol-2189", "namespace") | (.. | select(tag == "!!str")) |= sub("kube-api-access-.*", "kube-api-access") | del(.. | select(has("annotations")).annotations | select(length==0)) | del(.. | select(.[] == "percona-xtradb-cluster-operator-workload-token*"))' - + local LAST_OUT=/tmp/tmp.zWgD3CouWC ++ mktemp + local LAST_ERR=/tmp/tmp.UobJerZxuJ + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get -o yaml statefulset/proxy-protocol-haproxy + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.zWgD3CouWC + cat /tmp/tmp.UobJerZxuJ + rm /tmp/tmp.zWgD3CouWC /tmp/tmp.UobJerZxuJ + return 0 + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-haproxy.yml /tmp/tmp.gpxkUFr4JN/statefulset_proxy-protocol-haproxy.yml + compare_kubectl service/proxy-protocol-pxc + local resource=service/proxy-protocol-pxc + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-pxc.yml + local new_result=/tmp/tmp.gpxkUFr4JN/service_proxy-protocol-pxc.yml + desc 'compare service/proxy-protocol-pxc-' + set +o xtrace ----------------------------------------------------------------------------------- compare service/proxy-protocol-pxc- ----------------------------------------------------------------------------------- + '[' 0 = 1 -a -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-pxc-eks.yml ']' + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.0 ]] + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-pxc-80.yml ']' + version_gt 1.27 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.27' ++ bc -l + '[' 0 -eq 1 ']' + return 1 + version_gt 1.24 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.24' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-pxc-k124.yml ']' + version_gt 1.22 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.22' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-pxc-k122.yml ']' + expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-pxc-k122.yml + '[' '!' -z '' -a -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-pxc-k122-oc.yml ']' + '[' 0 = 1 -a -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-pxc-k122-eks.yml ']' + kubectl_bin get -o yaml service/proxy-protocol-pxc + yq eval ' del(.metadata.managedFields) | del(.. | select(has("creationTimestamp")).creationTimestamp) | del(.. | select(has("namespace")).namespace) | del(.. | select(has("uid")).uid) | del(.metadata.resourceVersion) | del(.spec.template.spec.containers[].env[] | select(.name == "CLUSTER_HASH")) | del(.spec.template.spec.containers[].env[] | select(.name == "S3_BUCKET_PATH")) | del(.spec.template.spec.containers[].env[] | select(.name == "BACKUP_PATH")) | del(.spec.template.spec.containers[].env[] | select(.name == "S3_BUCKET_URL")) | del(.spec.template.spec.containers[].env[] | select(.name == "AZURE_CONTAINER_NAME")) | del(.metadata.selfLink) | del(.metadata.deletionTimestamp) | del(.metadata.annotations."kubernetes.io/psp") | del(.metadata.annotations."batch.kubernetes.io/job-tracking") | del(.metadata.annotations."cloud.google.com/neg") | del(.metadata.annotations."k8s.v1.cni.cncf.io*") | del(.metadata.annotations."k8s.ovn.org/pod-networks") | del(.spec.template.metadata.annotations."last-applied-secret") | del(.. | select(has("batch.kubernetes.io/controller-uid"))."batch.kubernetes.io/controller-uid") | del(.. | select(has("image")).image) | del(.. | select(has("clusterIP")).clusterIP) | del(.. | select(has("clusterIPs")).clusterIPs) | del(.. | select(has("dataSource")).dataSource) | del(.. | select(has("procMount")).procMount) | del(.. | select(has("storageClassName")).storageClassName) | del(.. | select(has("finalizers")).finalizers) | del(.. | select(has("kubernetes.io/pvc-protection"))."kubernetes.io/pvc-protection") | del(.. | select(has("volumeName")).volumeName) | del(.. | select(has("volume.beta.kubernetes.io/storage-provisioner"))."volume.beta.kubernetes.io/storage-provisioner") | del(.. | select(has("volume.kubernetes.io/storage-provisioner"))."volume.kubernetes.io/storage-provisioner") | del(.spec.volumeMode) | del(.spec.nodeName) | del(.. | select(has("volume.kubernetes.io/selected-node"))."volume.kubernetes.io/selected-node") | del(.. | select(has("percona.com/last-config-hash"))."percona.com/last-config-hash") | del(.. | select(has("percona.com/configuration-hash"))."percona.com/configuration-hash") | del(.. | select(has("percona.com/env-secret-config-hash"))."percona.com/env-secret-config-hash") | del(.. | select(has("percona.com/ssl-hash"))."percona.com/ssl-hash") | del(.. | select(has("percona.com/ssl-internal-hash"))."percona.com/ssl-internal-hash") | del(.spec.volumeClaimTemplates[].spec.volumeMode | select(. == "Filesystem")) | del(.. | select(has("healthCheckNodePort")).healthCheckNodePort) | del(.. | select(has("nodePort")).nodePort) | del(.. | select(has("imagePullSecrets")).imagePullSecrets) | del(.. | select(has("enableServiceLinks")).enableServiceLinks) | del(.status) | del(.spec.volumeClaimTemplates[].apiVersion) | del(.spec.volumeClaimTemplates[].kind) | del(.metadata.ownerReferences[].apiVersion) | del(.. | select(has("controller-uid")).controller-uid) | del(.. | select(has("preemptionPolicy")).preemptionPolicy) | del(.spec.ipFamilies) | del(.spec.ipFamilyPolicy) | (.. | select(. == "policy/v1beta1")) = "policy/v1" | del(.. | select(has("kubernetes.io/hostname"))."kubernetes.io/hostname") | (.. | select(tag == "!!str")) |= sub("proxy-protocol-2189", "namespace") | (.. | select(tag == "!!str")) |= sub("kube-api-access-.*", "kube-api-access") | del(.. | select(has("annotations")).annotations | select(length==0)) | del(.. | select(.[] == "percona-xtradb-cluster-operator-workload-token*"))' - ++ mktemp + local LAST_OUT=/tmp/tmp.VgTYQWNVhI ++ mktemp + local LAST_ERR=/tmp/tmp.PvHx7p9dDr + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get -o yaml service/proxy-protocol-pxc + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.VgTYQWNVhI + cat /tmp/tmp.PvHx7p9dDr + rm /tmp/tmp.VgTYQWNVhI /tmp/tmp.PvHx7p9dDr + return 0 + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-pxc-k122.yml /tmp/tmp.gpxkUFr4JN/service_proxy-protocol-pxc.yml + compare_kubectl service/proxy-protocol-haproxy + local resource=service/proxy-protocol-haproxy + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy.yml + local new_result=/tmp/tmp.gpxkUFr4JN/service_proxy-protocol-haproxy.yml + desc 'compare service/proxy-protocol-haproxy-' + set +o xtrace ----------------------------------------------------------------------------------- compare service/proxy-protocol-haproxy- ----------------------------------------------------------------------------------- + '[' 0 = 1 -a -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-eks.yml ']' + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.0 ]] + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-80.yml ']' + version_gt 1.27 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.27' ++ bc -l + '[' 0 -eq 1 ']' + return 1 + version_gt 1.24 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.24' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-k124.yml ']' + version_gt 1.22 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.22' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-k122.yml ']' + expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-k122.yml + '[' '!' -z '' -a -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-k122-oc.yml ']' + '[' 0 = 1 -a -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-k122-eks.yml ']' + kubectl_bin get -o yaml service/proxy-protocol-haproxy ++ mktemp + yq eval ' del(.metadata.managedFields) | del(.. | select(has("creationTimestamp")).creationTimestamp) | del(.. | select(has("namespace")).namespace) | del(.. | select(has("uid")).uid) | del(.metadata.resourceVersion) | del(.spec.template.spec.containers[].env[] | select(.name == "CLUSTER_HASH")) | del(.spec.template.spec.containers[].env[] | select(.name == "S3_BUCKET_PATH")) | del(.spec.template.spec.containers[].env[] | select(.name == "BACKUP_PATH")) | del(.spec.template.spec.containers[].env[] | select(.name == "S3_BUCKET_URL")) | del(.spec.template.spec.containers[].env[] | select(.name == "AZURE_CONTAINER_NAME")) | del(.metadata.selfLink) | del(.metadata.deletionTimestamp) | del(.metadata.annotations."kubernetes.io/psp") | del(.metadata.annotations."batch.kubernetes.io/job-tracking") | del(.metadata.annotations."cloud.google.com/neg") | del(.metadata.annotations."k8s.v1.cni.cncf.io*") | del(.metadata.annotations."k8s.ovn.org/pod-networks") | del(.spec.template.metadata.annotations."last-applied-secret") | del(.. | select(has("batch.kubernetes.io/controller-uid"))."batch.kubernetes.io/controller-uid") | del(.. | select(has("image")).image) | del(.. | select(has("clusterIP")).clusterIP) | del(.. | select(has("clusterIPs")).clusterIPs) | del(.. | select(has("dataSource")).dataSource) | del(.. | select(has("procMount")).procMount) | del(.. | select(has("storageClassName")).storageClassName) | del(.. | select(has("finalizers")).finalizers) | del(.. | select(has("kubernetes.io/pvc-protection"))."kubernetes.io/pvc-protection") | del(.. | select(has("volumeName")).volumeName) | del(.. | select(has("volume.beta.kubernetes.io/storage-provisioner"))."volume.beta.kubernetes.io/storage-provisioner") | del(.. | select(has("volume.kubernetes.io/storage-provisioner"))."volume.kubernetes.io/storage-provisioner") | del(.spec.volumeMode) | del(.spec.nodeName) | del(.. | select(has("volume.kubernetes.io/selected-node"))."volume.kubernetes.io/selected-node") | del(.. | select(has("percona.com/last-config-hash"))."percona.com/last-config-hash") | del(.. | select(has("percona.com/configuration-hash"))."percona.com/configuration-hash") | del(.. | select(has("percona.com/env-secret-config-hash"))."percona.com/env-secret-config-hash") | del(.. | select(has("percona.com/ssl-hash"))."percona.com/ssl-hash") | del(.. | select(has("percona.com/ssl-internal-hash"))."percona.com/ssl-internal-hash") | del(.spec.volumeClaimTemplates[].spec.volumeMode | select(. == "Filesystem")) | del(.. | select(has("healthCheckNodePort")).healthCheckNodePort) | del(.. | select(has("nodePort")).nodePort) | del(.. | select(has("imagePullSecrets")).imagePullSecrets) | del(.. | select(has("enableServiceLinks")).enableServiceLinks) | del(.status) | del(.spec.volumeClaimTemplates[].apiVersion) | del(.spec.volumeClaimTemplates[].kind) | del(.metadata.ownerReferences[].apiVersion) | del(.. | select(has("controller-uid")).controller-uid) | del(.. | select(has("preemptionPolicy")).preemptionPolicy) | del(.spec.ipFamilies) | del(.spec.ipFamilyPolicy) | (.. | select(. == "policy/v1beta1")) = "policy/v1" | del(.. | select(has("kubernetes.io/hostname"))."kubernetes.io/hostname") | (.. | select(tag == "!!str")) |= sub("proxy-protocol-2189", "namespace") | (.. | select(tag == "!!str")) |= sub("kube-api-access-.*", "kube-api-access") | del(.. | select(has("annotations")).annotations | select(length==0)) | del(.. | select(.[] == "percona-xtradb-cluster-operator-workload-token*"))' - + local LAST_OUT=/tmp/tmp.KW077AbOWR ++ mktemp + local LAST_ERR=/tmp/tmp.RpvFILTdKg + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get -o yaml service/proxy-protocol-haproxy + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.KW077AbOWR + cat /tmp/tmp.RpvFILTdKg + rm /tmp/tmp.KW077AbOWR /tmp/tmp.RpvFILTdKg + return 0 + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-k122.yml /tmp/tmp.gpxkUFr4JN/service_proxy-protocol-haproxy.yml + compare_kubectl service/proxy-protocol-haproxy-replicas + local resource=service/proxy-protocol-haproxy-replicas + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-replicas.yml + local new_result=/tmp/tmp.gpxkUFr4JN/service_proxy-protocol-haproxy-replicas.yml + desc 'compare service/proxy-protocol-haproxy-replicas-' + set +o xtrace ----------------------------------------------------------------------------------- compare service/proxy-protocol-haproxy-replicas- ----------------------------------------------------------------------------------- + '[' 0 = 1 -a -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-replicas-eks.yml ']' + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 =~ 8\.0 ]] + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-replicas-80.yml ']' + version_gt 1.27 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.27' ++ bc -l + '[' 0 -eq 1 ']' + return 1 + version_gt 1.24 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.24' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-replicas-k124.yml ']' + version_gt 1.22 + desc 'return true if kubernetes version equal or greater than desired' + set +o xtrace ----------------------------------------------------------------------------------- return true if kubernetes version equal or greater than desired ----------------------------------------------------------------------------------- ++ echo '1.25 >= 1.22' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-replicas-k122.yml ']' + expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-replicas-k122.yml + '[' '!' -z '' -a -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-replicas-k122-oc.yml ']' + '[' 0 = 1 -a -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-replicas-k122-eks.yml ']' + kubectl_bin get -o yaml service/proxy-protocol-haproxy-replicas + yq eval ' del(.metadata.managedFields) | del(.. | select(has("creationTimestamp")).creationTimestamp) | del(.. | select(has("namespace")).namespace) | del(.. | select(has("uid")).uid) | del(.metadata.resourceVersion) | del(.spec.template.spec.containers[].env[] | select(.name == "CLUSTER_HASH")) | del(.spec.template.spec.containers[].env[] | select(.name == "S3_BUCKET_PATH")) | del(.spec.template.spec.containers[].env[] | select(.name == "BACKUP_PATH")) | del(.spec.template.spec.containers[].env[] | select(.name == "S3_BUCKET_URL")) | del(.spec.template.spec.containers[].env[] | select(.name == "AZURE_CONTAINER_NAME")) | del(.metadata.selfLink) | del(.metadata.deletionTimestamp) | del(.metadata.annotations."kubernetes.io/psp") | del(.metadata.annotations."batch.kubernetes.io/job-tracking") | del(.metadata.annotations."cloud.google.com/neg") | del(.metadata.annotations."k8s.v1.cni.cncf.io*") | del(.metadata.annotations."k8s.ovn.org/pod-networks") | del(.spec.template.metadata.annotations."last-applied-secret") | del(.. | select(has("batch.kubernetes.io/controller-uid"))."batch.kubernetes.io/controller-uid") | del(.. | select(has("image")).image) | del(.. | select(has("clusterIP")).clusterIP) | del(.. | select(has("clusterIPs")).clusterIPs) | del(.. | select(has("dataSource")).dataSource) | del(.. | select(has("procMount")).procMount) | del(.. | select(has("storageClassName")).storageClassName) | del(.. | select(has("finalizers")).finalizers) | del(.. | select(has("kubernetes.io/pvc-protection"))."kubernetes.io/pvc-protection") | del(.. | select(has("volumeName")).volumeName) | del(.. | select(has("volume.beta.kubernetes.io/storage-provisioner"))."volume.beta.kubernetes.io/storage-provisioner") | del(.. | select(has("volume.kubernetes.io/storage-provisioner"))."volume.kubernetes.io/storage-provisioner") | del(.spec.volumeMode) | del(.spec.nodeName) | del(.. | select(has("volume.kubernetes.io/selected-node"))."volume.kubernetes.io/selected-node") | del(.. | select(has("percona.com/last-config-hash"))."percona.com/last-config-hash") | del(.. | select(has("percona.com/configuration-hash"))."percona.com/configuration-hash") | del(.. | select(has("percona.com/env-secret-config-hash"))."percona.com/env-secret-config-hash") | del(.. | select(has("percona.com/ssl-hash"))."percona.com/ssl-hash") | del(.. | select(has("percona.com/ssl-internal-hash"))."percona.com/ssl-internal-hash") | del(.spec.volumeClaimTemplates[].spec.volumeMode | select(. == "Filesystem")) | del(.. | select(has("healthCheckNodePort")).healthCheckNodePort) | del(.. | select(has("nodePort")).nodePort) | del(.. | select(has("imagePullSecrets")).imagePullSecrets) | del(.. | select(has("enableServiceLinks")).enableServiceLinks) | del(.status) | del(.spec.volumeClaimTemplates[].apiVersion) | del(.spec.volumeClaimTemplates[].kind) | del(.metadata.ownerReferences[].apiVersion) | del(.. | select(has("controller-uid")).controller-uid) | del(.. | select(has("preemptionPolicy")).preemptionPolicy) | del(.spec.ipFamilies) | del(.spec.ipFamilyPolicy) | (.. | select(. == "policy/v1beta1")) = "policy/v1" | del(.. | select(has("kubernetes.io/hostname"))."kubernetes.io/hostname") | (.. | select(tag == "!!str")) |= sub("proxy-protocol-2189", "namespace") | (.. | select(tag == "!!str")) |= sub("kube-api-access-.*", "kube-api-access") | del(.. | select(has("annotations")).annotations | select(length==0)) | ++ mktemp del(.. | select(.[] == "percona-xtradb-cluster-operator-workload-token*"))' - + local LAST_OUT=/tmp/tmp.QoDdD6nqVt ++ mktemp + local LAST_ERR=/tmp/tmp.ibJFOQiGQU + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get -o yaml service/proxy-protocol-haproxy-replicas + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.QoDdD6nqVt + cat /tmp/tmp.ibJFOQiGQU + rm /tmp/tmp.QoDdD6nqVt /tmp/tmp.ibJFOQiGQU + return 0 + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/compare/service_proxy-protocol-haproxy-replicas-k122.yml /tmp/tmp.gpxkUFr4JN/service_proxy-protocol-haproxy-replicas.yml + desc 'check if client ip visible in mysql processlist' + set +o xtrace ----------------------------------------------------------------------------------- check if client ip visible in mysql processlist ----------------------------------------------------------------------------------- ++ run_mysql 'show processlist;' '-h 34.172.50.44 -uroot -proot_password' ++ local 'command=show processlist;' ++ grep 'show processlist' ++ local 'uri=-h 34.172.50.44 -uroot -proot_password' ++ grep -c 10.252.218.15 +++ get_client_pod +++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.jVkhJ5RMHQ ++++ mktemp +++ local LAST_ERR=/tmp/tmp.IYMVfvQR34 +++ 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.jVkhJ5RMHQ +++ cat /tmp/tmp.IYMVfvQR34 +++ rm /tmp/tmp.jVkhJ5RMHQ /tmp/tmp.IYMVfvQR34 +++ return 0 ++ client_pod=pxc-client-5cf6f579c9-2bnc7 ++ wait_pod pxc-client-5cf6f579c9-2bnc7 ++ local pod=pxc-client-5cf6f579c9-2bnc7 ++ local max_retry=480 ++ local ns= +++ echo pxc-client-5cf6f579c9-2bnc7 +++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' +++ egrep '^(pxc|proxysql)$' ++ local container= ++ set +o xtrace pod/pxc-client-5cf6f579c9-2bnc7 condition met pxc-client-5cf6f579c9-2bnc7.Ok ++ set +o xtrace + nr_queries=1 + '[' 1 -ne 1 ']' + desc cleanup + set +o xtrace ----------------------------------------------------------------------------------- cleanup ----------------------------------------------------------------------------------- + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/conf/proxy-protocol.yml ++ mktemp + local LAST_OUT=/tmp/tmp.XXlC2iWrDZ ++ mktemp + local LAST_ERR=/tmp/tmp.6vclrRneap + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/conf/proxy-protocol.yml + exit_status=1 + set -e + '[' 1 '!=' 0 ']' + '[' 1 == 1 ']' + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1522/e2e-tests/proxy-protocol/conf/proxy-protocol.yml