++ echo 'Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/e2e-tests/logs/split-horizon.log' Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/e2e-tests/logs/split-horizon.log ++ '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/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: tls: failed to verify certificate: x509: certificate signed by unknown authority +++ kubectl version -o json +++ jq -r .serverVersion.gitVersion +++ grep '\-eks\-' Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority ++ '[' ']' ++ EKS=0 +++ kubectl version -o json +++ jq -r .serverVersion.gitVersion +++ grep gke Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority ++ '[' ']' ++ 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: tls: failed to verify certificate: x509: certificate signed by unknown authority ++ KUBE_VERSION=. + create_infra split-horizon-16085 + local ns=split-horizon-16085 + 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-1551/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.6NhtMLuiJu ++ mktemp + local LAST_ERR=/tmp/tmp.4xPcCPnedB + 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-1551/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.6NhtMLuiJu + cat /tmp/tmp.4xPcCPnedB error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml": Delete "https://35.239.34.79/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbbackups.psmdb.percona.com": tls: failed to verify certificate: x509: certificate signed by unknown authority error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml": Delete "https://35.239.34.79/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbrestores.psmdb.percona.com": tls: failed to verify certificate: x509: certificate signed by unknown authority error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml": Delete "https://35.239.34.79/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbs.psmdb.percona.com": tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.6NhtMLuiJu + cat /tmp/tmp.4xPcCPnedB error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml": Delete "https://35.239.34.79/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbbackups.psmdb.percona.com": tls: failed to verify certificate: x509: certificate signed by unknown authority error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml": Delete "https://35.239.34.79/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbrestores.psmdb.percona.com": tls: failed to verify certificate: x509: certificate signed by unknown authority error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml": Delete "https://35.239.34.79/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbs.psmdb.percona.com": tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 4 + for i in '$(seq 0 2)' + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.6NhtMLuiJu + cat /tmp/tmp.4xPcCPnedB error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml": Delete "https://35.239.34.79/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbbackups.psmdb.percona.com": tls: failed to verify certificate: x509: certificate signed by unknown authority error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml": Delete "https://35.239.34.79/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbrestores.psmdb.percona.com": tls: failed to verify certificate: x509: certificate signed by unknown authority error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml": Delete "https://35.239.34.79/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbs.psmdb.percona.com": tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 8 + cat /tmp/tmp.6NhtMLuiJu + cat /tmp/tmp.4xPcCPnedB error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml": Delete "https://35.239.34.79/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbbackups.psmdb.percona.com": tls: failed to verify certificate: x509: certificate signed by unknown authority error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml": Delete "https://35.239.34.79/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbrestores.psmdb.percona.com": tls: failed to verify certificate: x509: certificate signed by unknown authority error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml": Delete "https://35.239.34.79/apis/apiextensions.k8s.io/v1/customresourcedefinitions/perconaservermongodbs.psmdb.percona.com": tls: failed to verify certificate: x509: certificate signed by unknown authority + rm /tmp/tmp.6NhtMLuiJu /tmp/tmp.4xPcCPnedB + return 1 + : ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/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 22:23:37.003109 18027 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:23:37.210846 18027 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:23:37.419384 18027 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:23:37.628082 18027 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:23:37.835246 18027 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + kubectl patch perconaservermongodbbackups.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' E0604 22:23:38.089036 18051 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:23:38.298892 18051 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:23:38.510136 18051 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:23:38.720944 18051 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:23:38.930693 18051 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + : + kubectl_bin wait --for=delete crd perconaservermongodbbackups.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.l3zElhaoct ++ mktemp + local LAST_ERR=/tmp/tmp.0f61NkG9zw + 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.l3zElhaoct + cat /tmp/tmp.0f61NkG9zw Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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.l3zElhaoct + cat /tmp/tmp.0f61NkG9zw Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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.l3zElhaoct + cat /tmp/tmp.0f61NkG9zw Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 8 + cat /tmp/tmp.l3zElhaoct + cat /tmp/tmp.0f61NkG9zw Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + rm /tmp/tmp.l3zElhaoct /tmp/tmp.0f61NkG9zw + return 1 + : + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + kubectl get perconaservermongodbrestores.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbrestores.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' E0604 22:23:51.958827 18255 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:23:52.168130 18255 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:23:52.377399 18255 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:23:52.587746 18255 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:23:52.796251 18255 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + kubectl patch perconaservermongodbrestores.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' E0604 22:23:53.060939 18308 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:23:53.271918 18308 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:23:53.478815 18308 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:23:53.689029 18308 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:23:53.897634 18308 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + : + kubectl_bin wait --for=delete crd perconaservermongodbrestores.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.FaIiSe3LsM ++ mktemp + local LAST_ERR=/tmp/tmp.nIHTpzXdlI + 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.FaIiSe3LsM + cat /tmp/tmp.nIHTpzXdlI Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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.FaIiSe3LsM + cat /tmp/tmp.nIHTpzXdlI Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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.FaIiSe3LsM + cat /tmp/tmp.nIHTpzXdlI Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 8 + cat /tmp/tmp.FaIiSe3LsM + cat /tmp/tmp.nIHTpzXdlI Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + rm /tmp/tmp.FaIiSe3LsM /tmp/tmp.nIHTpzXdlI + 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 22:24:07.864144 18630 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:24:08.077988 18630 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:24:08.287821 18630 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:24:08.499248 18630 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:24:08.708444 18630 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + kubectl patch perconaservermongodbs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' E0604 22:24:08.961472 18652 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:24:09.173551 18652 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:24:09.384392 18652 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:24:09.594901 18652 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority E0604 22:24:09.806290 18652 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + : + kubectl_bin wait --for=delete crd perconaservermongodbs.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.Rd3FBo8OGA ++ mktemp + local LAST_ERR=/tmp/tmp.jjnFtWtnmP + 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.Rd3FBo8OGA + cat /tmp/tmp.jjnFtWtnmP Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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.Rd3FBo8OGA + cat /tmp/tmp.jjnFtWtnmP Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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.Rd3FBo8OGA + cat /tmp/tmp.jjnFtWtnmP Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 8 + cat /tmp/tmp.Rd3FBo8OGA + cat /tmp/tmp.jjnFtWtnmP Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + rm /tmp/tmp.Rd3FBo8OGA /tmp/tmp.jjnFtWtnmP + 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-1551/deploy/cw-rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.2N39fNO9A8 ++ mktemp + local LAST_ERR=/tmp/tmp.pjATqgGEis + 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-1551/deploy/cw-rbac.yaml --ignore-not-found + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.2N39fNO9A8 + cat /tmp/tmp.pjATqgGEis error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/cw-rbac.yaml": Delete "https://35.239.34.79/apis/rbac.authorization.k8s.io/v1/clusterroles/percona-server-mongodb-operator": tls: failed to verify certificate: x509: certificate signed by unknown authority error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/cw-rbac.yaml": Delete "https://35.239.34.79/api/v1/namespaces/scaling-24841/serviceaccounts/percona-server-mongodb-operator": tls: failed to verify certificate: x509: certificate signed by unknown authority error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/cw-rbac.yaml": Delete "https://35.239.34.79/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/service-account-percona-server-mongodb-operator": tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/cw-rbac.yaml --ignore-not-found + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.2N39fNO9A8 + cat /tmp/tmp.pjATqgGEis error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/cw-rbac.yaml": Delete "https://35.239.34.79/apis/rbac.authorization.k8s.io/v1/clusterroles/percona-server-mongodb-operator": tls: failed to verify certificate: x509: certificate signed by unknown authority error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/cw-rbac.yaml": Delete "https://35.239.34.79/api/v1/namespaces/scaling-24841/serviceaccounts/percona-server-mongodb-operator": tls: failed to verify certificate: x509: certificate signed by unknown authority error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/cw-rbac.yaml": Delete "https://35.239.34.79/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/service-account-percona-server-mongodb-operator": tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 4 + for i in '$(seq 0 2)' + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/cw-rbac.yaml --ignore-not-found + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.2N39fNO9A8 + cat /tmp/tmp.pjATqgGEis error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/cw-rbac.yaml": Delete "https://35.239.34.79/apis/rbac.authorization.k8s.io/v1/clusterroles/percona-server-mongodb-operator": tls: failed to verify certificate: x509: certificate signed by unknown authority error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/cw-rbac.yaml": Delete "https://35.239.34.79/api/v1/namespaces/scaling-24841/serviceaccounts/percona-server-mongodb-operator": tls: failed to verify certificate: x509: certificate signed by unknown authority error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/cw-rbac.yaml": Delete "https://35.239.34.79/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/service-account-percona-server-mongodb-operator": tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 8 + cat /tmp/tmp.2N39fNO9A8 + cat /tmp/tmp.pjATqgGEis error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/cw-rbac.yaml": Delete "https://35.239.34.79/apis/rbac.authorization.k8s.io/v1/clusterroles/percona-server-mongodb-operator": tls: failed to verify certificate: x509: certificate signed by unknown authority error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/cw-rbac.yaml": Delete "https://35.239.34.79/api/v1/namespaces/scaling-24841/serviceaccounts/percona-server-mongodb-operator": tls: failed to verify certificate: x509: certificate signed by unknown authority error when deleting "/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/cw-rbac.yaml": Delete "https://35.239.34.79/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/service-account-percona-server-mongodb-operator": tls: failed to verify certificate: x509: certificate signed by unknown authority + rm /tmp/tmp.2N39fNO9A8 /tmp/tmp.pjATqgGEis + return 1 + true + check_crd_for_deletion PR-1551-e268aa9a + local git_tag=PR-1551-e268aa9a ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-1551-e268aa9a/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.VfjCRNbFE3 +++ mktemp ++ local LAST_ERR=/tmp/tmp.7DZRvvaWia ++ 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.VfjCRNbFE3 ++ cat /tmp/tmp.7DZRvvaWia Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority ++ 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.VfjCRNbFE3 ++ cat /tmp/tmp.7DZRvvaWia Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority ++ 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.VfjCRNbFE3 ++ cat /tmp/tmp.7DZRvvaWia Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority ++ sleep 8 ++ cat /tmp/tmp.VfjCRNbFE3 ++ cat /tmp/tmp.7DZRvvaWia Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority ++ rm /tmp/tmp.VfjCRNbFE3 /tmp/tmp.7DZRvvaWia ++ 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 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// Error: Kubernetes cluster unreachable: Get "https://35.239.34.79/version": tls: failed to verify certificate: x509: certificate signed by unknown authority + 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: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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 22:24:52.437902 19717 memcache.go:265] couldn't get current server API group list: Get "https://35.239.34.79/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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.4oxDaesfs9 ++ mktemp + local LAST_OUT=/tmp/tmp.ebEH0hbkdG ++ mktemp + local LAST_ERR=/tmp/tmp.9ZBv3E82wf + local exit_status=0 + local timeout=4 + local LAST_ERR=/tmp/tmp.la10LonFz1 + 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.ebEH0hbkdG + cat /tmp/tmp.la10LonFz1 Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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.4oxDaesfs9 + cat /tmp/tmp.9ZBv3E82wf Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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.4oxDaesfs9 + cat /tmp/tmp.9ZBv3E82wf Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 4 + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.ebEH0hbkdG + cat /tmp/tmp.la10LonFz1 Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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.4oxDaesfs9 + cat /tmp/tmp.9ZBv3E82wf Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 8 + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.ebEH0hbkdG + cat /tmp/tmp.la10LonFz1 Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 8 + cat /tmp/tmp.4oxDaesfs9 + cat /tmp/tmp.9ZBv3E82wf Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + rm /tmp/tmp.4oxDaesfs9 /tmp/tmp.9ZBv3E82wf + return 1 + cat /tmp/tmp.ebEH0hbkdG + cat /tmp/tmp.la10LonFz1 Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + rm /tmp/tmp.ebEH0hbkdG /tmp/tmp.la10LonFz1 + return 1 + : + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.BdCBIr8ZVY ++ mktemp + local LAST_ERR=/tmp/tmp.2suZvu5eVa + 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.BdCBIr8ZVY + cat /tmp/tmp.2suZvu5eVa Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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.BdCBIr8ZVY + cat /tmp/tmp.2suZvu5eVa Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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.BdCBIr8ZVY + cat /tmp/tmp.2suZvu5eVa Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 8 + cat /tmp/tmp.BdCBIr8ZVY + cat /tmp/tmp.2suZvu5eVa Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + rm /tmp/tmp.BdCBIr8ZVY /tmp/tmp.2suZvu5eVa + 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.2HNTMVlvGh ++ mktemp + local LAST_ERR=/tmp/tmp.1dN8Cnjf4B + 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.2HNTMVlvGh + cat /tmp/tmp.1dN8Cnjf4B Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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.2HNTMVlvGh + cat /tmp/tmp.1dN8Cnjf4B Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + 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.2HNTMVlvGh + cat /tmp/tmp.1dN8Cnjf4B Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 8 + cat /tmp/tmp.2HNTMVlvGh + cat /tmp/tmp.1dN8Cnjf4B Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + rm /tmp/tmp.2HNTMVlvGh /tmp/tmp.1dN8Cnjf4B + return 1