++ echo 'Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/logs/serviceless-external-nodes.log' Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/logs/serviceless-external-nodes.log ++ '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/conf/cloud-secret.yml ']' ++ SKIP_BACKUPS_TO_AWS_GCP_AZURE= ++ oc get projects ++ kubectl get nodes ++ grep '^minikube' +++ grep '\-eks\-' +++ kubectl version -o json +++ jq -r .serverVersion.gitVersion WARNING: version difference between client (1.31) and server (1.28) exceeds the supported minor version skew of +/-1 ++ '[' ']' ++ EKS=0 +++ jq -r .serverVersion.gitVersion +++ grep gke +++ kubectl version -o json WARNING: version difference between client (1.31) and server (1.28) exceeds the supported minor version skew of +/-1 ++ '[' v1.28.15-gke.1342000 ']' ++ GKE=1 +++ jq -r '.serverVersion.major + "." + .serverVersion.minor' +++ /usr/bin/sed -r 's/[^0-9.]+//g' +++ kubectl version -o json WARNING: version difference between client (1.31) and server (1.28) exceeds the supported minor version skew of +/-1 ++ KUBE_VERSION=1.28 ++ get_mongod_ver_from_image perconalab/percona-server-mongodb-operator:main-mongod7.0 ++ local image=perconalab/percona-server-mongodb-operator:main-mongod7.0 +++ run_simple_cli_inside_image perconalab/percona-server-mongodb-operator:main-mongod7.0 'mongod --version' +++ local image=perconalab/percona-server-mongodb-operator:main-mongod7.0 +++ local 'cli=mongod --version' +++ local pod_name=30091 +++ kubectl_bin -n default run 30091 --image=perconalab/percona-server-mongodb-operator:main-mongod7.0 --restart=Never --command -- sleep infinity +++ /usr/bin/sed -r 's/^.*db version v(([0-9]+\.){2}[0-9]+-[0-9]+).*$/\1/g' ++++ mktemp +++ local LAST_OUT=/tmp/tmp.azza3aRZzD ++++ mktemp +++ local LAST_ERR=/tmp/tmp.y2zn9U5s5J +++ local exit_status=0 +++ local timeout=4 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl -n default run 30091 --image=perconalab/percona-server-mongodb-operator:main-mongod7.0 --restart=Never --command -- sleep infinity +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 -a -n 1 ']' +++ break +++ cat /tmp/tmp.azza3aRZzD +++ cat /tmp/tmp.y2zn9U5s5J +++ rm /tmp/tmp.azza3aRZzD /tmp/tmp.y2zn9U5s5J +++ return 0 +++ kubectl_bin -n default wait --for=condition=Ready pod/30091 ++++ mktemp +++ local LAST_OUT=/tmp/tmp.xwjPeNFGSU ++++ mktemp +++ local LAST_ERR=/tmp/tmp.OGqJm6lJGT +++ 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/30091 +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 -a -n 1 ']' +++ break +++ cat /tmp/tmp.xwjPeNFGSU +++ cat /tmp/tmp.OGqJm6lJGT +++ rm /tmp/tmp.xwjPeNFGSU /tmp/tmp.OGqJm6lJGT +++ return 0 ++++ kubectl_bin -n default exec 30091 -- mongod --version +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.sgwbYUyxFg +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.S3Pruc0tos ++++ local exit_status=0 ++++ local timeout=4 +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ set +e ++++ kubectl -n default exec 30091 -- mongod --version ++++ exit_status=0 ++++ set -e ++++ '[' 0 '!=' 0 -a -n 1 ']' ++++ break ++++ cat /tmp/tmp.sgwbYUyxFg ++++ cat /tmp/tmp.S3Pruc0tos ++++ rm /tmp/tmp.sgwbYUyxFg /tmp/tmp.S3Pruc0tos ++++ return 0 +++ local 'output=db version v7.0.15-9 Build Info: { "version": "7.0.15-9", "gitVersion": "7afe11d727f2344fc88fa42dae98c01eccbd14b7", "openSSLVersion": "OpenSSL 1.1.1k FIPS 25 Mar 2021", "modules": [], "proFeatures": [], "allocator": "tcmalloc", "environment": { "distarch": "x86_64", "target_arch": "x86_64" } }' +++ kubectl_bin -n default delete pod/30091 --grace-period=0 --force ++++ mktemp +++ local LAST_OUT=/tmp/tmp.2ro1UR3PXY ++++ mktemp +++ local LAST_ERR=/tmp/tmp.2s7qZIK3KV +++ local exit_status=0 +++ local timeout=4 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl -n default delete pod/30091 --grace-period=0 --force +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 -a -n 1 ']' +++ break +++ cat /tmp/tmp.2ro1UR3PXY +++ cat /tmp/tmp.2s7qZIK3KV 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.2ro1UR3PXY /tmp/tmp.2s7qZIK3KV +++ return 0 +++ echo db version v7.0.15-9 Build Info: '{' '"version":' '"7.0.15-9",' '"gitVersion":' '"7afe11d727f2344fc88fa42dae98c01eccbd14b7",' '"openSSLVersion":' '"OpenSSL' 1.1.1k FIPS 25 Mar '2021",' '"modules":' '[],' '"proFeatures":' '[],' '"allocator":' '"tcmalloc",' '"environment":' '{' '"distarch":' '"x86_64",' '"target_arch":' '"x86_64"' '}' '}' ++ version_info=7.0.15-9 ++ [[ ! 7.0.15-9 =~ ^([0-9]+\.){2}[0-9]+-[0-9]+$ ]] ++ echo 7.0.15-9 + FULL_VER=7.0.15-9 + MONGO_VER=7.0 + unset OPERATOR_NS + desc 'Create main cluster' + set +o xtrace ----------------------------------------------------------------------------------- Create main cluster ----------------------------------------------------------------------------------- + create_infra serviceless-external-nodes-31560 + local ns=serviceless-external-nodes-31560 + 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-1706/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.zTCoZRXZKc ++ mktemp + local LAST_ERR=/tmp/tmp.og24eZIC5i + 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-1706/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.zTCoZRXZKc 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.og24eZIC5i + rm /tmp/tmp.zTCoZRXZKc /tmp/tmp.og24eZIC5i + return 0 ++ grep -v '\-\-\-' ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/deploy/crd.yaml + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbbackups.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' + grep -v NAMESPACE + kubectl get perconaservermongodbbackups.psmdb.percona.com --all-namespaces -o wide 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.BY295LiPGN ++ mktemp + local LAST_ERR=/tmp/tmp.ppVKK8AX7X + 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.BY295LiPGN + cat /tmp/tmp.ppVKK8AX7X + rm /tmp/tmp.BY295LiPGN /tmp/tmp.ppVKK8AX7X + 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.bnzUktJ6PZ ++ mktemp + local LAST_ERR=/tmp/tmp.02mut1CpSC + 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.bnzUktJ6PZ + cat /tmp/tmp.02mut1CpSC + rm /tmp/tmp.bnzUktJ6PZ /tmp/tmp.02mut1CpSC + 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.o2VZp4jFMA ++ mktemp + local LAST_ERR=/tmp/tmp.ZapWqR6JwF + 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.o2VZp4jFMA + cat /tmp/tmp.ZapWqR6JwF + rm /tmp/tmp.o2VZp4jFMA /tmp/tmp.ZapWqR6JwF + return 0 + local rbac_yaml=rbac.yaml + '[' -n '' ']' + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/deploy/rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.9tWKVCeT3h ++ mktemp + local LAST_ERR=/tmp/tmp.obD7WOg37x + 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-1706/deploy/rbac.yaml --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.9tWKVCeT3h 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.obD7WOg37x + rm /tmp/tmp.9tWKVCeT3h /tmp/tmp.obD7WOg37x + return 0 + check_crd_for_deletion PR-1706-9945cb50 + local git_tag=PR-1706-9945cb50 ++ /usr/bin/sed s/---//g ++ yq eval .metadata.name ++ /usr/bin/sed ':a;N;$!ba;s/\n/ /g' ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-1706-9945cb50/deploy/crd.yaml + 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.2JxlE7lTGp +++ mktemp ++ local LAST_ERR=/tmp/tmp.gLqYunCKqG ++ 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.2JxlE7lTGp ++ cat /tmp/tmp.gLqYunCKqG 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.2JxlE7lTGp ++ cat /tmp/tmp.gLqYunCKqG 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.2JxlE7lTGp ++ cat /tmp/tmp.gLqYunCKqG Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 8 ++ cat /tmp/tmp.2JxlE7lTGp ++ cat /tmp/tmp.gLqYunCKqG Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.2JxlE7lTGp /tmp/tmp.gLqYunCKqG ++ return 1 + [[ '' == \T\e\r\m\i\n\a\t\i\n\g ]] + '[' -n '' ']' + create_namespace serviceless-external-nodes-31560 + local namespace=serviceless-external-nodes-31560 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ sed s/NAMESPACE// ++ awk '-F ' '{print $2}' ++ tail -n1 ++ helm list --all-namespaces --filter chaos-mesh + 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 + : ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get ValidatingWebhookConfiguration + 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}' ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ awk '{print $1}' ++ kubectl get clusterrolebinding ++ grep chaos-mesh + 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 + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|gke-mcs|^NAME' + '[' -n '' ']' + xargs kubectl delete ns + desc 'cleaned up old namespaces serviceless-external-nodes-31560' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces serviceless-external-nodes-31560 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace serviceless-external-nodes-31560 --ignore-not-found ++ mktemp + awk '{print$1}' + local LAST_OUT=/tmp/tmp.H5Qe4Mbt04 ++ mktemp + local LAST_ERR=/tmp/tmp.GLNi28kLj1 + local exit_status=0 + local timeout=4 ++ mktemp ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + local LAST_OUT=/tmp/tmp.RSsvE1nyZ1 + kubectl delete namespace serviceless-external-nodes-31560 --ignore-not-found ++ mktemp + local LAST_ERR=/tmp/tmp.HNiPa8vwly + 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.RSsvE1nyZ1 + cat /tmp/tmp.HNiPa8vwly + rm /tmp/tmp.RSsvE1nyZ1 /tmp/tmp.HNiPa8vwly + return 0 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.H5Qe4Mbt04 + cat /tmp/tmp.GLNi28kLj1 + rm /tmp/tmp.H5Qe4Mbt04 /tmp/tmp.GLNi28kLj1 + return 0 + kubectl_bin wait --for=delete namespace serviceless-external-nodes-31560 ++ mktemp + local LAST_OUT=/tmp/tmp.zwJ8C4XYUK ++ mktemp + local LAST_ERR=/tmp/tmp.ZeLEPXWDHU + 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-31560 namespace "gke-managed-system" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.zwJ8C4XYUK + cat /tmp/tmp.ZeLEPXWDHU + rm /tmp/tmp.zwJ8C4XYUK /tmp/tmp.ZeLEPXWDHU + return 0 + desc 'create namespace serviceless-external-nodes-31560' + set +o xtrace ----------------------------------------------------------------------------------- create namespace serviceless-external-nodes-31560 ----------------------------------------------------------------------------------- + kubectl_bin create namespace serviceless-external-nodes-31560 ++ mktemp + local LAST_OUT=/tmp/tmp.VCoPgXUR5P ++ mktemp + local LAST_ERR=/tmp/tmp.oyv3uwVC5Q + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace serviceless-external-nodes-31560 namespace "gmp-public" deleted namespace "gmp-system" deleted namespace "serviceless-external-nodes-2784" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.VCoPgXUR5P namespace/serviceless-external-nodes-31560 created + cat /tmp/tmp.oyv3uwVC5Q + rm /tmp/tmp.VCoPgXUR5P /tmp/tmp.oyv3uwVC5Q + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.wo7DFzDOu0 +++ mktemp namespace "serviceless-external-nodes-replica-8450" deleted ++ local LAST_ERR=/tmp/tmp.eZKUsEwPzB ++ 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.wo7DFzDOu0 ++ cat /tmp/tmp.eZKUsEwPzB ++ rm /tmp/tmp.wo7DFzDOu0 /tmp/tmp.eZKUsEwPzB ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1706-9945cb50-12-cluster4 --namespace=serviceless-external-nodes-31560 ++ mktemp + local LAST_OUT=/tmp/tmp.XQF8o9Jj46 ++ mktemp + local LAST_ERR=/tmp/tmp.Zn6Iz5Ll4h + 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-1706-9945cb50-12-cluster4 --namespace=serviceless-external-nodes-31560 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.XQF8o9Jj46 Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1706-9945cb50-12-cluster4" modified. + cat /tmp/tmp.Zn6Iz5Ll4h + rm /tmp/tmp.XQF8o9Jj46 /tmp/tmp.Zn6Iz5Ll4h + 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-1706/e2e-tests/serviceless-external-nodes/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.WA123uEeoW ++ mktemp + local LAST_ERR=/tmp/tmp.TxCRbhQjZi + 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-1706/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.WA123uEeoW 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.TxCRbhQjZi + rm /tmp/tmp.WA123uEeoW /tmp/tmp.TxCRbhQjZi + return 0 + '[' -n '' ']' + apply_rbac rbac + local operator_namespace=psmdb-operator + local rbac=rbac + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/deploy/rbac.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.8aEctKjCmM ++ mktemp + local LAST_ERR=/tmp/tmp.lKRSCUXl6c + 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.8aEctKjCmM 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.lKRSCUXl6c + rm /tmp/tmp.8aEctKjCmM /tmp/tmp.lKRSCUXl6c + return 0 + yq eval ' (.spec.template.spec.containers[].image = "perconalab/percona-server-mongodb-operator:PR-1706-9945cb50") | ((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") | ((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/deploy/operator.yaml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.a8ZPfGfGXi ++ mktemp + local LAST_ERR=/tmp/tmp.VFXAPmmmFP + 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.a8ZPfGfGXi deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.VFXAPmmmFP + rm /tmp/tmp.a8ZPfGfGXi /tmp/tmp.VFXAPmmmFP + 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.KK1UKDULN8 +++ mktemp ++ local LAST_ERR=/tmp/tmp.5TgWBucpPY ++ 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=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.KK1UKDULN8 ++ cat /tmp/tmp.5TgWBucpPY ++ rm /tmp/tmp.KK1UKDULN8 /tmp/tmp.5TgWBucpPY ++ return 0 + wait_pod percona-server-mongodb-operator-6cf7c6b6f9-bl55t + local pod=percona-server-mongodb-operator-6cf7c6b6f9-bl55t + set +o xtrace waiting for pod/percona-server-mongodb-operator-6cf7c6b6f9-bl55t to be ready.OK + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/serviceless-external-nodes/conf/secrets.yml ++ mktemp + local LAST_OUT=/tmp/tmp.HYwPmWldZ6 ++ mktemp + local LAST_ERR=/tmp/tmp.Y44L0mJyj9 + 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-1706/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/serviceless-external-nodes/conf/secrets.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.HYwPmWldZ6 deployment.apps/psmdb-client created secret/mydb-custom-users created secret/mydb-custom-encryption-key created secret/mydb-custom-ssl created secret/mydb-custom-ssl-internal created secret/mydb-custom-mongodb-keyfile created + cat /tmp/tmp.Y44L0mJyj9 + rm /tmp/tmp.HYwPmWldZ6 /tmp/tmp.Y44L0mJyj9 + return 0 + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/serviceless-external-nodes/conf/main.yml + '[' -z '' ']' + kubectl_bin apply -f - + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/serviceless-external-nodes/conf/main.yml + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/serviceless-external-nodes/conf/main.yml ++ mktemp + local LAST_OUT=/tmp/tmp.XR5GsnN0aK ++ mktemp + yq eval '.spec.upgradeOptions.apply="Never"' + yq eval '(.spec | select(has("backup"))).backup.image = "perconalab/percona-backup-mongodb:2.7.0"' + yq eval '(.spec | select(has("pmm"))).pmm.image = "perconalab/pmm-client:dev-latest"' + yq eval '(.spec | select(.image == null)).image = "perconalab/percona-server-mongodb-operator:main-mongod7.0"' + yq eval '(.spec | select(has("initImage"))).initImage = "perconalab/percona-server-mongodb-operator:PR-1706-9945cb50"' + local LAST_ERR=/tmp/tmp.f9s69JPzRS + 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.XR5GsnN0aK perconaservermongodb.psmdb.percona.com/mydb created + cat /tmp/tmp.f9s69JPzRS + rm /tmp/tmp.XR5GsnN0aK /tmp/tmp.f9s69JPzRS + return 0 + wait_for_running mydb-rs0 1 + local name=mydb-rs0 + let last_pod=0 + : + local check_cluster_readyness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=mydb ++ seq 0 0 + for i in '$(seq 0 $last_pod)' + [[ 0 -eq 0 ]] ++ kubectl_bin get psmdb mydb -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.jYtE5FEq8m +++ mktemp ++ local LAST_ERR=/tmp/tmp.Hk9qA0teSn ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get psmdb mydb -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.jYtE5FEq8m ++ cat /tmp/tmp.Hk9qA0teSn ++ rm /tmp/tmp.jYtE5FEq8m /tmp/tmp.Hk9qA0teSn ++ return 0 + [[ false == \t\r\u\e ]] + wait_pod mydb-rs0-0 + local pod=mydb-rs0-0 + set +o xtrace waiting for pod/mydb-rs0-0 to be ready.........OK ++ kubectl_bin get psmdb mydb -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].non_voting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.qwTy8miKnh +++ mktemp ++ local LAST_ERR=/tmp/tmp.miZbYZTAzb ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get psmdb mydb -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].non_voting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.qwTy8miKnh ++ cat /tmp/tmp.miZbYZTAzb ++ rm /tmp/tmp.qwTy8miKnh /tmp/tmp.miZbYZTAzb ++ return 0 + [[ '' == \t\r\u\e ]] + sleep 10 + [[ true == \t\r\u\e ]] + set +x Waiting for cluster readyness............. + compare_kubectl statefulset/mydb-rs0 + local resource=statefulset/mydb-rs0 + local postfix= + local skip_generation_check= + local expected_result=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/serviceless-external-nodes/compare/statefulset_mydb-rs0.yml + local new_result=/tmp/tmp.cun9laHSbG/statefulset_mydb-rs0.yml + '[' -n '' -a -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/serviceless-external-nodes/compare/statefulset_mydb-rs0-oc.yml ']' + kubectl_bin get -o yaml statefulset/mydb-rs0 + yq eval ' del(.metadata.ownerReferences[].apiVersion) | del(.metadata.managedFields) | del(.. | select(has("creationTimestamp")).creationTimestamp) | del(.. | select(has("namespace")).namespace) | del(.. | select(has("uid")).uid) | del(.metadata.resourceVersion) | del(.spec.template.spec.containers[].env[] | select(.name == "NAMESPACE")) | del(.metadata.selfLink) | del(.metadata.annotations."cloud.google.com/neg") | del(.metadata.annotations."kubectl.kubernetes.io/last-applied-configuration") | del(.. | select(has("image")).image) | del(.. | select(has("clusterIP")).clusterIP) | del(.. | select(has("clusterIPs")).clusterIPs) | del(.. | select(has("dataSource")).dataSource) | del(.. | select(has("procMount")).procMount) | del(.. | select(has("storageClassName")).storageClassName) | del(.. | select(has("finalizers")).finalizers) | del(.. | select(has("kubernetes.io/pvc-protection"))."kubernetes.io/pvc-protection") | del(.. | select(has("volumeName")).volumeName) | del(.. | select(has("volume.beta.kubernetes.io/storage-provisioner"))."volume.beta.kubernetes.io/storage-provisioner") | del(.. | select(has("volume.kubernetes.io/storage-provisioner"))."volume.kubernetes.io/storage-provisioner") | del(.spec.volumeMode) | del(.. | select(has("volume.kubernetes.io/selected-node"))."volume.kubernetes.io/selected-node") | del(.. | select(has("percona.com/last-config-hash"))."percona.com/last-config-hash") | del(.. | select(has("percona.com/configuration-hash"))."percona.com/configuration-hash") | del(.. | select(has("percona.com/ssl-hash"))."percona.com/ssl-hash") | del(.. | select(has("percona.com/ssl-internal-hash"))."percona.com/ssl-internal-hash") | del(.spec.volumeClaimTemplates[].spec.volumeMode | select(. == "Filesystem")) | del(.. | select(has("healthCheckNodePort")).healthCheckNodePort) | del(.. | select(has("nodePort")).nodePort) | del(.status) | (.. | select(tag == "!!str")) |= sub("serviceless-external-nodes-31560", "NAME_SPACE") | del(.spec.volumeClaimTemplates[].apiVersion) | del(.spec.volumeClaimTemplates[].kind) | del(.spec.ipFamilies) | del(.spec.ipFamilyPolicy) | (.. | select(. == "extensions/v1beta1")) = "apps/v1" | (.. | select(. == "batch/v1beta1")) = "batch/v1" ' - ++ mktemp + local LAST_OUT=/tmp/tmp.jltnmmjdZN ++ mktemp + local LAST_ERR=/tmp/tmp.0g6Mf5egAU + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get -o yaml statefulset/mydb-rs0 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.jltnmmjdZN + cat /tmp/tmp.0g6Mf5egAU + rm /tmp/tmp.jltnmmjdZN /tmp/tmp.0g6Mf5egAU + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.cun9laHSbG/statefulset_mydb-rs0.yml + version_gt 1.22 ++ bc -l ++ echo '1.28 >= 1.22' + '[' 1 -eq 1 ']' + return 0 + yq -i eval 'del(.spec.internalTrafficPolicy)' /tmp/tmp.cun9laHSbG/statefulset_mydb-rs0.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.cun9laHSbG/statefulset_mydb-rs0.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/serviceless-external-nodes/compare/statefulset_mydb-rs0.yml == */cronjob* ]] + '[' -n '' ']' + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/serviceless-external-nodes/compare/statefulset_mydb-rs0.yml /tmp/tmp.cun9laHSbG/statefulset_mydb-rs0.yml ++ kubectl_bin get secret -o json +++ mktemp ++ local LAST_OUT=/tmp/tmp.UiwLOuQQLo +++ mktemp ++ local LAST_ERR=/tmp/tmp.Mh772jGJx0 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get secret -o json ++ jq --arg pattern mydb '[.items[] | select(.metadata.name | test($pattern))] | length' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.UiwLOuQQLo ++ cat /tmp/tmp.Mh772jGJx0 ++ rm /tmp/tmp.UiwLOuQQLo /tmp/tmp.Mh772jGJx0 ++ return 0 + secrets_count=6 + [[ 6 != 6 ]] + desc 'Start External Cluster in unmanaged mode' + set +o xtrace ----------------------------------------------------------------------------------- Start External Cluster in unmanaged mode ----------------------------------------------------------------------------------- ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.uuVcWuB5js +++ mktemp ++ local LAST_ERR=/tmp/tmp.CaUh9G5Rk3 ++ 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.uuVcWuB5js ++ cat /tmp/tmp.CaUh9G5Rk3 ++ rm /tmp/tmp.uuVcWuB5js /tmp/tmp.CaUh9G5Rk3 ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1706-9945cb50-12-cluster4 --namespace=serviceless-external-nodes-replica-19154 ++ mktemp + local LAST_OUT=/tmp/tmp.R89Vh8oWZx ++ mktemp + local LAST_ERR=/tmp/tmp.WAf6R4YNEl + 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-1706-9945cb50-12-cluster4 --namespace=serviceless-external-nodes-replica-19154 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.R89Vh8oWZx Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1706-9945cb50-12-cluster4" modified. + cat /tmp/tmp.WAf6R4YNEl + rm /tmp/tmp.R89Vh8oWZx /tmp/tmp.WAf6R4YNEl + return 0 + create_namespace serviceless-external-nodes-replica-19154 0 + local namespace=serviceless-external-nodes-replica-19154 + local skip_clean_namespace=0 + [[ 1 == 1 ]] + [[ -z 0 ]] + '[' -n '' ']' + desc 'cleaned up old namespaces serviceless-external-nodes-replica-19154' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces serviceless-external-nodes-replica-19154 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace serviceless-external-nodes-replica-19154 --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.FvTn7NFhPe ++ mktemp + local LAST_ERR=/tmp/tmp.GXQTILTXhH + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl delete namespace serviceless-external-nodes-replica-19154 --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.FvTn7NFhPe + cat /tmp/tmp.GXQTILTXhH + rm /tmp/tmp.FvTn7NFhPe /tmp/tmp.GXQTILTXhH + return 0 + kubectl_bin wait --for=delete namespace serviceless-external-nodes-replica-19154 ++ mktemp + local LAST_OUT=/tmp/tmp.wuIXGtv3go ++ mktemp + local LAST_ERR=/tmp/tmp.yIxHgL0I0R + 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-replica-19154 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.wuIXGtv3go + cat /tmp/tmp.yIxHgL0I0R + rm /tmp/tmp.wuIXGtv3go /tmp/tmp.yIxHgL0I0R + return 0 + desc 'create namespace serviceless-external-nodes-replica-19154' + set +o xtrace ----------------------------------------------------------------------------------- create namespace serviceless-external-nodes-replica-19154 ----------------------------------------------------------------------------------- + kubectl_bin create namespace serviceless-external-nodes-replica-19154 ++ mktemp + local LAST_OUT=/tmp/tmp.pq6bwC0lxo ++ mktemp + local LAST_ERR=/tmp/tmp.PKcXIqogmd + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace serviceless-external-nodes-replica-19154 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.pq6bwC0lxo namespace/serviceless-external-nodes-replica-19154 created + cat /tmp/tmp.PKcXIqogmd + rm /tmp/tmp.pq6bwC0lxo /tmp/tmp.PKcXIqogmd + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.AVxmhZ2UWk +++ mktemp ++ local LAST_ERR=/tmp/tmp.2jzw3YwgwF ++ 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.AVxmhZ2UWk ++ cat /tmp/tmp.2jzw3YwgwF ++ rm /tmp/tmp.AVxmhZ2UWk /tmp/tmp.2jzw3YwgwF ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1706-9945cb50-12-cluster4 --namespace=serviceless-external-nodes-replica-19154 ++ mktemp + local LAST_OUT=/tmp/tmp.bc6FXoMANi ++ mktemp + local LAST_ERR=/tmp/tmp.48tlQ9EYjg + 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-1706-9945cb50-12-cluster4 --namespace=serviceless-external-nodes-replica-19154 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.bc6FXoMANi Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1706-9945cb50-12-cluster4" modified. + cat /tmp/tmp.48tlQ9EYjg + rm /tmp/tmp.bc6FXoMANi /tmp/tmp.48tlQ9EYjg + 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-1706/e2e-tests/serviceless-external-nodes/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.EtDdb38vVO ++ mktemp + local LAST_ERR=/tmp/tmp.PeE9JuBgh4 + 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-1706/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.EtDdb38vVO 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.PeE9JuBgh4 + rm /tmp/tmp.EtDdb38vVO /tmp/tmp.PeE9JuBgh4 + return 0 + '[' -n '' ']' + apply_rbac rbac + local operator_namespace=psmdb-operator + local rbac=rbac + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/deploy/rbac.yaml + kubectl_bin apply -f - + sed -e 's^namespace: .*^namespace: psmdb-operator^' ++ mktemp + local LAST_OUT=/tmp/tmp.ZtAYkXOJqo ++ mktemp + local LAST_ERR=/tmp/tmp.KvEwqXkpBD + 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.ZtAYkXOJqo 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.KvEwqXkpBD + rm /tmp/tmp.ZtAYkXOJqo /tmp/tmp.KvEwqXkpBD + return 0 + yq eval ' (.spec.template.spec.containers[].image = "perconalab/percona-server-mongodb-operator:PR-1706-9945cb50") | ((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") | ((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/deploy/operator.yaml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.wjRKse43Sz ++ mktemp + local LAST_ERR=/tmp/tmp.PDz7EMElFv + 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.wjRKse43Sz deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.PDz7EMElFv + rm /tmp/tmp.wjRKse43Sz /tmp/tmp.PDz7EMElFv + 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.UPVcTJduG5 +++ mktemp ++ local LAST_ERR=/tmp/tmp.h58y0N0bSV ++ 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=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.UPVcTJduG5 ++ cat /tmp/tmp.h58y0N0bSV ++ rm /tmp/tmp.UPVcTJduG5 /tmp/tmp.h58y0N0bSV ++ return 0 + wait_pod percona-server-mongodb-operator-6cf7c6b6f9-52p89 + local pod=percona-server-mongodb-operator-6cf7c6b6f9-52p89 + set +o xtrace waiting for pod/percona-server-mongodb-operator-6cf7c6b6f9-52p89 to be ready.OK + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/serviceless-external-nodes/conf/secrets.yml ++ mktemp + local LAST_OUT=/tmp/tmp.oaRZqFYLOO ++ mktemp + local LAST_ERR=/tmp/tmp.0OhSvzZElx + 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-1706/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/serviceless-external-nodes/conf/secrets.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.oaRZqFYLOO deployment.apps/psmdb-client created secret/mydb-custom-users created secret/mydb-custom-encryption-key created secret/mydb-custom-ssl created secret/mydb-custom-ssl-internal created secret/mydb-custom-mongodb-keyfile created + cat /tmp/tmp.0OhSvzZElx + rm /tmp/tmp.oaRZqFYLOO /tmp/tmp.0OhSvzZElx + return 0 + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/serviceless-external-nodes/conf/external.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/serviceless-external-nodes/conf/external.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1706/e2e-tests/serviceless-external-nodes/conf/external.yml + yq eval '(.spec | select(has("backup"))).backup.image = "perconalab/percona-backup-mongodb:2.7.0"' + yq eval '(.spec | select(.image == null)).image = "perconalab/percona-server-mongodb-operator:main-mongod7.0"' + yq eval '.spec.upgradeOptions.apply="Never"' + yq eval '(.spec | select(has("initImage"))).initImage = "perconalab/percona-server-mongodb-operator:PR-1706-9945cb50"' + yq eval '(.spec | select(has("pmm"))).pmm.image = "perconalab/pmm-client:dev-latest"' ++ mktemp + local LAST_OUT=/tmp/tmp.Kao1cKzmUS ++ mktemp + local LAST_ERR=/tmp/tmp.wXZBRSdPBh + 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.Kao1cKzmUS perconaservermongodb.psmdb.percona.com/mydb created + cat /tmp/tmp.wXZBRSdPBh + rm /tmp/tmp.Kao1cKzmUS /tmp/tmp.wXZBRSdPBh + return 0 + wait_pod mydb-rs0-0 + local pod=mydb-rs0-0 + set +o xtrace waiting for pod/mydb-rs0-0 to be ready.............OK + wait_pod mydb-rs0-1 + local pod=mydb-rs0-1 + set +o xtrace waiting for pod/mydb-rs0-1 to be ready............OK ++ jq --arg pattern mydb '[.items[] | select(.metadata.name | test($pattern))] | length' ++ kubectl_bin get secret -o json +++ mktemp ++ local LAST_OUT=/tmp/tmp.70oUboChnl +++ mktemp ++ local LAST_ERR=/tmp/tmp.jt4HRAF4d1 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in '$(seq 0 2)' ++ set +e ++ kubectl get secret -o json ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.70oUboChnl ++ cat /tmp/tmp.jt4HRAF4d1 ++ rm /tmp/tmp.70oUboChnl /tmp/tmp.jt4HRAF4d1 ++ return 0 + secrets_count=6 + [[ 6 != 6 ]] ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.6lIwnuWBjg +++ mktemp ++ local LAST_ERR=/tmp/tmp.ktwSt7tj5D ++ 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.6lIwnuWBjg ++ cat /tmp/tmp.ktwSt7tj5D ++ rm /tmp/tmp.6lIwnuWBjg /tmp/tmp.ktwSt7tj5D ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1706-9945cb50-12-cluster4 --namespace=serviceless-external-nodes-31560 ++ mktemp + local LAST_OUT=/tmp/tmp.Ov0jUZ3XxF ++ mktemp + local LAST_ERR=/tmp/tmp.7JAE5afCQa + 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-1706-9945cb50-12-cluster4 --namespace=serviceless-external-nodes-31560 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Ov0jUZ3XxF Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1706-9945cb50-12-cluster4" modified. + cat /tmp/tmp.7JAE5afCQa + rm /tmp/tmp.Ov0jUZ3XxF /tmp/tmp.7JAE5afCQa + return 0 + kubectl_bin get psmdb mydb -o yaml ++ mktemp + local LAST_OUT=/tmp/tmp.DaIQpGSTAu ++ mktemp + local LAST_ERR=/tmp/tmp.BXvtEnBGT5 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get psmdb mydb -o yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.DaIQpGSTAu + cat /tmp/tmp.BXvtEnBGT5 + rm /tmp/tmp.DaIQpGSTAu /tmp/tmp.BXvtEnBGT5 + return 0 + /usr/bin/sed -e 's/- host: mydb-rs0-0.mydb-rs0.external.svc.cluster.local/- host: mydb-rs0-0.mydb-rs0.serviceless-external-nodes-replica-19154.svc.cluster.local/' + cat /tmp/tmp.cun9laHSbG/psmdb.yaml + /usr/bin/sed -e 's/- host: mydb-rs0-1.mydb-rs0.external.svc.cluster.local/- host: mydb-rs0-1.mydb-rs0.serviceless-external-nodes-replica-19154.svc.cluster.local/' + /usr/bin/sed -e 's/- host: mydb-cfg-0.mydb-cfg.external.svc.cluster.local/- host: mydb-cfg-0.mydb-cfg.serviceless-external-nodes-replica-19154.svc.cluster.local/' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.5Cl9Magd9N ++ mktemp + local LAST_ERR=/tmp/tmp.rPj9w1dyMD + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.5Cl9Magd9N + cat /tmp/tmp.rPj9w1dyMD Error from server (Conflict): error when applying patch: {"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"psmdb.percona.com/v1\",\"kind\":\"PerconaServerMongoDB\",\"metadata\":{\"annotations\":{},\"creationTimestamp\":\"2024-12-02T22:51:15Z\",\"generation\":2,\"name\":\"mydb\",\"namespace\":\"serviceless-external-nodes-31560\",\"resourceVersion\":\"55320\",\"uid\":\"423ce907-2a19-4e3b-b371-e0b1b26ebd37\"},\"spec\":{\"clusterServiceDNSMode\":\"Internal\",\"crVersion\":\"1.19.0\",\"image\":\"percona/percona-server-mongodb:6.0.4-3\",\"imagePullPolicy\":\"Always\",\"replsets\":[{\"affinity\":{\"antiAffinityTopologyKey\":\"none\"},\"arbiter\":{\"affinity\":{\"antiAffinityTopologyKey\":\"none\"},\"enabled\":false,\"size\":1},\"configuration\":\"operationProfiling:\\n mode: slowOp\\n\",\"expose\":{\"enabled\":false,\"type\":\"ClusterIp\"},\"externalNodes\":[{\"host\":\"mydb-rs0-0.mydb-rs0.serviceless-external-nodes-replica-19154.svc.cluster.local\",\"port\":27017,\"priority\":1,\"votes\":1},{\"host\":\"mydb-rs0-1.mydb-rs0.serviceless-external-nodes-replica-19154.svc.cluster.local\",\"port\":27017,\"priority\":1,\"votes\":1}],\"name\":\"rs0\",\"nonvoting\":{\"affinity\":{\"antiAffinityTopologyKey\":\"none\"},\"enabled\":false,\"podDisruptionBudget\":{\"maxUnavailable\":1},\"resources\":{\"limits\":{\"cpu\":\"300m\",\"memory\":\"1G\"},\"requests\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"}},\"size\":3,\"volumeSpec\":{\"persistentVolumeClaim\":{\"resources\":{\"requests\":{\"storage\":\"3Gi\"}}}}},\"podDisruptionBudget\":{\"maxUnavailable\":1},\"resources\":{\"limits\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"},\"requests\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"}},\"size\":1,\"volumeSpec\":{\"persistentVolumeClaim\":{\"resources\":{\"requests\":{\"storage\":\"3Gi\"}}}}}],\"secrets\":{\"encryptionKey\":\"mydb-custom-encryption-key\",\"keyFile\":\"mydb-custom-mongodb-keyfile\",\"ssl\":\"mydb-custom-ssl\",\"sslInternal\":\"mydb-custom-ssl-internal\",\"users\":\"mydb-custom-users\"},\"sharding\":{\"configsvrReplSet\":{\"affinity\":{\"antiAffinityTopologyKey\":\"none\"},\"configuration\":\"operationProfiling:\\n mode: slowOp\\n\",\"expose\":{\"enabled\":false,\"type\":\"ClusterIp\"},\"externalNodes\":[{\"host\":\"mydb-cfg-0.mydb-cfg.serviceless-external-nodes-replica-19154.svc.cluster.local\",\"port\":27017,\"priority\":0,\"votes\":0}],\"podDisruptionBudget\":{\"maxUnavailable\":1},\"resources\":{\"limits\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"},\"requests\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"}},\"size\":1,\"volumeSpec\":{\"persistentVolumeClaim\":{\"resources\":{\"requests\":{\"storage\":\"3Gi\"}}}}},\"enabled\":false,\"mongos\":{\"affinity\":{\"antiAffinityTopologyKey\":\"none\"},\"expose\":{\"type\":\"ClusterIp\"},\"podDisruptionBudget\":{\"maxUnavailable\":1},\"resources\":{\"limits\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"},\"requests\":{\"cpu\":\"300m\",\"memory\":\"0.5G\"}},\"size\":1}},\"tls\":{\"mode\":\"allowTLS\"},\"unsafeFlags\":{\"mongosSize\":true,\"replsetSize\":true},\"upgradeOptions\":{\"apply\":\"Never\"}},\"status\":{\"conditions\":[{\"lastTransitionTime\":\"2024-12-02T22:52:19Z\",\"message\":\"failed to update config members: set votes: write mongo config: replSetReconfig: (NewReplicaSetConfigurationIncompatible) Replica set configuration contains 0 voting members, but must be at least 1 and no more than 7\",\"reason\":\"ErrorReconcile\",\"status\":\"True\",\"type\":\"error\"},{\"lastTransitionTime\":\"2024-12-02T22:52:18Z\",\"status\":\"True\",\"type\":\"initializing\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:52:18Z\",\"status\":\"True\",\"type\":\"initializing\"},{\"lastTransitionTime\":\"2024-12-02T22:52:19Z\",\"message\":\"failed to update config members: set votes: write mongo config: replSetReconfig: (NewReplicaSetConfigurationIncompatible) Replica set configuration contains 0 voting members, but must be at least 1 and no more than 7\",\"reason\":\"ErrorReconcile\",\"status\":\"True\",\"type\":\"error\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"},{\"lastTransitionTime\":\"2024-12-02T22:53:44Z\",\"status\":\"True\",\"type\":\"ready\"}],\"host\":\"mydb-rs0.serviceless-external-nodes-31560.svc.cluster.local\",\"mongoImage\":\"percona/percona-server-mongodb:6.0.4-3\",\"mongoVersion\":\"6.0.4-3\",\"observedGeneration\":2,\"ready\":1,\"replsets\":{\"rs0\":{\"initialized\":true,\"ready\":1,\"size\":1,\"status\":\"ready\"}},\"size\":1,\"state\":\"ready\"}}\n"},"resourceVersion":"55320"},"spec":{"replsets":[{"affinity":{"antiAffinityTopologyKey":"none"},"arbiter":{"affinity":{"antiAffinityTopologyKey":"none"},"enabled":false,"size":1},"configuration":"operationProfiling:\n mode: slowOp\n","expose":{"enabled":false,"type":"ClusterIp"},"externalNodes":[{"host":"mydb-rs0-0.mydb-rs0.serviceless-external-nodes-replica-19154.svc.cluster.local","port":27017,"priority":1,"votes":1},{"host":"mydb-rs0-1.mydb-rs0.serviceless-external-nodes-replica-19154.svc.cluster.local","port":27017,"priority":1,"votes":1}],"name":"rs0","nonvoting":{"affinity":{"antiAffinityTopologyKey":"none"},"enabled":false,"podDisruptionBudget":{"maxUnavailable":1},"resources":{"limits":{"cpu":"300m","memory":"1G"},"requests":{"cpu":"300m","memory":"0.5G"}},"size":3,"volumeSpec":{"persistentVolumeClaim":{"resources":{"requests":{"storage":"3Gi"}}}}},"podDisruptionBudget":{"maxUnavailable":1},"resources":{"limits":{"cpu":"300m","memory":"0.5G"},"requests":{"cpu":"300m","memory":"0.5G"}},"size":1,"volumeSpec":{"persistentVolumeClaim":{"resources":{"requests":{"storage":"3Gi"}}}}}],"sharding":{"configsvrReplSet":{"externalNodes":[{"host":"mydb-cfg-0.mydb-cfg.serviceless-external-nodes-replica-19154.svc.cluster.local","port":27017,"priority":0,"votes":0}]}}},"status":{"conditions":[{"lastTransitionTime":"2024-12-02T22:52:19Z","message":"failed to update config members: set votes: write mongo config: replSetReconfig: (NewReplicaSetConfigurationIncompatible) Replica set configuration contains 0 voting members, but must be at least 1 and no more than 7","reason":"ErrorReconcile","status":"True","type":"error"},{"lastTransitionTime":"2024-12-02T22:52:18Z","status":"True","type":"initializing"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:52:18Z","status":"True","type":"initializing"},{"lastTransitionTime":"2024-12-02T22:52:19Z","message":"failed to update config members: set votes: write mongo config: replSetReconfig: (NewReplicaSetConfigurationIncompatible) Replica set configuration contains 0 voting members, but must be at least 1 and no more than 7","reason":"ErrorReconcile","status":"True","type":"error"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"},{"lastTransitionTime":"2024-12-02T22:53:44Z","status":"True","type":"ready"}]}} to: Resource: "psmdb.percona.com/v1, Resource=perconaservermongodbs", GroupVersionKind: "psmdb.percona.com/v1, Kind=PerconaServerMongoDB" Name: "mydb", Namespace: "serviceless-external-nodes-31560" for: "STDIN": error when patching "STDIN": Operation cannot be fulfilled on perconaservermongodbs.psmdb.percona.com "mydb": the object has been modified; please apply your changes to the latest version and try again + sleep 0 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.5Cl9Magd9N + cat /tmp/tmp.rPj9w1dyMD error: no objects passed to apply + sleep 4 + for i in '$(seq 0 2)' + set +e + kubectl apply -f - + exit_status=1 + set -e + '[' 1 '!=' 0 -a -n 1 ']' + cat /tmp/tmp.5Cl9Magd9N + cat /tmp/tmp.rPj9w1dyMD error: no objects passed to apply + sleep 8 + cat /tmp/tmp.5Cl9Magd9N + cat /tmp/tmp.rPj9w1dyMD error: no objects passed to apply + rm /tmp/tmp.5Cl9Magd9N /tmp/tmp.rPj9w1dyMD + return 1