Log: /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/logs/upgrade-proxysql-8-0.log WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1 WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1 + CLUSTER=upgrade-proxysql + CLUSTER_SIZE=3 + TARGET_OPERATOR_VER=1.15.0 + TARGET_IMAGE=perconalab/percona-xtradb-cluster-operator:PR-1706-347969f5 + TARGET_IMAGE_PXC=perconalab/percona-xtradb-cluster-operator:main-pxc8.0 + TARGET_IMAGE_PMM_CLIENT=perconalab/pmm-client:dev-latest + TARGET_IMAGE_PROXY=perconalab/percona-xtradb-cluster-operator:main-proxysql + TARGET_IMAGE_HAPROXY=perconalab/percona-xtradb-cluster-operator:main-haproxy + TARGET_IMAGE_BACKUP=perconalab/percona-xtradb-cluster-operator:main-pxc8.0-backup + [[ perconalab/percona-xtradb-cluster-operator:main-pxc8.0 == *\p\e\r\c\o\n\a\-\x\t\r\a\d\b\-\c\l\u\s\t\e\r\-\o\p\e\r\a\t\o\r* ]] ++ echo -n perconalab/percona-xtradb-cluster-operator:main-pxc8.0 ++ /usr/bin/sed -r 's/.*([0-9].[0-9])$/\1/' + PXC_VER=8.0 ++ curl -s https://check.percona.com/versions/v1/pxc-operator ++ jq -r '.versions[].operator' ++ sort -V ++ tail -n1 + INIT_OPERATOR_VER=1.14.0 + [[ 1.14.0 == \1\.\1\5\.\0 ]] + GIT_TAG=v1.14.0 ++ curl -s 'https://check.percona.com/versions/v1/pxc-operator/1.14.0/latest?databaseVersion=8.0' + INIT_OPERATOR_IMAGES='{"versions":[{"product":"pxc-operator","operator":"1.14.0","matrix":{"mongod":{},"pxc":{"8.0.36-28.1":{"imagePath":"percona/percona-xtradb-cluster:8.0.36-28.1","imageHash":"ed99f585a27257726a985fee5f50cd957f94f5b9ae70a5d2f0fa1e68336f3abe","imageHashArm64":"","status":"recommended","critical":false}},"pmm":{"2.41.2":{"imagePath":"percona/pmm-client:2.41.2","imageHash":"16d2499c1cbcc1af51bd3752fe7623b0d0a319ee128b12d41cadf8080d1ce56b","imageHashArm64":"","status":"recommended","critical":false}},"proxysql":{"2.5.5-1.2":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-proxysql2.5.5-1.2","imageHash":"fcd7c1366f26f3dbaeff65d7ee08c43bbb88838cec9a0085447c1b56c717870d","imageHashArm64":"","status":"recommended","critical":false}},"haproxy":{"2.8.5":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-haproxy","imageHash":"15b9dad6d59c7995456b92fb1b5c17501ecbc8bafb758ff6e7417d409f06bbbd","imageHashArm64":"","status":"recommended","critical":false}},"backup":{"8.0.35-2":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-pxc8.0.36-backup-pxb8.0.35","imageHash":"c17261dc7c40af2ab28510e702d4b6a2fb76b30001991fad3ddfa4271cc18157","imageHashArm64":"","status":"recommended","critical":false}},"operator":{"1.14.0":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0","imageHash":"e1b5b1d9db19f394f47b32f374a017d9debcf1e06325ab7bcc4b233da59f6f19","imageHashArm64":"2652b81a26be7b07e084e1ccbfe42e64143eb6a32e4529f1e4b27e1061dbc0b1","status":"recommended","critical":false}},"logCollector":{"1.14.0":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-logcollector","imageHash":"f8f56b8da5b1d9859dded3f89b7ce41c5b3ceba6d78f7d4152bd0b14bafc60f4","imageHashArm64":"","status":"recommended","critical":false}},"postgresql":{},"pgbackrest":{},"pgbackrestRepo":{},"pgbadger":{},"pgbouncer":{},"pxcOperator":{},"psmdbOperator":{},"pgOperatorApiserver":{},"pgOperatorEvent":{},"pgOperatorRmdata":{},"pgOperatorScheduler":{},"pgOperator":{},"pgOperatorDeployer":{},"psOperator":{},"mysql":{},"router":{},"orchestrator":{},"toolkit":{},"postgis":{}}}]}' + OPERATOR_NAME=percona-xtradb-cluster-operator ++ jq -r '.versions[].matrix.operator[].imagePath' ++ echo '{"versions":[{"product":"pxc-operator","operator":"1.14.0","matrix":{"mongod":{},"pxc":{"8.0.36-28.1":{"imagePath":"percona/percona-xtradb-cluster:8.0.36-28.1","imageHash":"ed99f585a27257726a985fee5f50cd957f94f5b9ae70a5d2f0fa1e68336f3abe","imageHashArm64":"","status":"recommended","critical":false}},"pmm":{"2.41.2":{"imagePath":"percona/pmm-client:2.41.2","imageHash":"16d2499c1cbcc1af51bd3752fe7623b0d0a319ee128b12d41cadf8080d1ce56b","imageHashArm64":"","status":"recommended","critical":false}},"proxysql":{"2.5.5-1.2":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-proxysql2.5.5-1.2","imageHash":"fcd7c1366f26f3dbaeff65d7ee08c43bbb88838cec9a0085447c1b56c717870d","imageHashArm64":"","status":"recommended","critical":false}},"haproxy":{"2.8.5":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-haproxy","imageHash":"15b9dad6d59c7995456b92fb1b5c17501ecbc8bafb758ff6e7417d409f06bbbd","imageHashArm64":"","status":"recommended","critical":false}},"backup":{"8.0.35-2":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-pxc8.0.36-backup-pxb8.0.35","imageHash":"c17261dc7c40af2ab28510e702d4b6a2fb76b30001991fad3ddfa4271cc18157","imageHashArm64":"","status":"recommended","critical":false}},"operator":{"1.14.0":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0","imageHash":"e1b5b1d9db19f394f47b32f374a017d9debcf1e06325ab7bcc4b233da59f6f19","imageHashArm64":"2652b81a26be7b07e084e1ccbfe42e64143eb6a32e4529f1e4b27e1061dbc0b1","status":"recommended","critical":false}},"logCollector":{"1.14.0":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-logcollector","imageHash":"f8f56b8da5b1d9859dded3f89b7ce41c5b3ceba6d78f7d4152bd0b14bafc60f4","imageHashArm64":"","status":"recommended","critical":false}},"postgresql":{},"pgbackrest":{},"pgbackrestRepo":{},"pgbadger":{},"pgbouncer":{},"pxcOperator":{},"psmdbOperator":{},"pgOperatorApiserver":{},"pgOperatorEvent":{},"pgOperatorRmdata":{},"pgOperatorScheduler":{},"pgOperator":{},"pgOperatorDeployer":{},"psOperator":{},"mysql":{},"router":{},"orchestrator":{},"toolkit":{},"postgis":{}}}]}' + IMAGE=percona/percona-xtradb-cluster-operator:1.14.0 ++ echo perconalab/percona-xtradb-cluster-operator:PR-1706-347969f5 ++ cut -d/ -f1 + [[ perconalab == \p\e\r\c\o\n\a\l\a\b ]] + IMAGE=perconalab/percona-xtradb-cluster-operator:1.14.0 ++ jq -r '.versions[].matrix.pxc[].imagePath' ++ echo '{"versions":[{"product":"pxc-operator","operator":"1.14.0","matrix":{"mongod":{},"pxc":{"8.0.36-28.1":{"imagePath":"percona/percona-xtradb-cluster:8.0.36-28.1","imageHash":"ed99f585a27257726a985fee5f50cd957f94f5b9ae70a5d2f0fa1e68336f3abe","imageHashArm64":"","status":"recommended","critical":false}},"pmm":{"2.41.2":{"imagePath":"percona/pmm-client:2.41.2","imageHash":"16d2499c1cbcc1af51bd3752fe7623b0d0a319ee128b12d41cadf8080d1ce56b","imageHashArm64":"","status":"recommended","critical":false}},"proxysql":{"2.5.5-1.2":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-proxysql2.5.5-1.2","imageHash":"fcd7c1366f26f3dbaeff65d7ee08c43bbb88838cec9a0085447c1b56c717870d","imageHashArm64":"","status":"recommended","critical":false}},"haproxy":{"2.8.5":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-haproxy","imageHash":"15b9dad6d59c7995456b92fb1b5c17501ecbc8bafb758ff6e7417d409f06bbbd","imageHashArm64":"","status":"recommended","critical":false}},"backup":{"8.0.35-2":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-pxc8.0.36-backup-pxb8.0.35","imageHash":"c17261dc7c40af2ab28510e702d4b6a2fb76b30001991fad3ddfa4271cc18157","imageHashArm64":"","status":"recommended","critical":false}},"operator":{"1.14.0":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0","imageHash":"e1b5b1d9db19f394f47b32f374a017d9debcf1e06325ab7bcc4b233da59f6f19","imageHashArm64":"2652b81a26be7b07e084e1ccbfe42e64143eb6a32e4529f1e4b27e1061dbc0b1","status":"recommended","critical":false}},"logCollector":{"1.14.0":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-logcollector","imageHash":"f8f56b8da5b1d9859dded3f89b7ce41c5b3ceba6d78f7d4152bd0b14bafc60f4","imageHashArm64":"","status":"recommended","critical":false}},"postgresql":{},"pgbackrest":{},"pgbackrestRepo":{},"pgbadger":{},"pgbouncer":{},"pxcOperator":{},"psmdbOperator":{},"pgOperatorApiserver":{},"pgOperatorEvent":{},"pgOperatorRmdata":{},"pgOperatorScheduler":{},"pgOperator":{},"pgOperatorDeployer":{},"psOperator":{},"mysql":{},"router":{},"orchestrator":{},"toolkit":{},"postgis":{}}}]}' + IMAGE_PXC=percona/percona-xtradb-cluster:8.0.36-28.1 ++ jq -r '.versions[].matrix.pmm[].imagePath' ++ echo '{"versions":[{"product":"pxc-operator","operator":"1.14.0","matrix":{"mongod":{},"pxc":{"8.0.36-28.1":{"imagePath":"percona/percona-xtradb-cluster:8.0.36-28.1","imageHash":"ed99f585a27257726a985fee5f50cd957f94f5b9ae70a5d2f0fa1e68336f3abe","imageHashArm64":"","status":"recommended","critical":false}},"pmm":{"2.41.2":{"imagePath":"percona/pmm-client:2.41.2","imageHash":"16d2499c1cbcc1af51bd3752fe7623b0d0a319ee128b12d41cadf8080d1ce56b","imageHashArm64":"","status":"recommended","critical":false}},"proxysql":{"2.5.5-1.2":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-proxysql2.5.5-1.2","imageHash":"fcd7c1366f26f3dbaeff65d7ee08c43bbb88838cec9a0085447c1b56c717870d","imageHashArm64":"","status":"recommended","critical":false}},"haproxy":{"2.8.5":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-haproxy","imageHash":"15b9dad6d59c7995456b92fb1b5c17501ecbc8bafb758ff6e7417d409f06bbbd","imageHashArm64":"","status":"recommended","critical":false}},"backup":{"8.0.35-2":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-pxc8.0.36-backup-pxb8.0.35","imageHash":"c17261dc7c40af2ab28510e702d4b6a2fb76b30001991fad3ddfa4271cc18157","imageHashArm64":"","status":"recommended","critical":false}},"operator":{"1.14.0":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0","imageHash":"e1b5b1d9db19f394f47b32f374a017d9debcf1e06325ab7bcc4b233da59f6f19","imageHashArm64":"2652b81a26be7b07e084e1ccbfe42e64143eb6a32e4529f1e4b27e1061dbc0b1","status":"recommended","critical":false}},"logCollector":{"1.14.0":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-logcollector","imageHash":"f8f56b8da5b1d9859dded3f89b7ce41c5b3ceba6d78f7d4152bd0b14bafc60f4","imageHashArm64":"","status":"recommended","critical":false}},"postgresql":{},"pgbackrest":{},"pgbackrestRepo":{},"pgbadger":{},"pgbouncer":{},"pxcOperator":{},"psmdbOperator":{},"pgOperatorApiserver":{},"pgOperatorEvent":{},"pgOperatorRmdata":{},"pgOperatorScheduler":{},"pgOperator":{},"pgOperatorDeployer":{},"psOperator":{},"mysql":{},"router":{},"orchestrator":{},"toolkit":{},"postgis":{}}}]}' + IMAGE_PMM_CLIENT=percona/pmm-client:2.41.2 ++ jq -r '.versions[].matrix.proxysql[].imagePath' ++ echo '{"versions":[{"product":"pxc-operator","operator":"1.14.0","matrix":{"mongod":{},"pxc":{"8.0.36-28.1":{"imagePath":"percona/percona-xtradb-cluster:8.0.36-28.1","imageHash":"ed99f585a27257726a985fee5f50cd957f94f5b9ae70a5d2f0fa1e68336f3abe","imageHashArm64":"","status":"recommended","critical":false}},"pmm":{"2.41.2":{"imagePath":"percona/pmm-client:2.41.2","imageHash":"16d2499c1cbcc1af51bd3752fe7623b0d0a319ee128b12d41cadf8080d1ce56b","imageHashArm64":"","status":"recommended","critical":false}},"proxysql":{"2.5.5-1.2":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-proxysql2.5.5-1.2","imageHash":"fcd7c1366f26f3dbaeff65d7ee08c43bbb88838cec9a0085447c1b56c717870d","imageHashArm64":"","status":"recommended","critical":false}},"haproxy":{"2.8.5":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-haproxy","imageHash":"15b9dad6d59c7995456b92fb1b5c17501ecbc8bafb758ff6e7417d409f06bbbd","imageHashArm64":"","status":"recommended","critical":false}},"backup":{"8.0.35-2":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-pxc8.0.36-backup-pxb8.0.35","imageHash":"c17261dc7c40af2ab28510e702d4b6a2fb76b30001991fad3ddfa4271cc18157","imageHashArm64":"","status":"recommended","critical":false}},"operator":{"1.14.0":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0","imageHash":"e1b5b1d9db19f394f47b32f374a017d9debcf1e06325ab7bcc4b233da59f6f19","imageHashArm64":"2652b81a26be7b07e084e1ccbfe42e64143eb6a32e4529f1e4b27e1061dbc0b1","status":"recommended","critical":false}},"logCollector":{"1.14.0":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-logcollector","imageHash":"f8f56b8da5b1d9859dded3f89b7ce41c5b3ceba6d78f7d4152bd0b14bafc60f4","imageHashArm64":"","status":"recommended","critical":false}},"postgresql":{},"pgbackrest":{},"pgbackrestRepo":{},"pgbadger":{},"pgbouncer":{},"pxcOperator":{},"psmdbOperator":{},"pgOperatorApiserver":{},"pgOperatorEvent":{},"pgOperatorRmdata":{},"pgOperatorScheduler":{},"pgOperator":{},"pgOperatorDeployer":{},"psOperator":{},"mysql":{},"router":{},"orchestrator":{},"toolkit":{},"postgis":{}}}]}' + IMAGE_PROXY=percona/percona-xtradb-cluster-operator:1.14.0-proxysql2.5.5-1.2 ++ echo '{"versions":[{"product":"pxc-operator","operator":"1.14.0","matrix":{"mongod":{},"pxc":{"8.0.36-28.1":{"imagePath":"percona/percona-xtradb-cluster:8.0.36-28.1","imageHash":"ed99f585a27257726a985fee5f50cd957f94f5b9ae70a5d2f0fa1e68336f3abe","imageHashArm64":"","status":"recommended","critical":false}},"pmm":{"2.41.2":{"imagePath":"percona/pmm-client:2.41.2","imageHash":"16d2499c1cbcc1af51bd3752fe7623b0d0a319ee128b12d41cadf8080d1ce56b","imageHashArm64":"","status":"recommended","critical":false}},"proxysql":{"2.5.5-1.2":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-proxysql2.5.5-1.2","imageHash":"fcd7c1366f26f3dbaeff65d7ee08c43bbb88838cec9a0085447c1b56c717870d","imageHashArm64":"","status":"recommended","critical":false}},"haproxy":{"2.8.5":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-haproxy","imageHash":"15b9dad6d59c7995456b92fb1b5c17501ecbc8bafb758ff6e7417d409f06bbbd","imageHashArm64":"","status":"recommended","critical":false}},"backup":{"8.0.35-2":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-pxc8.0.36-backup-pxb8.0.35","imageHash":"c17261dc7c40af2ab28510e702d4b6a2fb76b30001991fad3ddfa4271cc18157","imageHashArm64":"","status":"recommended","critical":false}},"operator":{"1.14.0":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0","imageHash":"e1b5b1d9db19f394f47b32f374a017d9debcf1e06325ab7bcc4b233da59f6f19","imageHashArm64":"2652b81a26be7b07e084e1ccbfe42e64143eb6a32e4529f1e4b27e1061dbc0b1","status":"recommended","critical":false}},"logCollector":{"1.14.0":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-logcollector","imageHash":"f8f56b8da5b1d9859dded3f89b7ce41c5b3ceba6d78f7d4152bd0b14bafc60f4","imageHashArm64":"","status":"recommended","critical":false}},"postgresql":{},"pgbackrest":{},"pgbackrestRepo":{},"pgbadger":{},"pgbouncer":{},"pxcOperator":{},"psmdbOperator":{},"pgOperatorApiserver":{},"pgOperatorEvent":{},"pgOperatorRmdata":{},"pgOperatorScheduler":{},"pgOperator":{},"pgOperatorDeployer":{},"psOperator":{},"mysql":{},"router":{},"orchestrator":{},"toolkit":{},"postgis":{}}}]}' ++ jq -r '.versions[].matrix.haproxy[].imagePath' + IMAGE_HAPROXY=percona/percona-xtradb-cluster-operator:1.14.0-haproxy ++ jq -r '.versions[].matrix.backup[].imagePath' ++ echo '{"versions":[{"product":"pxc-operator","operator":"1.14.0","matrix":{"mongod":{},"pxc":{"8.0.36-28.1":{"imagePath":"percona/percona-xtradb-cluster:8.0.36-28.1","imageHash":"ed99f585a27257726a985fee5f50cd957f94f5b9ae70a5d2f0fa1e68336f3abe","imageHashArm64":"","status":"recommended","critical":false}},"pmm":{"2.41.2":{"imagePath":"percona/pmm-client:2.41.2","imageHash":"16d2499c1cbcc1af51bd3752fe7623b0d0a319ee128b12d41cadf8080d1ce56b","imageHashArm64":"","status":"recommended","critical":false}},"proxysql":{"2.5.5-1.2":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-proxysql2.5.5-1.2","imageHash":"fcd7c1366f26f3dbaeff65d7ee08c43bbb88838cec9a0085447c1b56c717870d","imageHashArm64":"","status":"recommended","critical":false}},"haproxy":{"2.8.5":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-haproxy","imageHash":"15b9dad6d59c7995456b92fb1b5c17501ecbc8bafb758ff6e7417d409f06bbbd","imageHashArm64":"","status":"recommended","critical":false}},"backup":{"8.0.35-2":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-pxc8.0.36-backup-pxb8.0.35","imageHash":"c17261dc7c40af2ab28510e702d4b6a2fb76b30001991fad3ddfa4271cc18157","imageHashArm64":"","status":"recommended","critical":false}},"operator":{"1.14.0":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0","imageHash":"e1b5b1d9db19f394f47b32f374a017d9debcf1e06325ab7bcc4b233da59f6f19","imageHashArm64":"2652b81a26be7b07e084e1ccbfe42e64143eb6a32e4529f1e4b27e1061dbc0b1","status":"recommended","critical":false}},"logCollector":{"1.14.0":{"imagePath":"percona/percona-xtradb-cluster-operator:1.14.0-logcollector","imageHash":"f8f56b8da5b1d9859dded3f89b7ce41c5b3ceba6d78f7d4152bd0b14bafc60f4","imageHashArm64":"","status":"recommended","critical":false}},"postgresql":{},"pgbackrest":{},"pgbackrestRepo":{},"pgbadger":{},"pgbouncer":{},"pxcOperator":{},"psmdbOperator":{},"pgOperatorApiserver":{},"pgOperatorEvent":{},"pgOperatorRmdata":{},"pgOperatorScheduler":{},"pgOperator":{},"pgOperatorDeployer":{},"psOperator":{},"mysql":{},"router":{},"orchestrator":{},"toolkit":{},"postgis":{}}}]}' + IMAGE_BACKUP=percona/percona-xtradb-cluster-operator:1.14.0-pxc8.0.36-backup-pxb8.0.35 + [[ 1.15.0 == \1\.\1\4\.\0 ]] + main + deploy_cert_manager + desc 'deploy cert manager' + set +o xtrace ----------------------------------------------------------------------------------- deploy cert manager ----------------------------------------------------------------------------------- + kubectl_bin create namespace cert-manager ++ mktemp + local LAST_OUT=/tmp/tmp.4DxvnE2tLM ++ mktemp + local LAST_ERR=/tmp/tmp.s9NJZEyOK1 + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace cert-manager + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.4DxvnE2tLM namespace/cert-manager created + cat /tmp/tmp.s9NJZEyOK1 + rm /tmp/tmp.4DxvnE2tLM /tmp/tmp.s9NJZEyOK1 + return 0 + kubectl_bin label namespace cert-manager certmanager.k8s.io/disable-validation=true ++ mktemp + local LAST_OUT=/tmp/tmp.itU5PqvXg4 ++ mktemp + local LAST_ERR=/tmp/tmp.e87A9n71EK + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl label namespace cert-manager certmanager.k8s.io/disable-validation=true + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.itU5PqvXg4 namespace/cert-manager labeled + cat /tmp/tmp.e87A9n71EK + rm /tmp/tmp.itU5PqvXg4 /tmp/tmp.e87A9n71EK + return 0 + kubectl_bin apply -f https://github.com/jetstack/cert-manager/releases/download/v1.14.2/cert-manager.yaml --validate=false ++ mktemp + local LAST_OUT=/tmp/tmp.Pp0GCOVOlf ++ mktemp + local LAST_ERR=/tmp/tmp.iPdVhE1aS7 + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.14.2/cert-manager.yaml --validate=false + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.Pp0GCOVOlf namespace/cert-manager configured customresourcedefinition.apiextensions.k8s.io/certificaterequests.cert-manager.io unchanged customresourcedefinition.apiextensions.k8s.io/certificates.cert-manager.io unchanged customresourcedefinition.apiextensions.k8s.io/challenges.acme.cert-manager.io unchanged customresourcedefinition.apiextensions.k8s.io/clusterissuers.cert-manager.io unchanged customresourcedefinition.apiextensions.k8s.io/issuers.cert-manager.io unchanged customresourcedefinition.apiextensions.k8s.io/orders.acme.cert-manager.io unchanged serviceaccount/cert-manager-cainjector created serviceaccount/cert-manager created serviceaccount/cert-manager-webhook created clusterrole.rbac.authorization.k8s.io/cert-manager-cainjector unchanged clusterrole.rbac.authorization.k8s.io/cert-manager-controller-issuers unchanged clusterrole.rbac.authorization.k8s.io/cert-manager-controller-clusterissuers unchanged clusterrole.rbac.authorization.k8s.io/cert-manager-controller-certificates unchanged clusterrole.rbac.authorization.k8s.io/cert-manager-controller-orders unchanged clusterrole.rbac.authorization.k8s.io/cert-manager-controller-challenges unchanged clusterrole.rbac.authorization.k8s.io/cert-manager-controller-ingress-shim unchanged clusterrole.rbac.authorization.k8s.io/cert-manager-cluster-view unchanged clusterrole.rbac.authorization.k8s.io/cert-manager-view unchanged clusterrole.rbac.authorization.k8s.io/cert-manager-edit unchanged clusterrole.rbac.authorization.k8s.io/cert-manager-controller-approve:cert-manager-io unchanged clusterrole.rbac.authorization.k8s.io/cert-manager-controller-certificatesigningrequests unchanged clusterrole.rbac.authorization.k8s.io/cert-manager-webhook:subjectaccessreviews unchanged clusterrolebinding.rbac.authorization.k8s.io/cert-manager-cainjector unchanged clusterrolebinding.rbac.authorization.k8s.io/cert-manager-controller-issuers unchanged clusterrolebinding.rbac.authorization.k8s.io/cert-manager-controller-clusterissuers unchanged clusterrolebinding.rbac.authorization.k8s.io/cert-manager-controller-certificates unchanged clusterrolebinding.rbac.authorization.k8s.io/cert-manager-controller-orders unchanged clusterrolebinding.rbac.authorization.k8s.io/cert-manager-controller-challenges unchanged clusterrolebinding.rbac.authorization.k8s.io/cert-manager-controller-ingress-shim unchanged clusterrolebinding.rbac.authorization.k8s.io/cert-manager-controller-approve:cert-manager-io unchanged clusterrolebinding.rbac.authorization.k8s.io/cert-manager-controller-certificatesigningrequests unchanged clusterrolebinding.rbac.authorization.k8s.io/cert-manager-webhook:subjectaccessreviews configured role.rbac.authorization.k8s.io/cert-manager-cainjector:leaderelection unchanged role.rbac.authorization.k8s.io/cert-manager:leaderelection unchanged role.rbac.authorization.k8s.io/cert-manager-webhook:dynamic-serving created rolebinding.rbac.authorization.k8s.io/cert-manager-cainjector:leaderelection unchanged rolebinding.rbac.authorization.k8s.io/cert-manager:leaderelection configured rolebinding.rbac.authorization.k8s.io/cert-manager-webhook:dynamic-serving created service/cert-manager created service/cert-manager-webhook created deployment.apps/cert-manager-cainjector created deployment.apps/cert-manager created deployment.apps/cert-manager-webhook created mutatingwebhookconfiguration.admissionregistration.k8s.io/cert-manager-webhook configured validatingwebhookconfiguration.admissionregistration.k8s.io/cert-manager-webhook configured + cat /tmp/tmp.iPdVhE1aS7 Warning: resource namespaces/cert-manager is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically. + rm /tmp/tmp.Pp0GCOVOlf /tmp/tmp.iPdVhE1aS7 + return 0 + '[' '' == 4.10 ']' + sleep 70 + create_infra_gh upgrade-proxysql-2502 v1.14.0 + local ns=upgrade-proxysql-2502 + local git_tag=v1.14.0 + '[' -n pxc-operator ']' + create_namespace pxc-operator + local namespace=pxc-operator + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ sed s/NAMESPACE// ++ awk '-F ' '{print $2}' ++ tail -n1 ++ helm list --all-namespaces --filter chaos-mesh + 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 ++ awk '{print $1}' ++ grep chaos-mesh + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get clusterrole + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + kubectl_bin get ns + 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 + egrep -v '^kube-|^default$|Terminating|pxc-operator|openshift|^NAME' ++ mktemp + local LAST_OUT=/tmp/tmp.6n3AZ1hWY3 ++ mktemp + local LAST_ERR=/tmp/tmp.kFIP9bcwMd + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace pxc-operator ++ mktemp + local LAST_OUT=/tmp/tmp.CUATTv4Bih ++ mktemp + local LAST_ERR=/tmp/tmp.4m7N18W3jL + local exit_status=0 ++ 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.CUATTv4Bih + cat /tmp/tmp.4m7N18W3jL + rm /tmp/tmp.CUATTv4Bih /tmp/tmp.4m7N18W3jL + return 0 namespace "cert-manager" deleted namespace "upgrade-proxysql-23253" 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.6n3AZ1hWY3 namespace "pxc-operator" deleted + cat /tmp/tmp.kFIP9bcwMd + rm /tmp/tmp.6n3AZ1hWY3 /tmp/tmp.kFIP9bcwMd + 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.We4aXiEuPZ ++ mktemp + local LAST_ERR=/tmp/tmp.Ac1wWt1dQ2 + 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.We4aXiEuPZ namespace/pxc-operator created + cat /tmp/tmp.Ac1wWt1dQ2 + rm /tmp/tmp.We4aXiEuPZ /tmp/tmp.Ac1wWt1dQ2 + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.Gmlj4bI6HF +++ mktemp ++ local LAST_ERR=/tmp/tmp.17kNLoGuJl ++ 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.Gmlj4bI6HF ++ cat /tmp/tmp.17kNLoGuJl ++ rm /tmp/tmp.Gmlj4bI6HF /tmp/tmp.17kNLoGuJl ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-pxc-1706-347969f5-1-cluster5 --namespace=pxc-operator ++ mktemp + local LAST_OUT=/tmp/tmp.fI9eqWR4VP ++ mktemp + local LAST_ERR=/tmp/tmp.646GFwJdB2 + 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-1706-347969f5-1-cluster5 --namespace=pxc-operator + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.fI9eqWR4VP Context "gke_cloud-dev-112233_us-central1-a_jen-pxc-1706-347969f5-1-cluster5" modified. + cat /tmp/tmp.646GFwJdB2 + rm /tmp/tmp.fI9eqWR4VP /tmp/tmp.646GFwJdB2 + return 0 + deploy_operator_gh v1.14.0 + local git_tag=v1.14.0 + desc 'start PXC operator' + set +o xtrace ----------------------------------------------------------------------------------- start PXC operator ----------------------------------------------------------------------------------- ++ kubectl_bin get crds -o 'jsonpath={.items[?(@.metadata.name == "perconaxtradbclusters.pxc.percona.com")].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.3NTDr33Ppd +++ mktemp ++ local LAST_ERR=/tmp/tmp.ufAYfa2GBH ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get crds -o 'jsonpath={.items[?(@.metadata.name == "perconaxtradbclusters.pxc.percona.com")].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.3NTDr33Ppd ++ cat /tmp/tmp.ufAYfa2GBH ++ rm /tmp/tmp.3NTDr33Ppd /tmp/tmp.ufAYfa2GBH ++ return 0 + [[ -n perconaxtradbclusters.pxc.percona.com ]] ++ kubectl_bin get crd/perconaxtradbclusters.pxc.percona.com -o 'jsonpath={.spec.versions[?(@.name == "v1-14-0")].name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.7TMNJfkkwO +++ mktemp ++ local LAST_ERR=/tmp/tmp.9chYn7hbGt ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get crd/perconaxtradbclusters.pxc.percona.com -o 'jsonpath={.spec.versions[?(@.name == "v1-14-0")].name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.7TMNJfkkwO ++ cat /tmp/tmp.9chYn7hbGt ++ rm /tmp/tmp.7TMNJfkkwO /tmp/tmp.9chYn7hbGt ++ return 0 + [[ -n '' ]] + kubectl_bin apply --server-side --force-conflicts -f https://raw.githubusercontent.com/percona/percona-xtradb-cluster-operator/v1.14.0/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.dqOkHHArTM ++ mktemp + local LAST_ERR=/tmp/tmp.2lpLm53d88 + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply --server-side --force-conflicts -f https://raw.githubusercontent.com/percona/percona-xtradb-cluster-operator/v1.14.0/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.dqOkHHArTM + cat /tmp/tmp.2lpLm53d88 + rm /tmp/tmp.dqOkHHArTM /tmp/tmp.2lpLm53d88 + return 0 + local rbac_yaml=rbac + local operator_yaml=operator.yaml + '[' -n pxc-operator ']' + rbac_yaml=cw-rbac + operator_yaml=cw-operator.yaml + apply_rbac_gh cw-rbac v1.14.0 + local operator_namespace=pxc-operator + local rbac=cw-rbac + local git_tag=v1.14.0 + curl -s https://raw.githubusercontent.com/percona/percona-xtradb-cluster-operator/v1.14.0/deploy/cw-rbac.yaml + /usr/bin/sed -i -e 's^namespace: .*^namespace: pxc-operator^' /tmp/tmp.lj9t7VNjMl/rbac_v1.14.0.yaml + kubectl_bin apply -f /tmp/tmp.lj9t7VNjMl/rbac_v1.14.0.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.YmFqO7uRMy ++ mktemp + local LAST_ERR=/tmp/tmp.Sautkg1XXC + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f /tmp/tmp.lj9t7VNjMl/rbac_v1.14.0.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.YmFqO7uRMy 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.Sautkg1XXC + rm /tmp/tmp.YmFqO7uRMy /tmp/tmp.Sautkg1XXC + return 0 + curl -s https://raw.githubusercontent.com/percona/percona-xtradb-cluster-operator/v1.14.0/deploy/cw-operator.yaml + kubectl_bin apply -n pxc-operator -f - + yq eval '(select(.kind == "Deployment").spec.template.spec.containers[] | select(.name == "percona-xtradb-cluster-operator").env[] | select(.name == "LOG_LEVEL").value) = "DEBUG"' + cat /tmp/tmp.lj9t7VNjMl/cw-operator.yaml_v1.14.0.yaml + sed -e 's^image: .*^image: perconalab/percona-xtradb-cluster-operator:1.14.0^' + 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.31UM29y9Cd ++ mktemp + local LAST_ERR=/tmp/tmp.1eegB25nwY + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -n pxc-operator -f - + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.31UM29y9Cd deployment.apps/percona-xtradb-cluster-operator created service/percona-xtradb-cluster-operator created + cat /tmp/tmp.1eegB25nwY + rm /tmp/tmp.31UM29y9Cd /tmp/tmp.1eegB25nwY + return 0 + sleep 2 ++ 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.fwZN5YTeSA +++ mktemp ++ local LAST_ERR=/tmp/tmp.lcLAi1nFaW ++ 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.fwZN5YTeSA ++ cat /tmp/tmp.lcLAi1nFaW ++ rm /tmp/tmp.fwZN5YTeSA /tmp/tmp.lcLAi1nFaW ++ return 0 + wait_pod percona-xtradb-cluster-operator-7b86f9967b-x9wg2 + local pod=percona-xtradb-cluster-operator-7b86f9967b-x9wg2 + local max_retry=480 + local ns= ++ egrep '^(pxc|proxysql)$' ++ echo percona-xtradb-cluster-operator-7b86f9967b-x9wg2 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' + local container= + set +o xtrace pod/percona-xtradb-cluster-operator-7b86f9967b-x9wg2 condition met percona-xtradb-cluster-operator-7b86f9967b-x9wg2.Ok + create_namespace upgrade-proxysql-2502 + local namespace=upgrade-proxysql-2502 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ sed s/NAMESPACE// ++ awk '-F ' '{print $2}' ++ tail -n1 + local chaos_mesh_ns= + '[' -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 + : ++ grep chaos-mesh ++ kubectl get ValidatingWebhookConfiguration ++ 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}' ++ kubectl api-resources ++ grep chaos-mesh ++ 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 + : ++ awk '{print $1}' ++ grep chaos-mesh ++ kubectl get clusterrole + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + kubectl_bin get ns ++ mktemp + '[' -n '' ']' + desc 'cleaned up old namespaces upgrade-proxysql-2502' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces upgrade-proxysql-2502 ----------------------------------------------------------------------------------- + local LAST_OUT=/tmp/tmp.JgNM83wOfR + kubectl_bin delete namespace upgrade-proxysql-2502 ++ mktemp + xargs kubectl delete ns + local LAST_ERR=/tmp/tmp.SCxsealf3h + local exit_status=0 ++ mktemp + awk '{print$1}' + local LAST_OUT=/tmp/tmp.sURG6YpxGW ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get ns ++ mktemp + local LAST_ERR=/tmp/tmp.fKahzk8iyi + local exit_status=0 + egrep -v '^kube-|^default$|Terminating|pxc-operator|openshift|^NAME' ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace upgrade-proxysql-2502 + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.JgNM83wOfR + cat /tmp/tmp.SCxsealf3h + rm /tmp/tmp.JgNM83wOfR /tmp/tmp.SCxsealf3h + return 0 + exit_status=1 + set -e + '[' 1 '!=' 0 ']' + '[' 1 == 1 ']' + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace upgrade-proxysql-2502 + exit_status=1 + set -e + '[' 1 '!=' 0 ']' + '[' 1 == 1 ']' + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace upgrade-proxysql-2502 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.sURG6YpxGW + cat /tmp/tmp.fKahzk8iyi Error from server (NotFound): namespaces "upgrade-proxysql-2502" not found + rm /tmp/tmp.sURG6YpxGW /tmp/tmp.fKahzk8iyi + return 1 + : + wait_for_delete namespace/upgrade-proxysql-2502 + local res=namespace/upgrade-proxysql-2502 + echo -n 'namespace/upgrade-proxysql-2502 - ' namespace/upgrade-proxysql-2502 - + set +o xtrace Error from server (NotFound): namespaces "upgrade-proxysql-2502" not found + desc 'create namespace upgrade-proxysql-2502' + set +o xtrace ----------------------------------------------------------------------------------- create namespace upgrade-proxysql-2502 ----------------------------------------------------------------------------------- + kubectl_bin create namespace upgrade-proxysql-2502 ++ mktemp + local LAST_OUT=/tmp/tmp.ngL1MMsLBS ++ mktemp + local LAST_ERR=/tmp/tmp.zTXcmfCF4J + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace upgrade-proxysql-2502 + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.ngL1MMsLBS namespace/upgrade-proxysql-2502 created + cat /tmp/tmp.zTXcmfCF4J + rm /tmp/tmp.ngL1MMsLBS /tmp/tmp.zTXcmfCF4J + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.Q1tVc9Sm6W +++ mktemp ++ local LAST_ERR=/tmp/tmp.lhY5IxWAVJ ++ 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.Q1tVc9Sm6W ++ cat /tmp/tmp.lhY5IxWAVJ ++ rm /tmp/tmp.Q1tVc9Sm6W /tmp/tmp.lhY5IxWAVJ ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-pxc-1706-347969f5-1-cluster5 --namespace=upgrade-proxysql-2502 ++ mktemp + local LAST_OUT=/tmp/tmp.cRSXIbnGwA ++ mktemp + local LAST_ERR=/tmp/tmp.BV5uJAngbY + 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-1706-347969f5-1-cluster5 --namespace=upgrade-proxysql-2502 + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.cRSXIbnGwA Context "gke_cloud-dev-112233_us-central1-a_jen-pxc-1706-347969f5-1-cluster5" modified. + cat /tmp/tmp.BV5uJAngbY + rm /tmp/tmp.cRSXIbnGwA /tmp/tmp.BV5uJAngbY + 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-1706/e2e-tests/conf/minio-secret.yml -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/conf/cloud-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.LeQ4t2s0BD ++ mktemp + local LAST_ERR=/tmp/tmp.FprUJlwg90 + 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-1706/e2e-tests/conf/minio-secret.yml -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/conf/cloud-secret.yml + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.LeQ4t2s0BD secret/minio-secret created secret/aws-s3-secret created secret/gcp-cs-secret created secret/azure-secret created + cat /tmp/tmp.FprUJlwg90 + rm /tmp/tmp.LeQ4t2s0BD /tmp/tmp.FprUJlwg90 + return 0 + local proxy=proxysql + local cr_yaml=/tmp/tmp.lj9t7VNjMl/cr_1.14.0_proxysql.yaml + prepare_cr_yaml /tmp/tmp.lj9t7VNjMl/cr_1.14.0_proxysql.yaml proxysql upgrade-proxysql 3 v1.14.0 + local cr_yaml=/tmp/tmp.lj9t7VNjMl/cr_1.14.0_proxysql.yaml + local proxy=proxysql + local cluster=upgrade-proxysql + local cluster_size=3 + local git_tag=v1.14.0 + curl -s https://raw.githubusercontent.com/percona/percona-xtradb-cluster-operator/v1.14.0/deploy/cr.yaml + yq eval ' .metadata.name = "upgrade-proxysql" | .spec.secretsName = "my-cluster-secrets" | .spec.vaultSecretName = "some-name-vault" | .spec.sslSecretName = "some-name-ssl" | .spec.sslInternalSecretName = "some-name-ssl-internal" | .spec.upgradeOptions.apply = "disabled" | .spec.pxc.size = 3 | .spec.proxysql.size = 3 | .spec.haproxy.size = 3 | .spec.pxc.image = "-pxc" | .spec.proxysql.image = "-proxysql" | .spec.haproxy.image = "-haproxy" | .spec.backup.image = "-backup" | .spec.backup.storages.minio.s3.credentialsSecret = "minio-secret" | .spec.backup.storages.minio.s3.region = "us-east-1" | .spec.backup.storages.minio.s3.bucket = "operator-testing" | .spec.backup.storages.minio.s3.endpointUrl = "http://minio-service.#namespace:9000/" | .spec.backup.storages.minio.type = "s3" ' - + [[ proxysql == \h\a\p\r\o\x\y ]] + yq -i eval ' .spec.haproxy.enabled = false | .spec.proxysql.enabled = true ' /tmp/tmp.lj9t7VNjMl/cr_1.14.0_proxysql.yaml + spinup_pxc upgrade-proxysql /tmp/tmp.lj9t7VNjMl/cr_1.14.0_proxysql.yaml 3 30 /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/conf/secrets_without_tls.yml + local cluster=upgrade-proxysql + local config=/tmp/tmp.lj9t7VNjMl/cr_1.14.0_proxysql.yaml + local size=3 + local sleep=30 + local secretsFile=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/conf/secrets_without_tls.yml + local pxcClientFile=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/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-1706/e2e-tests/conf/secrets_without_tls.yml ++ mktemp + local LAST_OUT=/tmp/tmp.Hma48TDbAG ++ mktemp + local LAST_ERR=/tmp/tmp.ErcBuryG6l + 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-1706/e2e-tests/conf/secrets_without_tls.yml + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.Hma48TDbAG secret/my-cluster-secrets created + cat /tmp/tmp.ErcBuryG6l + rm /tmp/tmp.Hma48TDbAG /tmp/tmp.ErcBuryG6l + return 0 + apply_config /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/conf/client.yml + '[' -z '' ']' + kubectl_bin apply -f - + cat_config /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/conf/client.yml ++ mktemp + local LAST_OUT=/tmp/tmp.NieDBQvD6J + /usr/bin/sed -e 's#image:.*-init$#image: perconalab/percona-xtradb-cluster-operator:1.14.0#' + /usr/bin/sed -e 's#image:.*-pmm$#image: percona/pmm-client:2.41.2#' + /usr/bin/sed -e 's#image:.*-pxc\([0-9]*.[0-9]*\)\{0,1\}$#image: percona/percona-xtradb-cluster:8.0.36-28.1#' + /usr/bin/sed -e 's#image:.*\/percona-xtradb-cluster:.*$#image: percona/percona-xtradb-cluster:8.0.36-28.1#' + /usr/bin/sed -e 's#apiVersion: pxc.percona.com/v.*$#apiVersion: pxc.percona.com/v1#' + /usr/bin/sed -e 's#apply:.*#apply: Never#' ++ mktemp + local LAST_ERR=/tmp/tmp.dEFJZWTrwX + local exit_status=0 + /usr/bin/sed -e 's#image:.*-backup$#image: percona/percona-xtradb-cluster-operator:1.14.0-pxc8.0.36-backup-pxb8.0.35#' + /usr/bin/sed -e 's#image:.*-proxysql$#image: percona/percona-xtradb-cluster-operator:1.14.0-proxysql2.5.5-1.2#' + /usr/bin/sed -e 's#image:.*-haproxy$#image: percona/percona-xtradb-cluster-operator:1.14.0-haproxy#' ++ seq 0 2 + cat /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/conf/client.yml + /usr/bin/sed -e 's#image:.*-logcollector$#image: perconalab/percona-xtradb-cluster-operator:main-logcollector#' + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + /usr/bin/sed -e s~minio-service.#namespace~minio-service.upgrade-proxysql-2502~ + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.NieDBQvD6J deployment.apps/pxc-client created + cat /tmp/tmp.dEFJZWTrwX + rm /tmp/tmp.NieDBQvD6J /tmp/tmp.dEFJZWTrwX + return 0 + [[ percona/percona-xtradb-cluster:8.0.36-28.1 =~ 5\.7 ]] + apply_config /tmp/tmp.lj9t7VNjMl/cr_1.14.0_proxysql.yaml + '[' -z '' ']' + kubectl_bin apply -f - + cat_config /tmp/tmp.lj9t7VNjMl/cr_1.14.0_proxysql.yaml + /usr/bin/sed -e 's#apply:.*#apply: Never#' + /usr/bin/sed -e s~minio-service.#namespace~minio-service.upgrade-proxysql-2502~ + /usr/bin/sed -e 's#image:.*-pxc\([0-9]*.[0-9]*\)\{0,1\}$#image: percona/percona-xtradb-cluster:8.0.36-28.1#' + /usr/bin/sed -e 's#image:.*-pmm$#image: percona/pmm-client:2.41.2#' + /usr/bin/sed -e 's#image:.*-backup$#image: percona/percona-xtradb-cluster-operator:1.14.0-pxc8.0.36-backup-pxb8.0.35#' + cat /tmp/tmp.lj9t7VNjMl/cr_1.14.0_proxysql.yaml + /usr/bin/sed -e 's#apiVersion: pxc.percona.com/v.*$#apiVersion: pxc.percona.com/v1#' ++ mktemp + /usr/bin/sed -e 's#image:.*\/percona-xtradb-cluster:.*$#image: percona/percona-xtradb-cluster:8.0.36-28.1#' + /usr/bin/sed -e 's#image:.*-init$#image: perconalab/percona-xtradb-cluster-operator:1.14.0#' + /usr/bin/sed -e 's#image:.*-proxysql$#image: percona/percona-xtradb-cluster-operator:1.14.0-proxysql2.5.5-1.2#' + local LAST_OUT=/tmp/tmp.3226A1SqdL + /usr/bin/sed -e 's#image:.*-haproxy$#image: percona/percona-xtradb-cluster-operator:1.14.0-haproxy#' + /usr/bin/sed -e 's#image:.*-logcollector$#image: perconalab/percona-xtradb-cluster-operator:main-logcollector#' ++ mktemp + local LAST_ERR=/tmp/tmp.EmxkiMYHtY + 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.3226A1SqdL perconaxtradbcluster.pxc.percona.com/upgrade-proxysql created + cat /tmp/tmp.EmxkiMYHtY + rm /tmp/tmp.3226A1SqdL /tmp/tmp.EmxkiMYHtY + return 0 + desc 'check if all 3 Pods started' + set +o xtrace ----------------------------------------------------------------------------------- check if all 3 Pods started ----------------------------------------------------------------------------------- ++ get_proxy upgrade-proxysql ++ local target_cluster=upgrade-proxysql +++ kubectl_bin get pxc upgrade-proxysql -o 'jsonpath={.spec.haproxy.enabled}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.jB0ZK8tcIS ++++ mktemp +++ local LAST_ERR=/tmp/tmp.9QaWYtqTHo +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc upgrade-proxysql -o 'jsonpath={.spec.haproxy.enabled}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.jB0ZK8tcIS +++ cat /tmp/tmp.9QaWYtqTHo +++ rm /tmp/tmp.jB0ZK8tcIS /tmp/tmp.9QaWYtqTHo +++ return 0 ++ [[ false == \t\r\u\e ]] +++ kubectl_bin get pxc upgrade-proxysql -o 'jsonpath={.spec.proxysql.enabled}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.FV8WgoBagR ++++ mktemp +++ local LAST_ERR=/tmp/tmp.pr6ojkGUp4 +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc upgrade-proxysql -o 'jsonpath={.spec.proxysql.enabled}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.FV8WgoBagR +++ cat /tmp/tmp.pr6ojkGUp4 +++ rm /tmp/tmp.FV8WgoBagR /tmp/tmp.pr6ojkGUp4 +++ return 0 ++ [[ true == \t\r\u\e ]] ++ echo upgrade-proxysql-proxysql ++ return + local proxy=upgrade-proxysql-proxysql + 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 upgrade-proxysql-2502 ++ mktemp + local LAST_OUT=/tmp/tmp.n3Ahg1KlVS ++ mktemp + local LAST_ERR=/tmp/tmp.4UOD7eaLIq + 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 upgrade-proxysql-2502 + 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 upgrade-proxysql-2502 + 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 upgrade-proxysql-2502 + exit_status=1 + set -e + '[' 1 '!=' 0 ']' + '[' 1 == 1 ']' + sleep 0 + cat /tmp/tmp.n3Ahg1KlVS + cat /tmp/tmp.4UOD7eaLIq error: no matching resources found + rm /tmp/tmp.n3Ahg1KlVS /tmp/tmp.4UOD7eaLIq + return 1 + true + wait_for_running upgrade-proxysql-proxysql 1 + local name=upgrade-proxysql-proxysql + 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 upgrade-proxysql-proxysql-0 480 + local pod=upgrade-proxysql-proxysql-0 + local max_retry=480 + local ns= ++ echo upgrade-proxysql-proxysql-0 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container=proxysql + set +o xtrace pod/upgrade-proxysql-proxysql-0 condition met upgrade-proxysql-proxysql-0.Ok + wait_for_running upgrade-proxysql-pxc 3 + local name=upgrade-proxysql-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 upgrade-proxysql-pxc-0 480 + local pod=upgrade-proxysql-pxc-0 + local max_retry=480 + local ns= ++ echo upgrade-proxysql-pxc-0 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container=pxc + set +o xtrace pod/upgrade-proxysql-pxc-0 condition met upgrade-proxysql-pxc-0.Ok + for i in '$(seq 0 $last_pod)' + wait_pod upgrade-proxysql-pxc-1 480 + local pod=upgrade-proxysql-pxc-1 + local max_retry=480 + local ns= ++ echo upgrade-proxysql-pxc-1 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container=pxc + set +o xtrace pod/upgrade-proxysql-pxc-1 condition met upgrade-proxysql-pxc-1.Ok + for i in '$(seq 0 $last_pod)' + wait_pod upgrade-proxysql-pxc-2 480 + local pod=upgrade-proxysql-pxc-2 + local max_retry=480 + local ns= ++ echo upgrade-proxysql-pxc-2 ++ egrep '^(pxc|proxysql)$' ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' + local container=pxc + set +o xtrace pod/upgrade-proxysql-pxc-2 condition met upgrade-proxysql-pxc-2.Ok + sleep 30 + desc 'write data' + set +o xtrace ----------------------------------------------------------------------------------- write data ----------------------------------------------------------------------------------- + [[ percona/percona-xtradb-cluster:8.0.36-28.1 =~ 5\.7 ]] + run_mysql 'CREATE DATABASE IF NOT EXISTS myApp; use myApp; CREATE TABLE IF NOT EXISTS myApp (id int PRIMARY KEY) ;' '-h upgrade-proxysql-proxysql -uroot -proot_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 upgrade-proxysql-proxysql -uroot -proot_password -P3306' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.U71MrVRehJ +++ mktemp ++ local LAST_ERR=/tmp/tmp.IxFcQ2z6pX ++ 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.U71MrVRehJ ++ cat /tmp/tmp.IxFcQ2z6pX ++ rm /tmp/tmp.U71MrVRehJ /tmp/tmp.IxFcQ2z6pX ++ return 0 + client_pod=pxc-client-5f84f5b989-zjlwf + wait_pod pxc-client-5f84f5b989-zjlwf + local pod=pxc-client-5f84f5b989-zjlwf + local max_retry=480 + local ns= ++ echo pxc-client-5f84f5b989-zjlwf ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-5f84f5b989-zjlwf condition met pxc-client-5f84f5b989-zjlwf.Ok + set +o xtrace + run_mysql 'INSERT myApp.myApp (id) VALUES (100500)' '-h upgrade-proxysql-proxysql -uroot -proot_password -P3306' + local 'command=INSERT myApp.myApp (id) VALUES (100500)' + local 'uri=-h upgrade-proxysql-proxysql -uroot -proot_password -P3306' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.8nkiOH67Qb +++ mktemp ++ local LAST_ERR=/tmp/tmp.t62hrhym61 ++ 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.8nkiOH67Qb ++ cat /tmp/tmp.t62hrhym61 ++ rm /tmp/tmp.8nkiOH67Qb /tmp/tmp.t62hrhym61 ++ return 0 + client_pod=pxc-client-5f84f5b989-zjlwf + wait_pod pxc-client-5f84f5b989-zjlwf + local pod=pxc-client-5f84f5b989-zjlwf + local max_retry=480 + local ns= ++ echo pxc-client-5f84f5b989-zjlwf ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-5f84f5b989-zjlwf condition met pxc-client-5f84f5b989-zjlwf.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 upgrade-proxysql-pxc-0.upgrade-proxysql-pxc -uroot -proot_password -P3306' + local command_id=select-1 + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h upgrade-proxysql-pxc-0.upgrade-proxysql-pxc -uroot -proot_password -P3306' + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1.sql + [[ percona/percona-xtradb-cluster:8.0.36-28.1 =~ 8\.0 ]] + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1-80.sql ']' + run_mysql 'SELECT * from myApp.myApp;' '-h upgrade-proxysql-pxc-0.upgrade-proxysql-pxc -uroot -proot_password -P3306' + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h upgrade-proxysql-pxc-0.upgrade-proxysql-pxc -uroot -proot_password -P3306' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.HjyYjD6ZXn +++ mktemp ++ local LAST_ERR=/tmp/tmp.dslEO7UzPl ++ 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.HjyYjD6ZXn ++ cat /tmp/tmp.dslEO7UzPl ++ rm /tmp/tmp.HjyYjD6ZXn /tmp/tmp.dslEO7UzPl ++ return 0 + client_pod=pxc-client-5f84f5b989-zjlwf + wait_pod pxc-client-5f84f5b989-zjlwf + local pod=pxc-client-5f84f5b989-zjlwf + local max_retry=480 + local ns= ++ echo pxc-client-5f84f5b989-zjlwf ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-5f84f5b989-zjlwf condition met pxc-client-5f84f5b989-zjlwf.Ok + set +o xtrace + '[' '!' -s /tmp/tmp.lj9t7VNjMl/select-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1.sql /tmp/tmp.lj9t7VNjMl/select-1.sql + for i in '$(seq 0 $((size - 1)))' + compare_mysql_cmd select-1 'SELECT * from myApp.myApp;' '-h upgrade-proxysql-pxc-1.upgrade-proxysql-pxc -uroot -proot_password -P3306' + local command_id=select-1 + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h upgrade-proxysql-pxc-1.upgrade-proxysql-pxc -uroot -proot_password -P3306' + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1.sql + [[ percona/percona-xtradb-cluster:8.0.36-28.1 =~ 8\.0 ]] + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1-80.sql ']' + run_mysql 'SELECT * from myApp.myApp;' '-h upgrade-proxysql-pxc-1.upgrade-proxysql-pxc -uroot -proot_password -P3306' + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h upgrade-proxysql-pxc-1.upgrade-proxysql-pxc -uroot -proot_password -P3306' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ptEr2aYaGp +++ mktemp ++ local LAST_ERR=/tmp/tmp.Q4AJFcTTwp ++ 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.ptEr2aYaGp ++ cat /tmp/tmp.Q4AJFcTTwp ++ rm /tmp/tmp.ptEr2aYaGp /tmp/tmp.Q4AJFcTTwp ++ return 0 + client_pod=pxc-client-5f84f5b989-zjlwf + wait_pod pxc-client-5f84f5b989-zjlwf + local pod=pxc-client-5f84f5b989-zjlwf + local max_retry=480 + local ns= ++ echo pxc-client-5f84f5b989-zjlwf ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-5f84f5b989-zjlwf condition met pxc-client-5f84f5b989-zjlwf.Ok + set +o xtrace + '[' '!' -s /tmp/tmp.lj9t7VNjMl/select-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1.sql /tmp/tmp.lj9t7VNjMl/select-1.sql + for i in '$(seq 0 $((size - 1)))' + compare_mysql_cmd select-1 'SELECT * from myApp.myApp;' '-h upgrade-proxysql-pxc-2.upgrade-proxysql-pxc -uroot -proot_password -P3306' + local command_id=select-1 + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h upgrade-proxysql-pxc-2.upgrade-proxysql-pxc -uroot -proot_password -P3306' + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1.sql + [[ percona/percona-xtradb-cluster:8.0.36-28.1 =~ 8\.0 ]] + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1-80.sql ']' + run_mysql 'SELECT * from myApp.myApp;' '-h upgrade-proxysql-pxc-2.upgrade-proxysql-pxc -uroot -proot_password -P3306' + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h upgrade-proxysql-pxc-2.upgrade-proxysql-pxc -uroot -proot_password -P3306' ++ get_client_pod ++ kubectl_bin get pods --selector=name=pxc-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.1Xel282df6 +++ mktemp ++ local LAST_ERR=/tmp/tmp.14PuXKIYOX ++ 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.1Xel282df6 ++ cat /tmp/tmp.14PuXKIYOX ++ rm /tmp/tmp.1Xel282df6 /tmp/tmp.14PuXKIYOX ++ return 0 + client_pod=pxc-client-5f84f5b989-zjlwf + wait_pod pxc-client-5f84f5b989-zjlwf + local pod=pxc-client-5f84f5b989-zjlwf + local max_retry=480 + local ns= ++ echo pxc-client-5f84f5b989-zjlwf ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-5f84f5b989-zjlwf condition met pxc-client-5f84f5b989-zjlwf.Ok + set +o xtrace + '[' '!' -s /tmp/tmp.lj9t7VNjMl/select-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1.sql /tmp/tmp.lj9t7VNjMl/select-1.sql ++ is_keyring_plugin_in_use upgrade-proxysql ++ local cluster=upgrade-proxysql ++ kubectl_bin exec -it upgrade-proxysql-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.vrSMVGTk8W +++ mktemp ++ local LAST_ERR=/tmp/tmp.TlDH1QV9aI ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl exec -it upgrade-proxysql-pxc-0 -c pxc -- bash -c 'cat /etc/mysql/node.cnf' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.vrSMVGTk8W ++ cat /tmp/tmp.TlDH1QV9aI Unable to use a TTY - input is not a terminal or the right kind of file ++ rm /tmp/tmp.vrSMVGTk8W /tmp/tmp.TlDH1QV9aI ++ return 0 + '[' '' ']' + compare_generation 1 proxysql upgrade-proxysql + local generation=1 + local proxy=proxysql + local cluster=upgrade-proxysql + local current_generation + [[ proxysql == \h\a\p\r\o\x\y ]] + containers=(pxc proxysql) + for container in '"${containers[@]}"' ++ kubectl_bin get statefulset upgrade-proxysql-pxc -o 'jsonpath={.metadata.generation}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.xua9D2hhjH +++ mktemp ++ local LAST_ERR=/tmp/tmp.T6MVUPhTpw ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get statefulset upgrade-proxysql-pxc -o 'jsonpath={.metadata.generation}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.xua9D2hhjH ++ cat /tmp/tmp.T6MVUPhTpw ++ rm /tmp/tmp.xua9D2hhjH /tmp/tmp.T6MVUPhTpw ++ return 0 + current_generation=1 + [[ 1 != \1 ]] + for container in '"${containers[@]}"' ++ kubectl_bin get statefulset upgrade-proxysql-proxysql -o 'jsonpath={.metadata.generation}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.CZzw8Vyq0O +++ mktemp ++ local LAST_ERR=/tmp/tmp.K2ag1Sgveh ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get statefulset upgrade-proxysql-proxysql -o 'jsonpath={.metadata.generation}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.CZzw8Vyq0O ++ cat /tmp/tmp.K2ag1Sgveh ++ rm /tmp/tmp.CZzw8Vyq0O /tmp/tmp.K2ag1Sgveh ++ return 0 + current_generation=1 + [[ 1 != \1 ]] + desc 'upgrade operator' + set +o xtrace ----------------------------------------------------------------------------------- upgrade operator ----------------------------------------------------------------------------------- + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.QwSSCXcdx7 ++ mktemp + local LAST_ERR=/tmp/tmp.BcPriAgceN + 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-1706/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.QwSSCXcdx7 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.BcPriAgceN + rm /tmp/tmp.QwSSCXcdx7 /tmp/tmp.BcPriAgceN + 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-1706/deploy/cw-rbac.yaml + sed -e 's^namespace: .*^namespace: pxc-operator^' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.5nqxpkKHGQ ++ mktemp + local LAST_ERR=/tmp/tmp.fh1IZW6FNW + 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.5nqxpkKHGQ 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.fh1IZW6FNW + rm /tmp/tmp.5nqxpkKHGQ /tmp/tmp.fh1IZW6FNW + return 0 + kubectl_bin patch deployment percona-xtradb-cluster-operator '-p{"spec":{"template":{"spec":{"containers":[{"name":"percona-xtradb-cluster-operator","image":"perconalab/percona-xtradb-cluster-operator:PR-1706-347969f5"}]}}}}' -n pxc-operator ++ mktemp + local LAST_OUT=/tmp/tmp.gEigAqMh14 ++ mktemp + local LAST_ERR=/tmp/tmp.5QYLkKrx2z + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl patch deployment percona-xtradb-cluster-operator '-p{"spec":{"template":{"spec":{"containers":[{"name":"percona-xtradb-cluster-operator","image":"perconalab/percona-xtradb-cluster-operator:PR-1706-347969f5"}]}}}}' -n pxc-operator + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.gEigAqMh14 deployment.apps/percona-xtradb-cluster-operator patched + cat /tmp/tmp.5QYLkKrx2z + rm /tmp/tmp.gEigAqMh14 /tmp/tmp.5QYLkKrx2z + return 0 + kubectl_bin rollout status deployment/percona-xtradb-cluster-operator -n pxc-operator ++ mktemp + local LAST_OUT=/tmp/tmp.NANCeQgvXv ++ mktemp + local LAST_ERR=/tmp/tmp.241TAikPFg + local exit_status=0 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl rollout status deployment/percona-xtradb-cluster-operator -n pxc-operator + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.NANCeQgvXv Waiting for deployment "percona-xtradb-cluster-operator" rollout to finish: 0 of 1 updated replicas are available... deployment "percona-xtradb-cluster-operator" successfully rolled out + cat /tmp/tmp.241TAikPFg + rm /tmp/tmp.NANCeQgvXv /tmp/tmp.241TAikPFg + return 0 + sleep 10 + desc 'wait for operator upgrade' + set +o xtrace ----------------------------------------------------------------------------------- wait for operator upgrade ----------------------------------------------------------------------------------- + local i=0 + local max=60 ++ kubectl_bin get pods --selector=app.kubernetes.io/name=percona-xtradb-cluster-operator -o 'custom-columns=NAME:.metadata.name,IMAGE:.spec.containers[0].image' -n pxc-operator ++ grep -vc NAME ++ awk '{print $1}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.PbQoXKg5cf +++ mktemp ++ local LAST_ERR=/tmp/tmp.MJB4UwiyaE ++ 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 'custom-columns=NAME:.metadata.name,IMAGE:.spec.containers[0].image' -n pxc-operator ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.PbQoXKg5cf ++ cat /tmp/tmp.MJB4UwiyaE ++ rm /tmp/tmp.PbQoXKg5cf /tmp/tmp.MJB4UwiyaE ++ return 0 + [[ 1 -eq 1 ]] + '[' -n pxc-operator ']' ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.c9wly0jB5W +++ mktemp ++ local LAST_ERR=/tmp/tmp.gZwusdYnAW ++ 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.c9wly0jB5W ++ cat /tmp/tmp.gZwusdYnAW ++ rm /tmp/tmp.c9wly0jB5W /tmp/tmp.gZwusdYnAW ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-pxc-1706-347969f5-1-cluster5 --namespace=pxc-operator ++ mktemp + local LAST_OUT=/tmp/tmp.XgfyLQzNUz ++ mktemp + local LAST_ERR=/tmp/tmp.4AYZ806CAh + 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-1706-347969f5-1-cluster5 --namespace=pxc-operator + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.XgfyLQzNUz Context "gke_cloud-dev-112233_us-central1-a_jen-pxc-1706-347969f5-1-cluster5" modified. + cat /tmp/tmp.4AYZ806CAh + rm /tmp/tmp.XgfyLQzNUz /tmp/tmp.4AYZ806CAh + return 0 ++ kubectl_bin get pods --selector=app.kubernetes.io/name=percona-xtradb-cluster-operator -o 'custom-columns=NAME:.metadata.name,IMAGE:.spec.containers[0].image' ++ grep perconalab/percona-xtradb-cluster-operator:PR-1706-347969f5 ++ awk '{print $1}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.xhuKqLaRQ2 +++ mktemp ++ local LAST_ERR=/tmp/tmp.GvtC0f4a4C ++ 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 'custom-columns=NAME:.metadata.name,IMAGE:.spec.containers[0].image' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.xhuKqLaRQ2 ++ cat /tmp/tmp.GvtC0f4a4C ++ rm /tmp/tmp.xhuKqLaRQ2 /tmp/tmp.GvtC0f4a4C ++ return 0 + wait_pod percona-xtradb-cluster-operator-59f5d656c9-l72vk + local pod=percona-xtradb-cluster-operator-59f5d656c9-l72vk + local max_retry=480 + local ns= ++ echo percona-xtradb-cluster-operator-59f5d656c9-l72vk ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container= + set +o xtrace pod/percona-xtradb-cluster-operator-59f5d656c9-l72vk condition met percona-xtradb-cluster-operator-59f5d656c9-l72vk.Ok ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.SMIrGEmCT6 +++ mktemp ++ local LAST_ERR=/tmp/tmp.4PVRph829v ++ 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.SMIrGEmCT6 ++ cat /tmp/tmp.4PVRph829v ++ rm /tmp/tmp.SMIrGEmCT6 /tmp/tmp.4PVRph829v ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-pxc-1706-347969f5-1-cluster5 --namespace=upgrade-proxysql-2502 ++ mktemp + local LAST_OUT=/tmp/tmp.QERYNYbsci ++ mktemp + local LAST_ERR=/tmp/tmp.Z64Aypskvv + 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-1706-347969f5-1-cluster5 --namespace=upgrade-proxysql-2502 + exit_status=0 + set -e + '[' 0 '!=' 0 ']' + break + cat /tmp/tmp.QERYNYbsci Context "gke_cloud-dev-112233_us-central1-a_jen-pxc-1706-347969f5-1-cluster5" modified. + cat /tmp/tmp.Z64Aypskvv + rm /tmp/tmp.QERYNYbsci /tmp/tmp.Z64Aypskvv + return 0 + desc 'check images and generation after operator upgrade' + set +o xtrace ----------------------------------------------------------------------------------- check images and generation after operator upgrade ----------------------------------------------------------------------------------- + check_pxc_liveness upgrade-proxysql 3 + local cluster=upgrade-proxysql + local cluster_size=3 + wait_cluster_consistency upgrade-proxysql 3 + local cluster_name=upgrade-proxysql + local cluster_size=3 + local proxy_size= + '[' -z '' ']' ++ get_proxy_size upgrade-proxysql ++ local cluster=upgrade-proxysql +++ kubectl_bin get pxc upgrade-proxysql -o 'jsonpath={.spec.haproxy.enabled}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.MrlIUl2jQX ++++ mktemp +++ local LAST_ERR=/tmp/tmp.IwOuQgaUlo +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc upgrade-proxysql -o 'jsonpath={.spec.haproxy.enabled}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.MrlIUl2jQX +++ cat /tmp/tmp.IwOuQgaUlo +++ rm /tmp/tmp.MrlIUl2jQX /tmp/tmp.IwOuQgaUlo +++ return 0 ++ [[ false == \t\r\u\e ]] +++ kubectl_bin get pxc upgrade-proxysql -o 'jsonpath={.spec.proxysql.enabled}' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.xydWMMyTTE ++++ mktemp +++ local LAST_ERR=/tmp/tmp.FWzN9BaOc5 +++ local exit_status=0 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl get pxc upgrade-proxysql -o 'jsonpath={.spec.proxysql.enabled}' +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 ']' +++ break +++ cat /tmp/tmp.xydWMMyTTE +++ cat /tmp/tmp.FWzN9BaOc5 +++ rm /tmp/tmp.xydWMMyTTE /tmp/tmp.FWzN9BaOc5 +++ return 0 ++ [[ true == \t\r\u\e ]] ++ kubectl_bin get pxc upgrade-proxysql -o 'jsonpath={.spec.proxysql.size}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.HufGK5wGgy +++ mktemp ++ local LAST_ERR=/tmp/tmp.qA8nnWSPvB ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc upgrade-proxysql -o 'jsonpath={.spec.proxysql.size}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.HufGK5wGgy ++ cat /tmp/tmp.qA8nnWSPvB ++ rm /tmp/tmp.HufGK5wGgy /tmp/tmp.qA8nnWSPvB ++ return 0 ++ return + proxy_size=3 + desc 'wait cluster consistency' + set +o xtrace ----------------------------------------------------------------------------------- wait cluster consistency ----------------------------------------------------------------------------------- + local i=0 + local max=36 + sleep 7 ++ kubectl_bin get pxc upgrade-proxysql -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.6KCDXOrmwr +++ mktemp ++ local LAST_ERR=/tmp/tmp.Pob2fG8pdl ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc upgrade-proxysql -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.6KCDXOrmwr ++ cat /tmp/tmp.Pob2fG8pdl ++ rm /tmp/tmp.6KCDXOrmwr /tmp/tmp.Pob2fG8pdl ++ return 0 + [[ ready == \r\e\a\d\y ]] ++ kubectl_bin get pxc upgrade-proxysql -o 'jsonpath={.status.pxc.ready}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.PR0Xx1PmwT +++ mktemp ++ local LAST_ERR=/tmp/tmp.uSdNOhCh3S ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc upgrade-proxysql -o 'jsonpath={.status.pxc.ready}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.PR0Xx1PmwT ++ cat /tmp/tmp.uSdNOhCh3S ++ rm /tmp/tmp.PR0Xx1PmwT /tmp/tmp.uSdNOhCh3S ++ return 0 + [[ 3 == \3 ]] +++ get_proxy_engine upgrade-proxysql +++ local cluster_name=upgrade-proxysql ++++ get_proxy upgrade-proxysql ++++ local target_cluster=upgrade-proxysql +++++ kubectl_bin get pxc upgrade-proxysql -o 'jsonpath={.spec.haproxy.enabled}' ++++++ mktemp +++++ local LAST_OUT=/tmp/tmp.8k4rLcOjX3 ++++++ mktemp +++++ local LAST_ERR=/tmp/tmp.76VMgnlzVz +++++ local exit_status=0 ++++++ seq 0 2 +++++ for i in '$(seq 0 2)' +++++ set +e +++++ kubectl get pxc upgrade-proxysql -o 'jsonpath={.spec.haproxy.enabled}' +++++ exit_status=0 +++++ set -e +++++ '[' 0 '!=' 0 ']' +++++ break +++++ cat /tmp/tmp.8k4rLcOjX3 +++++ cat /tmp/tmp.76VMgnlzVz +++++ rm /tmp/tmp.8k4rLcOjX3 /tmp/tmp.76VMgnlzVz +++++ return 0 ++++ [[ false == \t\r\u\e ]] +++++ kubectl_bin get pxc upgrade-proxysql -o 'jsonpath={.spec.proxysql.enabled}' ++++++ mktemp +++++ local LAST_OUT=/tmp/tmp.OQhsiyzccj ++++++ mktemp +++++ local LAST_ERR=/tmp/tmp.pJaH15uFjG +++++ local exit_status=0 ++++++ seq 0 2 +++++ for i in '$(seq 0 2)' +++++ set +e +++++ kubectl get pxc upgrade-proxysql -o 'jsonpath={.spec.proxysql.enabled}' +++++ exit_status=0 +++++ set -e +++++ '[' 0 '!=' 0 ']' +++++ break +++++ cat /tmp/tmp.OQhsiyzccj +++++ cat /tmp/tmp.pJaH15uFjG +++++ rm /tmp/tmp.OQhsiyzccj /tmp/tmp.pJaH15uFjG +++++ return 0 ++++ [[ true == \t\r\u\e ]] ++++ echo upgrade-proxysql-proxysql ++++ return +++ local cluster_proxy=upgrade-proxysql-proxysql +++ echo proxysql ++ kubectl_bin get pxc upgrade-proxysql -o 'jsonpath={.status.proxysql.ready}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ISptVTKMGU +++ mktemp ++ local LAST_ERR=/tmp/tmp.QOoWlBSF6j ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc upgrade-proxysql -o 'jsonpath={.status.proxysql.ready}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.ISptVTKMGU ++ cat /tmp/tmp.QOoWlBSF6j ++ rm /tmp/tmp.ISptVTKMGU /tmp/tmp.QOoWlBSF6j ++ return 0 + [[ 3 == \3 ]] + wait_for_running upgrade-proxysql-pxc 3 + local name=upgrade-proxysql-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 upgrade-proxysql-pxc-0 480 + local pod=upgrade-proxysql-pxc-0 + local max_retry=480 + local ns= ++ echo upgrade-proxysql-pxc-0 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container=pxc + set +o xtrace pod/upgrade-proxysql-pxc-0 condition met upgrade-proxysql-pxc-0.Ok + for i in '$(seq 0 $last_pod)' + wait_pod upgrade-proxysql-pxc-1 480 + local pod=upgrade-proxysql-pxc-1 + local max_retry=480 + local ns= ++ echo upgrade-proxysql-pxc-1 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container=pxc + set +o xtrace pod/upgrade-proxysql-pxc-1 condition met upgrade-proxysql-pxc-1.Ok + for i in '$(seq 0 $last_pod)' + wait_pod upgrade-proxysql-pxc-2 480 + local pod=upgrade-proxysql-pxc-2 + local max_retry=480 + local ns= ++ echo upgrade-proxysql-pxc-2 ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container=pxc + set +o xtrace pod/upgrade-proxysql-pxc-2 condition met upgrade-proxysql-pxc-2.Ok ++ seq 0 2 + for i in '$(seq 0 $((cluster_size - 1)))' + compare_mysql_cmd select-1 'SELECT * from myApp.myApp;' '-h upgrade-proxysql-pxc-0.upgrade-proxysql-pxc -uroot -proot_password' + local command_id=select-1 + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h upgrade-proxysql-pxc-0.upgrade-proxysql-pxc -uroot -proot_password' + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1.sql + [[ percona/percona-xtradb-cluster:8.0.36-28.1 =~ 8\.0 ]] + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1-80.sql ']' + run_mysql 'SELECT * from myApp.myApp;' '-h upgrade-proxysql-pxc-0.upgrade-proxysql-pxc -uroot -proot_password' + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h upgrade-proxysql-pxc-0.upgrade-proxysql-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.jv8985CqGg +++ mktemp ++ local LAST_ERR=/tmp/tmp.SRLpyJI5o5 ++ 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.jv8985CqGg ++ cat /tmp/tmp.SRLpyJI5o5 ++ rm /tmp/tmp.jv8985CqGg /tmp/tmp.SRLpyJI5o5 ++ return 0 + client_pod=pxc-client-5f84f5b989-zjlwf + wait_pod pxc-client-5f84f5b989-zjlwf + local pod=pxc-client-5f84f5b989-zjlwf + local max_retry=480 + local ns= ++ echo pxc-client-5f84f5b989-zjlwf ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-5f84f5b989-zjlwf condition met pxc-client-5f84f5b989-zjlwf.Ok + set +o xtrace + '[' '!' -s /tmp/tmp.lj9t7VNjMl/select-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1.sql /tmp/tmp.lj9t7VNjMl/select-1.sql + for i in '$(seq 0 $((cluster_size - 1)))' + compare_mysql_cmd select-1 'SELECT * from myApp.myApp;' '-h upgrade-proxysql-pxc-1.upgrade-proxysql-pxc -uroot -proot_password' + local command_id=select-1 + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h upgrade-proxysql-pxc-1.upgrade-proxysql-pxc -uroot -proot_password' + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1.sql + [[ percona/percona-xtradb-cluster:8.0.36-28.1 =~ 8\.0 ]] + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1-80.sql ']' + run_mysql 'SELECT * from myApp.myApp;' '-h upgrade-proxysql-pxc-1.upgrade-proxysql-pxc -uroot -proot_password' + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h upgrade-proxysql-pxc-1.upgrade-proxysql-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.WNo1SVmQW0 +++ mktemp ++ local LAST_ERR=/tmp/tmp.Ssiw2r8vCi ++ 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.WNo1SVmQW0 ++ cat /tmp/tmp.Ssiw2r8vCi ++ rm /tmp/tmp.WNo1SVmQW0 /tmp/tmp.Ssiw2r8vCi ++ return 0 + client_pod=pxc-client-5f84f5b989-zjlwf + wait_pod pxc-client-5f84f5b989-zjlwf + local pod=pxc-client-5f84f5b989-zjlwf + local max_retry=480 + local ns= ++ echo pxc-client-5f84f5b989-zjlwf ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-5f84f5b989-zjlwf condition met pxc-client-5f84f5b989-zjlwf.Ok + set +o xtrace + '[' '!' -s /tmp/tmp.lj9t7VNjMl/select-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1.sql /tmp/tmp.lj9t7VNjMl/select-1.sql + for i in '$(seq 0 $((cluster_size - 1)))' + compare_mysql_cmd select-1 'SELECT * from myApp.myApp;' '-h upgrade-proxysql-pxc-2.upgrade-proxysql-pxc -uroot -proot_password' + local command_id=select-1 + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h upgrade-proxysql-pxc-2.upgrade-proxysql-pxc -uroot -proot_password' + local postfix= + local expected_result=/mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1.sql + [[ percona/percona-xtradb-cluster:8.0.36-28.1 =~ 8\.0 ]] + '[' -f /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1-80.sql ']' + run_mysql 'SELECT * from myApp.myApp;' '-h upgrade-proxysql-pxc-2.upgrade-proxysql-pxc -uroot -proot_password' + local 'command=SELECT * from myApp.myApp;' + local 'uri=-h upgrade-proxysql-pxc-2.upgrade-proxysql-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.CXaKQcY187 +++ mktemp ++ local LAST_ERR=/tmp/tmp.I2vaPm1VXl ++ 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.CXaKQcY187 ++ cat /tmp/tmp.I2vaPm1VXl ++ rm /tmp/tmp.CXaKQcY187 /tmp/tmp.I2vaPm1VXl ++ return 0 + client_pod=pxc-client-5f84f5b989-zjlwf + wait_pod pxc-client-5f84f5b989-zjlwf + local pod=pxc-client-5f84f5b989-zjlwf + local max_retry=480 + local ns= ++ echo pxc-client-5f84f5b989-zjlwf ++ /usr/bin/sed -E 's/.*-(pxc|proxysql)-[0-9]/\1/' ++ egrep '^(pxc|proxysql)$' + local container= + set +o xtrace pod/pxc-client-5f84f5b989-zjlwf condition met pxc-client-5f84f5b989-zjlwf.Ok + set +o xtrace + '[' '!' -s /tmp/tmp.lj9t7VNjMl/select-1.sql ']' + diff -u /mnt/jenkins/workspace/cloud-pxc-operator_PR-1706/e2e-tests/upgrade-proxysql/compare/select-1.sql /tmp/tmp.lj9t7VNjMl/select-1.sql ++ kubectl_bin get pod -n pxc-operator --selector=app.kubernetes.io/name=percona-xtradb-cluster-operator -o 'jsonpath={.items[*].spec.containers[?(@.name == "percona-xtradb-cluster-operator")].image}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.L791OWxysL +++ mktemp ++ local LAST_ERR=/tmp/tmp.fMtTkhDGGY ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pod -n pxc-operator --selector=app.kubernetes.io/name=percona-xtradb-cluster-operator -o 'jsonpath={.items[*].spec.containers[?(@.name == "percona-xtradb-cluster-operator")].image}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.L791OWxysL ++ cat /tmp/tmp.fMtTkhDGGY ++ rm /tmp/tmp.L791OWxysL /tmp/tmp.fMtTkhDGGY ++ return 0 + [[ perconalab/percona-xtradb-cluster-operator:PR-1706-347969f5 == perconalab/percona-xtradb-cluster-operator:PR-1706-347969f5 ]] ++ kubectl_bin get pxc upgrade-proxysql -o 'jsonpath={.spec.proxysql.image}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.70S4XUmKTq +++ mktemp ++ local LAST_ERR=/tmp/tmp.62U3sBFIcX ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc upgrade-proxysql -o 'jsonpath={.spec.proxysql.image}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.70S4XUmKTq ++ cat /tmp/tmp.62U3sBFIcX ++ rm /tmp/tmp.70S4XUmKTq /tmp/tmp.62U3sBFIcX ++ return 0 + [[ percona/percona-xtradb-cluster-operator:1.14.0-proxysql2.5.5-1.2 == percona/percona-xtradb-cluster-operator:1.14.0-proxysql2.5.5-1.2 ]] ++ kubectl_bin get pxc upgrade-proxysql -o 'jsonpath={.spec.haproxy.image}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.qxf8siiLXd +++ mktemp ++ local LAST_ERR=/tmp/tmp.A4eLJvzWDo ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc upgrade-proxysql -o 'jsonpath={.spec.haproxy.image}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.qxf8siiLXd ++ cat /tmp/tmp.A4eLJvzWDo ++ rm /tmp/tmp.qxf8siiLXd /tmp/tmp.A4eLJvzWDo ++ return 0 + [[ percona/percona-xtradb-cluster-operator:1.14.0-haproxy == percona/percona-xtradb-cluster-operator:1.14.0-haproxy ]] ++ kubectl_bin get pxc upgrade-proxysql -o 'jsonpath={.spec.backup.image}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.kcCAy5EZxk +++ mktemp ++ local LAST_ERR=/tmp/tmp.3sE4xmH836 ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc upgrade-proxysql -o 'jsonpath={.spec.backup.image}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.kcCAy5EZxk ++ cat /tmp/tmp.3sE4xmH836 ++ rm /tmp/tmp.kcCAy5EZxk /tmp/tmp.3sE4xmH836 ++ return 0 + [[ percona/percona-xtradb-cluster-operator:1.14.0-pxc8.0.36-backup-pxb8.0.35 == percona/percona-xtradb-cluster-operator:1.14.0-pxc8.0.36-backup-pxb8.0.35 ]] ++ kubectl_bin get pxc upgrade-proxysql -o 'jsonpath={.spec.pmm.image}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.9K2XB9yytX +++ mktemp ++ local LAST_ERR=/tmp/tmp.qyoGjeoZqV ++ local exit_status=0 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pxc upgrade-proxysql -o 'jsonpath={.spec.pmm.image}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 ']' ++ break ++ cat /tmp/tmp.9K2XB9yytX ++ cat /tmp/tmp.qyoGjeoZqV ++ rm /tmp/tmp.9K2XB9yytX /tmp/tmp.qyoGjeoZqV ++ return 0 + [[ percona/pmm-client:2.41.2 == percona/pmm-client:2.41.1 ]] + echo 'Operator image has not been updated' Operator image has not been updated + exit 1