++ echo 'Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1776/e2e-tests/logs/serviceless-external-nodes.log' Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1776/e2e-tests/logs/serviceless-external-nodes.log ++ '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1776/e2e-tests/conf/cloud-secret.yml ']' ++ SKIP_BACKUPS_TO_AWS_GCP_AZURE= ++ oc get projects ++ kubectl get nodes ++ grep '^minikube' +++ kubectl version -o json +++ jq -r .serverVersion.gitVersion +++ grep '\-eks\-' WARNING: version difference between client (1.32) and server (1.29) exceeds the supported minor version skew of +/-1 ++ '[' ']' ++ EKS=0 +++ kubectl version -o json +++ jq -r .serverVersion.gitVersion +++ grep gke WARNING: version difference between client (1.32) and server (1.29) exceeds the supported minor version skew of +/-1 ++ '[' v1.29.15-gke.1017000 ']' ++ GKE=1 +++ kubectl version -o json +++ jq -r '.serverVersion.major + "." + .serverVersion.minor' +++ /usr/bin/sed -r 's/[^0-9.]+//g' WARNING: version difference between client (1.32) and server (1.29) exceeds the supported minor version skew of +/-1 ++ KUBE_VERSION=1.29 ++ get_mongod_ver_from_image perconalab/percona-server-mongodb-operator:main-mongod8.0 ++ local image=perconalab/percona-server-mongodb-operator:main-mongod8.0 +++ run_simple_cli_inside_image perconalab/percona-server-mongodb-operator:main-mongod8.0 'mongod --version' +++ local image=perconalab/percona-server-mongodb-operator:main-mongod8.0 +++ local 'cli=mongod --version' +++ /usr/bin/sed -r 's/^.*db version v(([0-9]+\.){2}[0-9]+-[0-9]+).*$/\1/g' +++ local pod_name=1822 +++ kubectl_bin -n default run 1822 --image=perconalab/percona-server-mongodb-operator:main-mongod8.0 --restart=Never --command -- sleep infinity ++++ mktemp +++ local LAST_OUT=/tmp/tmp.zZxeVfJlne ++++ mktemp +++ local LAST_ERR=/tmp/tmp.dHxdQvRA8v +++ local exit_status=0 +++ local timeout=4 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl -n default run 1822 --image=perconalab/percona-server-mongodb-operator:main-mongod8.0 --restart=Never --command -- sleep infinity +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 -a -n 1 ']' +++ break +++ cat /tmp/tmp.zZxeVfJlne +++ cat /tmp/tmp.dHxdQvRA8v +++ rm /tmp/tmp.zZxeVfJlne /tmp/tmp.dHxdQvRA8v +++ return 0 +++ kubectl_bin -n default wait --for=condition=Ready pod/1822 ++++ mktemp +++ local LAST_OUT=/tmp/tmp.Fe21j5w5Tj ++++ mktemp +++ local LAST_ERR=/tmp/tmp.4kUtCxtAR3 +++ local exit_status=0 +++ local timeout=4 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl -n default wait --for=condition=Ready pod/1822 +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 -a -n 1 ']' +++ break +++ cat /tmp/tmp.Fe21j5w5Tj +++ cat /tmp/tmp.4kUtCxtAR3 +++ rm /tmp/tmp.Fe21j5w5Tj /tmp/tmp.4kUtCxtAR3 +++ return 0 ++++ kubectl_bin -n default exec 1822 -- bash -c 'mongod --version 2>&1' +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.DY1j70n3fB +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.NUom6pKLuT ++++ local exit_status=0 ++++ local timeout=4 +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ set +e ++++ kubectl -n default exec 1822 -- bash -c 'mongod --version 2>&1' ++++ exit_status=0 ++++ set -e ++++ '[' 0 '!=' 0 -a -n 1 ']' ++++ break ++++ cat /tmp/tmp.DY1j70n3fB ++++ cat /tmp/tmp.NUom6pKLuT ++++ rm /tmp/tmp.DY1j70n3fB /tmp/tmp.NUom6pKLuT ++++ return 0 +++ local 'output=db version v8.0.4-2 Build Info: { "version": "8.0.4-2", "gitVersion": "4050406b7eb2895c2810029526e5439b4ebc12a5", "openSSLVersion": "OpenSSL 3.2.2 4 Jun 2024", "modules": [], "proFeatures": [], "allocator": "tcmalloc-google", "environment": { "distarch": "x86_64", "target_arch": "x86_64" } }' +++ kubectl_bin -n default delete pod/1822 --grace-period=0 --force ++++ mktemp +++ local LAST_OUT=/tmp/tmp.ySNJgf3xFg ++++ mktemp +++ local LAST_ERR=/tmp/tmp.mGExjvf9OJ +++ local exit_status=0 +++ local timeout=4 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl -n default delete pod/1822 --grace-period=0 --force +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 -a -n 1 ']' +++ break +++ cat /tmp/tmp.ySNJgf3xFg +++ cat /tmp/tmp.mGExjvf9OJ Warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. +++ rm /tmp/tmp.ySNJgf3xFg /tmp/tmp.mGExjvf9OJ +++ return 0 +++ echo db version v8.0.4-2 Build Info: '{' '"version":' '"8.0.4-2",' '"gitVersion":' '"4050406b7eb2895c2810029526e5439b4ebc12a5",' '"openSSLVersion":' '"OpenSSL' 3.2.2 4 Jun '2024",' '"modules":' '[],' '"proFeatures":' '[],' '"allocator":' '"tcmalloc-google",' '"environment":' '{' '"distarch":' '"x86_64",' '"target_arch":' '"x86_64"' '}' '}' ++ version_info=8.0.4-2 ++ [[ ! 8.0.4-2 =~ ^([0-9]+\.){2}[0-9]+-[0-9]+$ ]] ++ echo 8.0.4-2 + FULL_VER=8.0.4-2 + MONGO_VER=8.0 + unset OPERATOR_NS + desc 'Create main cluster' + set +o xtrace ----------------------------------------------------------------------------------- Create main cluster ----------------------------------------------------------------------------------- + create_infra serviceless-external-nodes-27556 + local ns=serviceless-external-nodes-27556 + 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-1776/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.1vU5C9sFE9 ++ mktemp + local LAST_ERR=/tmp/tmp.iy7AFSpA8L + 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-1776/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.1vU5C9sFE9 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.iy7AFSpA8L + rm /tmp/tmp.1vU5C9sFE9 /tmp/tmp.iy7AFSpA8L + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1776/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\":[]}}"' 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.4BFPUYJVxv ++ mktemp + local LAST_ERR=/tmp/tmp.ZuEuylAYrJ + 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.4BFPUYJVxv + cat /tmp/tmp.ZuEuylAYrJ + rm /tmp/tmp.4BFPUYJVxv /tmp/tmp.ZuEuylAYrJ + return 0 + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + grep -v NAMESPACE + kubectl get perconaservermongodbrestores.psmdb.percona.com --all-namespaces -o wide + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbrestores.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' 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.EWaQZcArEC ++ mktemp + local LAST_ERR=/tmp/tmp.YCXmUpgFRS + 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.EWaQZcArEC + cat /tmp/tmp.YCXmUpgFRS + rm /tmp/tmp.EWaQZcArEC /tmp/tmp.YCXmUpgFRS + 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.1owqY1fE2V ++ mktemp + local LAST_ERR=/tmp/tmp.SnqlTYauFa + 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.1owqY1fE2V + cat /tmp/tmp.SnqlTYauFa + rm /tmp/tmp.1owqY1fE2V /tmp/tmp.SnqlTYauFa + return 0 + local rbac_yaml=rbac.yaml + '[' -n '' ']' + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1776/deploy/rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.FbsOEUmQGK ++ mktemp + local LAST_ERR=/tmp/tmp.agDt3x9i8f + 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-1776/deploy/rbac.yaml --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.FbsOEUmQGK role.rbac.authorization.k8s.io "percona-server-mongodb-operator" deleted serviceaccount "percona-server-mongodb-operator" deleted rolebinding.rbac.authorization.k8s.io "service-account-percona-server-mongodb-operator" deleted + cat /tmp/tmp.agDt3x9i8f + rm /tmp/tmp.FbsOEUmQGK /tmp/tmp.agDt3x9i8f + return 0 + check_crd_for_deletion PR-1776-54911d4c + local git_tag=PR-1776-54911d4c ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-1776-54911d4c/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.uF6IzUlGhd +++ mktemp ++ local LAST_ERR=/tmp/tmp.FByeT0AWzB ++ 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.uF6IzUlGhd ++ cat /tmp/tmp.FByeT0AWzB 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.uF6IzUlGhd ++ cat /tmp/tmp.FByeT0AWzB 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.uF6IzUlGhd ++ cat /tmp/tmp.FByeT0AWzB Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 8 ++ cat /tmp/tmp.uF6IzUlGhd ++ cat /tmp/tmp.FByeT0AWzB Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.uF6IzUlGhd /tmp/tmp.FByeT0AWzB ++ return 1 + [[ '' == \T\e\r\m\i\n\a\t\i\n\g ]] + '[' -n '' ']' + create_namespace serviceless-external-nodes-27556 + local namespace=serviceless-external-nodes-27556 + 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 ++ 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 ----------------------------------------------------------------------------------- + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|gke-mcs|^NAME' + awk '{print$1}' + '[' -n '' ']' + xargs kubectl delete ns + desc 'cleaned up old namespaces serviceless-external-nodes-27556' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces serviceless-external-nodes-27556 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace serviceless-external-nodes-27556 --ignore-not-found + kubectl_bin get ns ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.4RAPr1PddU + local LAST_OUT=/tmp/tmp.zXy8WMpfo9 ++ mktemp ++ mktemp + local LAST_ERR=/tmp/tmp.HoJS85MvpL + local exit_status=0 + local timeout=4 + local LAST_ERR=/tmp/tmp.ZXNHSlSO1C + local exit_status=0 + local timeout=4 ++ seq 0 2 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace serviceless-external-nodes-27556 --ignore-not-found + 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.zXy8WMpfo9 + cat /tmp/tmp.ZXNHSlSO1C + rm /tmp/tmp.zXy8WMpfo9 /tmp/tmp.ZXNHSlSO1C + return 0 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.4RAPr1PddU + cat /tmp/tmp.HoJS85MvpL + rm /tmp/tmp.4RAPr1PddU /tmp/tmp.HoJS85MvpL + return 0 + kubectl_bin wait --for=delete namespace serviceless-external-nodes-27556 ++ mktemp + local LAST_OUT=/tmp/tmp.MvuC5sL1c2 ++ mktemp + local LAST_ERR=/tmp/tmp.NwUwyD2Szj + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete namespace serviceless-external-nodes-27556 namespace "gke-managed-cim" deleted namespace "gke-managed-system" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.MvuC5sL1c2 + cat /tmp/tmp.NwUwyD2Szj + rm /tmp/tmp.MvuC5sL1c2 /tmp/tmp.NwUwyD2Szj + return 0 + desc 'create namespace serviceless-external-nodes-27556' + set +o xtrace ----------------------------------------------------------------------------------- create namespace serviceless-external-nodes-27556 ----------------------------------------------------------------------------------- + kubectl_bin create namespace serviceless-external-nodes-27556 ++ mktemp + local LAST_OUT=/tmp/tmp.dQMcYUgJzL ++ mktemp + local LAST_ERR=/tmp/tmp.qyqPEuRqEJ + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace serviceless-external-nodes-27556 namespace "gmp-public" deleted namespace "gmp-system" deleted namespace "serviceless-external-nodes-28814" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.dQMcYUgJzL namespace/serviceless-external-nodes-27556 created + cat /tmp/tmp.qyqPEuRqEJ + rm /tmp/tmp.dQMcYUgJzL /tmp/tmp.qyqPEuRqEJ + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.R1mWPsTPrY +++ mktemp ++ local LAST_ERR=/tmp/tmp.ki3eTxbFHK ++ 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.R1mWPsTPrY ++ cat /tmp/tmp.ki3eTxbFHK ++ rm /tmp/tmp.R1mWPsTPrY /tmp/tmp.ki3eTxbFHK ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1776-54911d4c-5-cluster3 --namespace=serviceless-external-nodes-27556 ++ mktemp + local LAST_OUT=/tmp/tmp.Pm72XdDfg4 ++ mktemp + local LAST_ERR=/tmp/tmp.Vfl9pSTTHI + 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-1776-54911d4c-5-cluster3 --namespace=serviceless-external-nodes-27556 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Pm72XdDfg4 Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1776-54911d4c-5-cluster3" modified. + cat /tmp/tmp.Vfl9pSTTHI + rm /tmp/tmp.Pm72XdDfg4 /tmp/tmp.Vfl9pSTTHI + 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-1776/e2e-tests/serviceless-external-nodes/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1776/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1776/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.x0UryVx15W ++ mktemp + local LAST_ERR=/tmp/tmp.ajCuy0wrgG + 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-1776/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.x0UryVx15W 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.ajCuy0wrgG + rm /tmp/tmp.x0UryVx15W /tmp/tmp.ajCuy0wrgG + return 0 + '[' -n '' ']' + apply_rbac rbac + local operator_namespace=psmdb-operator + local rbac=rbac + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1776/deploy/rbac.yaml + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.Fazxjd6k5v ++ mktemp + local LAST_ERR=/tmp/tmp.zXg30tizYO + 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.Fazxjd6k5v role.rbac.authorization.k8s.io/percona-server-mongodb-operator created serviceaccount/percona-server-mongodb-operator created rolebinding.rbac.authorization.k8s.io/service-account-percona-server-mongodb-operator created + cat /tmp/tmp.zXg30tizYO + rm /tmp/tmp.Fazxjd6k5v /tmp/tmp.zXg30tizYO + return 0 + yq eval ' (.spec.template.spec.containers[].image = "perconalab/percona-server-mongodb-operator:PR-1776-54911d4c") | ((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") | ((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1776/deploy/operator.yaml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.yuNqMQYsDs ++ mktemp + local LAST_ERR=/tmp/tmp.qRQDvOrhdB + 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.yuNqMQYsDs deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.qRQDvOrhdB + rm /tmp/tmp.yuNqMQYsDs /tmp/tmp.qRQDvOrhdB + return 0 + sleep 2 ++ get_operator_pod ++ kubectl_bin get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.k86fe8SG1Y +++ mktemp ++ local LAST_ERR=/tmp/tmp.j9mKYTp7h5 ++ 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}' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.k86fe8SG1Y ++ cat /tmp/tmp.j9mKYTp7h5 error: error executing jsonpath "{.items[].metadata.name}": Error executing template: array index out of bounds: index 0, length 0. Printing more information for debugging the template: template was: {.items[].metadata.name} object given to jsonpath engine was: map[string]interface {}{"apiVersion":"v1", "items":[]interface {}{}, "kind":"List", "metadata":map[string]interface {}{"resourceVersion":""}} ++ sleep 0 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.k86fe8SG1Y ++ cat /tmp/tmp.j9mKYTp7h5 error: error executing jsonpath "{.items[].metadata.name}": Error executing template: array index out of bounds: index 0, length 0. Printing more information for debugging the template: template was: {.items[].metadata.name} object given to jsonpath engine was: map[string]interface {}{"apiVersion":"v1", "items":[]interface {}{}, "kind":"List", "metadata":map[string]interface {}{"resourceVersion":""}} ++ sleep 4 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.k86fe8SG1Y ++ cat /tmp/tmp.j9mKYTp7h5 error: error executing jsonpath "{.items[].metadata.name}": Error executing template: array index out of bounds: index 0, length 0. Printing more information for debugging the template: template was: {.items[].metadata.name} object given to jsonpath engine was: map[string]interface {}{"apiVersion":"v1", "items":[]interface {}{}, "kind":"List", "metadata":map[string]interface {}{"resourceVersion":""}} ++ sleep 8 ++ cat /tmp/tmp.k86fe8SG1Y ++ cat /tmp/tmp.j9mKYTp7h5 error: error executing jsonpath "{.items[].metadata.name}": Error executing template: array index out of bounds: index 0, length 0. Printing more information for debugging the template: template was: {.items[].metadata.name} object given to jsonpath engine was: map[string]interface {}{"apiVersion":"v1", "items":[]interface {}{}, "kind":"List", "metadata":map[string]interface {}{"resourceVersion":""}} ++ rm /tmp/tmp.k86fe8SG1Y /tmp/tmp.j9mKYTp7h5 ++ return 1 + wait_pod + local pod= + set +o xtrace waiting for pod/ to be ready........................................................................................................................................................................................................................................................................................................................................................................error: arguments in resource/name form must have a single resource and name error: arguments in resource/name form must have a single resource and name error: arguments in resource/name form must have a single resource and name error: arguments in resource/name form must have a single resource and name