mkdir -p e2e-tests/reports e2e-tests/logs ========================================================================================= test session starts ========================================================================================== platform linux -- Python 3.14.10, pytest-9.1.1, pluggy-1.7.0 -- /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/.venv/bin/python cachedir: .pytest_cache metadata: {'Python': '3.14.10', 'Platform': 'Linux-7.1.10-200.fc44.x86_64-x86_64-with-glibc2.43', 'Packages': {'pytest': '9.1.1', 'pluggy': '1.7.0'}, 'Plugins': {'html': '4.2.0', 'json-report': '1.5.0', 'dependency': '0.6.1', 'metadata': '3.1.1'}, 'CI': 'true', 'BUILD_NUMBER': '9', 'BUILD_ID': '9', 'BUILD_URL': 'https://cloud.cd.percona.com/job/cloud-psmdb-operator/job/PR-2715/9/', 'NODE_NAME': 'hcloud-nialm8wqguv220jl', 'JOB_NAME': 'cloud-psmdb-operator/PR-2715', 'BUILD_TAG': 'jenkins-cloud-psmdb-operator-PR-2715-9', 'EXECUTOR_NUMBER': '0', 'JENKINS_URL': 'https://cloud.cd.percona.com/', 'WORKSPACE': '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715', 'GIT_COMMIT': '27e0b796072fe59ec1fa78fca82dc7491ddb9891', 'GIT_URL': 'https://github.com/percona/percona-server-mongodb-operator.git', 'GIT_BRANCH': 'PR-2715'} rootdir: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715 configfile: pyproject.toml plugins: html-4.2.0, json-report-1.5.0, dependency-0.6.1, metadata-3.1.1 collecting ... collected 1 item e2e-tests/test_pytest_wrapper.py::test_bash_wrapper[ldap-tls] [06:40:55.356392] WARNING kubectl error: Warning: version difference between client (1.37) and server (1.34) exceeds the supported minor version skew of +/-1 [06:40:56.628577] INFO Environment variables: KUBE_VERSION=1.34 PLATFORM=gke ARCH= EKS= GKE=1 AKS= OPENSHIFT= KIND= MINIKUBE= RANCHER= API=psmdb.percona.com/v1 REGISTRY_NAME=docker.io GIT_COMMIT=27e0b796072fe59ec1fa78fca82dc7491ddb9891 GIT_BRANCH=PR-2715 OPERATOR_VERSION=1.24.0 IMAGE=docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960 IMAGE_MONGOD=docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 IMAGE_MONGOD_CHAIN=docker.io/perconalab/percona-server-mongodb-operator:main-mongod7.0 docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0 docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3 IMAGE_SEARCH=docker.io/perconalab/percona-server-mongodb-operator:main-mongot IMAGE_BACKUP=docker.io/perconalab/percona-server-mongodb-operator:main-backup IMAGE_PMM_CLIENT=docker.io/perconalab/pmm-client:3-dev-latest IMAGE_PMM_SERVER=docker.io/perconalab/pmm-server:3-dev-latest IMAGE_LOGCOLLECTOR=docker.io/perconalab/fluentbit:main-logcollector IMAGE_CLUSTERSYNC=docker.io/percona/percona-clustersync-mongodb:1.0.0 IMAGE_AWS_CLI=docker.io/amazon/aws-cli:2.34.60 CERT_MANAGER_VER=1.21.0 CHAOS_MESH_VER=2.7.1 SEAWEEDFS_VER=4.47.0 PMM_SERVER_VER=9.9.9 CLEAN_NAMESPACE=1 DELETE_CRD_ON_START=1 SKIP_DELETE=0 SKIP_BACKUPS_TO_AWS_GCP_AZURE= UPDATE_COMPARE_FILES=0 Debug logging disabled. + main + create_infra ldap-tls-2387 + local ns=ldap-tls-2387 + echo ldap-tls-2387 + destroy_cert_manager + [[ -n '' ]] + kubectl_bin delete mutatingwebhookconfiguration cert-manager-webhook --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.s8ghEeWJug ++ mktemp + local LAST_ERR=/tmp/tmp.HLy4YMvLJC + local exit_status=0 + local timeout=4 + local i + args=('delete' 'mutatingwebhookconfiguration' 'cert-manager-webhook' '--ignore-not-found') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ mutatingwebhookconfiguration == \- ]] + [[ mutatingwebhookconfiguration =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ cert-manager-webhook == \- ]] + [[ cert-manager-webhook =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete mutatingwebhookconfiguration cert-manager-webhook --ignore-not-found + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.s8ghEeWJug + cat /tmp/tmp.HLy4YMvLJC + rm /tmp/tmp.s8ghEeWJug /tmp/tmp.HLy4YMvLJC + return 0 + kubectl_bin delete validatingwebhookconfiguration cert-manager-webhook --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.BHckpFPdgc ++ mktemp + local LAST_ERR=/tmp/tmp.DGHGOAAqPu + local exit_status=0 + local timeout=4 + local i + args=('delete' 'validatingwebhookconfiguration' 'cert-manager-webhook' '--ignore-not-found') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ validatingwebhookconfiguration == \- ]] + [[ validatingwebhookconfiguration =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ cert-manager-webhook == \- ]] + [[ cert-manager-webhook =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete validatingwebhookconfiguration cert-manager-webhook --ignore-not-found + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.BHckpFPdgc + cat /tmp/tmp.DGHGOAAqPu + rm /tmp/tmp.BHckpFPdgc /tmp/tmp.DGHGOAAqPu + return 0 + kubectl_bin delete -f https://github.com/cert-manager/cert-manager/releases/download/v1.21.0/cert-manager.yaml --ignore-not-found --wait=false + crds=('certificates.cert-manager.io' 'certificaterequests.cert-manager.io' 'issuers.cert-manager.io' 'clusterissuers.cert-manager.io' 'orders.acme.cert-manager.io' 'challenges.acme.cert-manager.io') + local crds + kubectl_bin delete crd certificates.cert-manager.io certificaterequests.cert-manager.io issuers.cert-manager.io clusterissuers.cert-manager.io orders.acme.cert-manager.io challenges.acme.cert-manager.io --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.41WTMlqiRh ++ mktemp + local LAST_ERR=/tmp/tmp.Gw7vkztQMI + local exit_status=0 + local timeout=4 + local i + args=('delete' 'crd' 'certificates.cert-manager.io' 'certificaterequests.cert-manager.io' 'issuers.cert-manager.io' 'clusterissuers.cert-manager.io' 'orders.acme.cert-manager.io' 'challenges.acme.cert-manager.io' '--ignore-not-found' '--wait=false') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ crd == \- ]] + [[ crd =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ certificates.cert-manager.io == \- ]] + [[ certificates.cert-manager.io =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ certificaterequests.cert-manager.io == \- ]] + [[ certificaterequests.cert-manager.io =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ issuers.cert-manager.io == \- ]] + [[ issuers.cert-manager.io =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ clusterissuers.cert-manager.io == \- ]] + [[ clusterissuers.cert-manager.io =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ orders.acme.cert-manager.io == \- ]] + [[ orders.acme.cert-manager.io =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ challenges.acme.cert-manager.io == \- ]] + [[ challenges.acme.cert-manager.io =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --wait=false == \- ]] + [[ --wait=false =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete crd certificates.cert-manager.io certificaterequests.cert-manager.io issuers.cert-manager.io clusterissuers.cert-manager.io orders.acme.cert-manager.io challenges.acme.cert-manager.io --ignore-not-found --wait=false + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.41WTMlqiRh + cat /tmp/tmp.Gw7vkztQMI + rm /tmp/tmp.41WTMlqiRh /tmp/tmp.Gw7vkztQMI + return 0 + kubectl_bin delete namespace cert-manager --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.xODFfTqXlR ++ mktemp + local LAST_ERR=/tmp/tmp.TtnJwwT9lL + local exit_status=0 + local timeout=4 + local i + args=('delete' 'namespace' 'cert-manager' '--ignore-not-found' '--wait=false') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ cert-manager == \- ]] + [[ cert-manager =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --wait=false == \- ]] + [[ --wait=false =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete namespace cert-manager --ignore-not-found --wait=false + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.xODFfTqXlR + cat /tmp/tmp.TtnJwwT9lL + rm /tmp/tmp.xODFfTqXlR /tmp/tmp.TtnJwwT9lL + return 0 + local remaining + local attempt ++ seq 1 60 + for attempt in $(seq 1 60) ++ kubectl_bin get mutatingwebhookconfiguration cert-manager-webhook --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.YzXqFUtBqt +++ mktemp ++ local LAST_ERR=/tmp/tmp.9bLKKcPkFH ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'mutatingwebhookconfiguration' 'cert-manager-webhook' '--ignore-not-found' '-o' 'name') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ mutatingwebhookconfiguration == \- ]] ++ [[ mutatingwebhookconfiguration =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ cert-manager-webhook == \- ]] ++ [[ cert-manager-webhook =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --ignore-not-found == \- ]] ++ [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ name == \- ]] ++ [[ name =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get mutatingwebhookconfiguration cert-manager-webhook --ignore-not-found -o name ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.YzXqFUtBqt ++ cat /tmp/tmp.9bLKKcPkFH ++ rm /tmp/tmp.YzXqFUtBqt /tmp/tmp.9bLKKcPkFH ++ return 0 + remaining= ++ kubectl_bin get validatingwebhookconfiguration cert-manager-webhook --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.yVwuTHf32r +++ mktemp ++ local LAST_ERR=/tmp/tmp.RvvmN2dxcd ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'validatingwebhookconfiguration' 'cert-manager-webhook' '--ignore-not-found' '-o' 'name') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ validatingwebhookconfiguration == \- ]] ++ [[ validatingwebhookconfiguration =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ cert-manager-webhook == \- ]] ++ [[ cert-manager-webhook =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --ignore-not-found == \- ]] ++ [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ name == \- ]] ++ [[ name =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get validatingwebhookconfiguration cert-manager-webhook --ignore-not-found -o name ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.yVwuTHf32r ++ cat /tmp/tmp.RvvmN2dxcd ++ rm /tmp/tmp.yVwuTHf32r /tmp/tmp.RvvmN2dxcd ++ return 0 + remaining+= ++ kubectl_bin get crd certificates.cert-manager.io certificaterequests.cert-manager.io issuers.cert-manager.io clusterissuers.cert-manager.io orders.acme.cert-manager.io challenges.acme.cert-manager.io --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.i4yvYSps8p +++ mktemp ++ local LAST_ERR=/tmp/tmp.JoMNMMmqBA ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'crd' 'certificates.cert-manager.io' 'certificaterequests.cert-manager.io' 'issuers.cert-manager.io' 'clusterissuers.cert-manager.io' 'orders.acme.cert-manager.io' 'challenges.acme.cert-manager.io' '--ignore-not-found' '-o' 'name') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ crd == \- ]] ++ [[ crd =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ certificates.cert-manager.io == \- ]] ++ [[ certificates.cert-manager.io =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ certificaterequests.cert-manager.io == \- ]] ++ [[ certificaterequests.cert-manager.io =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ issuers.cert-manager.io == \- ]] ++ [[ issuers.cert-manager.io =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ clusterissuers.cert-manager.io == \- ]] ++ [[ clusterissuers.cert-manager.io =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ orders.acme.cert-manager.io == \- ]] ++ [[ orders.acme.cert-manager.io =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ challenges.acme.cert-manager.io == \- ]] ++ [[ challenges.acme.cert-manager.io =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --ignore-not-found == \- ]] ++ [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ name == \- ]] ++ [[ name =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get crd certificates.cert-manager.io certificaterequests.cert-manager.io issuers.cert-manager.io clusterissuers.cert-manager.io orders.acme.cert-manager.io challenges.acme.cert-manager.io --ignore-not-found -o name ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.i4yvYSps8p ++ cat /tmp/tmp.JoMNMMmqBA ++ rm /tmp/tmp.i4yvYSps8p /tmp/tmp.JoMNMMmqBA ++ return 0 + remaining+= ++ kubectl_bin get namespace cert-manager --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.sAhrmn8hyS +++ mktemp ++ local LAST_ERR=/tmp/tmp.W6HwjKIUlU ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'namespace' 'cert-manager' '--ignore-not-found' '-o' 'name') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ namespace == \- ]] ++ [[ namespace =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ cert-manager == \- ]] ++ [[ cert-manager =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --ignore-not-found == \- ]] ++ [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ name == \- ]] ++ [[ name =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get namespace cert-manager --ignore-not-found -o name ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.sAhrmn8hyS ++ cat /tmp/tmp.W6HwjKIUlU ++ rm /tmp/tmp.sAhrmn8hyS /tmp/tmp.W6HwjKIUlU ++ return 0 + remaining+= + [[ -z '' ]] + return 0 + [[ 1 == 1 ]] + 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-2715/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.u1Zo00dnjJ ++ mktemp + local LAST_ERR=/tmp/tmp.DGuYdovLUo + local exit_status=0 + local timeout=4 + local i + args=('delete' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml' '--ignore-not-found' '--wait=false') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --wait=false == \- ]] + [[ --wait=false =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.u1Zo00dnjJ customresourcedefinition.apiextensions.k8s.io "perconaservermongodbbackups.psmdb.percona.com" deleted customresourcedefinition.apiextensions.k8s.io "perconaservermongodbclustersyncs.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.DGuYdovLUo + rm /tmp/tmp.u1Zo00dnjJ /tmp/tmp.DGuYdovLUo + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml ++ grep -v '\-\-\-' grep: warning: stray \ before - grep: warning: stray \ before - + 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" in group "psmdb.percona.com" + kubectl patch perconaservermongodbbackups.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbbackups" in group "psmdb.percona.com" + : + kubectl get crd perconaservermongodbbackups.psmdb.percona.com + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + kubectl get perconaservermongodbclustersyncs.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbclustersyncs.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbclustersyncs" in group "psmdb.percona.com" + kubectl patch perconaservermongodbclustersyncs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbclustersyncs" in group "psmdb.percona.com" + : + kubectl get crd perconaservermongodbclustersyncs.psmdb.percona.com + 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" in group "psmdb.percona.com" + kubectl patch perconaservermongodbrestores.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbrestores" in group "psmdb.percona.com" + : + kubectl get crd perconaservermongodbrestores.psmdb.percona.com + 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" in group "psmdb.percona.com" + kubectl patch perconaservermongodbs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbs" in group "psmdb.percona.com" + : + kubectl get crd perconaservermongodbs.psmdb.percona.com + local rbac_yaml=rbac.yaml + '[' -n psmdb-operator ']' + rbac_yaml=cw-rbac.yaml + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.HWdWnlU3fh ++ mktemp + local LAST_ERR=/tmp/tmp.PzhHpXBTe1 + local exit_status=0 + local timeout=4 + local i + args=('delete' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml' '--ignore-not-found' '--wait=false') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --wait=false == \- ]] + [[ --wait=false =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.HWdWnlU3fh clusterrole.rbac.authorization.k8s.io "percona-server-mongodb-operator" deleted clusterrolebinding.rbac.authorization.k8s.io "service-account-percona-server-mongodb-operator" deleted + cat /tmp/tmp.PzhHpXBTe1 + rm /tmp/tmp.HWdWnlU3fh /tmp/tmp.PzhHpXBTe1 + return 0 + check_crd_for_deletion PR-2715 + local git_tag=PR-2715 ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-2715/deploy/crd.yaml ++ yq eval .metadata.name ++ /usr/sbin/sed s/---//g ++ /usr/sbin/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.68L9U3O3nK +++ mktemp ++ local LAST_ERR=/tmp/tmp.VRxFQvsvd0 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'crd/null' '-o' 'jsonpath={.status.conditions[-1].type}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ crd/null == \- ]] ++ [[ crd/null =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.status.conditions[-1].type} == \- ]] ++ [[ jsonpath={.status.conditions[-1].type} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get crd/null -o 'jsonpath={.status.conditions[-1].type}' ++ exit_status=1 ++ set -e ++ [[ 1 == 0 ]] ++ [[ 0 == 9 ]] ++ grep -q 'Error from server (NotFound)' /tmp/tmp.VRxFQvsvd0 ++ break ++ cat /tmp/tmp.68L9U3O3nK ++ cat /tmp/tmp.VRxFQvsvd0 Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.68L9U3O3nK /tmp/tmp.VRxFQvsvd0 ++ return 1 + [[ '' == Terminating ]] + '[' -n psmdb-operator ']' + create_namespace psmdb-operator + local namespace=psmdb-operator + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ 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 + : ++ grep chaos-mesh ++ kubectl api-resources ++ 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 ----------------------------------------------------------------------------------- + local 'ns_filter=^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + [[ -n '' ]] + kubectl_bin get ns + grep -E -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + awk '{print$1}' + [[ -n '' ]] + desc 'cleaned up old namespaces psmdb-operator' + set +o xtrace + xargs kubectl delete ns ----------------------------------------------------------------------------------- cleaned up old namespaces psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin delete namespace psmdb-operator --ignore-not-found ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.10lYQZ3YoG ++ mktemp + local LAST_OUT=/tmp/tmp.5WNIeT4CMc ++ mktemp + local LAST_ERR=/tmp/tmp.7HmjLAmvc6 + local exit_status=0 + local timeout=4 + local i + args=('get' 'ns') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ get == \- ]] + [[ get =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ns == \- ]] + [[ ns =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay + local LAST_ERR=/tmp/tmp.beODwag3v2 + local exit_status=0 + local timeout=4 + local i + args=('delete' 'namespace' 'psmdb-operator' '--ignore-not-found') + local args + transformed_files=() + local transformed_files + local stdin_manifest ++ seq 0 9 + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-operator == \- ]] + [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl get ns + for attempt in $(seq 0 9) + set +e + kubectl delete namespace psmdb-operator --ignore-not-found + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.10lYQZ3YoG + cat /tmp/tmp.7HmjLAmvc6 + rm /tmp/tmp.10lYQZ3YoG /tmp/tmp.7HmjLAmvc6 + return 0 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.5WNIeT4CMc + cat /tmp/tmp.beODwag3v2 + rm /tmp/tmp.5WNIeT4CMc /tmp/tmp.beODwag3v2 + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.CH2VQ8Bnu4 ++ mktemp + local LAST_ERR=/tmp/tmp.UXNd0fUVbm + local exit_status=0 + local timeout=4 + local i + args=('wait' '--for=delete' 'namespace' 'psmdb-operator') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ wait == \- ]] + [[ wait =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --for=delete == \- ]] + [[ --for=delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-operator == \- ]] + [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl wait --for=delete namespace psmdb-operator + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.CH2VQ8Bnu4 + cat /tmp/tmp.UXNd0fUVbm + rm /tmp/tmp.CH2VQ8Bnu4 /tmp/tmp.UXNd0fUVbm + return 0 + desc 'create namespace psmdb-operator' + set +o xtrace ----------------------------------------------------------------------------------- create namespace psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin create namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.5Pl9M1DSsd ++ mktemp + local LAST_ERR=/tmp/tmp.AHyDkBlwTC + local exit_status=0 + local timeout=4 + local i + args=('create' 'namespace' 'psmdb-operator') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ create == \- ]] + [[ create =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-operator == \- ]] + [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl create namespace psmdb-operator + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.5Pl9M1DSsd namespace/psmdb-operator created + cat /tmp/tmp.AHyDkBlwTC + rm /tmp/tmp.5Pl9M1DSsd /tmp/tmp.AHyDkBlwTC + return 0 + set_kube_ctx psmdb-operator + local namespace=psmdb-operator ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.Coo0HNAuJj +++ mktemp ++ local LAST_ERR=/tmp/tmp.S042VqXdnt ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('config' 'current-context') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ config == \- ]] ++ [[ config =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ current-context == \- ]] ++ [[ current-context =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.Coo0HNAuJj ++ cat /tmp/tmp.S042VqXdnt ++ rm /tmp/tmp.Coo0HNAuJj /tmp/tmp.S042VqXdnt ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster6 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.eULXKpIkkM ++ mktemp + local LAST_ERR=/tmp/tmp.6A5cHJCskx + local exit_status=0 + local timeout=4 + local i + args=('config' 'set-context' 'gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster6' '--namespace=psmdb-operator') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ config == \- ]] + [[ config =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ set-context == \- ]] + [[ set-context =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster6 == \- ]] + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster6 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --namespace=psmdb-operator == \- ]] + [[ --namespace=psmdb-operator =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster6 --namespace=psmdb-operator + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.eULXKpIkkM Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster6" modified. + cat /tmp/tmp.6A5cHJCskx + rm /tmp/tmp.eULXKpIkkM /tmp/tmp.6A5cHJCskx + return 0 + deploy_operator + desc 'start PSMDB operator: docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960' + set +o xtrace ----------------------------------------------------------------------------------- start PSMDB operator: docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960 ----------------------------------------------------------------------------------- + local cr_file + '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/ldap-tls/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.ILAUcBlO5K ++ mktemp + local LAST_ERR=/tmp/tmp.l9DQkYLVSu + local exit_status=0 + local timeout=4 + local i + args=('apply' '--server-side' '--force-conflicts' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --server-side == \- ]] + [[ --server-side =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --force-conflicts == \- ]] + [[ --force-conflicts =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/crd.yaml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.ILAUcBlO5K customresourcedefinition.apiextensions.k8s.io/perconaservermongodbbackups.psmdb.percona.com serverside-applied customresourcedefinition.apiextensions.k8s.io/perconaservermongodbclustersyncs.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.l9DQkYLVSu + rm /tmp/tmp.ILAUcBlO5K /tmp/tmp.l9DQkYLVSu + return 0 + '[' -n psmdb-operator ']' + apply_rbac cw-rbac + local operator_namespace=psmdb-operator + local rbac=cw-rbac + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-rbac.yaml + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.9QVS3JqNvu ++ mktemp + local LAST_ERR=/tmp/tmp.cWPjqYKBUi + local exit_status=0 + local timeout=4 + local i + args=('apply' '-n' 'psmdb-operator' '-f' '-') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-operator == \- ]] + [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ - == \- ]] + [[ 4 -gt 0 ]] + [[ -f =~ ^(-f|--filename)$ ]] ++ mktemp + stdin_manifest=/tmp/tmp.7svDpJWK7A + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.7svDpJWK7A + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -n psmdb-operator -f /tmp/tmp.7svDpJWK7A + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.9QVS3JqNvu clusterrole.rbac.authorization.k8s.io/percona-server-mongodb-operator created serviceaccount/percona-server-mongodb-operator created clusterrolebinding.rbac.authorization.k8s.io/service-account-percona-server-mongodb-operator created + cat /tmp/tmp.cWPjqYKBUi + rm /tmp/tmp.9QVS3JqNvu /tmp/tmp.cWPjqYKBUi /tmp/tmp.7svDpJWK7A + return 0 + add_arch_to_podspecs - + arch_scheduling_enabled + [[ -n '' ]] + cat - + kubectl_bin apply -n psmdb-operator -f - + yq eval $'\n\t\t\t(.spec.template.spec.containers[].image = "docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960") |\n\t\t\t((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") |\n\t\t\t((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/deploy/cw-operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.VqnJ4bb4MP ++ mktemp + local LAST_ERR=/tmp/tmp.faijadzgyq + local exit_status=0 + local timeout=4 + local i + args=('apply' '-n' 'psmdb-operator' '-f' '-') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-operator == \- ]] + [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ - == \- ]] + [[ 4 -gt 0 ]] + [[ -f =~ ^(-f|--filename)$ ]] ++ mktemp + stdin_manifest=/tmp/tmp.BYJd3OQlNJ + cat + return + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.BYJd3OQlNJ + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -n psmdb-operator -f /tmp/tmp.BYJd3OQlNJ + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.VqnJ4bb4MP deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.faijadzgyq + rm /tmp/tmp.VqnJ4bb4MP /tmp/tmp.faijadzgyq /tmp/tmp.BYJd3OQlNJ + return 0 + sleep 20 ++ get_operator_pod ++ kubectl_bin get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' -n psmdb-operator +++ mktemp ++ local LAST_OUT=/tmp/tmp.ZXWhoZRC7X +++ mktemp ++ local LAST_ERR=/tmp/tmp.I6J1UJsBna ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=percona-server-mongodb-operator' '-o' 'jsonpath={.items[].metadata.name}' '-n' 'psmdb-operator') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=percona-server-mongodb-operator == \- ]] ++ [[ --selector=name=percona-server-mongodb-operator =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -n == \- ]] ++ [[ -n =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb-operator == \- ]] ++ [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' -n psmdb-operator ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.ZXWhoZRC7X ++ cat /tmp/tmp.I6J1UJsBna ++ rm /tmp/tmp.ZXWhoZRC7X /tmp/tmp.I6J1UJsBna ++ return 0 + wait_operator_pod percona-server-mongodb-operator-b57dc4869-jv9cj + local pod=percona-server-mongodb-operator-b57dc4869-jv9cj + set +o xtrace waiting for pod/percona-server-mongodb-operator-b57dc4869-jv9cj to be ready.OK + echo 'Print operator info from log' Print operator info from log + grep 'Manager starting up' ++ get_operator_pod ++ kubectl_bin get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' -n psmdb-operator +++ mktemp ++ local LAST_OUT=/tmp/tmp.Og8P8zMf96 +++ mktemp ++ local LAST_ERR=/tmp/tmp.MWBFDBtXEn ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=percona-server-mongodb-operator' '-o' 'jsonpath={.items[].metadata.name}' '-n' 'psmdb-operator') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=percona-server-mongodb-operator == \- ]] ++ [[ --selector=name=percona-server-mongodb-operator =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -n == \- ]] ++ [[ -n =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb-operator == \- ]] ++ [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' -n psmdb-operator ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.Og8P8zMf96 ++ cat /tmp/tmp.MWBFDBtXEn ++ rm /tmp/tmp.Og8P8zMf96 /tmp/tmp.MWBFDBtXEn ++ return 0 + kubectl_bin logs -n psmdb-operator percona-server-mongodb-operator-b57dc4869-jv9cj ++ mktemp + local LAST_OUT=/tmp/tmp.PcyW5omfKD ++ mktemp + local LAST_ERR=/tmp/tmp.8cybxWg3GB + local exit_status=0 + local timeout=4 + local i + args=('logs' '-n' 'psmdb-operator' 'percona-server-mongodb-operator-b57dc4869-jv9cj') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ logs == \- ]] + [[ logs =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-operator == \- ]] + [[ psmdb-operator =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ percona-server-mongodb-operator-b57dc4869-jv9cj == \- ]] + [[ percona-server-mongodb-operator-b57dc4869-jv9cj =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl logs -n psmdb-operator percona-server-mongodb-operator-b57dc4869-jv9cj + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.PcyW5omfKD + cat /tmp/tmp.8cybxWg3GB + rm /tmp/tmp.PcyW5omfKD /tmp/tmp.8cybxWg3GB + return 0 2026-11-23T06:41:53.586Z INFO setup Manager starting up {"gitCommit": "27e0b796072fe59ec1fa78fca82dc7491ddb9891", "gitBranch": "PR-2715-27e0b7960", "buildTime": "", "goVersion": "go1.27.4", "os": "linux", "arch": "amd64"} + create_namespace ldap-tls-2387 + local namespace=ldap-tls-2387 + 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 ++ awk '{print $1}' ++ grep chaos-mesh + 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 ++ awk '{print $1}' ++ grep validate-auth + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + local 'ns_filter=^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + [[ -n '' ]] + kubectl_bin get ns ++ mktemp + grep -E -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + awk '{print$1}' + xargs kubectl delete ns + [[ -n '' ]] + desc 'cleaned up old namespaces ldap-tls-2387' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces ldap-tls-2387+ local LAST_OUT=/tmp/tmp.CYAi7VZOnY ----------------------------------------------------------------------------------- + kubectl_bin delete namespace ldap-tls-2387 --ignore-not-found ++ mktemp ++ mktemp + local LAST_ERR=/tmp/tmp.s2PDwT5WQq + local exit_status=0 + local timeout=4 + local i + args=('get' 'ns') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ get == \- ]] + [[ get =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ns == \- ]] + [[ ns =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + local LAST_OUT=/tmp/tmp.A4Bi6CtFg3 ++ mktemp + for attempt in $(seq 0 9) + set +e + local LAST_ERR=/tmp/tmp.mQMPC76wg0 + kubectl get ns + local exit_status=0 + local timeout=4 + local i + args=('delete' 'namespace' 'ldap-tls-2387' '--ignore-not-found') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ldap-tls-2387 == \- ]] + [[ ldap-tls-2387 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --ignore-not-found == \- ]] + [[ --ignore-not-found =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete namespace ldap-tls-2387 --ignore-not-found + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.CYAi7VZOnY + cat /tmp/tmp.s2PDwT5WQq + rm /tmp/tmp.CYAi7VZOnY /tmp/tmp.s2PDwT5WQq + return 0 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.A4Bi6CtFg3 + cat /tmp/tmp.mQMPC76wg0 + rm /tmp/tmp.A4Bi6CtFg3 /tmp/tmp.mQMPC76wg0 + return 0 + kubectl_bin wait --for=delete namespace ldap-tls-2387 ++ mktemp + local LAST_OUT=/tmp/tmp.RTyEsfffTw ++ mktemp + local LAST_ERR=/tmp/tmp.bNaKgIDciA + local exit_status=0 + local timeout=4 + local i + args=('wait' '--for=delete' 'namespace' 'ldap-tls-2387') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ wait == \- ]] + [[ wait =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --for=delete == \- ]] + [[ --for=delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ldap-tls-2387 == \- ]] + [[ ldap-tls-2387 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl wait --for=delete namespace ldap-tls-2387 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.RTyEsfffTw + cat /tmp/tmp.bNaKgIDciA + rm /tmp/tmp.RTyEsfffTw /tmp/tmp.bNaKgIDciA + return 0 + desc 'create namespace ldap-tls-2387' + set +o xtrace ----------------------------------------------------------------------------------- create namespace ldap-tls-2387 ----------------------------------------------------------------------------------- + kubectl_bin create namespace ldap-tls-2387 ++ mktemp + local LAST_OUT=/tmp/tmp.3uZeSe7IoX ++ mktemp + local LAST_ERR=/tmp/tmp.9PI832BCer + local exit_status=0 + local timeout=4 + local i + args=('create' 'namespace' 'ldap-tls-2387') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ create == \- ]] + [[ create =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ldap-tls-2387 == \- ]] + [[ ldap-tls-2387 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl create namespace ldap-tls-2387 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.3uZeSe7IoX namespace/ldap-tls-2387 created + cat /tmp/tmp.9PI832BCer + rm /tmp/tmp.3uZeSe7IoX /tmp/tmp.9PI832BCer + return 0 + set_kube_ctx ldap-tls-2387 + local namespace=ldap-tls-2387 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.UJH065zy3L +++ mktemp ++ local LAST_ERR=/tmp/tmp.RxAbiWR3sg ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('config' 'current-context') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ config == \- ]] ++ [[ config =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ current-context == \- ]] ++ [[ current-context =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.UJH065zy3L ++ cat /tmp/tmp.RxAbiWR3sg ++ rm /tmp/tmp.UJH065zy3L /tmp/tmp.RxAbiWR3sg ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster6 --namespace=ldap-tls-2387 ++ mktemp + local LAST_OUT=/tmp/tmp.1BylPhssR2 ++ mktemp + local LAST_ERR=/tmp/tmp.vfMyCw3pRe + local exit_status=0 + local timeout=4 + local i + args=('config' 'set-context' 'gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster6' '--namespace=ldap-tls-2387') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ config == \- ]] + [[ config =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ set-context == \- ]] + [[ set-context =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster6 == \- ]] + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster6 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --namespace=ldap-tls-2387 == \- ]] + [[ --namespace=ldap-tls-2387 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster6 --namespace=ldap-tls-2387 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.1BylPhssR2 Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster6" modified. + cat /tmp/tmp.vfMyCw3pRe + rm /tmp/tmp.1BylPhssR2 /tmp/tmp.vfMyCw3pRe + return 0 + deploy_cert_manager + [[ -n '' ]] + desc 'deploy cert manager' + set +o xtrace ----------------------------------------------------------------------------------- deploy cert manager ----------------------------------------------------------------------------------- + kubectl_bin -n cert-manager delete clusterissuer --all ++ mktemp + local LAST_OUT=/tmp/tmp.U4QiOfGj69 ++ mktemp + local LAST_ERR=/tmp/tmp.eFtPi96JtT + local exit_status=0 + local timeout=4 + local i + args=('-n' 'cert-manager' 'delete' 'clusterissuer' '--all') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ cert-manager == \- ]] + [[ cert-manager =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ clusterissuer == \- ]] + [[ clusterissuer =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --all == \- ]] + [[ --all =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl -n cert-manager delete clusterissuer --all + exit_status=1 + set -e + [[ 1 == 0 ]] + [[ 0 == 9 ]] + grep -q 'Error from server (NotFound)' /tmp/tmp.eFtPi96JtT + grep -qE 'ENHANCE_YOUR_CALM|ResourceExhausted|TooManyRequests|TLS handshake timeout|etcdserver: request timed out|the server is currently unable to handle the request|Unable to connect to the server|connection reset by peer' /tmp/tmp.eFtPi96JtT + [[ -n 1 ]] + [[ 0 -lt 2 ]] + delay=0 + cat /tmp/tmp.U4QiOfGj69 /tmp/tmp.eFtPi96JtT error: the server doesn't have a resource type "clusterissuer" + sleep 0 + for attempt in $(seq 0 9) + set +e + kubectl -n cert-manager delete clusterissuer --all + exit_status=1 + set -e + [[ 1 == 0 ]] + [[ 1 == 9 ]] + grep -q 'Error from server (NotFound)' /tmp/tmp.eFtPi96JtT + grep -qE 'ENHANCE_YOUR_CALM|ResourceExhausted|TooManyRequests|TLS handshake timeout|etcdserver: request timed out|the server is currently unable to handle the request|Unable to connect to the server|connection reset by peer' /tmp/tmp.eFtPi96JtT + [[ -n 1 ]] + [[ 1 -lt 2 ]] + delay=4 + cat /tmp/tmp.U4QiOfGj69 /tmp/tmp.eFtPi96JtT error: the server doesn't have a resource type "clusterissuer" + sleep 4 + for attempt in $(seq 0 9) + set +e + kubectl -n cert-manager delete clusterissuer --all + exit_status=1 + set -e + [[ 1 == 0 ]] + [[ 2 == 9 ]] + grep -q 'Error from server (NotFound)' /tmp/tmp.eFtPi96JtT + grep -qE 'ENHANCE_YOUR_CALM|ResourceExhausted|TooManyRequests|TLS handshake timeout|etcdserver: request timed out|the server is currently unable to handle the request|Unable to connect to the server|connection reset by peer' /tmp/tmp.eFtPi96JtT + [[ -n 1 ]] + [[ 2 -lt 2 ]] + break + cat /tmp/tmp.U4QiOfGj69 + cat /tmp/tmp.eFtPi96JtT error: the server doesn't have a resource type "clusterissuer" + rm /tmp/tmp.U4QiOfGj69 /tmp/tmp.eFtPi96JtT + return 1 + : + kubectl_bin -n cert-manager delete certificate --all ++ mktemp + local LAST_OUT=/tmp/tmp.A4iN5X3r0S ++ mktemp + local LAST_ERR=/tmp/tmp.S2YnsbI8LR + local exit_status=0 + local timeout=4 + local i + args=('-n' 'cert-manager' 'delete' 'certificate' '--all') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ cert-manager == \- ]] + [[ cert-manager =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ certificate == \- ]] + [[ certificate =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --all == \- ]] + [[ --all =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl -n cert-manager delete certificate --all + exit_status=1 + set -e + [[ 1 == 0 ]] + [[ 0 == 9 ]] + grep -q 'Error from server (NotFound)' /tmp/tmp.S2YnsbI8LR + grep -qE 'ENHANCE_YOUR_CALM|ResourceExhausted|TooManyRequests|TLS handshake timeout|etcdserver: request timed out|the server is currently unable to handle the request|Unable to connect to the server|connection reset by peer' /tmp/tmp.S2YnsbI8LR + [[ -n 1 ]] + [[ 0 -lt 2 ]] + delay=0 + cat /tmp/tmp.A4iN5X3r0S /tmp/tmp.S2YnsbI8LR error: the server doesn't have a resource type "certificate" + sleep 0 + for attempt in $(seq 0 9) + set +e + kubectl -n cert-manager delete certificate --all + exit_status=1 + set -e + [[ 1 == 0 ]] + [[ 1 == 9 ]] + grep -q 'Error from server (NotFound)' /tmp/tmp.S2YnsbI8LR + grep -qE 'ENHANCE_YOUR_CALM|ResourceExhausted|TooManyRequests|TLS handshake timeout|etcdserver: request timed out|the server is currently unable to handle the request|Unable to connect to the server|connection reset by peer' /tmp/tmp.S2YnsbI8LR + [[ -n 1 ]] + [[ 1 -lt 2 ]] + delay=4 + cat /tmp/tmp.A4iN5X3r0S /tmp/tmp.S2YnsbI8LR error: the server doesn't have a resource type "certificate" + sleep 4 + for attempt in $(seq 0 9) + set +e + kubectl -n cert-manager delete certificate --all + exit_status=1 + set -e + [[ 1 == 0 ]] + [[ 2 == 9 ]] + grep -q 'Error from server (NotFound)' /tmp/tmp.S2YnsbI8LR + grep -qE 'ENHANCE_YOUR_CALM|ResourceExhausted|TooManyRequests|TLS handshake timeout|etcdserver: request timed out|the server is currently unable to handle the request|Unable to connect to the server|connection reset by peer' /tmp/tmp.S2YnsbI8LR + [[ -n 1 ]] + [[ 2 -lt 2 ]] + break + cat /tmp/tmp.A4iN5X3r0S + cat /tmp/tmp.S2YnsbI8LR error: the server doesn't have a resource type "certificate" + rm /tmp/tmp.A4iN5X3r0S /tmp/tmp.S2YnsbI8LR + return 1 + : + kubectl_bin create namespace cert-manager ++ mktemp + local LAST_OUT=/tmp/tmp.Vjx73OFpb7 ++ mktemp + local LAST_ERR=/tmp/tmp.p2xGMn2gcc + local exit_status=0 + local timeout=4 + local i + args=('create' 'namespace' 'cert-manager') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ create == \- ]] + [[ create =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ cert-manager == \- ]] + [[ cert-manager =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl create namespace cert-manager + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Vjx73OFpb7 namespace/cert-manager created + cat /tmp/tmp.p2xGMn2gcc + rm /tmp/tmp.Vjx73OFpb7 /tmp/tmp.p2xGMn2gcc + return 0 + kubectl_bin label namespace cert-manager certmanager.k8s.io/disable-validation=true ++ mktemp + local LAST_OUT=/tmp/tmp.q2fSI1fRHD ++ mktemp + local LAST_ERR=/tmp/tmp.P1PnqE2JwA + local exit_status=0 + local timeout=4 + local i + args=('label' 'namespace' 'cert-manager' 'certmanager.k8s.io/disable-validation=true') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ label == \- ]] + [[ label =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ namespace == \- ]] + [[ namespace =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ cert-manager == \- ]] + [[ cert-manager =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ certmanager.k8s.io/disable-validation=true == \- ]] + [[ certmanager.k8s.io/disable-validation=true =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl label namespace cert-manager certmanager.k8s.io/disable-validation=true + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.q2fSI1fRHD namespace/cert-manager labeled + cat /tmp/tmp.P1PnqE2JwA + rm /tmp/tmp.q2fSI1fRHD /tmp/tmp.P1PnqE2JwA + return 0 + curl -sL https://github.com/cert-manager/cert-manager/releases/download/v1.21.0/cert-manager.yaml + add_arch_to_podspecs - + kubectl_bin apply -f - --validate=false + arch_scheduling_enabled + [[ -n '' ]] + cat - + return namespace/cert-manager configured customresourcedefinition.apiextensions.k8s.io/challenges.acme.cert-manager.io created customresourcedefinition.apiextensions.k8s.io/orders.acme.cert-manager.io created customresourcedefinition.apiextensions.k8s.io/certificaterequests.cert-manager.io created customresourcedefinition.apiextensions.k8s.io/certificates.cert-manager.io created customresourcedefinition.apiextensions.k8s.io/clusterissuers.cert-manager.io created customresourcedefinition.apiextensions.k8s.io/issuers.cert-manager.io created serviceaccount/cert-manager-cainjector created serviceaccount/cert-manager created serviceaccount/cert-manager-webhook created clusterrole.rbac.authorization.k8s.io/cert-manager-cainjector created clusterrole.rbac.authorization.k8s.io/cert-manager-controller-issuers created clusterrole.rbac.authorization.k8s.io/cert-manager-controller-clusterissuers created clusterrole.rbac.authorization.k8s.io/cert-manager-controller-certificates created clusterrole.rbac.authorization.k8s.io/cert-manager-controller-orders created clusterrole.rbac.authorization.k8s.io/cert-manager-controller-challenges created clusterrole.rbac.authorization.k8s.io/cert-manager-controller-ingress-shim created clusterrole.rbac.authorization.k8s.io/cert-manager-cluster-view created clusterrole.rbac.authorization.k8s.io/cert-manager-view created clusterrole.rbac.authorization.k8s.io/cert-manager-edit created clusterrole.rbac.authorization.k8s.io/cert-manager-controller-approve:cert-manager-io created clusterrole.rbac.authorization.k8s.io/cert-manager-controller-certificatesigningrequests created clusterrole.rbac.authorization.k8s.io/cert-manager-webhook:subjectaccessreviews created clusterrolebinding.rbac.authorization.k8s.io/cert-manager-cainjector created clusterrolebinding.rbac.authorization.k8s.io/cert-manager-controller-issuers created clusterrolebinding.rbac.authorization.k8s.io/cert-manager-controller-clusterissuers created clusterrolebinding.rbac.authorization.k8s.io/cert-manager-controller-certificates created clusterrolebinding.rbac.authorization.k8s.io/cert-manager-controller-orders created clusterrolebinding.rbac.authorization.k8s.io/cert-manager-controller-challenges created clusterrolebinding.rbac.authorization.k8s.io/cert-manager-controller-ingress-shim created clusterrolebinding.rbac.authorization.k8s.io/cert-manager-controller-approve:cert-manager-io created clusterrolebinding.rbac.authorization.k8s.io/cert-manager-controller-certificatesigningrequests created clusterrolebinding.rbac.authorization.k8s.io/cert-manager-webhook:subjectaccessreviews created role.rbac.authorization.k8s.io/cert-manager-cainjector:leaderelection created role.rbac.authorization.k8s.io/cert-manager:leaderelection created role.rbac.authorization.k8s.io/cert-manager-webhook:dynamic-serving created rolebinding.rbac.authorization.k8s.io/cert-manager-cainjector:leaderelection created rolebinding.rbac.authorization.k8s.io/cert-manager:leaderelection created rolebinding.rbac.authorization.k8s.io/cert-manager-webhook:dynamic-serving created service/cert-manager-cainjector created service/cert-manager created service/cert-manager-webhook created deployment.apps/cert-manager-cainjector created deployment.apps/cert-manager created deployment.apps/cert-manager-webhook created mutatingwebhookconfiguration.admissionregistration.k8s.io/cert-manager-webhook created validatingwebhookconfiguration.admissionregistration.k8s.io/cert-manager-webhook created + kubectl_bin -n cert-manager wait pod -l app.kubernetes.io/instance=cert-manager --for=condition=ready ++ mktemp + local LAST_OUT=/tmp/tmp.r70Xa5ECXW ++ mktemp + local LAST_ERR=/tmp/tmp.JWTlQZntIP + local exit_status=0 + local timeout=4 + local i + args=('-n' 'cert-manager' 'wait' 'pod' '-l' 'app.kubernetes.io/instance=cert-manager' '--for=condition=ready') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ cert-manager == \- ]] + [[ cert-manager =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ wait == \- ]] + [[ wait =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ pod == \- ]] + [[ pod =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -l == \- ]] + [[ -l =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ app.kubernetes.io/instance=cert-manager == \- ]] + [[ app.kubernetes.io/instance=cert-manager =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --for=condition=ready == \- ]] + [[ --for=condition=ready =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl -n cert-manager wait pod -l app.kubernetes.io/instance=cert-manager --for=condition=ready + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.r70Xa5ECXW pod/cert-manager-74bb94c469-2zznv condition met pod/cert-manager-cainjector-7c8bfb9579-m6pt4 condition met pod/cert-manager-webhook-5b4b98dcf4-grp88 condition met + cat /tmp/tmp.JWTlQZntIP + rm /tmp/tmp.r70Xa5ECXW /tmp/tmp.JWTlQZntIP + return 0 + sleep 120 + deploy_openldap + kubectl_bin create serviceaccount openldap ++ mktemp + local LAST_OUT=/tmp/tmp.oFJWuEnN9L ++ mktemp + local LAST_ERR=/tmp/tmp.1e4uzux47c + local exit_status=0 + local timeout=4 + local i + args=('create' 'serviceaccount' 'openldap') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ create == \- ]] + [[ create =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ serviceaccount == \- ]] + [[ serviceaccount =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ openldap == \- ]] + [[ openldap =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl create serviceaccount openldap + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.oFJWuEnN9L serviceaccount/openldap created + cat /tmp/tmp.1e4uzux47c + rm /tmp/tmp.oFJWuEnN9L /tmp/tmp.1e4uzux47c + return 0 + [[ -n '' ]] + yq 'select(.metadata.name == "ldap-ca").spec.dnsNames[0]="openldap.ldap-tls-2387.svc.cluster.local"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/ldap-tls/conf/openldap.yaml + yq 'select(.kind == "Issuer" or .kind == "Certificate")' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.HEWQpoKKZN ++ mktemp + local LAST_ERR=/tmp/tmp.lvP7SnW8CU + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '-') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ - == \- ]] + [[ 2 -gt 0 ]] + [[ -f =~ ^(-f|--filename)$ ]] ++ mktemp + stdin_manifest=/tmp/tmp.Lq9T9rPX9p + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.Lq9T9rPX9p + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -f /tmp/tmp.Lq9T9rPX9p + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.HEWQpoKKZN issuer.cert-manager.io/ldap-issuer created certificate.cert-manager.io/ldap-ca created + cat /tmp/tmp.lvP7SnW8CU + rm /tmp/tmp.HEWQpoKKZN /tmp/tmp.lvP7SnW8CU /tmp/tmp.Lq9T9rPX9p + return 0 + wait_certificate ldap-ca + certificate=ldap-ca + for i in {1..10} + kubectl wait --for=condition=Ready certificate/ldap-ca --timeout=60s certificate.cert-manager.io/ldap-ca condition met + sleep 1 + for i in {1..10} + kubectl wait --for=condition=Ready certificate/ldap-ca --timeout=60s certificate.cert-manager.io/ldap-ca condition met + sleep 1 + for i in {1..10} + kubectl wait --for=condition=Ready certificate/ldap-ca --timeout=60s certificate.cert-manager.io/ldap-ca condition met + sleep 1 + for i in {1..10} + kubectl wait --for=condition=Ready certificate/ldap-ca --timeout=60s certificate.cert-manager.io/ldap-ca condition met + sleep 1 + for i in {1..10} + kubectl wait --for=condition=Ready certificate/ldap-ca --timeout=60s certificate.cert-manager.io/ldap-ca condition met + sleep 1 + for i in {1..10} + kubectl wait --for=condition=Ready certificate/ldap-ca --timeout=60s certificate.cert-manager.io/ldap-ca condition met + sleep 1 + for i in {1..10} + kubectl wait --for=condition=Ready certificate/ldap-ca --timeout=60s certificate.cert-manager.io/ldap-ca condition met + sleep 1 + for i in {1..10} + kubectl wait --for=condition=Ready certificate/ldap-ca --timeout=60s certificate.cert-manager.io/ldap-ca condition met + sleep 1 + for i in {1..10} + kubectl wait --for=condition=Ready certificate/ldap-ca --timeout=60s certificate.cert-manager.io/ldap-ca condition met + sleep 1 + for i in {1..10} + kubectl wait --for=condition=Ready certificate/ldap-ca --timeout=60s certificate.cert-manager.io/ldap-ca condition met + sleep 1 + yq 'select(.kind != "Issuer" and .kind != "Certificate")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/ldap-tls/conf/openldap.yaml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.0ly7E928wE ++ mktemp + local LAST_ERR=/tmp/tmp.kcN3FRciGV + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '-') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ - == \- ]] + [[ 2 -gt 0 ]] + [[ -f =~ ^(-f|--filename)$ ]] ++ mktemp + stdin_manifest=/tmp/tmp.eZQOZAxlXd + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.eZQOZAxlXd + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -f /tmp/tmp.eZQOZAxlXd + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.0ly7E928wE secret/openldap created deployment.apps/openldap created service/openldap created + cat /tmp/tmp.kcN3FRciGV + rm /tmp/tmp.0ly7E928wE /tmp/tmp.kcN3FRciGV /tmp/tmp.eZQOZAxlXd + return 0 + kubectl rollout status deployment/openldap --timeout=600s Waiting for deployment "openldap" rollout to finish: 0 of 1 updated replicas are available... deployment "openldap" successfully rolled out + desc 'create secrets and start client' + set +o xtrace ----------------------------------------------------------------------------------- create secrets and start client ----------------------------------------------------------------------------------- + cluster=some-name + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client.yml ++ mktemp + local LAST_OUT=/tmp/tmp.4fnRvwOoyz ++ mktemp + local LAST_ERR=/tmp/tmp.3aaAubkQUf + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/secrets.yml' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client.yml') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/secrets.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/secrets.yml =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client.yml =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/secrets.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.4fnRvwOoyz secret/some-users created deployment.apps/psmdb-client created + cat /tmp/tmp.3aaAubkQUf + rm /tmp/tmp.4fnRvwOoyz /tmp/tmp.3aaAubkQUf + return 0 + test_mongod_openldap + cluster=some-name ++ yq /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/ldap-tls/conf/mongod.conf ++ yq '.security.ldap.servers="openldap.ldap-tls-2387.svc.cluster.local:636"' + kubectl_bin create secret generic some-name-rs0-mongod $'--from-literal=mongod.conf=security:\n authorization: enabled\n ldap:\n authz:\n queryTemplate: dc=ldap,dc=local??sub?(&(objectClass=groupOfUniqueNames)(uniqueMember={USER}))\n bind:\n queryUser: "cn=readonly,dc=ldap,dc=local"\n queryPassword: "readonlypass"\n servers: openldap.ldap-tls-2387.svc.cluster.local:636\n transportSecurity: tls\n userToDNMapping: \'[{"match":"(.+)","ldapQuery":"OU=perconadba,DC=ldap,DC=local??sub?(uid={0})"},{"match":"cn=admin,ou=perconadba,dc=ldap,dc=local","substitution":"admin"}]\'\nsetParameter:\n authenticationMechanisms: PLAIN,SCRAM-SHA-1' ++ mktemp + local LAST_OUT=/tmp/tmp.GIhmmUOaYH ++ mktemp + local LAST_ERR=/tmp/tmp.EKf8I72m15 + local exit_status=0 + local timeout=4 + local i + args=('create' 'secret' 'generic' 'some-name-rs0-mongod' '--from-literal=mongod.conf=security: authorization: enabled ldap: authz: queryTemplate: dc=ldap,dc=local??sub?(&(objectClass=groupOfUniqueNames)(uniqueMember={USER})) bind: queryUser: "cn=readonly,dc=ldap,dc=local" queryPassword: "readonlypass" servers: openldap.ldap-tls-2387.svc.cluster.local:636 transportSecurity: tls userToDNMapping: '\''[{"match":"(.+)","ldapQuery":"OU=perconadba,DC=ldap,DC=local??sub?(uid={0})"},{"match":"cn=admin,ou=perconadba,dc=ldap,dc=local","substitution":"admin"}]'\'' setParameter: authenticationMechanisms: PLAIN,SCRAM-SHA-1') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ create == \- ]] + [[ create =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ secret == \- ]] + [[ secret =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ generic == \- ]] + [[ generic =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-rs0-mongod == \- ]] + [[ some-name-rs0-mongod =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --from-literal=mongod.conf=security: authorization: enabled ldap: authz: queryTemplate: dc=ldap,dc=local??sub?(&(objectClass=groupOfUniqueNames)(uniqueMember={USER})) bind: queryUser: "cn=readonly,dc=ldap,dc=local" queryPassword: "readonlypass" servers: openldap.ldap-tls-2387.svc.cluster.local:636 transportSecurity: tls userToDNMapping: '[{"match":"(.+)","ldapQuery":"OU=perconadba,DC=ldap,DC=local??sub?(uid={0})"},{"match":"cn=admin,ou=perconadba,dc=ldap,dc=local","substitution":"admin"}]' setParameter: authenticationMechanisms: PLAIN,SCRAM-SHA-1 == \- ]] + [[ --from-literal=mongod.conf=security: authorization: enabled ldap: authz: queryTemplate: dc=ldap,dc=local??sub?(&(objectClass=groupOfUniqueNames)(uniqueMember={USER})) bind: queryUser: "cn=readonly,dc=ldap,dc=local" queryPassword: "readonlypass" servers: openldap.ldap-tls-2387.svc.cluster.local:636 transportSecurity: tls userToDNMapping: '[{"match":"(.+)","ldapQuery":"OU=perconadba,DC=ldap,DC=local??sub?(uid={0})"},{"match":"cn=admin,ou=perconadba,dc=ldap,dc=local","substitution":"admin"}]' setParameter: authenticationMechanisms: PLAIN,SCRAM-SHA-1 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl create secret generic some-name-rs0-mongod $'--from-literal=mongod.conf=security:\n authorization: enabled\n ldap:\n authz:\n queryTemplate: dc=ldap,dc=local??sub?(&(objectClass=groupOfUniqueNames)(uniqueMember={USER}))\n bind:\n queryUser: "cn=readonly,dc=ldap,dc=local"\n queryPassword: "readonlypass"\n servers: openldap.ldap-tls-2387.svc.cluster.local:636\n transportSecurity: tls\n userToDNMapping: \'[{"match":"(.+)","ldapQuery":"OU=perconadba,DC=ldap,DC=local??sub?(uid={0})"},{"match":"cn=admin,ou=perconadba,dc=ldap,dc=local","substitution":"admin"}]\'\nsetParameter:\n authenticationMechanisms: PLAIN,SCRAM-SHA-1' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.GIhmmUOaYH secret/some-name-rs0-mongod created + cat /tmp/tmp.EKf8I72m15 + rm /tmp/tmp.GIhmmUOaYH /tmp/tmp.EKf8I72m15 + return 0 + desc 'create first PSMDB cluster some-name' + set +o xtrace ----------------------------------------------------------------------------------- create first PSMDB cluster some-name ----------------------------------------------------------------------------------- + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/ldap-tls/conf/some-name.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/ldap-tls/conf/some-name.yml + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/ldap-tls/conf/some-name.yml + kubectl_bin apply -f - + yq eval '(.spec | select(.image == null)).image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3"' ++ mktemp + yq eval '(.spec | select(has("pmm"))).pmm.image = "docker.io/perconalab/pmm-client:3-dev-latest"' + yq eval '(.spec | select(has("initImage"))).initImage = "docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960"' + local LAST_OUT=/tmp/tmp.4yXDbcCLBG + [[ -n docker.io/perconalab/fluentbit:main-logcollector ]] + IMAGE_LOGCOLLECTOR=docker.io/perconalab/fluentbit:main-logcollector + yq eval '(.spec | select(has("logcollector"))).logcollector.image = strenv(IMAGE_LOGCOLLECTOR)' + yq eval '(.spec | select(has("backup"))).backup.image = "docker.io/perconalab/percona-server-mongodb-operator:main-backup"' ++ mktemp + /usr/sbin/sed -e s/NAME_SPACE/ldap-tls-2387/g + yq eval '(.spec | select(has("search"))).search.image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongot"' + yq eval '.spec.upgradeOptions.apply="Never"' + add_arch_to_psmdb - + local LAST_ERR=/tmp/tmp.GEvz2Hu8cX + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '-') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + arch_scheduling_enabled + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + [[ -n '' ]] + cat - + for i in "${!args[@]}" + [[ - == \- ]] + [[ 2 -gt 0 ]] + [[ -f =~ ^(-f|--filename)$ ]] ++ mktemp + stdin_manifest=/tmp/tmp.M0UXrt8SII + cat + return + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.M0UXrt8SII + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -f /tmp/tmp.M0UXrt8SII + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.4yXDbcCLBG perconaservermongodb.psmdb.percona.com/some-name created + cat /tmp/tmp.GEvz2Hu8cX + rm /tmp/tmp.4yXDbcCLBG /tmp/tmp.GEvz2Hu8cX /tmp/tmp.M0UXrt8SII + return 0 + desc 'check if all 3 Pods started' + set +o xtrace ----------------------------------------------------------------------------------- check if all 3 Pods started ----------------------------------------------------------------------------------- + wait_for_running some-name-rs0 3 + local name=some-name-rs0 + let last_pod=2 + local check_cluster_readiness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=some-name ++ seq 0 2 + for i in $(seq 0 $last_pod) + [[ 0 -eq 2 ]] + wait_pod some-name-rs0-0 + local pod=some-name-rs0-0 + set +o xtrace waiting for pod/some-name-rs0-0 to be ready.............OK + for i in $(seq 0 $last_pod) + [[ 1 -eq 2 ]] + wait_pod some-name-rs0-1 + local pod=some-name-rs0-1 + set +o xtrace waiting for pod/some-name-rs0-1 to be ready...........OK + for i in $(seq 0 $last_pod) + [[ 2 -eq 2 ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.1tKtGDUANo +++ mktemp ++ local LAST_ERR=/tmp/tmp.DGyln3ZOE0 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.1tKtGDUANo ++ cat /tmp/tmp.DGyln3ZOE0 ++ rm /tmp/tmp.1tKtGDUANo /tmp/tmp.DGyln3ZOE0 ++ return 0 + [[ '' == true ]] + wait_pod some-name-rs0-2 + local pod=some-name-rs0-2 + set +o xtrace waiting for pod/some-name-rs0-2 to be ready...........OK ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ZiqKbruPHH +++ mktemp ++ local LAST_ERR=/tmp/tmp.8FbHJLmdcs ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.ZiqKbruPHH ++ cat /tmp/tmp.8FbHJLmdcs ++ rm /tmp/tmp.ZiqKbruPHH /tmp/tmp.8FbHJLmdcs ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.jOz73Omm19 +++ mktemp ++ local LAST_ERR=/tmp/tmp.JskUgrgQQd ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name == \- ]] ++ [[ some-name =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.jOz73Omm19 ++ cat /tmp/tmp.JskUgrgQQd ++ rm /tmp/tmp.jOz73Omm19 /tmp/tmp.JskUgrgQQd ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster some-name to be ready + run_mongo $'db.getSiblingDB("admin").createRole(\n{\n role: "cn=admin,ou=perconadba,dc=ldap,dc=local",\n privileges: [],\n roles : [\n {\n "role" : "readAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "dbAdminAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "clusterMonitor",\n "db" : "admin"\n },\n {\n "role" : "readWriteAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "restore",\n "db" : "admin"\n },\n {\n "role" : "backup",\n "db" : "admin"\n }\n ]})' userAdmin:userAdmin123456@some-name-rs0.ldap-tls-2387 + local $'command=db.getSiblingDB("admin").createRole(\n{\n role: "cn=admin,ou=perconadba,dc=ldap,dc=local",\n privileges: [],\n roles : [\n {\n "role" : "readAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "dbAdminAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "clusterMonitor",\n "db" : "admin"\n },\n {\n "role" : "readWriteAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "restore",\n "db" : "admin"\n },\n {\n "role" : "backup",\n "db" : "admin"\n }\n ]})' + local uri=userAdmin:userAdmin123456@some-name-rs0.ldap-tls-2387 + local driver=mongodb+srv + local suffix=.svc.cluster.local + local mongo_flag= + local replica_set=rs0 + [[ userAdmin:userAdmin123456@some-name-rs0.ldap-tls-2387 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.IaiAnuoZQC +++ mktemp ++ local LAST_ERR=/tmp/tmp.GusgP7XdoJ ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=psmdb-client' '-o' 'jsonpath={.items[].metadata.name}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=psmdb-client == \- ]] ++ [[ --selector=name=psmdb-client =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.IaiAnuoZQC ++ cat /tmp/tmp.GusgP7XdoJ ++ rm /tmp/tmp.IaiAnuoZQC /tmp/tmp.GusgP7XdoJ ++ return 0 + local client_container=psmdb-client-c8847c4cd-fsq7t + kubectl_bin exec psmdb-client-c8847c4cd-fsq7t -- bash -c $'export HOME=/tmp; printf \'db.getSiblingDB("admin").createRole(\n{\n role: "cn=admin,ou=perconadba,dc=ldap,dc=local",\n privileges: [],\n roles : [\n {\n "role" : "readAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "dbAdminAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "clusterMonitor",\n "db" : "admin"\n },\n {\n "role" : "readWriteAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "restore",\n "db" : "admin"\n },\n {\n "role" : "backup",\n "db" : "admin"\n }\n ]})\\n\' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.ldap-tls-2387.svc.cluster.local/admin?ssl=false\\&replicaSet=rs0 ' ++ mktemp + local LAST_OUT=/tmp/tmp.jt76VcH58f ++ mktemp + local LAST_ERR=/tmp/tmp.xR7L0M5P7R + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-fsq7t' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''db.getSiblingDB("admin").createRole( { role: "cn=admin,ou=perconadba,dc=ldap,dc=local", privileges: [], roles : [ { "role" : "readAnyDatabase", "db" : "admin" }, { "role" : "dbAdminAnyDatabase", "db" : "admin" }, { "role" : "clusterMonitor", "db" : "admin" }, { "role" : "readWriteAnyDatabase", "db" : "admin" }, { "role" : "restore", "db" : "admin" }, { "role" : "backup", "db" : "admin" } ]})\n'\'' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.ldap-tls-2387.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-fsq7t == \- ]] + [[ psmdb-client-c8847c4cd-fsq7t =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'db.getSiblingDB("admin").createRole( { role: "cn=admin,ou=perconadba,dc=ldap,dc=local", privileges: [], roles : [ { "role" : "readAnyDatabase", "db" : "admin" }, { "role" : "dbAdminAnyDatabase", "db" : "admin" }, { "role" : "clusterMonitor", "db" : "admin" }, { "role" : "readWriteAnyDatabase", "db" : "admin" }, { "role" : "restore", "db" : "admin" }, { "role" : "backup", "db" : "admin" } ]})\n' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.ldap-tls-2387.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 == \- ]] + [[ export HOME=/tmp; printf 'db.getSiblingDB("admin").createRole( { role: "cn=admin,ou=perconadba,dc=ldap,dc=local", privileges: [], roles : [ { "role" : "readAnyDatabase", "db" : "admin" }, { "role" : "dbAdminAnyDatabase", "db" : "admin" }, { "role" : "clusterMonitor", "db" : "admin" }, { "role" : "readWriteAnyDatabase", "db" : "admin" }, { "role" : "restore", "db" : "admin" }, { "role" : "backup", "db" : "admin" } ]})\n' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.ldap-tls-2387.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-fsq7t -- bash -c $'export HOME=/tmp; printf \'db.getSiblingDB("admin").createRole(\n{\n role: "cn=admin,ou=perconadba,dc=ldap,dc=local",\n privileges: [],\n roles : [\n {\n "role" : "readAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "dbAdminAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "clusterMonitor",\n "db" : "admin"\n },\n {\n "role" : "readWriteAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "restore",\n "db" : "admin"\n },\n {\n "role" : "backup",\n "db" : "admin"\n }\n ]})\\n\' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.ldap-tls-2387.svc.cluster.local/admin?ssl=false\\&replicaSet=rs0 ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.jt76VcH58f Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-2.some-name-rs0.ldap-tls-2387.svc.cluster.local:27017,some-name-rs0-1.some-name-rs0.ldap-tls-2387.svc.cluster.local:27017,some-name-rs0-0.some-name-rs0.ldap-tls-2387.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=false Implicit session: session { "id" : UUID("27441df1-5ef1-44ad-9a5e-b0014f1ade65") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match { "role" : "cn=admin,ou=perconadba,dc=ldap,dc=local", "privileges" : [ ], "roles" : [ { "role" : "readAnyDatabase", "db" : "admin" }, { "role" : "dbAdminAnyDatabase", "db" : "admin" }, { "role" : "clusterMonitor", "db" : "admin" }, { "role" : "readWriteAnyDatabase", "db" : "admin" }, { "role" : "restore", "db" : "admin" }, { "role" : "backup", "db" : "admin" } ] } bye + cat /tmp/tmp.xR7L0M5P7R + rm /tmp/tmp.jt76VcH58f /tmp/tmp.xR7L0M5P7R + return 0 + grep -E -v 'Percona Server for MongoDB|connecting to:|Implicit session:|versions do not match|Error saving history file:|bye' + run_mongo 'JSON.stringify(db.runCommand({connectionStatus:1}))' percona:password@some-name-rs0.ldap-tls-2387 '' '' '--authenticationMechanism '\''PLAIN'\'' --authenticationDatabase '\''$external'\''' + jq '.authenticatedUserRoles |= sort_by(.role)' + local 'command=JSON.stringify(db.runCommand({connectionStatus:1}))' + local uri=percona:password@some-name-rs0.ldap-tls-2387 + jq .authInfo + local driver=mongodb+srv + local suffix=.svc.cluster.local + local 'mongo_flag=--authenticationMechanism '\''PLAIN'\'' --authenticationDatabase '\''$external'\''' + local replica_set=rs0 + [[ percona:password@some-name-rs0.ldap-tls-2387 == *cfg* ]] ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.rclzNVQzDd +++ mktemp ++ local LAST_ERR=/tmp/tmp.TJTxerL7N4 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=psmdb-client' '-o' 'jsonpath={.items[].metadata.name}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=psmdb-client == \- ]] ++ [[ --selector=name=psmdb-client =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.rclzNVQzDd ++ cat /tmp/tmp.TJTxerL7N4 ++ rm /tmp/tmp.rclzNVQzDd /tmp/tmp.TJTxerL7N4 ++ return 0 + local client_container=psmdb-client-c8847c4cd-fsq7t + kubectl_bin exec psmdb-client-c8847c4cd-fsq7t -- bash -c 'export HOME=/tmp; printf '\''JSON.stringify(db.runCommand({connectionStatus:1}))\n'\'' | mongo mongodb+srv://percona:password@some-name-rs0.ldap-tls-2387.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 --authenticationMechanism '\''PLAIN'\'' --authenticationDatabase '\''$external'\''' ++ mktemp + local LAST_OUT=/tmp/tmp.hnJ1WM5opP ++ mktemp + local LAST_ERR=/tmp/tmp.mIL79mRdUt + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-fsq7t' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''JSON.stringify(db.runCommand({connectionStatus:1}))\n'\'' | mongo mongodb+srv://percona:password@some-name-rs0.ldap-tls-2387.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 --authenticationMechanism '\''PLAIN'\'' --authenticationDatabase '\''$external'\''') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-fsq7t == \- ]] + [[ psmdb-client-c8847c4cd-fsq7t =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'JSON.stringify(db.runCommand({connectionStatus:1}))\n' | mongo mongodb+srv://percona:password@some-name-rs0.ldap-tls-2387.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 --authenticationMechanism 'PLAIN' --authenticationDatabase '$external' == \- ]] + [[ export HOME=/tmp; printf 'JSON.stringify(db.runCommand({connectionStatus:1}))\n' | mongo mongodb+srv://percona:password@some-name-rs0.ldap-tls-2387.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 --authenticationMechanism 'PLAIN' --authenticationDatabase '$external' =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-fsq7t -- bash -c 'export HOME=/tmp; printf '\''JSON.stringify(db.runCommand({connectionStatus:1}))\n'\'' | mongo mongodb+srv://percona:password@some-name-rs0.ldap-tls-2387.svc.cluster.local/admin?ssl=false\&replicaSet=rs0 --authenticationMechanism '\''PLAIN'\'' --authenticationDatabase '\''$external'\''' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.hnJ1WM5opP + cat /tmp/tmp.mIL79mRdUt + rm /tmp/tmp.hnJ1WM5opP /tmp/tmp.mIL79mRdUt + return 0 + diff /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/ldap-tls/compare/authInfo.json /tmp/tmp.beGCRFDDH3/some-name-ldap-tls-2387-authInfo.json + kubectl_bin delete psmdb some-name ++ mktemp + local LAST_OUT=/tmp/tmp.HM39AxzA0w ++ mktemp + local LAST_ERR=/tmp/tmp.6ZdU6m6uXj + local exit_status=0 + local timeout=4 + local i + args=('delete' 'psmdb' 'some-name') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb == \- ]] + [[ psmdb =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name == \- ]] + [[ some-name =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete psmdb some-name + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.HM39AxzA0w perconaservermongodb.psmdb.percona.com "some-name" deleted from ldap-tls-2387 namespace + cat /tmp/tmp.6ZdU6m6uXj + rm /tmp/tmp.HM39AxzA0w /tmp/tmp.6ZdU6m6uXj + return 0 + kubectl_bin delete pvc --all ++ mktemp + local LAST_OUT=/tmp/tmp.K4szl6YpwL ++ mktemp + local LAST_ERR=/tmp/tmp.bt50uzD73D + local exit_status=0 + local timeout=4 + local i + args=('delete' 'pvc' '--all') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ pvc == \- ]] + [[ pvc =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --all == \- ]] + [[ --all =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete pvc --all + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.K4szl6YpwL persistentvolumeclaim "mongod-data-some-name-rs0-0" deleted from ldap-tls-2387 namespace persistentvolumeclaim "mongod-data-some-name-rs0-1" deleted from ldap-tls-2387 namespace persistentvolumeclaim "mongod-data-some-name-rs0-2" deleted from ldap-tls-2387 namespace + cat /tmp/tmp.bt50uzD73D + rm /tmp/tmp.K4szl6YpwL /tmp/tmp.bt50uzD73D + return 0 + test_sharded_openldap + cluster=some-name-sharded ++ yq /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/ldap-tls/conf/mongos.conf ++ yq '.security.ldap.servers="openldap.ldap-tls-2387.svc.cluster.local:636"' + kubectl_bin create secret generic some-name-sharded-mongos $'--from-literal=mongos.conf=security:\n ldap:\n bind:\n queryUser: "cn=readonly,dc=ldap,dc=local"\n queryPassword: "readonlypass"\n servers: openldap.ldap-tls-2387.svc.cluster.local:636\n transportSecurity: tls\n userToDNMapping: \'[{"match":"(.+)","ldapQuery":"OU=perconadba,DC=ldap,DC=local??sub?(uid={0})"}]\'\nsetParameter:\n authenticationMechanisms: PLAIN,SCRAM-SHA-1' ++ mktemp + local LAST_OUT=/tmp/tmp.xuMephjfpc ++ mktemp + local LAST_ERR=/tmp/tmp.69hVOuUbWA + local exit_status=0 + local timeout=4 + local i + args=('create' 'secret' 'generic' 'some-name-sharded-mongos' '--from-literal=mongos.conf=security: ldap: bind: queryUser: "cn=readonly,dc=ldap,dc=local" queryPassword: "readonlypass" servers: openldap.ldap-tls-2387.svc.cluster.local:636 transportSecurity: tls userToDNMapping: '\''[{"match":"(.+)","ldapQuery":"OU=perconadba,DC=ldap,DC=local??sub?(uid={0})"}]'\'' setParameter: authenticationMechanisms: PLAIN,SCRAM-SHA-1') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ create == \- ]] + [[ create =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ secret == \- ]] + [[ secret =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ generic == \- ]] + [[ generic =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-sharded-mongos == \- ]] + [[ some-name-sharded-mongos =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --from-literal=mongos.conf=security: ldap: bind: queryUser: "cn=readonly,dc=ldap,dc=local" queryPassword: "readonlypass" servers: openldap.ldap-tls-2387.svc.cluster.local:636 transportSecurity: tls userToDNMapping: '[{"match":"(.+)","ldapQuery":"OU=perconadba,DC=ldap,DC=local??sub?(uid={0})"}]' setParameter: authenticationMechanisms: PLAIN,SCRAM-SHA-1 == \- ]] + [[ --from-literal=mongos.conf=security: ldap: bind: queryUser: "cn=readonly,dc=ldap,dc=local" queryPassword: "readonlypass" servers: openldap.ldap-tls-2387.svc.cluster.local:636 transportSecurity: tls userToDNMapping: '[{"match":"(.+)","ldapQuery":"OU=perconadba,DC=ldap,DC=local??sub?(uid={0})"}]' setParameter: authenticationMechanisms: PLAIN,SCRAM-SHA-1 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl create secret generic some-name-sharded-mongos $'--from-literal=mongos.conf=security:\n ldap:\n bind:\n queryUser: "cn=readonly,dc=ldap,dc=local"\n queryPassword: "readonlypass"\n servers: openldap.ldap-tls-2387.svc.cluster.local:636\n transportSecurity: tls\n userToDNMapping: \'[{"match":"(.+)","ldapQuery":"OU=perconadba,DC=ldap,DC=local??sub?(uid={0})"}]\'\nsetParameter:\n authenticationMechanisms: PLAIN,SCRAM-SHA-1' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.xuMephjfpc secret/some-name-sharded-mongos created + cat /tmp/tmp.69hVOuUbWA + rm /tmp/tmp.xuMephjfpc /tmp/tmp.69hVOuUbWA + return 0 ++ yq /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/ldap-tls/conf/mongod.conf ++ yq '.security.ldap.servers="openldap.ldap-tls-2387.svc.cluster.local:636"' + kubectl_bin create secret generic some-name-sharded-cfg-mongod $'--from-literal=mongod.conf=security:\n authorization: enabled\n ldap:\n authz:\n queryTemplate: dc=ldap,dc=local??sub?(&(objectClass=groupOfUniqueNames)(uniqueMember={USER}))\n bind:\n queryUser: "cn=readonly,dc=ldap,dc=local"\n queryPassword: "readonlypass"\n servers: openldap.ldap-tls-2387.svc.cluster.local:636\n transportSecurity: tls\n userToDNMapping: \'[{"match":"(.+)","ldapQuery":"OU=perconadba,DC=ldap,DC=local??sub?(uid={0})"},{"match":"cn=admin,ou=perconadba,dc=ldap,dc=local","substitution":"admin"}]\'\nsetParameter:\n authenticationMechanisms: PLAIN,SCRAM-SHA-1' ++ mktemp + local LAST_OUT=/tmp/tmp.dX4fjsH9fb ++ mktemp + local LAST_ERR=/tmp/tmp.wBwkEkyzoh + local exit_status=0 + local timeout=4 + local i + args=('create' 'secret' 'generic' 'some-name-sharded-cfg-mongod' '--from-literal=mongod.conf=security: authorization: enabled ldap: authz: queryTemplate: dc=ldap,dc=local??sub?(&(objectClass=groupOfUniqueNames)(uniqueMember={USER})) bind: queryUser: "cn=readonly,dc=ldap,dc=local" queryPassword: "readonlypass" servers: openldap.ldap-tls-2387.svc.cluster.local:636 transportSecurity: tls userToDNMapping: '\''[{"match":"(.+)","ldapQuery":"OU=perconadba,DC=ldap,DC=local??sub?(uid={0})"},{"match":"cn=admin,ou=perconadba,dc=ldap,dc=local","substitution":"admin"}]'\'' setParameter: authenticationMechanisms: PLAIN,SCRAM-SHA-1') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ create == \- ]] + [[ create =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ secret == \- ]] + [[ secret =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ generic == \- ]] + [[ generic =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-sharded-cfg-mongod == \- ]] + [[ some-name-sharded-cfg-mongod =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --from-literal=mongod.conf=security: authorization: enabled ldap: authz: queryTemplate: dc=ldap,dc=local??sub?(&(objectClass=groupOfUniqueNames)(uniqueMember={USER})) bind: queryUser: "cn=readonly,dc=ldap,dc=local" queryPassword: "readonlypass" servers: openldap.ldap-tls-2387.svc.cluster.local:636 transportSecurity: tls userToDNMapping: '[{"match":"(.+)","ldapQuery":"OU=perconadba,DC=ldap,DC=local??sub?(uid={0})"},{"match":"cn=admin,ou=perconadba,dc=ldap,dc=local","substitution":"admin"}]' setParameter: authenticationMechanisms: PLAIN,SCRAM-SHA-1 == \- ]] + [[ --from-literal=mongod.conf=security: authorization: enabled ldap: authz: queryTemplate: dc=ldap,dc=local??sub?(&(objectClass=groupOfUniqueNames)(uniqueMember={USER})) bind: queryUser: "cn=readonly,dc=ldap,dc=local" queryPassword: "readonlypass" servers: openldap.ldap-tls-2387.svc.cluster.local:636 transportSecurity: tls userToDNMapping: '[{"match":"(.+)","ldapQuery":"OU=perconadba,DC=ldap,DC=local??sub?(uid={0})"},{"match":"cn=admin,ou=perconadba,dc=ldap,dc=local","substitution":"admin"}]' setParameter: authenticationMechanisms: PLAIN,SCRAM-SHA-1 =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl create secret generic some-name-sharded-cfg-mongod $'--from-literal=mongod.conf=security:\n authorization: enabled\n ldap:\n authz:\n queryTemplate: dc=ldap,dc=local??sub?(&(objectClass=groupOfUniqueNames)(uniqueMember={USER}))\n bind:\n queryUser: "cn=readonly,dc=ldap,dc=local"\n queryPassword: "readonlypass"\n servers: openldap.ldap-tls-2387.svc.cluster.local:636\n transportSecurity: tls\n userToDNMapping: \'[{"match":"(.+)","ldapQuery":"OU=perconadba,DC=ldap,DC=local??sub?(uid={0})"},{"match":"cn=admin,ou=perconadba,dc=ldap,dc=local","substitution":"admin"}]\'\nsetParameter:\n authenticationMechanisms: PLAIN,SCRAM-SHA-1' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.dX4fjsH9fb secret/some-name-sharded-cfg-mongod created + cat /tmp/tmp.wBwkEkyzoh + rm /tmp/tmp.dX4fjsH9fb /tmp/tmp.wBwkEkyzoh + return 0 + desc 'create first PSMDB cluster some-name-sharded' + set +o xtrace ----------------------------------------------------------------------------------- create first PSMDB cluster some-name-sharded ----------------------------------------------------------------------------------- + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/ldap-tls/conf/some-name-sharded.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/ldap-tls/conf/some-name-sharded.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/ldap-tls/conf/some-name-sharded.yml + yq eval '(.spec | select(has("pmm"))).pmm.image = "docker.io/perconalab/pmm-client:3-dev-latest"' + yq eval '(.spec | select(has("initImage"))).initImage = "docker.io/perconalab/percona-server-mongodb-operator:PR-2715-27e0b7960"' + yq eval '(.spec | select(has("backup"))).backup.image = "docker.io/perconalab/percona-server-mongodb-operator:main-backup"' ++ mktemp + yq eval '(.spec | select(.image == null)).image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.3"' + /usr/sbin/sed -e s/NAME_SPACE/ldap-tls-2387/g + yq eval '.spec.upgradeOptions.apply="Never"' + [[ -n docker.io/perconalab/fluentbit:main-logcollector ]] + IMAGE_LOGCOLLECTOR=docker.io/perconalab/fluentbit:main-logcollector + yq eval '(.spec | select(has("logcollector"))).logcollector.image = strenv(IMAGE_LOGCOLLECTOR)' + yq eval '(.spec | select(has("search"))).search.image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongot"' + add_arch_to_psmdb - + arch_scheduling_enabled + [[ -n '' ]] + cat - + local LAST_OUT=/tmp/tmp.QS9Ad2gkMw ++ mktemp + local LAST_ERR=/tmp/tmp.ReFCR8WWrw + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '-') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ apply == \- ]] + [[ apply =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ - == \- ]] + [[ 2 -gt 0 ]] + [[ -f =~ ^(-f|--filename)$ ]] ++ mktemp + stdin_manifest=/tmp/tmp.9YjkNEeX62 + cat + return + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.9YjkNEeX62 + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl apply -f /tmp/tmp.9YjkNEeX62 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.QS9Ad2gkMw perconaservermongodb.psmdb.percona.com/some-name-sharded created + cat /tmp/tmp.ReFCR8WWrw + rm /tmp/tmp.QS9Ad2gkMw /tmp/tmp.ReFCR8WWrw /tmp/tmp.9YjkNEeX62 + return 0 + desc 'check if all 3 Pods started' + set +o xtrace ----------------------------------------------------------------------------------- check if all 3 Pods started ----------------------------------------------------------------------------------- + wait_for_running some-name-sharded-rs0 3 + local name=some-name-sharded-rs0 + let last_pod=2 + local check_cluster_readiness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=some-name-sharded ++ seq 0 2 + for i in $(seq 0 $last_pod) + [[ 0 -eq 2 ]] + wait_pod some-name-sharded-rs0-0 + local pod=some-name-sharded-rs0-0 + set +o xtrace waiting for pod/some-name-sharded-rs0-0 to be ready............OK + for i in $(seq 0 $last_pod) + [[ 1 -eq 2 ]] + wait_pod some-name-sharded-rs0-1 + local pod=some-name-sharded-rs0-1 + set +o xtrace waiting for pod/some-name-sharded-rs0-1 to be ready............OK + for i in $(seq 0 $last_pod) + [[ 2 -eq 2 ]] ++ kubectl_bin get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.9xoSfoaZHl +++ mktemp ++ local LAST_ERR=/tmp/tmp.mem1vjFKhb ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name-sharded' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name-sharded == \- ]] ++ [[ some-name-sharded =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.9xoSfoaZHl ++ cat /tmp/tmp.mem1vjFKhb ++ rm /tmp/tmp.9xoSfoaZHl /tmp/tmp.mem1vjFKhb ++ return 0 + [[ '' == true ]] + wait_pod some-name-sharded-rs0-2 + local pod=some-name-sharded-rs0-2 + set +o xtrace waiting for pod/some-name-sharded-rs0-2 to be ready...........OK ++ kubectl_bin get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.dZmpUz0m9w +++ mktemp ++ local LAST_ERR=/tmp/tmp.ANVHikLkZx ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name-sharded' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name-sharded == \- ]] ++ [[ some-name-sharded =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.dZmpUz0m9w ++ cat /tmp/tmp.ANVHikLkZx ++ rm /tmp/tmp.dZmpUz0m9w /tmp/tmp.ANVHikLkZx ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Atx1aAqrtd +++ mktemp ++ local LAST_ERR=/tmp/tmp.oMPE12zwo7 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name-sharded' '-o' 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name-sharded == \- ]] ++ [[ some-name-sharded =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.Atx1aAqrtd ++ cat /tmp/tmp.oMPE12zwo7 ++ rm /tmp/tmp.Atx1aAqrtd /tmp/tmp.oMPE12zwo7 ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster some-name-sharded to be ready................ + wait_for_running some-name-sharded-cfg 3 false + local name=some-name-sharded-cfg + let last_pod=2 + local check_cluster_readiness=false + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=cfg + local cluster_name=some-name-sharded ++ seq 0 2 + for i in $(seq 0 $last_pod) + [[ 0 -eq 2 ]] + wait_pod some-name-sharded-cfg-0 + local pod=some-name-sharded-cfg-0 + set +o xtrace waiting for pod/some-name-sharded-cfg-0 to be ready.OK + for i in $(seq 0 $last_pod) + [[ 1 -eq 2 ]] + wait_pod some-name-sharded-cfg-1 + local pod=some-name-sharded-cfg-1 + set +o xtrace waiting for pod/some-name-sharded-cfg-1 to be ready.OK + for i in $(seq 0 $last_pod) + [[ 2 -eq 2 ]] ++ kubectl_bin get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.iqKZz6MzBu +++ mktemp ++ local LAST_ERR=/tmp/tmp.phvkG2cSbF ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name-sharded' '-o' 'jsonpath={.spec.replsets[?(@.name=="cfg")].arbiter.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name-sharded == \- ]] ++ [[ some-name-sharded =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.spec.replsets[?(@.name=="cfg")].arbiter.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="cfg")].arbiter.enabled} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.iqKZz6MzBu ++ cat /tmp/tmp.phvkG2cSbF ++ rm /tmp/tmp.iqKZz6MzBu /tmp/tmp.phvkG2cSbF ++ return 0 + [[ '' == true ]] + wait_pod some-name-sharded-cfg-2 + local pod=some-name-sharded-cfg-2 + set +o xtrace waiting for pod/some-name-sharded-cfg-2 to be ready.OK ++ kubectl_bin get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.DvQd5acZ5f +++ mktemp ++ local LAST_ERR=/tmp/tmp.PUc7gxoj1I ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name-sharded' '-o' 'jsonpath={.spec.replsets[?(@.name=="cfg")].nonvoting.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name-sharded == \- ]] ++ [[ some-name-sharded =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.spec.replsets[?(@.name=="cfg")].nonvoting.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="cfg")].nonvoting.enabled} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.DvQd5acZ5f ++ cat /tmp/tmp.PUc7gxoj1I ++ rm /tmp/tmp.DvQd5acZ5f /tmp/tmp.PUc7gxoj1I ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.rX3luOCbcl +++ mktemp ++ local LAST_ERR=/tmp/tmp.rKT39c0co2 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name-sharded' '-o' 'jsonpath={.spec.replsets[?(@.name=="cfg")].hidden.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name-sharded == \- ]] ++ [[ some-name-sharded =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.spec.replsets[?(@.name=="cfg")].hidden.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="cfg")].hidden.enabled} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.rX3luOCbcl ++ cat /tmp/tmp.rKT39c0co2 ++ rm /tmp/tmp.rX3luOCbcl /tmp/tmp.rKT39c0co2 ++ return 0 + [[ '' == true ]] + sleep 10 + [[ false == true ]] + wait_for_running some-name-sharded-mongos 3 + local name=some-name-sharded-mongos + let last_pod=2 + local check_cluster_readiness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=mongos + local cluster_name=some-name-sharded ++ seq 0 2 + for i in $(seq 0 $last_pod) + [[ 0 -eq 2 ]] + wait_pod some-name-sharded-mongos-0 + local pod=some-name-sharded-mongos-0 + set +o xtrace waiting for pod/some-name-sharded-mongos-0 to be ready.OK + for i in $(seq 0 $last_pod) + [[ 1 -eq 2 ]] + wait_pod some-name-sharded-mongos-1 + local pod=some-name-sharded-mongos-1 + set +o xtrace waiting for pod/some-name-sharded-mongos-1 to be ready.OK + for i in $(seq 0 $last_pod) + [[ 2 -eq 2 ]] ++ kubectl_bin get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.fQieXL6Q0W +++ mktemp ++ local LAST_ERR=/tmp/tmp.mT2Sk1yvjJ ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name-sharded' '-o' 'jsonpath={.spec.replsets[?(@.name=="mongos")].arbiter.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name-sharded == \- ]] ++ [[ some-name-sharded =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.spec.replsets[?(@.name=="mongos")].arbiter.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="mongos")].arbiter.enabled} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.fQieXL6Q0W ++ cat /tmp/tmp.mT2Sk1yvjJ ++ rm /tmp/tmp.fQieXL6Q0W /tmp/tmp.mT2Sk1yvjJ ++ return 0 + [[ '' == true ]] + wait_pod some-name-sharded-mongos-2 + local pod=some-name-sharded-mongos-2 + set +o xtrace waiting for pod/some-name-sharded-mongos-2 to be ready.OK ++ kubectl_bin get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.z7pSjsPbRP +++ mktemp ++ local LAST_ERR=/tmp/tmp.sD6ODCDd2u ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name-sharded' '-o' 'jsonpath={.spec.replsets[?(@.name=="mongos")].nonvoting.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name-sharded == \- ]] ++ [[ some-name-sharded =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.spec.replsets[?(@.name=="mongos")].nonvoting.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="mongos")].nonvoting.enabled} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.z7pSjsPbRP ++ cat /tmp/tmp.sD6ODCDd2u ++ rm /tmp/tmp.z7pSjsPbRP /tmp/tmp.sD6ODCDd2u ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.iZRJRX0IeR +++ mktemp ++ local LAST_ERR=/tmp/tmp.PJ8LFuJlsE ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name-sharded' '-o' 'jsonpath={.spec.replsets[?(@.name=="mongos")].hidden.enabled}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name-sharded == \- ]] ++ [[ some-name-sharded =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.spec.replsets[?(@.name=="mongos")].hidden.enabled} == \- ]] ++ [[ jsonpath={.spec.replsets[?(@.name=="mongos")].hidden.enabled} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name-sharded -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.iZRJRX0IeR ++ cat /tmp/tmp.PJ8LFuJlsE ++ rm /tmp/tmp.iZRJRX0IeR /tmp/tmp.PJ8LFuJlsE ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster some-name-sharded to be ready + wait_cluster_consistency some-name-sharded + local cluster_name=some-name-sharded + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster some-name-sharded to be ready' waiting for cluster some-name-sharded to be ready++ kubectl_bin get psmdb some-name-sharded -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.pMBowuIoMQ +++ mktemp ++ local LAST_ERR=/tmp/tmp.SqTFLRv3FO ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name-sharded' '-o' 'jsonpath={.status.state}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb == \- ]] ++ [[ psmdb =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name-sharded == \- ]] ++ [[ some-name-sharded =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.status.state} == \- ]] ++ [[ jsonpath={.status.state} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get psmdb some-name-sharded -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.pMBowuIoMQ ++ cat /tmp/tmp.SqTFLRv3FO ++ rm /tmp/tmp.pMBowuIoMQ /tmp/tmp.SqTFLRv3FO ++ return 0 + [[ ready == ready ]] + echo .OK .OK + run_mongos $'db.getSiblingDB("admin").createRole(\n{\n role: "cn=admin,ou=perconadba,dc=ldap,dc=local",\n privileges: [],\n roles : [\n {\n "role" : "readAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "dbAdminAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "clusterMonitor",\n "db" : "admin"\n },\n {\n "role" : "readWriteAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "restore",\n "db" : "admin"\n },\n {\n "role" : "backup",\n "db" : "admin"\n }\n ]})' userAdmin:userAdmin123456@some-name-sharded-mongos.ldap-tls-2387 + local $'command=db.getSiblingDB("admin").createRole(\n{\n role: "cn=admin,ou=perconadba,dc=ldap,dc=local",\n privileges: [],\n roles : [\n {\n "role" : "readAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "dbAdminAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "clusterMonitor",\n "db" : "admin"\n },\n {\n "role" : "readWriteAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "restore",\n "db" : "admin"\n },\n {\n "role" : "backup",\n "db" : "admin"\n }\n ]})' + local uri=userAdmin:userAdmin123456@some-name-sharded-mongos.ldap-tls-2387 + local driver=mongodb + local suffix=.svc.cluster.local + local mongo_flag= + local port=27017 + local mongo_bin=mongo ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27017 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.W0UaQIm4kD +++ mktemp ++ local LAST_ERR=/tmp/tmp.mNPawto9Uq ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=psmdb-client' '-o' 'jsonpath={.items[].metadata.name}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=psmdb-client == \- ]] ++ [[ --selector=name=psmdb-client =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.W0UaQIm4kD ++ cat /tmp/tmp.mNPawto9Uq ++ rm /tmp/tmp.W0UaQIm4kD /tmp/tmp.mNPawto9Uq ++ return 0 + local client_container=psmdb-client-c8847c4cd-fsq7t + kubectl_bin exec psmdb-client-c8847c4cd-fsq7t -- bash -c $'export HOME=/tmp; printf \'db.getSiblingDB("admin").createRole(\n{\n role: "cn=admin,ou=perconadba,dc=ldap,dc=local",\n privileges: [],\n roles : [\n {\n "role" : "readAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "dbAdminAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "clusterMonitor",\n "db" : "admin"\n },\n {\n "role" : "readWriteAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "restore",\n "db" : "admin"\n },\n {\n "role" : "backup",\n "db" : "admin"\n }\n ]})\\n\' | mongo mongodb://userAdmin:userAdmin123456@some-name-sharded-mongos.ldap-tls-2387.svc.cluster.local:27017/admin ' ++ mktemp + local LAST_OUT=/tmp/tmp.aJlKs9lnBG ++ mktemp + local LAST_ERR=/tmp/tmp.XVD62gWFSx + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-fsq7t' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''db.getSiblingDB("admin").createRole( { role: "cn=admin,ou=perconadba,dc=ldap,dc=local", privileges: [], roles : [ { "role" : "readAnyDatabase", "db" : "admin" }, { "role" : "dbAdminAnyDatabase", "db" : "admin" }, { "role" : "clusterMonitor", "db" : "admin" }, { "role" : "readWriteAnyDatabase", "db" : "admin" }, { "role" : "restore", "db" : "admin" }, { "role" : "backup", "db" : "admin" } ]})\n'\'' | mongo mongodb://userAdmin:userAdmin123456@some-name-sharded-mongos.ldap-tls-2387.svc.cluster.local:27017/admin ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-fsq7t == \- ]] + [[ psmdb-client-c8847c4cd-fsq7t =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'db.getSiblingDB("admin").createRole( { role: "cn=admin,ou=perconadba,dc=ldap,dc=local", privileges: [], roles : [ { "role" : "readAnyDatabase", "db" : "admin" }, { "role" : "dbAdminAnyDatabase", "db" : "admin" }, { "role" : "clusterMonitor", "db" : "admin" }, { "role" : "readWriteAnyDatabase", "db" : "admin" }, { "role" : "restore", "db" : "admin" }, { "role" : "backup", "db" : "admin" } ]})\n' | mongo mongodb://userAdmin:userAdmin123456@some-name-sharded-mongos.ldap-tls-2387.svc.cluster.local:27017/admin == \- ]] + [[ export HOME=/tmp; printf 'db.getSiblingDB("admin").createRole( { role: "cn=admin,ou=perconadba,dc=ldap,dc=local", privileges: [], roles : [ { "role" : "readAnyDatabase", "db" : "admin" }, { "role" : "dbAdminAnyDatabase", "db" : "admin" }, { "role" : "clusterMonitor", "db" : "admin" }, { "role" : "readWriteAnyDatabase", "db" : "admin" }, { "role" : "restore", "db" : "admin" }, { "role" : "backup", "db" : "admin" } ]})\n' | mongo mongodb://userAdmin:userAdmin123456@some-name-sharded-mongos.ldap-tls-2387.svc.cluster.local:27017/admin =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-fsq7t -- bash -c $'export HOME=/tmp; printf \'db.getSiblingDB("admin").createRole(\n{\n role: "cn=admin,ou=perconadba,dc=ldap,dc=local",\n privileges: [],\n roles : [\n {\n "role" : "readAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "dbAdminAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "clusterMonitor",\n "db" : "admin"\n },\n {\n "role" : "readWriteAnyDatabase",\n "db" : "admin"\n },\n {\n "role" : "restore",\n "db" : "admin"\n },\n {\n "role" : "backup",\n "db" : "admin"\n }\n ]})\\n\' | mongo mongodb://userAdmin:userAdmin123456@some-name-sharded-mongos.ldap-tls-2387.svc.cluster.local:27017/admin ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.aJlKs9lnBG Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-sharded-mongos.ldap-tls-2387.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("ab0c72f2-efa6-4834-a569-ead238366862") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match { "role" : "cn=admin,ou=perconadba,dc=ldap,dc=local", "privileges" : [ ], "roles" : [ { "role" : "readAnyDatabase", "db" : "admin" }, { "role" : "dbAdminAnyDatabase", "db" : "admin" }, { "role" : "clusterMonitor", "db" : "admin" }, { "role" : "readWriteAnyDatabase", "db" : "admin" }, { "role" : "restore", "db" : "admin" }, { "role" : "backup", "db" : "admin" } ] } bye + cat /tmp/tmp.XVD62gWFSx + rm /tmp/tmp.aJlKs9lnBG /tmp/tmp.XVD62gWFSx + return 0 + run_mongos 'JSON.stringify(db.runCommand({connectionStatus:1}))' percona:password@some-name-sharded-mongos.ldap-tls-2387 '' '' '--authenticationMechanism '\''PLAIN'\'' --authenticationDatabase '\''$external'\''' + local 'command=JSON.stringify(db.runCommand({connectionStatus:1}))' + grep -E -v 'Percona Server for MongoDB|connecting to:|Implicit session:|versions do not match|Error saving history file:|bye' + local uri=percona:password@some-name-sharded-mongos.ldap-tls-2387 + local driver=mongodb + local suffix=.svc.cluster.local + local 'mongo_flag=--authenticationMechanism '\''PLAIN'\'' --authenticationDatabase '\''$external'\''' + local port=27017 + local mongo_bin=mongo + jq .authInfo + jq '.authenticatedUserRoles |= sort_by(.role)' ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27017 ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.aOxjASZIzf +++ mktemp ++ local LAST_ERR=/tmp/tmp.yQOEYMxTC8 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'pods' '--selector=name=psmdb-client' '-o' 'jsonpath={.items[].metadata.name}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ pods == \- ]] ++ [[ pods =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ --selector=name=psmdb-client == \- ]] ++ [[ --selector=name=psmdb-client =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.items[].metadata.name} == \- ]] ++ [[ jsonpath={.items[].metadata.name} =~ ^(-f|--filename)=-$ ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ arch_scheduling_enabled ++ [[ -n '' ]] ++ local attempt ++ local delay +++ seq 0 9 ++ for attempt in $(seq 0 9) ++ set +e ++ kubectl get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.aOxjASZIzf ++ cat /tmp/tmp.yQOEYMxTC8 ++ rm /tmp/tmp.aOxjASZIzf /tmp/tmp.yQOEYMxTC8 ++ return 0 + local client_container=psmdb-client-c8847c4cd-fsq7t + kubectl_bin exec psmdb-client-c8847c4cd-fsq7t -- bash -c 'export HOME=/tmp; printf '\''JSON.stringify(db.runCommand({connectionStatus:1}))\n'\'' | mongo mongodb://percona:password@some-name-sharded-mongos.ldap-tls-2387.svc.cluster.local:27017/admin --authenticationMechanism '\''PLAIN'\'' --authenticationDatabase '\''$external'\''' ++ mktemp + local LAST_OUT=/tmp/tmp.dAVviQzmP1 ++ mktemp + local LAST_ERR=/tmp/tmp.vHwbTkoxmy + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-c8847c4cd-fsq7t' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''JSON.stringify(db.runCommand({connectionStatus:1}))\n'\'' | mongo mongodb://percona:password@some-name-sharded-mongos.ldap-tls-2387.svc.cluster.local:27017/admin --authenticationMechanism '\''PLAIN'\'' --authenticationDatabase '\''$external'\''') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-c8847c4cd-fsq7t == \- ]] + [[ psmdb-client-c8847c4cd-fsq7t =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ bash == \- ]] + [[ bash =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ export HOME=/tmp; printf 'JSON.stringify(db.runCommand({connectionStatus:1}))\n' | mongo mongodb://percona:password@some-name-sharded-mongos.ldap-tls-2387.svc.cluster.local:27017/admin --authenticationMechanism 'PLAIN' --authenticationDatabase '$external' == \- ]] + [[ export HOME=/tmp; printf 'JSON.stringify(db.runCommand({connectionStatus:1}))\n' | mongo mongodb://percona:password@some-name-sharded-mongos.ldap-tls-2387.svc.cluster.local:27017/admin --authenticationMechanism 'PLAIN' --authenticationDatabase '$external' =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl exec psmdb-client-c8847c4cd-fsq7t -- bash -c 'export HOME=/tmp; printf '\''JSON.stringify(db.runCommand({connectionStatus:1}))\n'\'' | mongo mongodb://percona:password@some-name-sharded-mongos.ldap-tls-2387.svc.cluster.local:27017/admin --authenticationMechanism '\''PLAIN'\'' --authenticationDatabase '\''$external'\''' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.dAVviQzmP1 + cat /tmp/tmp.vHwbTkoxmy + rm /tmp/tmp.dAVviQzmP1 /tmp/tmp.vHwbTkoxmy + return 0 + diff /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/ldap-tls/compare/authInfo.json /tmp/tmp.beGCRFDDH3/some-name-sharded-ldap-tls-2387-authInfo.json + kubectl_bin delete psmdb some-name-sharded ++ mktemp + local LAST_OUT=/tmp/tmp.v1ekHTMcdi ++ mktemp + local LAST_ERR=/tmp/tmp.vOECriqISK + local exit_status=0 + local timeout=4 + local i + args=('delete' 'psmdb' 'some-name-sharded') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb == \- ]] + [[ psmdb =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-sharded == \- ]] + [[ some-name-sharded =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete psmdb some-name-sharded + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.v1ekHTMcdi perconaservermongodb.psmdb.percona.com "some-name-sharded" deleted from ldap-tls-2387 namespace + cat /tmp/tmp.vOECriqISK + rm /tmp/tmp.v1ekHTMcdi /tmp/tmp.vOECriqISK + return 0 + kubectl_bin delete pvc --all ++ mktemp + local LAST_OUT=/tmp/tmp.1thHILrMAE ++ mktemp + local LAST_ERR=/tmp/tmp.SdgeSCcVa8 + local exit_status=0 + local timeout=4 + local i + args=('delete' 'pvc' '--all') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ delete == \- ]] + [[ delete =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ pvc == \- ]] + [[ pvc =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --all == \- ]] + [[ --all =~ ^(-f|--filename)=-$ ]] + arch_scheduling_enabled + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 + for attempt in $(seq 0 9) + set +e + kubectl delete pvc --all + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.1thHILrMAE persistentvolumeclaim "mongod-data-some-name-sharded-cfg-0" deleted from ldap-tls-2387 namespace persistentvolumeclaim "mongod-data-some-name-sharded-cfg-1" deleted from ldap-tls-2387 namespace persistentvolumeclaim "mongod-data-some-name-sharded-cfg-2" deleted from ldap-tls-2387 namespace persistentvolumeclaim "mongod-data-some-name-sharded-rs0-0" deleted from ldap-tls-2387 namespace persistentvolumeclaim "mongod-data-some-name-sharded-rs0-1" deleted from ldap-tls-2387 namespace persistentvolumeclaim "mongod-data-some-name-sharded-rs0-2" deleted from ldap-tls-2387 namespace + cat /tmp/tmp.SdgeSCcVa8 + rm /tmp/tmp.1thHILrMAE /tmp/tmp.SdgeSCcVa8 + return 0 + destroy ldap-tls-2387 + local namespace=ldap-tls-2387 + local ignore_logs=true + [[ 1 == 1 ]] + echo 'SKIP_DELETE=1, not destroying ldap-tls-2387' SKIP_DELETE=1, not destroying ldap-tls-2387 + return + desc 'test passed' + set +o xtrace ----------------------------------------------------------------------------------- test passed ----------------------------------------------------------------------------------- ==================================================================================================== [PASSED] e2e-tests/test_pytest_wrapper.py::test_bash_wrapper ==================================================================================================== [06:51:32.158013] INFO Deleting cert-manager [06:51:57.030647] INFO Cleaning up test environment ------------------------------------------------ generated xml file: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/reports/ldap-tls.xml ------------------------------------------------ ------------------------------------------ Generated html report: file:///mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/reports/ldap-tls.html ------------------------------------------- ==================================================================================== 1 passed in 677.59s (0:11:17) =====================================================================================