Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/e2e-tests/logs/scaling.log WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1 WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1 WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1 + create_infra scaling-24841 + local ns=scaling-24841 + 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.DiQXrkdv2J ++ mktemp + local LAST_ERR=/tmp/tmp.RKay1XMpWR + 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=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.DiQXrkdv2J customresourcedefinition.apiextensions.k8s.io "perconaservermongodbbackups.psmdb.percona.com" deleted customresourcedefinition.apiextensions.k8s.io "perconaservermongodbrestores.psmdb.percona.com" deleted customresourcedefinition.apiextensions.k8s.io "perconaservermongodbs.psmdb.percona.com" deleted + cat /tmp/tmp.RKay1XMpWR + rm /tmp/tmp.DiQXrkdv2J /tmp/tmp.RKay1XMpWR + return 0 ++ 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 '\''\-\-\-'\'')' + kubectl get perconaservermongodbbackups.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbbackups.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbbackups" + kubectl patch perconaservermongodbbackups.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbbackups" + : + kubectl_bin wait --for=delete crd perconaservermongodbbackups.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.OX6ZLDeoTU ++ mktemp + local LAST_ERR=/tmp/tmp.pJCFjdOwr7 + 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=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.OX6ZLDeoTU + cat /tmp/tmp.pJCFjdOwr7 + rm /tmp/tmp.OX6ZLDeoTU /tmp/tmp.pJCFjdOwr7 + return 0 + 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\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbrestores" + kubectl patch perconaservermongodbrestores.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbrestores" + : + kubectl_bin wait --for=delete crd perconaservermongodbrestores.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.y21lsyPyPz ++ mktemp + local LAST_ERR=/tmp/tmp.n35WOfyrSQ + 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=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.y21lsyPyPz + cat /tmp/tmp.n35WOfyrSQ + rm /tmp/tmp.y21lsyPyPz /tmp/tmp.n35WOfyrSQ + return 0 + 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\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbs" + kubectl patch perconaservermongodbs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbs" + : + kubectl_bin wait --for=delete crd perconaservermongodbs.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.u2LYWaHs3k ++ mktemp + local LAST_ERR=/tmp/tmp.AIYggy11mH + 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=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.u2LYWaHs3k + cat /tmp/tmp.AIYggy11mH + rm /tmp/tmp.u2LYWaHs3k /tmp/tmp.AIYggy11mH + return 0 + 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.aAVEOriyC1 ++ mktemp + local LAST_ERR=/tmp/tmp.aFSVVM8CWp + 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=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.aAVEOriyC1 clusterrole.rbac.authorization.k8s.io "percona-server-mongodb-operator" deleted clusterrolebinding.rbac.authorization.k8s.io "service-account-percona-server-mongodb-operator" deleted + cat /tmp/tmp.aFSVVM8CWp + rm /tmp/tmp.aAVEOriyC1 /tmp/tmp.aFSVVM8CWp + return 0 + 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.nT90wFDV44 +++ mktemp ++ local LAST_ERR=/tmp/tmp.BqPMqBGtIp ++ 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.nT90wFDV44 ++ cat /tmp/tmp.BqPMqBGtIp Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ 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.nT90wFDV44 ++ cat /tmp/tmp.BqPMqBGtIp Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ 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.nT90wFDV44 ++ cat /tmp/tmp.BqPMqBGtIp Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 8 ++ cat /tmp/tmp.nT90wFDV44 ++ cat /tmp/tmp.BqPMqBGtIp Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.nT90wFDV44 /tmp/tmp.BqPMqBGtIp ++ 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// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ awk '{print $1}' ++ grep chaos-mesh + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ awk '{print $1}' ++ grep validate-auth + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' + 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' ++ mktemp + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin delete namespace psmdb-operator --ignore-not-found ++ mktemp + xargs kubectl delete ns + local LAST_OUT=/tmp/tmp.RtUiGwbbSh + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|gke-mcs|^NAME' + local LAST_OUT=/tmp/tmp.GXRzAcwpus ++ mktemp + local LAST_ERR=/tmp/tmp.mL3yOXjLPS + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get ns ++ mktemp + local LAST_ERR=/tmp/tmp.s2AasioN5g + 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 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.RtUiGwbbSh + cat /tmp/tmp.mL3yOXjLPS + rm /tmp/tmp.RtUiGwbbSh /tmp/tmp.mL3yOXjLPS + return 0 namespace "scaling-11682" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.GXRzAcwpus namespace "psmdb-operator" deleted + cat /tmp/tmp.s2AasioN5g + rm /tmp/tmp.GXRzAcwpus /tmp/tmp.s2AasioN5g + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.zziWASU78R ++ mktemp + local LAST_ERR=/tmp/tmp.g8bOcvNFy6 + 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 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.zziWASU78R + cat /tmp/tmp.g8bOcvNFy6 + rm /tmp/tmp.zziWASU78R /tmp/tmp.g8bOcvNFy6 + return 0 + desc 'create namespace psmdb-operator' + set +o xtrace ----------------------------------------------------------------------------------- create namespace psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin create namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.cyrAKNqTLG ++ mktemp + local LAST_ERR=/tmp/tmp.6QdxW3QYAb + 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=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.cyrAKNqTLG namespace/psmdb-operator created + cat /tmp/tmp.6QdxW3QYAb + rm /tmp/tmp.cyrAKNqTLG /tmp/tmp.6QdxW3QYAb + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.cPZLaQOFwQ +++ mktemp ++ local LAST_ERR=/tmp/tmp.PTU1igIL39 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.cPZLaQOFwQ ++ cat /tmp/tmp.PTU1igIL39 ++ rm /tmp/tmp.cPZLaQOFwQ /tmp/tmp.PTU1igIL39 ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1551-e268aa9a-2-cluster3 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.51kGBdR1a3 ++ mktemp + local LAST_ERR=/tmp/tmp.S0JXKtntPG + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1551-e268aa9a-2-cluster3 --namespace=psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.51kGBdR1a3 Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1551-e268aa9a-2-cluster3" modified. + cat /tmp/tmp.S0JXKtntPG + rm /tmp/tmp.51kGBdR1a3 /tmp/tmp.S0JXKtntPG + return 0 + deploy_operator + desc 'start PSMDB operator' + set +o xtrace ----------------------------------------------------------------------------------- start PSMDB operator ----------------------------------------------------------------------------------- + local cr_file + '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/e2e-tests/scaling/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.aIQMqx9wkT ++ mktemp + local LAST_ERR=/tmp/tmp.lToYpvzklf + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.aIQMqx9wkT customresourcedefinition.apiextensions.k8s.io/perconaservermongodbbackups.psmdb.percona.com serverside-applied customresourcedefinition.apiextensions.k8s.io/perconaservermongodbrestores.psmdb.percona.com serverside-applied customresourcedefinition.apiextensions.k8s.io/perconaservermongodbs.psmdb.percona.com serverside-applied + cat /tmp/tmp.lToYpvzklf + rm /tmp/tmp.aIQMqx9wkT /tmp/tmp.lToYpvzklf + return 0 + '[' -n psmdb-operator ']' + apply_rbac cw-rbac + local operator_namespace=psmdb-operator + local rbac=cw-rbac + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/cw-rbac.yaml + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.OZE5L2baqv ++ mktemp + local LAST_ERR=/tmp/tmp.l3J9nmtceV + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -n psmdb-operator -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.OZE5L2baqv clusterrole.rbac.authorization.k8s.io/percona-server-mongodb-operator created serviceaccount/percona-server-mongodb-operator created clusterrolebinding.rbac.authorization.k8s.io/service-account-percona-server-mongodb-operator created + cat /tmp/tmp.l3J9nmtceV + rm /tmp/tmp.OZE5L2baqv /tmp/tmp.l3J9nmtceV + return 0 + yq eval ' (.spec.template.spec.containers[].image = "perconalab/percona-server-mongodb-operator:PR-1551-e268aa9a") | ((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") | ((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/deploy/cw-operator.yaml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.5bRRLVljHM ++ mktemp + local LAST_ERR=/tmp/tmp.uKFAYmDDxD + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.5bRRLVljHM deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.uKFAYmDDxD + rm /tmp/tmp.5bRRLVljHM /tmp/tmp.uKFAYmDDxD + return 0 + sleep 2 ++ get_operator_pod ++ kubectl_bin get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' -n psmdb-operator +++ mktemp ++ local LAST_OUT=/tmp/tmp.EYpNrW05Gm +++ mktemp ++ local LAST_ERR=/tmp/tmp.Le5n7hpNV1 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' -n psmdb-operator ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.EYpNrW05Gm ++ cat /tmp/tmp.Le5n7hpNV1 ++ rm /tmp/tmp.EYpNrW05Gm /tmp/tmp.Le5n7hpNV1 ++ return 0 + wait_pod percona-server-mongodb-operator-56586457c4-dqxnm + local pod=percona-server-mongodb-operator-56586457c4-dqxnm + set +o xtrace waiting for pod/percona-server-mongodb-operator-56586457c4-dqxnm to be ready.OK + create_namespace scaling-24841 + local namespace=scaling-24841 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep validate-auth ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ awk '{print $1}' ++ grep chaos-mesh ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' + 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' + '[' -n '' ']' + xargs kubectl delete ns + desc 'cleaned up old namespaces scaling-24841' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces scaling-24841 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace scaling-24841 --ignore-not-found ++ mktemp + awk '{print$1}' + local LAST_OUT=/tmp/tmp.SQQzaqkCJZ + kubectl_bin get ns ++ mktemp + local LAST_ERR=/tmp/tmp.qafqcK39kz + local exit_status=0 + local timeout=4 ++ mktemp ++ seq 0 2 + local LAST_OUT=/tmp/tmp.SNa8E8Bvtg + for i in '$(seq 0 2)' + set +e + kubectl delete namespace scaling-24841 --ignore-not-found ++ mktemp + local LAST_ERR=/tmp/tmp.wOQCUJMPe6 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get ns + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.SNa8E8Bvtg + cat /tmp/tmp.wOQCUJMPe6 + rm /tmp/tmp.SNa8E8Bvtg /tmp/tmp.wOQCUJMPe6 + return 0 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.SQQzaqkCJZ + cat /tmp/tmp.qafqcK39kz + rm /tmp/tmp.SQQzaqkCJZ /tmp/tmp.qafqcK39kz + return 0 + kubectl_bin wait --for=delete namespace scaling-24841 ++ mktemp + local LAST_OUT=/tmp/tmp.vEWCivder6 ++ mktemp + local LAST_ERR=/tmp/tmp.x8m72XYcPW + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete namespace scaling-24841 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.vEWCivder6 + cat /tmp/tmp.x8m72XYcPW + rm /tmp/tmp.vEWCivder6 /tmp/tmp.x8m72XYcPW + return 0 + desc 'create namespace scaling-24841' + set +o xtrace ----------------------------------------------------------------------------------- create namespace scaling-24841 ----------------------------------------------------------------------------------- + kubectl_bin create namespace scaling-24841 ++ mktemp + local LAST_OUT=/tmp/tmp.ybXyVYoY6A ++ mktemp + local LAST_ERR=/tmp/tmp.r2tlNir9nn + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace scaling-24841 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ybXyVYoY6A namespace/scaling-24841 created + cat /tmp/tmp.r2tlNir9nn + rm /tmp/tmp.ybXyVYoY6A /tmp/tmp.r2tlNir9nn + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.05Eq6C5e21 +++ mktemp ++ local LAST_ERR=/tmp/tmp.QY3I96oyBS ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.05Eq6C5e21 ++ cat /tmp/tmp.QY3I96oyBS ++ rm /tmp/tmp.05Eq6C5e21 /tmp/tmp.QY3I96oyBS ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1551-e268aa9a-2-cluster3 --namespace=scaling-24841 ++ mktemp + local LAST_OUT=/tmp/tmp.HVdmjFwovz ++ mktemp + local LAST_ERR=/tmp/tmp.GS90OVaH2L + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1551-e268aa9a-2-cluster3 --namespace=scaling-24841 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.HVdmjFwovz Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1551-e268aa9a-2-cluster3" modified. + cat /tmp/tmp.GS90OVaH2L + rm /tmp/tmp.HVdmjFwovz /tmp/tmp.GS90OVaH2L + return 0 + desc 'create secrets and start client' + set +o xtrace ----------------------------------------------------------------------------------- create secrets and start client ----------------------------------------------------------------------------------- + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/e2e-tests/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/e2e-tests/conf/client.yml ++ mktemp + local LAST_OUT=/tmp/tmp.KDqBLOvtDk ++ mktemp + local LAST_ERR=/tmp/tmp.7HsIKn3sZY + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/e2e-tests/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/e2e-tests/conf/client.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.KDqBLOvtDk secret/some-users created deployment.apps/psmdb-client created + cat /tmp/tmp.7HsIKn3sZY + rm /tmp/tmp.KDqBLOvtDk /tmp/tmp.7HsIKn3sZY + return 0 + cluster=some-name-rs0 + desc 'create first PSMDB cluster some-name-rs0' + set +o xtrace ----------------------------------------------------------------------------------- create first PSMDB cluster some-name-rs0 ----------------------------------------------------------------------------------- + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/e2e-tests/conf/some-name-rs0.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/e2e-tests/conf/some-name-rs0.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1551/e2e-tests/conf/some-name-rs0.yml + yq eval '(.spec | select(.image == null)).image = "perconalab/percona-server-mongodb-operator:main-mongod7.0"' ++ mktemp + yq eval '(.spec | select(has("pmm"))).pmm.image = "perconalab/pmm-client:dev-latest"' + local LAST_OUT=/tmp/tmp.veXsPxk1GQ + yq eval '(.spec | select(has("backup"))).backup.image = "perconalab/percona-server-mongodb-operator:main-backup"' + yq eval '(.spec | select(has("initImage"))).initImage = "perconalab/percona-server-mongodb-operator:PR-1551-e268aa9a"' + yq eval '.spec.upgradeOptions.apply="Never"' ++ mktemp + local LAST_ERR=/tmp/tmp.xYW6iXsvEX + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.veXsPxk1GQ perconaservermongodb.psmdb.percona.com/some-name created + cat /tmp/tmp.xYW6iXsvEX + rm /tmp/tmp.veXsPxk1GQ /tmp/tmp.xYW6iXsvEX + return 0 + desc 'check if all 3 Pods started' + set +o xtrace ----------------------------------------------------------------------------------- check if all 3 Pods started ----------------------------------------------------------------------------------- + wait_for_running some-name-rs0 3 + local name=some-name-rs0 + let last_pod=2 + local check_cluster_readyness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=some-name ++ seq 0 2 + for i in '$(seq 0 $last_pod)' + [[ 0 -eq 2 ]] + wait_pod some-name-rs0-0 + local pod=some-name-rs0-0 + set +o xtrace waiting for pod/some-name-rs0-0 to be ready................OK + for i in '$(seq 0 $last_pod)' + [[ 1 -eq 2 ]] + wait_pod some-name-rs0-1 + local pod=some-name-rs0-1 + set +o xtrace waiting for pod/some-name-rs0-1 to be ready...............OK + for i in '$(seq 0 $last_pod)' + [[ 2 -eq 2 ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.doBxHbkPDj +++ mktemp ++ local LAST_ERR=/tmp/tmp.o806Mlu8xG ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.doBxHbkPDj ++ cat /tmp/tmp.o806Mlu8xG ++ rm /tmp/tmp.doBxHbkPDj /tmp/tmp.o806Mlu8xG ++ return 0 + [[ '' == \t\r\u\e ]] + wait_pod some-name-rs0-2 + local pod=some-name-rs0-2 + set +o xtrace waiting for pod/some-name-rs0-2 to be ready.................OK ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].non_voting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.4f4tTFYU4H +++ mktemp ++ local LAST_ERR=/tmp/tmp.7VPaOrcScb ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].non_voting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.4f4tTFYU4H ++ cat /tmp/tmp.7VPaOrcScb ++ rm /tmp/tmp.4f4tTFYU4H /tmp/tmp.7VPaOrcScb ++ return 0 + [[ '' == \t\r\u\e ]] + sleep 10 + [[ true == \t\r\u\e ]] + set +x Waiting for cluster readyness.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................error: Get "https://35.239.34.79/apis/psmdb.percona.com/v1/namespaces/scaling-24841/perconaservermongodbs/some-name": dial tcp 35.239.34.79:443: connect: connection refused - error from a previous attempt: unexpected EOF The connection to the server 35.239.34.79 was refused - did you specify the right host or port? Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout .Unable to connect to the server: dial tcp 35.239.34.79:443: i/o timeout