++ echo 'Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/e2e-tests/logs/recover-no-primary.log' Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/e2e-tests/logs/recover-no-primary.log ++ '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/e2e-tests/conf/cloud-secret.yml ']' ++ SKIP_BACKUPS_TO_AWS_GCP_AZURE= ++ oc get projects ++ kubectl get nodes ++ grep '^minikube' Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout +++ kubectl version -o json +++ jq -r .serverVersion.gitVersion +++ grep '\-eks\-' Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout ++ '[' ']' ++ EKS=0 +++ kubectl version -o json +++ jq -r .serverVersion.gitVersion +++ grep gke Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout ++ '[' ']' ++ GKE=0 +++ kubectl version -o json +++ jq -r '.serverVersion.major + "." + .serverVersion.minor' +++ /usr/bin/sed -r 's/[^0-9.]+//g' Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout ++ KUBE_VERSION=. + create_infra recover-no-primary-20757 + local ns=recover-no-primary-20757 + delete_crd + desc 'get and delete old CRDs and RBAC' + set +o xtrace ----------------------------------------------------------------------------------- get and delete old CRDs and RBAC ----------------------------------------------------------------------------------- + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.I3nmnj4MQt ++ mktemp + local LAST_ERR=/tmp/tmp.BegqrpaXF5 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.I3nmnj4MQt + cat /tmp/tmp.BegqrpaXF5 error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml": Delete "https://104.198.163.144/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbbackups.psmdb.percona.com": dial tcp 104.198.163.144:443: i/o timeout error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml": Delete "https://104.198.163.144/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbrestores.psmdb.percona.com": dial tcp 104.198.163.144:443: i/o timeout error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml": Delete "https://104.198.163.144/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbs.psmdb.percona.com": dial tcp 104.198.163.144:443: i/o timeout + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.I3nmnj4MQt + cat /tmp/tmp.BegqrpaXF5 error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml": Delete "https://104.198.163.144/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbbackups.psmdb.percona.com": dial tcp 104.198.163.144:443: i/o timeout error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml": Delete "https://104.198.163.144/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbrestores.psmdb.percona.com": dial tcp 104.198.163.144:443: i/o timeout error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml": Delete "https://104.198.163.144/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbs.psmdb.percona.com": dial tcp 104.198.163.144:443: i/o timeout + sleep 4 + for i in '$(seq 0 2)' + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.I3nmnj4MQt + cat /tmp/tmp.BegqrpaXF5 error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml": Delete "https://104.198.163.144/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbbackups.psmdb.percona.com": dial tcp 104.198.163.144:443: i/o timeout error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml": Delete "https://104.198.163.144/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbrestores.psmdb.percona.com": dial tcp 104.198.163.144:443: i/o timeout error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml": Delete "https://104.198.163.144/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbs.psmdb.percona.com": dial tcp 104.198.163.144:443: i/o timeout + sleep 8 + cat /tmp/tmp.I3nmnj4MQt + cat /tmp/tmp.BegqrpaXF5 error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml": Delete "https://104.198.163.144/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbbackups.psmdb.percona.com": dial tcp 104.198.163.144:443: i/o timeout error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml": Delete "https://104.198.163.144/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbrestores.psmdb.percona.com": dial tcp 104.198.163.144:443: i/o timeout error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml": Delete "https://104.198.163.144/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbs.psmdb.percona.com": dial tcp 104.198.163.144:443: i/o timeout + rm /tmp/tmp.I3nmnj4MQt /tmp/tmp.BegqrpaXF5 + return 1 + : ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml ++ grep -v '\-\-\-' + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + grep -v NAMESPACE + kubectl get perconaservermongodbbackups.psmdb.percona.com --all-namespaces -o wide + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbbackups.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' E0604 23:06:40.442053 2850 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:07:10.442784 2850 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:07:40.443828 2850 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:08:10.444377 2850 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:08:40.445294 2850 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + kubectl patch perconaservermongodbbackups.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' E0604 23:09:10.944297 4484 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:09:40.944922 4484 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:10:10.945832 4484 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:10:40.946431 4484 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:11:10.946864 4484 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + : + kubectl_bin wait --for=delete crd perconaservermongodbbackups.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.UlpuKRKML2 ++ mktemp + local LAST_ERR=/tmp/tmp.CzXeBDmLhR + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete crd perconaservermongodbbackups.psmdb.percona.com + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.UlpuKRKML2 + cat /tmp/tmp.CzXeBDmLhR Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete crd perconaservermongodbbackups.psmdb.percona.com + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.UlpuKRKML2 + cat /tmp/tmp.CzXeBDmLhR Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 4 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete crd perconaservermongodbbackups.psmdb.percona.com + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.UlpuKRKML2 + cat /tmp/tmp.CzXeBDmLhR Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 8 + cat /tmp/tmp.UlpuKRKML2 + cat /tmp/tmp.CzXeBDmLhR Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + rm /tmp/tmp.UlpuKRKML2 /tmp/tmp.CzXeBDmLhR + return 1 + : + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + grep -v NAMESPACE + kubectl get perconaservermongodbrestores.psmdb.percona.com --all-namespaces -o wide + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbrestores.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' E0604 23:13:24.038360 7295 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:13:54.038957 7295 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:14:24.039245 7295 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:14:54.039795 7295 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:15:24.040514 7295 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + kubectl patch perconaservermongodbrestores.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' E0604 23:15:54.538545 9056 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:16:24.538916 9056 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:16:54.539515 9056 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:17:24.540139 9056 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:17:54.540709 9056 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + : + kubectl_bin wait --for=delete crd perconaservermongodbrestores.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.wERuHLe7oq ++ mktemp + local LAST_ERR=/tmp/tmp.2GrZcoAkjb + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete crd perconaservermongodbrestores.psmdb.percona.com + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.wERuHLe7oq + cat /tmp/tmp.2GrZcoAkjb Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete crd perconaservermongodbrestores.psmdb.percona.com + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.wERuHLe7oq + cat /tmp/tmp.2GrZcoAkjb Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 4 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete crd perconaservermongodbrestores.psmdb.percona.com + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.wERuHLe7oq + cat /tmp/tmp.2GrZcoAkjb Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 8 + cat /tmp/tmp.wERuHLe7oq + cat /tmp/tmp.2GrZcoAkjb Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + rm /tmp/tmp.wERuHLe7oq /tmp/tmp.2GrZcoAkjb + return 1 + : + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + kubectl get perconaservermongodbs.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbs.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' E0604 23:20:07.629828 11917 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:20:37.630456 11917 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:21:07.630903 11917 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:21:37.631478 11917 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:22:07.632629 11917 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + kubectl patch perconaservermongodbs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' E0604 23:22:38.128500 13579 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:23:08.128857 13579 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:23:38.129200 13579 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:24:08.129859 13579 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout E0604 23:24:38.130901 13579 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + : + kubectl_bin wait --for=delete crd perconaservermongodbs.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.7EFVcDKBQI ++ mktemp + local LAST_ERR=/tmp/tmp.kSJOHz3fPp + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete crd perconaservermongodbs.psmdb.percona.com + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.7EFVcDKBQI + cat /tmp/tmp.kSJOHz3fPp Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete crd perconaservermongodbs.psmdb.percona.com + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.7EFVcDKBQI + cat /tmp/tmp.kSJOHz3fPp Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 4 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete crd perconaservermongodbs.psmdb.percona.com + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.7EFVcDKBQI + cat /tmp/tmp.kSJOHz3fPp Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 8 + cat /tmp/tmp.7EFVcDKBQI + cat /tmp/tmp.kSJOHz3fPp Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + rm /tmp/tmp.7EFVcDKBQI /tmp/tmp.kSJOHz3fPp + return 1 + : + local rbac_yaml=rbac.yaml + '[' -n psmdb-operator ']' + rbac_yaml=cw-rbac.yaml + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.WSY4Lg3EUV ++ mktemp + local LAST_ERR=/tmp/tmp.K8IhPH0mGj + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-rbac.yaml --ignore-not-found + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.WSY4Lg3EUV + cat /tmp/tmp.K8IhPH0mGj error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-rbac.yaml": Delete "https://104.198.163.144/apis/rbac.authorization.k8s.io/v1/clusterroles/percona-server-mongodb-operator": dial tcp 104.198.163.144:443: i/o timeout error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-rbac.yaml": Delete "https://104.198.163.144/api/v1/namespaces/non-voting-20764/serviceaccounts/percona-server-mongodb-operator": dial tcp 104.198.163.144:443: i/o timeout error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-rbac.yaml": Delete "https://104.198.163.144/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/service-account-percona-server-mongodb-operator": dial tcp 104.198.163.144:443: i/o timeout + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-rbac.yaml --ignore-not-found + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.WSY4Lg3EUV + cat /tmp/tmp.K8IhPH0mGj error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-rbac.yaml": Delete "https://104.198.163.144/apis/rbac.authorization.k8s.io/v1/clusterroles/percona-server-mongodb-operator": dial tcp 104.198.163.144:443: i/o timeout error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-rbac.yaml": Delete "https://104.198.163.144/api/v1/namespaces/non-voting-20764/serviceaccounts/percona-server-mongodb-operator": dial tcp 104.198.163.144:443: i/o timeout error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-rbac.yaml": Delete "https://104.198.163.144/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/service-account-percona-server-mongodb-operator": dial tcp 104.198.163.144:443: i/o timeout + sleep 4 + for i in '$(seq 0 2)' + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-rbac.yaml --ignore-not-found + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.WSY4Lg3EUV + cat /tmp/tmp.K8IhPH0mGj error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-rbac.yaml": Delete "https://104.198.163.144/apis/rbac.authorization.k8s.io/v1/clusterroles/percona-server-mongodb-operator": dial tcp 104.198.163.144:443: i/o timeout error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-rbac.yaml": Delete "https://104.198.163.144/api/v1/namespaces/non-voting-20764/serviceaccounts/percona-server-mongodb-operator": dial tcp 104.198.163.144:443: i/o timeout error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-rbac.yaml": Delete "https://104.198.163.144/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/service-account-percona-server-mongodb-operator": dial tcp 104.198.163.144:443: i/o timeout + sleep 8 + cat /tmp/tmp.WSY4Lg3EUV + cat /tmp/tmp.K8IhPH0mGj error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-rbac.yaml": Delete "https://104.198.163.144/apis/rbac.authorization.k8s.io/v1/clusterroles/percona-server-mongodb-operator": dial tcp 104.198.163.144:443: i/o timeout error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-rbac.yaml": Delete "https://104.198.163.144/api/v1/namespaces/non-voting-20764/serviceaccounts/percona-server-mongodb-operator": dial tcp 104.198.163.144:443: i/o timeout error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-rbac.yaml": Delete "https://104.198.163.144/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/service-account-percona-server-mongodb-operator": dial tcp 104.198.163.144:443: i/o timeout + rm /tmp/tmp.WSY4Lg3EUV /tmp/tmp.K8IhPH0mGj + return 1 + true + check_crd_for_deletion PR-1552-a008e872 + local git_tag=PR-1552-a008e872 ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-1552-a008e872/deploy/crd.yaml ++ yq eval .metadata.name ++ /usr/bin/sed s/---//g ++ /usr/bin/sed ':a;N;$!ba;s/\n/ /g' + for crd_name in '$(curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/${git_tag}/deploy/crd.yaml | yq eval '\''.metadata.name'\'' | $sed '\''s/---//g'\'' | $sed '\'':a;N;$!ba;s/\n/ /g'\'')' ++ kubectl_bin get crd/null -o 'jsonpath={.status.conditions[-1].type}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.dR2kT2F5Lv +++ mktemp ++ local LAST_ERR=/tmp/tmp.WsnZeBrTAW ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get crd/null -o 'jsonpath={.status.conditions[-1].type}' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.dR2kT2F5Lv ++ cat /tmp/tmp.WsnZeBrTAW Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout ++ sleep 0 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get crd/null -o 'jsonpath={.status.conditions[-1].type}' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.dR2kT2F5Lv ++ cat /tmp/tmp.WsnZeBrTAW Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout ++ sleep 4 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get crd/null -o 'jsonpath={.status.conditions[-1].type}' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.dR2kT2F5Lv ++ cat /tmp/tmp.WsnZeBrTAW Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout ++ sleep 8 ++ cat /tmp/tmp.dR2kT2F5Lv ++ cat /tmp/tmp.WsnZeBrTAW Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout ++ rm /tmp/tmp.dR2kT2F5Lv /tmp/tmp.WsnZeBrTAW ++ return 1 + [[ '' == \T\e\r\m\i\n\a\t\i\n\g ]] + '[' -n psmdb-operator ']' + create_namespace psmdb-operator + local namespace=psmdb-operator + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ sed s/NAMESPACE// ++ awk '-F ' '{print $2}' Error: Kubernetes cluster unreachable: Get "https://104.198.163.144/version": dial tcp 104.198.163.144:443: i/o timeout + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep validate-auth ++ awk '{print $1}' Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' E0604 23:35:21.489742 23075 memcache.go:265] couldn't get current server API group list: Get "https://104.198.163.144/api?timeout=32s": dial tcp 104.198.163.144:443: i/o timeout Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|gke-mcs|^NAME' + awk '{print$1}' + '[' -n '' ']' + desc 'cleaned up old namespaces psmdb-operator' + xargs kubectl delete ns + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin delete namespace psmdb-operator --ignore-not-found + kubectl_bin get ns ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.LFPBHFLodX + local LAST_OUT=/tmp/tmp.dHhLGjqnHq ++ mktemp ++ mktemp + local LAST_ERR=/tmp/tmp.8bxALPQfmy + local exit_status=0 + local timeout=4 + local LAST_ERR=/tmp/tmp.YL52tsdS01 + local exit_status=0 + local timeout=4 ++ 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 psmdb-operator --ignore-not-found + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.LFPBHFLodX + cat /tmp/tmp.8bxALPQfmy Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl get ns + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.dHhLGjqnHq + cat /tmp/tmp.YL52tsdS01 Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace psmdb-operator --ignore-not-found + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.LFPBHFLodX + cat /tmp/tmp.8bxALPQfmy Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 4 + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.dHhLGjqnHq + cat /tmp/tmp.YL52tsdS01 Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 4 + for i in '$(seq 0 2)' + set +e + kubectl get ns + for i in '$(seq 0 2)' + set +e + kubectl delete namespace psmdb-operator --ignore-not-found + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.LFPBHFLodX + cat /tmp/tmp.8bxALPQfmy Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 8 + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.dHhLGjqnHq + cat /tmp/tmp.YL52tsdS01 Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 8 + cat /tmp/tmp.LFPBHFLodX + cat /tmp/tmp.8bxALPQfmy Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + rm /tmp/tmp.LFPBHFLodX /tmp/tmp.8bxALPQfmy + return 1 + cat /tmp/tmp.dHhLGjqnHq + cat /tmp/tmp.YL52tsdS01 Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + rm /tmp/tmp.dHhLGjqnHq /tmp/tmp.YL52tsdS01 + return 1 + : + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.n7sb85wA74 ++ mktemp + local LAST_ERR=/tmp/tmp.xpXh9rgggx + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete namespace psmdb-operator error: resource(s) were provided, but no name was specified + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.n7sb85wA74 + cat /tmp/tmp.xpXh9rgggx Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete namespace psmdb-operator + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.n7sb85wA74 + cat /tmp/tmp.xpXh9rgggx Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 4 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete namespace psmdb-operator + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.n7sb85wA74 + cat /tmp/tmp.xpXh9rgggx Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 8 + cat /tmp/tmp.n7sb85wA74 + cat /tmp/tmp.xpXh9rgggx Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + rm /tmp/tmp.n7sb85wA74 /tmp/tmp.xpXh9rgggx + return 1 + : + desc 'create namespace psmdb-operator' + set +o xtrace ----------------------------------------------------------------------------------- create namespace psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin create namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.f9F96wpjUu ++ mktemp + local LAST_ERR=/tmp/tmp.C5cnFSDAwg + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace psmdb-operator + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.f9F96wpjUu + cat /tmp/tmp.C5cnFSDAwg Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl create namespace psmdb-operator + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.f9F96wpjUu + cat /tmp/tmp.C5cnFSDAwg Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 4 + for i in '$(seq 0 2)' + set +e + kubectl create namespace psmdb-operator + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.f9F96wpjUu + cat /tmp/tmp.C5cnFSDAwg Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + sleep 8 + cat /tmp/tmp.f9F96wpjUu + cat /tmp/tmp.C5cnFSDAwg Unable to connect to the server: dial tcp 104.198.163.144:443: i/o timeout + rm /tmp/tmp.f9F96wpjUu /tmp/tmp.C5cnFSDAwg + return 1