Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/e2e-tests/logs/smart-update.log Unable to connect to the server: 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 Unable to connect to the server: 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 + cluster=smart-update + create_infra smart-update-20316 + local ns=smart-update-20316 + 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.cm7kmFknT9 ++ mktemp + local LAST_ERR=/tmp/tmp.pvzw7iEPyu + 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.cm7kmFknT9 + cat /tmp/tmp.pvzw7iEPyu 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.cm7kmFknT9 + cat /tmp/tmp.pvzw7iEPyu 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.cm7kmFknT9 + cat /tmp/tmp.pvzw7iEPyu 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.cm7kmFknT9 + cat /tmp/tmp.pvzw7iEPyu 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.cm7kmFknT9 /tmp/tmp.pvzw7iEPyu + 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:19:13.952187 13440 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:19:14.162404 13440 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:19:14.373861 13440 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:19:14.586257 13440 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:19:14.795232 13440 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:19:15.049702 13463 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:19:15.260735 13463 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:19:15.470320 13463 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:19:15.680745 13463 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:19:15.890651 13463 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.ecQjNnsJhw ++ mktemp + local LAST_ERR=/tmp/tmp.9FKVb25bgp + 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.ecQjNnsJhw + cat /tmp/tmp.9FKVb25bgp 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.ecQjNnsJhw + cat /tmp/tmp.9FKVb25bgp 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.ecQjNnsJhw + cat /tmp/tmp.9FKVb25bgp Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 8 + cat /tmp/tmp.ecQjNnsJhw + cat /tmp/tmp.9FKVb25bgp Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + rm /tmp/tmp.ecQjNnsJhw /tmp/tmp.9FKVb25bgp + 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:19:29.371715 13701 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:19:29.581761 13701 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:19:29.790484 13701 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:19:29.999558 13701 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:19:30.213871 13701 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:19:30.467661 13738 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:19:30.676351 13738 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:19:30.888785 13738 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:19:31.096949 13738 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:19:31.305216 13738 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.J1gKwgSz8d ++ mktemp + local LAST_ERR=/tmp/tmp.wJVANqxSoY + 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.J1gKwgSz8d + cat /tmp/tmp.wJVANqxSoY 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.J1gKwgSz8d + cat /tmp/tmp.wJVANqxSoY 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.J1gKwgSz8d + cat /tmp/tmp.wJVANqxSoY Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 8 + cat /tmp/tmp.J1gKwgSz8d + cat /tmp/tmp.wJVANqxSoY Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + rm /tmp/tmp.J1gKwgSz8d /tmp/tmp.wJVANqxSoY + 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:19:44.331905 13943 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:19:44.540476 13943 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:19:44.748986 13943 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:19:44.958060 13943 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:19:45.166672 13943 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:19:45.418155 13966 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:19:45.627736 13966 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:19:45.838561 13966 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:19:46.046867 13966 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:19:46.255509 13966 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.5oficVA31H ++ mktemp + local LAST_ERR=/tmp/tmp.fNKWJRVHul + 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.5oficVA31H + cat /tmp/tmp.fNKWJRVHul 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.5oficVA31H + cat /tmp/tmp.fNKWJRVHul 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.5oficVA31H + cat /tmp/tmp.fNKWJRVHul Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 8 + cat /tmp/tmp.5oficVA31H + cat /tmp/tmp.fNKWJRVHul Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + rm /tmp/tmp.5oficVA31H /tmp/tmp.fNKWJRVHul + 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.IV4R8N9zJI ++ mktemp + local LAST_ERR=/tmp/tmp.Wf5Ikvnr7y + 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.IV4R8N9zJI + cat /tmp/tmp.Wf5Ikvnr7y 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.IV4R8N9zJI + cat /tmp/tmp.Wf5Ikvnr7y 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.IV4R8N9zJI + cat /tmp/tmp.Wf5Ikvnr7y 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.IV4R8N9zJI + cat /tmp/tmp.Wf5Ikvnr7y 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.IV4R8N9zJI /tmp/tmp.Wf5Ikvnr7y + 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.U1vXMWUVJz +++ mktemp ++ local LAST_ERR=/tmp/tmp.d2JvVdYoE6 ++ 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.U1vXMWUVJz ++ cat /tmp/tmp.d2JvVdYoE6 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.U1vXMWUVJz ++ cat /tmp/tmp.d2JvVdYoE6 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.U1vXMWUVJz ++ cat /tmp/tmp.d2JvVdYoE6 Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority ++ sleep 8 ++ cat /tmp/tmp.U1vXMWUVJz ++ cat /tmp/tmp.d2JvVdYoE6 Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority ++ rm /tmp/tmp.U1vXMWUVJz /tmp/tmp.d2JvVdYoE6 ++ 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://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:20:27.390906 14698 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 ----------------------------------------------------------------------------------- + kubectl_bin get ns + 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 + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|gke-mcs|^NAME' ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.TIoiFC5duO ++ mktemp + local LAST_OUT=/tmp/tmp.kW99aSPcBD ++ mktemp + local LAST_ERR=/tmp/tmp.Vslm683PTA + local exit_status=0 + local timeout=4 ++ seq 0 2 + local LAST_ERR=/tmp/tmp.IRy46Koxxo + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace psmdb-operator --ignore-not-found + for i in '$(seq 0 2)' + set +e + kubectl get ns + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.TIoiFC5duO + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.kW99aSPcBD + cat /tmp/tmp.Vslm683PTA + cat /tmp/tmp.IRy46Koxxo Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 0 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 + for i in '$(seq 0 2)' + set +e + kubectl get ns + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.kW99aSPcBD + cat /tmp/tmp.IRy46Koxxo 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.TIoiFC5duO + cat /tmp/tmp.Vslm683PTA 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.kW99aSPcBD + cat /tmp/tmp.IRy46Koxxo 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.TIoiFC5duO + cat /tmp/tmp.Vslm683PTA Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 8 + cat /tmp/tmp.kW99aSPcBD + cat /tmp/tmp.IRy46Koxxo Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + rm /tmp/tmp.kW99aSPcBD /tmp/tmp.IRy46Koxxo + cat /tmp/tmp.TIoiFC5duO + return 1 + cat /tmp/tmp.Vslm683PTA Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + rm /tmp/tmp.TIoiFC5duO /tmp/tmp.Vslm683PTA + return 1 + : + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.Zk5s8kHLSP ++ mktemp + local LAST_ERR=/tmp/tmp.GJ5MwmBulK + 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.Zk5s8kHLSP + cat /tmp/tmp.GJ5MwmBulK 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.Zk5s8kHLSP + cat /tmp/tmp.GJ5MwmBulK 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.Zk5s8kHLSP + cat /tmp/tmp.GJ5MwmBulK Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 8 + cat /tmp/tmp.Zk5s8kHLSP + cat /tmp/tmp.GJ5MwmBulK Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + rm /tmp/tmp.Zk5s8kHLSP /tmp/tmp.GJ5MwmBulK + 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.GINXlZk3SC ++ mktemp + local LAST_ERR=/tmp/tmp.wftKokt94y + 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.GINXlZk3SC + cat /tmp/tmp.wftKokt94y 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.GINXlZk3SC + cat /tmp/tmp.wftKokt94y 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.GINXlZk3SC + cat /tmp/tmp.wftKokt94y Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + sleep 8 + cat /tmp/tmp.GINXlZk3SC + cat /tmp/tmp.wftKokt94y Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority + rm /tmp/tmp.GINXlZk3SC /tmp/tmp.wftKokt94y + return 1