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[demand-backup-physical-minio-native-tls] [06:15:29.779355] WARNING kubectl error: Warning: version difference between client (1.37) and server (1.34) exceeds the supported minor version skew of +/-1 [06:15:31.024201] 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. + create_infra demand-backup-physical-minio-native-tls-2619 + local ns=demand-backup-physical-minio-native-tls-2619 + echo demand-backup-physical-minio-native-tls-2619 + destroy_cert_manager + [[ -n '' ]] + kubectl_bin delete mutatingwebhookconfiguration cert-manager-webhook --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.enPQF4iTze ++ mktemp + local LAST_ERR=/tmp/tmp.m142LOPyl8 + 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.enPQF4iTze + cat /tmp/tmp.m142LOPyl8 + rm /tmp/tmp.enPQF4iTze /tmp/tmp.m142LOPyl8 + return 0 + kubectl_bin delete validatingwebhookconfiguration cert-manager-webhook --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.mvfBwwG25I ++ mktemp + local LAST_ERR=/tmp/tmp.04IcGr8zNe + 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.mvfBwwG25I + cat /tmp/tmp.04IcGr8zNe + rm /tmp/tmp.mvfBwwG25I /tmp/tmp.04IcGr8zNe + 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.5WPvFdYkZK ++ mktemp + local LAST_ERR=/tmp/tmp.kikQL16sjm + 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.5WPvFdYkZK + cat /tmp/tmp.kikQL16sjm + rm /tmp/tmp.5WPvFdYkZK /tmp/tmp.kikQL16sjm + return 0 + kubectl_bin delete namespace cert-manager --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.1qgkztkvcJ ++ mktemp + local LAST_ERR=/tmp/tmp.2u8q16N2gQ + 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.1qgkztkvcJ + cat /tmp/tmp.2u8q16N2gQ + rm /tmp/tmp.1qgkztkvcJ /tmp/tmp.2u8q16N2gQ + 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.CD8zdzrPnS +++ mktemp ++ local LAST_ERR=/tmp/tmp.mRKNteroMl ++ 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.CD8zdzrPnS ++ cat /tmp/tmp.mRKNteroMl ++ rm /tmp/tmp.CD8zdzrPnS /tmp/tmp.mRKNteroMl ++ return 0 + remaining= ++ kubectl_bin get validatingwebhookconfiguration cert-manager-webhook --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.4NUvICdQ21 +++ mktemp ++ local LAST_ERR=/tmp/tmp.Zq6EfXg2BK ++ 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.4NUvICdQ21 ++ cat /tmp/tmp.Zq6EfXg2BK ++ rm /tmp/tmp.4NUvICdQ21 /tmp/tmp.Zq6EfXg2BK ++ 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.OAGWhOVT5Z +++ mktemp ++ local LAST_ERR=/tmp/tmp.BV9Zpw59Ol ++ 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.OAGWhOVT5Z ++ cat /tmp/tmp.BV9Zpw59Ol ++ rm /tmp/tmp.OAGWhOVT5Z /tmp/tmp.BV9Zpw59Ol ++ return 0 + remaining+= ++ kubectl_bin get namespace cert-manager --ignore-not-found -o name +++ mktemp ++ local LAST_OUT=/tmp/tmp.sh4LIysmtB +++ mktemp ++ local LAST_ERR=/tmp/tmp.gSVUsFTO3S ++ 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.sh4LIysmtB ++ cat /tmp/tmp.gSVUsFTO3S ++ rm /tmp/tmp.sh4LIysmtB /tmp/tmp.gSVUsFTO3S ++ 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.yE0LtvvmbL ++ mktemp + local LAST_ERR=/tmp/tmp.KnH3Z9BgGx + 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.yE0LtvvmbL 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.KnH3Z9BgGx + rm /tmp/tmp.yE0LtvvmbL /tmp/tmp.KnH3Z9BgGx + 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 '\-\-\-') + kubectl get perconaservermongodbbackups.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbbackups.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbbackups" 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.E68oJJHgWB ++ mktemp + local LAST_ERR=/tmp/tmp.x7CPwSwM8f + 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.E68oJJHgWB 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.x7CPwSwM8f + rm /tmp/tmp.E68oJJHgWB /tmp/tmp.x7CPwSwM8f + 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.Pb26Z1vaUp +++ mktemp ++ local LAST_ERR=/tmp/tmp.hxKQr3HKbO ++ 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.hxKQr3HKbO ++ break ++ cat /tmp/tmp.Pb26Z1vaUp ++ cat /tmp/tmp.hxKQr3HKbO Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.Pb26Z1vaUp /tmp/tmp.hxKQr3HKbO ++ return 1 + [[ '' == Terminating ]] + '[' -n psmdb-operator ']' + create_namespace psmdb-operator + local namespace=psmdb-operator + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ helm list --all-namespaces --filter chaos-mesh ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep validate-auth ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ grep chaos-mesh ++ kubectl get clusterrolebinding ++ 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 ----------------------------------------------------------------------------------- cleaned up old namespaces psmdb-operator+ xargs kubectl delete ns ----------------------------------------------------------------------------------- + kubectl_bin delete namespace psmdb-operator --ignore-not-found ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.aDghbmQ8y8 + local LAST_OUT=/tmp/tmp.ttiU6tixVI ++ mktemp ++ mktemp + local LAST_ERR=/tmp/tmp.RVFa1nowIb + 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)=-$ ]] + local LAST_ERR=/tmp/tmp.bu7B1wApOQ + arch_scheduling_enabled + local exit_status=0 + local timeout=4 + local i + [[ -n '' ]] + arch_scheduling_enabled + args=('delete' 'namespace' 'psmdb-operator' '--ignore-not-found') + [[ -n '' ]] + local attempt + local args + local delay + 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[@]}" + [[ 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 ++ 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.aDghbmQ8y8 + cat /tmp/tmp.RVFa1nowIb + rm /tmp/tmp.aDghbmQ8y8 /tmp/tmp.RVFa1nowIb + return 0 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.ttiU6tixVI + cat /tmp/tmp.bu7B1wApOQ + rm /tmp/tmp.ttiU6tixVI /tmp/tmp.bu7B1wApOQ + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.5WZ1FcVGFk ++ mktemp + local LAST_ERR=/tmp/tmp.o4GHFM1c6V + 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 namespace "storage" deleted + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.5WZ1FcVGFk + cat /tmp/tmp.o4GHFM1c6V + rm /tmp/tmp.5WZ1FcVGFk /tmp/tmp.o4GHFM1c6V + 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.wYbYub926x ++ mktemp + local LAST_ERR=/tmp/tmp.2ISEPOdd0G + 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.wYbYub926x namespace/psmdb-operator created + cat /tmp/tmp.2ISEPOdd0G + rm /tmp/tmp.wYbYub926x /tmp/tmp.2ISEPOdd0G + return 0 + set_kube_ctx psmdb-operator + local namespace=psmdb-operator ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.16OQAcm4Bj +++ mktemp ++ local LAST_ERR=/tmp/tmp.TzMbhhftgn ++ 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.16OQAcm4Bj ++ cat /tmp/tmp.TzMbhhftgn ++ rm /tmp/tmp.16OQAcm4Bj /tmp/tmp.TzMbhhftgn ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster13 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.jrYC8EzUbK ++ mktemp + local LAST_ERR=/tmp/tmp.ZeV82gYIe7 + 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-cluster13' '--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-cluster13 == \- ]] + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster13 =~ ^(-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-cluster13 --namespace=psmdb-operator + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.jrYC8EzUbK Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster13" modified. + cat /tmp/tmp.ZeV82gYIe7 + rm /tmp/tmp.jrYC8EzUbK /tmp/tmp.ZeV82gYIe7 + 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/demand-backup-physical-minio-native-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.yzRXjE9dYl ++ mktemp + local LAST_ERR=/tmp/tmp.rTqKgq3Onq + 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.yzRXjE9dYl 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.rTqKgq3Onq + rm /tmp/tmp.yzRXjE9dYl /tmp/tmp.rTqKgq3Onq + 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.izgIMfrT1O ++ mktemp + local LAST_ERR=/tmp/tmp.g3Ufa0HOCV + 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.4AXLDwS7YO + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.4AXLDwS7YO + 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.4AXLDwS7YO + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.izgIMfrT1O 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.g3Ufa0HOCV + rm /tmp/tmp.izgIMfrT1O /tmp/tmp.g3Ufa0HOCV /tmp/tmp.4AXLDwS7YO + return 0 + add_arch_to_podspecs - + 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 + arch_scheduling_enabled + [[ -n '' ]] + cat - + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.yXQI0AkueM ++ mktemp + local LAST_ERR=/tmp/tmp.b3p5iHToPd + 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.hnJPgnPZh2 + cat + return + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.hnJPgnPZh2 + 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.hnJPgnPZh2 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.yXQI0AkueM deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.b3p5iHToPd + rm /tmp/tmp.yXQI0AkueM /tmp/tmp.b3p5iHToPd /tmp/tmp.hnJPgnPZh2 + 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.HX8IybfYmC +++ mktemp ++ local LAST_ERR=/tmp/tmp.LtSi5yfrAn ++ 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.HX8IybfYmC ++ cat /tmp/tmp.LtSi5yfrAn ++ rm /tmp/tmp.HX8IybfYmC /tmp/tmp.LtSi5yfrAn ++ return 0 + wait_operator_pod percona-server-mongodb-operator-b57dc4869-2n4jk + local pod=percona-server-mongodb-operator-b57dc4869-2n4jk + set +o xtrace waiting for pod/percona-server-mongodb-operator-b57dc4869-2n4jk 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.BoesFQuaAM +++ mktemp ++ local LAST_ERR=/tmp/tmp.uj3ymSHCHT ++ 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.BoesFQuaAM ++ cat /tmp/tmp.uj3ymSHCHT ++ rm /tmp/tmp.BoesFQuaAM /tmp/tmp.uj3ymSHCHT ++ return 0 + kubectl_bin logs -n psmdb-operator percona-server-mongodb-operator-b57dc4869-2n4jk ++ mktemp + local LAST_OUT=/tmp/tmp.5AKs5z8nV1 ++ mktemp + local LAST_ERR=/tmp/tmp.u7AVUuvyfg + local exit_status=0 + local timeout=4 + local i + args=('logs' '-n' 'psmdb-operator' 'percona-server-mongodb-operator-b57dc4869-2n4jk') + 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-2n4jk == \- ]] + [[ percona-server-mongodb-operator-b57dc4869-2n4jk =~ ^(-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-2n4jk + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.5AKs5z8nV1 + cat /tmp/tmp.u7AVUuvyfg + rm /tmp/tmp.5AKs5z8nV1 /tmp/tmp.u7AVUuvyfg + return 0 2026-11-23T06:16:27.311Z INFO setup Manager starting up {"gitCommit": "27e0b796072fe59ec1fa78fca82dc7491ddb9891", "gitBranch": "PR-2715-27e0b7960", "buildTime": "", "goVersion": "go1.27.4", "os": "linux", "arch": "amd64"} + create_namespace demand-backup-physical-minio-native-tls-2619 + local namespace=demand-backup-physical-minio-native-tls-2619 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep validate-auth ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl api-resources ++ grep chaos-mesh ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + 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 '' ]] ++ mktemp + desc 'cleaned up old namespaces demand-backup-physical-minio-native-tls-2619' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces demand-backup-physical-minio-native-tls-2619 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace demand-backup-physical-minio-native-tls-2619 --ignore-not-found + xargs kubectl delete ns + local LAST_OUT=/tmp/tmp.1P6xT7hlkX ++ mktemp ++ mktemp + local LAST_ERR=/tmp/tmp.4ENZ0Gs8yP + 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 + local LAST_OUT=/tmp/tmp.Tym6nE34c0 + [[ -n '' ]] + arch_scheduling_enabled + [[ -n '' ]] + local attempt + local delay ++ seq 0 9 ++ mktemp + for attempt in $(seq 0 9) + set +e + kubectl get ns + local LAST_ERR=/tmp/tmp.4bT5d61l7v + local exit_status=0 + local timeout=4 + local i + args=('delete' 'namespace' 'demand-backup-physical-minio-native-tls-2619' '--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[@]}" + [[ demand-backup-physical-minio-native-tls-2619 == \- ]] + [[ demand-backup-physical-minio-native-tls-2619 =~ ^(-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 demand-backup-physical-minio-native-tls-2619 --ignore-not-found + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.1P6xT7hlkX + cat /tmp/tmp.4ENZ0Gs8yP + rm /tmp/tmp.1P6xT7hlkX /tmp/tmp.4ENZ0Gs8yP + return 0 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Tym6nE34c0 + cat /tmp/tmp.4bT5d61l7v + rm /tmp/tmp.Tym6nE34c0 /tmp/tmp.4bT5d61l7v + return 0 + kubectl_bin wait --for=delete namespace demand-backup-physical-minio-native-tls-2619 ++ mktemp + local LAST_OUT=/tmp/tmp.49ihcRNZlU ++ mktemp + local LAST_ERR=/tmp/tmp.VUgEF30DYs + local exit_status=0 + local timeout=4 + local i + args=('wait' '--for=delete' 'namespace' 'demand-backup-physical-minio-native-tls-2619') + 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[@]}" + [[ demand-backup-physical-minio-native-tls-2619 == \- ]] + [[ demand-backup-physical-minio-native-tls-2619 =~ ^(-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 demand-backup-physical-minio-native-tls-2619 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.49ihcRNZlU + cat /tmp/tmp.VUgEF30DYs + rm /tmp/tmp.49ihcRNZlU /tmp/tmp.VUgEF30DYs + return 0 + desc 'create namespace demand-backup-physical-minio-native-tls-2619' + set +o xtrace ----------------------------------------------------------------------------------- create namespace demand-backup-physical-minio-native-tls-2619 ----------------------------------------------------------------------------------- + kubectl_bin create namespace demand-backup-physical-minio-native-tls-2619 ++ mktemp + local LAST_OUT=/tmp/tmp.SK5C3QZGuA ++ mktemp + local LAST_ERR=/tmp/tmp.2R2PIihNSH + local exit_status=0 + local timeout=4 + local i + args=('create' 'namespace' 'demand-backup-physical-minio-native-tls-2619') + 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[@]}" + [[ demand-backup-physical-minio-native-tls-2619 == \- ]] + [[ demand-backup-physical-minio-native-tls-2619 =~ ^(-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 demand-backup-physical-minio-native-tls-2619 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.SK5C3QZGuA namespace/demand-backup-physical-minio-native-tls-2619 created + cat /tmp/tmp.2R2PIihNSH + rm /tmp/tmp.SK5C3QZGuA /tmp/tmp.2R2PIihNSH + return 0 + set_kube_ctx demand-backup-physical-minio-native-tls-2619 + local namespace=demand-backup-physical-minio-native-tls-2619 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.g3ZT7de647 +++ mktemp ++ local LAST_ERR=/tmp/tmp.ISq1fLAChy ++ 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.g3ZT7de647 ++ cat /tmp/tmp.ISq1fLAChy ++ rm /tmp/tmp.g3ZT7de647 /tmp/tmp.ISq1fLAChy ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster13 --namespace=demand-backup-physical-minio-native-tls-2619 ++ mktemp + local LAST_OUT=/tmp/tmp.jQM5c0xndj ++ mktemp + local LAST_ERR=/tmp/tmp.8syU97nIsv + 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-cluster13' '--namespace=demand-backup-physical-minio-native-tls-2619') + 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-cluster13 == \- ]] + [[ gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster13 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --namespace=demand-backup-physical-minio-native-tls-2619 == \- ]] + [[ --namespace=demand-backup-physical-minio-native-tls-2619 =~ ^(-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-cluster13 --namespace=demand-backup-physical-minio-native-tls-2619 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.jQM5c0xndj Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2715-27e0b7960-9-cluster13" modified. + cat /tmp/tmp.8syU97nIsv + rm /tmp/tmp.jQM5c0xndj /tmp/tmp.8syU97nIsv + return 0 + desc 'Deploy cert-manager for proper certificate generation' + set +o xtrace ----------------------------------------------------------------------------------- Deploy cert-manager for proper certificate generation ----------------------------------------------------------------------------------- + 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.9uquICHabr ++ mktemp + local LAST_ERR=/tmp/tmp.4qin7gyRI4 + 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.4qin7gyRI4 + 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.4qin7gyRI4 + [[ -n 1 ]] + [[ 0 -lt 2 ]] + delay=0 + cat /tmp/tmp.9uquICHabr /tmp/tmp.4qin7gyRI4 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.4qin7gyRI4 + 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.4qin7gyRI4 + [[ -n 1 ]] + [[ 1 -lt 2 ]] + delay=4 + cat /tmp/tmp.9uquICHabr /tmp/tmp.4qin7gyRI4 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.4qin7gyRI4 + 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.4qin7gyRI4 + [[ -n 1 ]] + [[ 2 -lt 2 ]] + break + cat /tmp/tmp.9uquICHabr + cat /tmp/tmp.4qin7gyRI4 error: the server doesn't have a resource type "clusterissuer" + rm /tmp/tmp.9uquICHabr /tmp/tmp.4qin7gyRI4 + return 1 + : + kubectl_bin -n cert-manager delete certificate --all ++ mktemp + local LAST_OUT=/tmp/tmp.7G6dSaiByn ++ mktemp + local LAST_ERR=/tmp/tmp.XnipxEd16Y + 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.XnipxEd16Y + 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.XnipxEd16Y + [[ -n 1 ]] + [[ 0 -lt 2 ]] + delay=0 + cat /tmp/tmp.7G6dSaiByn /tmp/tmp.XnipxEd16Y 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.XnipxEd16Y + 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.XnipxEd16Y + [[ -n 1 ]] + [[ 1 -lt 2 ]] + delay=4 + cat /tmp/tmp.7G6dSaiByn /tmp/tmp.XnipxEd16Y 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.XnipxEd16Y + 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.XnipxEd16Y + [[ -n 1 ]] + [[ 2 -lt 2 ]] + break + cat /tmp/tmp.7G6dSaiByn + cat /tmp/tmp.XnipxEd16Y error: the server doesn't have a resource type "certificate" + rm /tmp/tmp.7G6dSaiByn /tmp/tmp.XnipxEd16Y + return 1 + : + kubectl_bin create namespace cert-manager ++ mktemp + local LAST_OUT=/tmp/tmp.nB6Svpb7Yu ++ mktemp + local LAST_ERR=/tmp/tmp.XhuhqJQEu8 + 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.nB6Svpb7Yu namespace/cert-manager created + cat /tmp/tmp.XhuhqJQEu8 + rm /tmp/tmp.nB6Svpb7Yu /tmp/tmp.XhuhqJQEu8 + return 0 + kubectl_bin label namespace cert-manager certmanager.k8s.io/disable-validation=true ++ mktemp + local LAST_OUT=/tmp/tmp.tIUNGaykW6 ++ mktemp + local LAST_ERR=/tmp/tmp.1Kag8Sl0ob + 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.tIUNGaykW6 namespace/cert-manager labeled + cat /tmp/tmp.1Kag8Sl0ob + rm /tmp/tmp.tIUNGaykW6 /tmp/tmp.1Kag8Sl0ob + return 0 + curl -sL https://github.com/cert-manager/cert-manager/releases/download/v1.21.0/cert-manager.yaml + add_arch_to_podspecs - + arch_scheduling_enabled + [[ -n '' ]] + cat - + kubectl_bin apply -f - --validate=false + 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.S7wxUekfvh ++ mktemp + local LAST_ERR=/tmp/tmp.dGGlhd0COd + 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.S7wxUekfvh pod/cert-manager-74bb94c469-8bt4t condition met pod/cert-manager-cainjector-7c8bfb9579-zg8qz condition met pod/cert-manager-webhook-5b4b98dcf4-txcd6 condition met + cat /tmp/tmp.dGGlhd0COd + rm /tmp/tmp.S7wxUekfvh /tmp/tmp.dGGlhd0COd + return 0 + sleep 120 + desc 'Create self-signed issuer' + set +o xtrace ----------------------------------------------------------------------------------- Create self-signed issuer ----------------------------------------------------------------------------------- + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.4j2qTq0l3k ++ mktemp + local LAST_ERR=/tmp/tmp.cnUuGMWb1B + 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.HQxfIqcRKL + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.HQxfIqcRKL + 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.HQxfIqcRKL + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.4j2qTq0l3k issuer.cert-manager.io/selfsigned-issuer created + cat /tmp/tmp.cnUuGMWb1B + rm /tmp/tmp.4j2qTq0l3k /tmp/tmp.cnUuGMWb1B /tmp/tmp.HQxfIqcRKL + return 0 + desc 'Generate certificate for first SeaweedFS instance via cert-manager' + set +o xtrace ----------------------------------------------------------------------------------- Generate certificate for first SeaweedFS instance via cert-manager ----------------------------------------------------------------------------------- + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.OR6ddkhOfg ++ mktemp + local LAST_ERR=/tmp/tmp.ItIFyU37IA + 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.3tSK93qkbF + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.3tSK93qkbF + 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.3tSK93qkbF + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.OR6ddkhOfg certificate.cert-manager.io/s3-cert created + cat /tmp/tmp.ItIFyU37IA + rm /tmp/tmp.OR6ddkhOfg /tmp/tmp.ItIFyU37IA /tmp/tmp.3tSK93qkbF + return 0 + kubectl_bin wait --for=condition=Ready certificate/s3-cert -n demand-backup-physical-minio-native-tls-2619 --timeout=120s ++ mktemp + local LAST_OUT=/tmp/tmp.B9U3l5h23N ++ mktemp + local LAST_ERR=/tmp/tmp.pdYOoO3nSv + local exit_status=0 + local timeout=4 + local i + args=('wait' '--for=condition=Ready' 'certificate/s3-cert' '-n' 'demand-backup-physical-minio-native-tls-2619' '--timeout=120s') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ wait == \- ]] + [[ wait =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --for=condition=Ready == \- ]] + [[ --for=condition=Ready =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ certificate/s3-cert == \- ]] + [[ certificate/s3-cert =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ demand-backup-physical-minio-native-tls-2619 == \- ]] + [[ demand-backup-physical-minio-native-tls-2619 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --timeout=120s == \- ]] + [[ --timeout=120s =~ ^(-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=condition=Ready certificate/s3-cert -n demand-backup-physical-minio-native-tls-2619 --timeout=120s + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.B9U3l5h23N certificate.cert-manager.io/s3-cert condition met + cat /tmp/tmp.pdYOoO3nSv + rm /tmp/tmp.B9U3l5h23N /tmp/tmp.pdYOoO3nSv + return 0 + kubectl_bin get secret s3-tls -n demand-backup-physical-minio-native-tls-2619 -o 'jsonpath={.data.tls\.crt}' + base64 -d ++ mktemp + local LAST_OUT=/tmp/tmp.6uPtGElcoh ++ mktemp + local LAST_ERR=/tmp/tmp.rJain8Uubw + local exit_status=0 + local timeout=4 + local i + args=('get' 'secret' 's3-tls' '-n' 'demand-backup-physical-minio-native-tls-2619' '-o' 'jsonpath={.data.tls\.crt}') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ get == \- ]] + [[ get =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ secret == \- ]] + [[ secret =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3-tls == \- ]] + [[ s3-tls =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ demand-backup-physical-minio-native-tls-2619 == \- ]] + [[ demand-backup-physical-minio-native-tls-2619 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -o == \- ]] + [[ -o =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ jsonpath={.data.tls\.crt} == \- ]] + [[ jsonpath={.data.tls\.crt} =~ ^(-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 secret s3-tls -n demand-backup-physical-minio-native-tls-2619 -o 'jsonpath={.data.tls\.crt}' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.6uPtGElcoh + cat /tmp/tmp.rJain8Uubw + rm /tmp/tmp.6uPtGElcoh /tmp/tmp.rJain8Uubw + return 0 + kubectl_bin create secret generic s3-ca-bundle -n demand-backup-physical-minio-native-tls-2619 --from-file=ca.crt=/tmp/s3-cert.pem ++ mktemp + local LAST_OUT=/tmp/tmp.RB7spa5cNg ++ mktemp + local LAST_ERR=/tmp/tmp.Di3ZpYhVUI + local exit_status=0 + local timeout=4 + local i + args=('create' 'secret' 'generic' 's3-ca-bundle' '-n' 'demand-backup-physical-minio-native-tls-2619' '--from-file=ca.crt=/tmp/s3-cert.pem') + 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[@]}" + [[ s3-ca-bundle == \- ]] + [[ s3-ca-bundle =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ demand-backup-physical-minio-native-tls-2619 == \- ]] + [[ demand-backup-physical-minio-native-tls-2619 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --from-file=ca.crt=/tmp/s3-cert.pem == \- ]] + [[ --from-file=ca.crt=/tmp/s3-cert.pem =~ ^(-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 s3-ca-bundle -n demand-backup-physical-minio-native-tls-2619 --from-file=ca.crt=/tmp/s3-cert.pem + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.RB7spa5cNg secret/s3-ca-bundle created + cat /tmp/tmp.Di3ZpYhVUI + rm /tmp/tmp.RB7spa5cNg /tmp/tmp.Di3ZpYhVUI + return 0 + desc 'Deploy first SeaweedFS instance with TLS' + set +o xtrace ----------------------------------------------------------------------------------- Deploy first SeaweedFS instance with TLS ----------------------------------------------------------------------------------- + deploy_s3_storage s3-tls + local cert_secret=s3-tls + local fullname=s3-storage + desc 'install SeaweedFS: s3-storage' + set +o xtrace ----------------------------------------------------------------------------------- install SeaweedFS: s3-storage ----------------------------------------------------------------------------------- + helm uninstall s3-storage + : + helm repo remove seaweedfs "seaweedfs" has been removed from your repositories + helm repo add seaweedfs https://seaweedfs.github.io/seaweedfs/helm "seaweedfs" has been added to your repositories + local endpoint=http://s3-storage-all-in-one:8333 + seaweedfs_args=('--version' '4.47.0' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/seaweedfs-values.yaml' '--set' 'allInOne.data.type=persistentVolumeClaim' '--set' 'allInOne.data.size=2G' '--set' 'fullnameOverride=s3-storage' '--set-string' 's3.credentials.admin.accessKey=some-access-key' '--set-string' 's3.credentials.admin.secretKey=some-secret-key' '--set-string' 'global.seaweedfs.serviceAccountName=s3-storage-sa') + local seaweedfs_args + arch_scheduling_enabled + [[ -n '' ]] + [[ -n s3-tls ]] + endpoint=https://s3-storage-all-in-one:8443 + seaweedfs_args+=(-f "${conf_dir}/seaweedfs-tls-values.yaml" --set-string "allInOne.extraVolumes=- name: s3-tls secret: secretName: ${cert_secret}") + retry 10 60 helm install s3-storage --version 4.47.0 -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/seaweedfs-values.yaml --set allInOne.data.type=persistentVolumeClaim --set allInOne.data.size=2G --set fullnameOverride=s3-storage --set-string s3.credentials.admin.accessKey=some-access-key --set-string s3.credentials.admin.secretKey=some-secret-key --set-string global.seaweedfs.serviceAccountName=s3-storage-sa -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/seaweedfs-tls-values.yaml --set-string $'allInOne.extraVolumes=- name: s3-tls\n secret:\n secretName: s3-tls' seaweedfs/seaweedfs + local max=10 + local delay=60 + shift 2 + local n=1 + helm install s3-storage --version 4.47.0 -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/seaweedfs-values.yaml --set allInOne.data.type=persistentVolumeClaim --set allInOne.data.size=2G --set fullnameOverride=s3-storage --set-string s3.credentials.admin.accessKey=some-access-key --set-string s3.credentials.admin.secretKey=some-secret-key --set-string global.seaweedfs.serviceAccountName=s3-storage-sa -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/seaweedfs-tls-values.yaml --set-string $'allInOne.extraVolumes=- name: s3-tls\n secret:\n secretName: s3-tls' seaweedfs/seaweedfs NAME: s3-storage LAST DEPLOYED: Mon Nov 23 06:19:57 2026 NAMESPACE: demand-backup-physical-minio-native-tls-2619 STATUS: deployed REVISION: 1 TEST SUITE: None + kubectl_bin rollout status deployment/s3-storage-all-in-one --timeout=300s ++ mktemp + local LAST_OUT=/tmp/tmp.mRXBiwCTEs ++ mktemp + local LAST_ERR=/tmp/tmp.J3EwpFvWZh + local exit_status=0 + local timeout=4 + local i + args=('rollout' 'status' 'deployment/s3-storage-all-in-one' '--timeout=300s') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ rollout == \- ]] + [[ rollout =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ status == \- ]] + [[ status =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ deployment/s3-storage-all-in-one == \- ]] + [[ deployment/s3-storage-all-in-one =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --timeout=300s == \- ]] + [[ --timeout=300s =~ ^(-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 rollout status deployment/s3-storage-all-in-one --timeout=300s + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.mRXBiwCTEs Waiting for deployment "s3-storage-all-in-one" rollout to finish: 0 of 1 updated replicas are available... deployment "s3-storage-all-in-one" successfully rolled out + cat /tmp/tmp.J3EwpFvWZh + rm /tmp/tmp.mRXBiwCTEs /tmp/tmp.J3EwpFvWZh + return 0 + '[' -n psmdb-operator ']' + kubectl_bin create svc -n psmdb-operator externalname s3-storage-all-in-one --external-name=s3-storage-all-in-one.demand-backup-physical-minio-native-tls-2619.svc.cluster.local --tcp=8333 --tcp=8443 service/s3-storage-all-in-one created + create_s3_bucket operator-testing https://s3-storage-all-in-one:8443 + local bucket=operator-testing + local endpoint=https://s3-storage-all-in-one:8443 + retry 12 10 aws_cli_s3 https://s3-storage-all-in-one:8443 s3 mb s3://operator-testing + local max=12 + local delay=10 + shift 2 + local n=1 + aws_cli_s3 https://s3-storage-all-in-one:8443 s3 mb s3://operator-testing + local endpoint=https://s3-storage-all-in-one:8443 + shift + kubectl_bin run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url https://s3-storage-all-in-one:8443 s3 mb s3://operator-testing ++ mktemp + local LAST_OUT=/tmp/tmp.YBmCjwWuHG ++ mktemp + local LAST_ERR=/tmp/tmp.SRhY4n801E + local exit_status=0 + local timeout=4 + local i + args=('run' '-i' '--rm' 'aws-cli' '--image=docker.io/amazon/aws-cli:2.34.60' '--restart=Never' '--env=AWS_ACCESS_KEY_ID=some-access-key' '--env=AWS_SECRET_ACCESS_KEY=some-secret-key' '--env=AWS_DEFAULT_REGION=us-east-1' '--' '--no-verify-ssl' '--endpoint-url' 'https://s3-storage-all-in-one:8443' 's3' 'mb' 's3://operator-testing') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ run == \- ]] + [[ run =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -i == \- ]] + [[ -i =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --rm == \- ]] + [[ --rm =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ aws-cli == \- ]] + [[ aws-cli =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --image=docker.io/amazon/aws-cli:2.34.60 == \- ]] + [[ --image=docker.io/amazon/aws-cli:2.34.60 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --restart=Never == \- ]] + [[ --restart=Never =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_ACCESS_KEY_ID=some-access-key == \- ]] + [[ --env=AWS_ACCESS_KEY_ID=some-access-key =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key == \- ]] + [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_DEFAULT_REGION=us-east-1 == \- ]] + [[ --env=AWS_DEFAULT_REGION=us-east-1 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --no-verify-ssl == \- ]] + [[ --no-verify-ssl =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --endpoint-url == \- ]] + [[ --endpoint-url =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ https://s3-storage-all-in-one:8443 == \- ]] + [[ https://s3-storage-all-in-one:8443 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3 == \- ]] + [[ s3 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ mb == \- ]] + [[ mb =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3://operator-testing == \- ]] + [[ s3://operator-testing =~ ^(-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 run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url https://s3-storage-all-in-one:8443 s3 mb s3://operator-testing + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.YBmCjwWuHG make_bucket: operator-testing pod "aws-cli" deleted from demand-backup-physical-minio-native-tls-2619 namespace + cat /tmp/tmp.SRhY4n801E Warning: BCID failed open: BCID suppressed until 2026-11-23 08:51:39.261270226 +0000 UTC m=+10873.145847837 All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt. If you don't see a command prompt, try pressing enter. + rm /tmp/tmp.YBmCjwWuHG /tmp/tmp.SRhY4n801E + return 0 + apply_s3_storage_secrets + desc 'create secrets for cloud storages' + set +o xtrace ----------------------------------------------------------------------------------- create secrets for cloud storages ----------------------------------------------------------------------------------- + '[' -z '' ']' + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/s3-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/cloud-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.2WGUIveKYZ ++ mktemp + local LAST_ERR=/tmp/tmp.BnbXN1s45X + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/s3-secret.yml' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/cloud-secret.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/s3-secret.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/s3-secret.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/cloud-secret.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/cloud-secret.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/s3-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/cloud-secret.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.2WGUIveKYZ secret/s3-secret created secret/aws-s3-secret created secret/alibaba-cloud-secret created secret/oci-secret created secret/gcp-cs-secret created secret/azure-secret created secret/gcp-cs-sa-key-secret created + cat /tmp/tmp.BnbXN1s45X + rm /tmp/tmp.2WGUIveKYZ /tmp/tmp.BnbXN1s45X + return 0 + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/conf/secondary-s3-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.nXAIKGgEA0 ++ mktemp + local LAST_ERR=/tmp/tmp.AXzFC1jec1 + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/conf/secondary-s3-secret.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/demand-backup-physical-minio-native-tls/conf/secondary-s3-secret.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/conf/secondary-s3-secret.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/demand-backup-physical-minio-native-tls/conf/secondary-s3-secret.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.nXAIKGgEA0 secret/secondary-s3-secret created + cat /tmp/tmp.AXzFC1jec1 + rm /tmp/tmp.nXAIKGgEA0 /tmp/tmp.AXzFC1jec1 + return 0 + cluster=some-name + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/conf/secrets.yml ++ mktemp + local LAST_OUT=/tmp/tmp.vqlkI3W4JA ++ mktemp + local LAST_ERR=/tmp/tmp.nSXprqpwAP + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/conf/secrets.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/demand-backup-physical-minio-native-tls/conf/secrets.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/conf/secrets.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/demand-backup-physical-minio-native-tls/conf/secrets.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.vqlkI3W4JA secret/some-users created + cat /tmp/tmp.nSXprqpwAP + rm /tmp/tmp.vqlkI3W4JA /tmp/tmp.nSXprqpwAP + return 0 + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client_with_tls.yml ++ mktemp + local LAST_OUT=/tmp/tmp.vsmw70aaoQ ++ mktemp + local LAST_ERR=/tmp/tmp.ACSDb7DTF2 + local exit_status=0 + local timeout=4 + local i + args=('apply' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client_with_tls.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/client_with_tls.yml == \- ]] + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/client_with_tls.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/client_with_tls.yml + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.vsmw70aaoQ deployment.apps/psmdb-client created + cat /tmp/tmp.ACSDb7DTF2 + rm /tmp/tmp.vsmw70aaoQ /tmp/tmp.ACSDb7DTF2 + return 0 + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/conf/some-name-single-ca.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/conf/some-name-single-ca.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/conf/some-name-single-ca.yml + 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"' + yq eval '(.spec | select(has("backup"))).backup.image = "docker.io/perconalab/percona-server-mongodb-operator:main-backup"' + [[ -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)' + local LAST_OUT=/tmp/tmp.iynGTOCwD6 ++ mktemp + yq eval '.spec.upgradeOptions.apply="Never"' + /usr/sbin/sed -e s/NAME_SPACE/demand-backup-physical-minio-native-tls-2619/g + yq eval '(.spec | select(has("search"))).search.image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongot"' + local LAST_ERR=/tmp/tmp.tOXrjdHQsI + 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)$ ]] + add_arch_to_psmdb - + arch_scheduling_enabled + [[ -n '' ]] + cat - ++ mktemp + stdin_manifest=/tmp/tmp.kQ8r7MOEge + cat + return + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.kQ8r7MOEge + 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.kQ8r7MOEge + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.iynGTOCwD6 perconaservermongodb.psmdb.percona.com/some-name created + cat /tmp/tmp.tOXrjdHQsI + rm /tmp/tmp.iynGTOCwD6 /tmp/tmp.tOXrjdHQsI /tmp/tmp.kQ8r7MOEge + return 0 + 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.CzqGP0BSgj +++ mktemp ++ local LAST_ERR=/tmp/tmp.Aay3tkbdYP ++ 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.CzqGP0BSgj ++ cat /tmp/tmp.Aay3tkbdYP ++ rm /tmp/tmp.CzqGP0BSgj /tmp/tmp.Aay3tkbdYP ++ 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.fHC0fLLWvs +++ mktemp ++ local LAST_ERR=/tmp/tmp.QXElkImh4v ++ 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.fHC0fLLWvs ++ cat /tmp/tmp.QXElkImh4v ++ rm /tmp/tmp.fHC0fLLWvs /tmp/tmp.QXElkImh4v ++ return 0 + [[ '' == true ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.0tm3LitfDN +++ mktemp ++ local LAST_ERR=/tmp/tmp.3rxBZfEoeJ ++ 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.0tm3LitfDN ++ cat /tmp/tmp.3rxBZfEoeJ ++ rm /tmp/tmp.0tm3LitfDN /tmp/tmp.3rxBZfEoeJ ++ return 0 + [[ '' == true ]] + sleep 10 + [[ true == true ]] + set +x Waiting for cluster some-name to be ready............... + wait_cluster_consistency some-name + local cluster_name=some-name + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster some-name to be ready' waiting for cluster some-name to be ready++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.M6mw1LA7i6 +++ mktemp ++ local LAST_ERR=/tmp/tmp.9ElUXNbgDX ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-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 == \- ]] ++ [[ some-name =~ ^(-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 -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.M6mw1LA7i6 ++ cat /tmp/tmp.9ElUXNbgDX ++ rm /tmp/tmp.M6mw1LA7i6 /tmp/tmp.9ElUXNbgDX ++ return 0 + [[ ready == ready ]] + echo .OK .OK + desc 'Verify CA bundle infrastructure' + set +o xtrace ----------------------------------------------------------------------------------- Verify CA bundle infrastructure ----------------------------------------------------------------------------------- + kubectl_bin exec some-name-rs0-0 -n demand-backup-physical-minio-native-tls-2619 -c backup-agent -- test -f /etc/s3/certs/ca-bundle.crt ++ mktemp + local LAST_OUT=/tmp/tmp.hnAtb16BWY ++ mktemp + local LAST_ERR=/tmp/tmp.WlciFn4RGK + local exit_status=0 + local timeout=4 + local i + args=('exec' 'some-name-rs0-0' '-n' 'demand-backup-physical-minio-native-tls-2619' '-c' 'backup-agent' '--' 'test' '-f' '/etc/s3/certs/ca-bundle.crt') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-rs0-0 == \- ]] + [[ some-name-rs0-0 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ demand-backup-physical-minio-native-tls-2619 == \- ]] + [[ demand-backup-physical-minio-native-tls-2619 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ backup-agent == \- ]] + [[ backup-agent =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ test == \- ]] + [[ test =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -f == \- ]] + [[ -f =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /etc/s3/certs/ca-bundle.crt == \- ]] + [[ /etc/s3/certs/ca-bundle.crt =~ ^(-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 some-name-rs0-0 -n demand-backup-physical-minio-native-tls-2619 -c backup-agent -- test -f /etc/s3/certs/ca-bundle.crt + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.hnAtb16BWY + cat /tmp/tmp.WlciFn4RGK + rm /tmp/tmp.hnAtb16BWY /tmp/tmp.WlciFn4RGK + return 0 + grep SSL_CERT_FILE + kubectl_bin exec some-name-rs0-0 -n demand-backup-physical-minio-native-tls-2619 -c backup-agent -- env ++ mktemp + local LAST_OUT=/tmp/tmp.pVRPjS5Gxa ++ mktemp + local LAST_ERR=/tmp/tmp.kduZQaR8zg + local exit_status=0 + local timeout=4 + local i + args=('exec' 'some-name-rs0-0' '-n' 'demand-backup-physical-minio-native-tls-2619' '-c' 'backup-agent' '--' 'env') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-rs0-0 == \- ]] + [[ some-name-rs0-0 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ demand-backup-physical-minio-native-tls-2619 == \- ]] + [[ demand-backup-physical-minio-native-tls-2619 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -c == \- ]] + [[ -c =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ backup-agent == \- ]] + [[ backup-agent =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ env == \- ]] + [[ env =~ ^(-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 some-name-rs0-0 -n demand-backup-physical-minio-native-tls-2619 -c backup-agent -- env + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.pVRPjS5Gxa + cat /tmp/tmp.kduZQaR8zg + rm /tmp/tmp.pVRPjS5Gxa /tmp/tmp.kduZQaR8zg + return 0 SSL_CERT_FILE=/etc/s3/certs/ca-bundle.crt ++ kubectl_bin exec some-name-rs0-0 -n demand-backup-physical-minio-native-tls-2619 -c backup-agent -- grep -c 'BEGIN CERTIFICATE' /etc/s3/certs/ca-bundle.crt +++ mktemp ++ local LAST_OUT=/tmp/tmp.1C05rhQj39 +++ mktemp ++ local LAST_ERR=/tmp/tmp.BU9FJaRA6T ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('exec' 'some-name-rs0-0' '-n' 'demand-backup-physical-minio-native-tls-2619' '-c' 'backup-agent' '--' 'grep' '-c' 'BEGIN CERTIFICATE' '/etc/s3/certs/ca-bundle.crt') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ exec == \- ]] ++ [[ exec =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name-rs0-0 == \- ]] ++ [[ some-name-rs0-0 =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -n == \- ]] ++ [[ -n =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ demand-backup-physical-minio-native-tls-2619 == \- ]] ++ [[ demand-backup-physical-minio-native-tls-2619 =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -c == \- ]] ++ [[ -c =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ backup-agent == \- ]] ++ [[ backup-agent =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -- == \- ]] ++ [[ -- =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ grep == \- ]] ++ [[ grep =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -c == \- ]] ++ [[ -c =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ BEGIN CERTIFICATE == \- ]] ++ [[ BEGIN CERTIFICATE =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ /etc/s3/certs/ca-bundle.crt == \- ]] ++ [[ /etc/s3/certs/ca-bundle.crt =~ ^(-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 some-name-rs0-0 -n demand-backup-physical-minio-native-tls-2619 -c backup-agent -- grep -c 'BEGIN CERTIFICATE' /etc/s3/certs/ca-bundle.crt ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.1C05rhQj39 ++ cat /tmp/tmp.BU9FJaRA6T ++ rm /tmp/tmp.1C05rhQj39 /tmp/tmp.BU9FJaRA6T ++ return 0 + cert_count=1 + '[' 1 = 1 ']' + desc 'Generate certificate for secondary SeaweedFS instance' + set +o xtrace ----------------------------------------------------------------------------------- Generate certificate for secondary SeaweedFS instance ----------------------------------------------------------------------------------- + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.06l7bCD9k6 ++ mktemp + local LAST_ERR=/tmp/tmp.zL4nwW91Fh + 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.5tQt9UAa9k + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.5tQt9UAa9k + 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.5tQt9UAa9k + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.06l7bCD9k6 certificate.cert-manager.io/secondary-s3-cert created + cat /tmp/tmp.zL4nwW91Fh + rm /tmp/tmp.06l7bCD9k6 /tmp/tmp.zL4nwW91Fh /tmp/tmp.5tQt9UAa9k + return 0 + kubectl_bin wait --for=condition=Ready certificate/secondary-s3-cert -n demand-backup-physical-minio-native-tls-2619 --timeout=120s ++ mktemp + local LAST_OUT=/tmp/tmp.X3Y5JAEvz9 ++ mktemp + local LAST_ERR=/tmp/tmp.WAR8OljNEo + local exit_status=0 + local timeout=4 + local i + args=('wait' '--for=condition=Ready' 'certificate/secondary-s3-cert' '-n' 'demand-backup-physical-minio-native-tls-2619' '--timeout=120s') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ wait == \- ]] + [[ wait =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --for=condition=Ready == \- ]] + [[ --for=condition=Ready =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ certificate/secondary-s3-cert == \- ]] + [[ certificate/secondary-s3-cert =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ demand-backup-physical-minio-native-tls-2619 == \- ]] + [[ demand-backup-physical-minio-native-tls-2619 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --timeout=120s == \- ]] + [[ --timeout=120s =~ ^(-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=condition=Ready certificate/secondary-s3-cert -n demand-backup-physical-minio-native-tls-2619 --timeout=120s + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.X3Y5JAEvz9 certificate.cert-manager.io/secondary-s3-cert condition met + cat /tmp/tmp.WAR8OljNEo + rm /tmp/tmp.X3Y5JAEvz9 /tmp/tmp.WAR8OljNEo + return 0 + base64 -d + kubectl_bin get secret secondary-s3-tls -n demand-backup-physical-minio-native-tls-2619 -o 'jsonpath={.data.tls\.crt}' ++ mktemp + local LAST_OUT=/tmp/tmp.JCYM4A4HDu ++ mktemp + local LAST_ERR=/tmp/tmp.XcPJ3YnaW3 + local exit_status=0 + local timeout=4 + local i + args=('get' 'secret' 'secondary-s3-tls' '-n' 'demand-backup-physical-minio-native-tls-2619' '-o' 'jsonpath={.data.tls\.crt}') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ get == \- ]] + [[ get =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ secret == \- ]] + [[ secret =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ secondary-s3-tls == \- ]] + [[ secondary-s3-tls =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ demand-backup-physical-minio-native-tls-2619 == \- ]] + [[ demand-backup-physical-minio-native-tls-2619 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -o == \- ]] + [[ -o =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ jsonpath={.data.tls\.crt} == \- ]] + [[ jsonpath={.data.tls\.crt} =~ ^(-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 secret secondary-s3-tls -n demand-backup-physical-minio-native-tls-2619 -o 'jsonpath={.data.tls\.crt}' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.JCYM4A4HDu + cat /tmp/tmp.XcPJ3YnaW3 + rm /tmp/tmp.JCYM4A4HDu /tmp/tmp.XcPJ3YnaW3 + return 0 + kubectl_bin create secret generic secondary-s3-ca-bundle -n demand-backup-physical-minio-native-tls-2619 --from-file=ca.crt=/tmp/secondary-s3-cert.pem ++ mktemp + local LAST_OUT=/tmp/tmp.t304faGwO7 ++ mktemp + local LAST_ERR=/tmp/tmp.dfbQwLPwED + local exit_status=0 + local timeout=4 + local i + args=('create' 'secret' 'generic' 'secondary-s3-ca-bundle' '-n' 'demand-backup-physical-minio-native-tls-2619' '--from-file=ca.crt=/tmp/secondary-s3-cert.pem') + 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[@]}" + [[ secondary-s3-ca-bundle == \- ]] + [[ secondary-s3-ca-bundle =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ demand-backup-physical-minio-native-tls-2619 == \- ]] + [[ demand-backup-physical-minio-native-tls-2619 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --from-file=ca.crt=/tmp/secondary-s3-cert.pem == \- ]] + [[ --from-file=ca.crt=/tmp/secondary-s3-cert.pem =~ ^(-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 secondary-s3-ca-bundle -n demand-backup-physical-minio-native-tls-2619 --from-file=ca.crt=/tmp/secondary-s3-cert.pem + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.t304faGwO7 secret/secondary-s3-ca-bundle created + cat /tmp/tmp.dfbQwLPwED + rm /tmp/tmp.t304faGwO7 /tmp/tmp.dfbQwLPwED + return 0 + deploy_s3_storage secondary-s3-tls secondary-s3-storage + local cert_secret=secondary-s3-tls + local fullname=secondary-s3-storage + desc 'install SeaweedFS: secondary-s3-storage' + set +o xtrace ----------------------------------------------------------------------------------- install SeaweedFS: secondary-s3-storage ----------------------------------------------------------------------------------- + helm uninstall secondary-s3-storage + : + helm repo remove seaweedfs "seaweedfs" has been removed from your repositories + helm repo add seaweedfs https://seaweedfs.github.io/seaweedfs/helm "seaweedfs" has been added to your repositories + local endpoint=http://secondary-s3-storage-all-in-one:8333 + seaweedfs_args=('--version' '4.47.0' '-f' '/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/seaweedfs-values.yaml' '--set' 'allInOne.data.type=persistentVolumeClaim' '--set' 'allInOne.data.size=2G' '--set' 'fullnameOverride=secondary-s3-storage' '--set-string' 's3.credentials.admin.accessKey=some-access-key' '--set-string' 's3.credentials.admin.secretKey=some-secret-key' '--set-string' 'global.seaweedfs.serviceAccountName=secondary-s3-storage-sa') + local seaweedfs_args + arch_scheduling_enabled + [[ -n '' ]] + [[ -n secondary-s3-tls ]] + endpoint=https://secondary-s3-storage-all-in-one:8443 + seaweedfs_args+=(-f "${conf_dir}/seaweedfs-tls-values.yaml" --set-string "allInOne.extraVolumes=- name: s3-tls secret: secretName: ${cert_secret}") + retry 10 60 helm install secondary-s3-storage --version 4.47.0 -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/seaweedfs-values.yaml --set allInOne.data.type=persistentVolumeClaim --set allInOne.data.size=2G --set fullnameOverride=secondary-s3-storage --set-string s3.credentials.admin.accessKey=some-access-key --set-string s3.credentials.admin.secretKey=some-secret-key --set-string global.seaweedfs.serviceAccountName=secondary-s3-storage-sa -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/seaweedfs-tls-values.yaml --set-string $'allInOne.extraVolumes=- name: s3-tls\n secret:\n secretName: secondary-s3-tls' seaweedfs/seaweedfs + local max=10 + local delay=60 + shift 2 + local n=1 + helm install secondary-s3-storage --version 4.47.0 -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/seaweedfs-values.yaml --set allInOne.data.type=persistentVolumeClaim --set allInOne.data.size=2G --set fullnameOverride=secondary-s3-storage --set-string s3.credentials.admin.accessKey=some-access-key --set-string s3.credentials.admin.secretKey=some-secret-key --set-string global.seaweedfs.serviceAccountName=secondary-s3-storage-sa -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/conf/seaweedfs-tls-values.yaml --set-string $'allInOne.extraVolumes=- name: s3-tls\n secret:\n secretName: secondary-s3-tls' seaweedfs/seaweedfs NAME: secondary-s3-storage LAST DEPLOYED: Mon Nov 23 06:23:16 2026 NAMESPACE: demand-backup-physical-minio-native-tls-2619 STATUS: deployed REVISION: 1 TEST SUITE: None + kubectl_bin rollout status deployment/secondary-s3-storage-all-in-one --timeout=300s ++ mktemp + local LAST_OUT=/tmp/tmp.Cru5dLLxVt ++ mktemp + local LAST_ERR=/tmp/tmp.DvHo4EZ1EK + local exit_status=0 + local timeout=4 + local i + args=('rollout' 'status' 'deployment/secondary-s3-storage-all-in-one' '--timeout=300s') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ rollout == \- ]] + [[ rollout =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ status == \- ]] + [[ status =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ deployment/secondary-s3-storage-all-in-one == \- ]] + [[ deployment/secondary-s3-storage-all-in-one =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --timeout=300s == \- ]] + [[ --timeout=300s =~ ^(-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 rollout status deployment/secondary-s3-storage-all-in-one --timeout=300s + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Cru5dLLxVt Waiting for deployment "secondary-s3-storage-all-in-one" rollout to finish: 0 of 1 updated replicas are available... deployment "secondary-s3-storage-all-in-one" successfully rolled out + cat /tmp/tmp.DvHo4EZ1EK + rm /tmp/tmp.Cru5dLLxVt /tmp/tmp.DvHo4EZ1EK + return 0 + '[' -n psmdb-operator ']' + kubectl_bin create svc -n psmdb-operator externalname secondary-s3-storage-all-in-one --external-name=secondary-s3-storage-all-in-one.demand-backup-physical-minio-native-tls-2619.svc.cluster.local --tcp=8333 --tcp=8443 service/secondary-s3-storage-all-in-one created + create_s3_bucket operator-testing https://secondary-s3-storage-all-in-one:8443 + local bucket=operator-testing + local endpoint=https://secondary-s3-storage-all-in-one:8443 + retry 12 10 aws_cli_s3 https://secondary-s3-storage-all-in-one:8443 s3 mb s3://operator-testing + local max=12 + local delay=10 + shift 2 + local n=1 + aws_cli_s3 https://secondary-s3-storage-all-in-one:8443 s3 mb s3://operator-testing + local endpoint=https://secondary-s3-storage-all-in-one:8443 + shift + kubectl_bin run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url https://secondary-s3-storage-all-in-one:8443 s3 mb s3://operator-testing ++ mktemp + local LAST_OUT=/tmp/tmp.nceUtbXS4P ++ mktemp + local LAST_ERR=/tmp/tmp.p0JAuesZxq + local exit_status=0 + local timeout=4 + local i + args=('run' '-i' '--rm' 'aws-cli' '--image=docker.io/amazon/aws-cli:2.34.60' '--restart=Never' '--env=AWS_ACCESS_KEY_ID=some-access-key' '--env=AWS_SECRET_ACCESS_KEY=some-secret-key' '--env=AWS_DEFAULT_REGION=us-east-1' '--' '--no-verify-ssl' '--endpoint-url' 'https://secondary-s3-storage-all-in-one:8443' 's3' 'mb' 's3://operator-testing') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ run == \- ]] + [[ run =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -i == \- ]] + [[ -i =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --rm == \- ]] + [[ --rm =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ aws-cli == \- ]] + [[ aws-cli =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --image=docker.io/amazon/aws-cli:2.34.60 == \- ]] + [[ --image=docker.io/amazon/aws-cli:2.34.60 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --restart=Never == \- ]] + [[ --restart=Never =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_ACCESS_KEY_ID=some-access-key == \- ]] + [[ --env=AWS_ACCESS_KEY_ID=some-access-key =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key == \- ]] + [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_DEFAULT_REGION=us-east-1 == \- ]] + [[ --env=AWS_DEFAULT_REGION=us-east-1 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --no-verify-ssl == \- ]] + [[ --no-verify-ssl =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --endpoint-url == \- ]] + [[ --endpoint-url =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ https://secondary-s3-storage-all-in-one:8443 == \- ]] + [[ https://secondary-s3-storage-all-in-one:8443 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3 == \- ]] + [[ s3 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ mb == \- ]] + [[ mb =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3://operator-testing == \- ]] + [[ s3://operator-testing =~ ^(-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 run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url https://secondary-s3-storage-all-in-one:8443 s3 mb s3://operator-testing + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.nceUtbXS4P urllib3/connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host 'secondary-s3-storage-all-in-one'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings make_bucket: operator-testing pod "aws-cli" deleted from demand-backup-physical-minio-native-tls-2619 namespace + cat /tmp/tmp.p0JAuesZxq Warning: BCID failed open: BCID suppressed until 2026-11-23 08:51:39.261270226 +0000 UTC m=+10873.145847837 All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt. If you don't see a command prompt, try pressing enter. + rm /tmp/tmp.nceUtbXS4P /tmp/tmp.p0JAuesZxq + return 0 + desc 'Add second storage (secondary)' + set +o xtrace ----------------------------------------------------------------------------------- Add second storage (secondary) ----------------------------------------------------------------------------------- + kubectl_bin patch psmdb some-name -n demand-backup-physical-minio-native-tls-2619 --type=merge -p $'\n{\n "spec": {\n "backup": {\n "storages": {\n "secondary": {\n "type": "minio",\n "minio": {\n "credentialsSecret": "secondary-s3-secret",\n "region": "us-east-1",\n "bucket": "operator-testing",\n "endpointUrl": "https://secondary-s3-storage-all-in-one:8443",\n "secure": true,\n "insecureSkipTLSVerify": false,\n "caBundle": {\n "name": "secondary-s3-ca-bundle",\n "key": "ca.crt"\n }\n }\n }\n }\n }\n }\n}' ++ mktemp + local LAST_OUT=/tmp/tmp.Ghj9MdoDje ++ mktemp + local LAST_ERR=/tmp/tmp.VpBhdM5BXR + local exit_status=0 + local timeout=4 + local i + args=('patch' 'psmdb' 'some-name' '-n' 'demand-backup-physical-minio-native-tls-2619' '--type=merge' '-p' ' { "spec": { "backup": { "storages": { "secondary": { "type": "minio", "minio": { "credentialsSecret": "secondary-s3-secret", "region": "us-east-1", "bucket": "operator-testing", "endpointUrl": "https://secondary-s3-storage-all-in-one:8443", "secure": true, "insecureSkipTLSVerify": false, "caBundle": { "name": "secondary-s3-ca-bundle", "key": "ca.crt" } } } } } } }') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ patch == \- ]] + [[ patch =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb == \- ]] + [[ psmdb =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name == \- ]] + [[ some-name =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -n == \- ]] + [[ -n =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ demand-backup-physical-minio-native-tls-2619 == \- ]] + [[ demand-backup-physical-minio-native-tls-2619 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --type=merge == \- ]] + [[ --type=merge =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -p == \- ]] + [[ -p =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ { "spec": { "backup": { "storages": { "secondary": { "type": "minio", "minio": { "credentialsSecret": "secondary-s3-secret", "region": "us-east-1", "bucket": "operator-testing", "endpointUrl": "https://secondary-s3-storage-all-in-one:8443", "secure": true, "insecureSkipTLSVerify": false, "caBundle": { "name": "secondary-s3-ca-bundle", "key": "ca.crt" } } } } } } } == \- ]] + [[ { "spec": { "backup": { "storages": { "secondary": { "type": "minio", "minio": { "credentialsSecret": "secondary-s3-secret", "region": "us-east-1", "bucket": "operator-testing", "endpointUrl": "https://secondary-s3-storage-all-in-one:8443", "secure": true, "insecureSkipTLSVerify": false, "caBundle": { "name": "secondary-s3-ca-bundle", "key": "ca.crt" } } } } } } } =~ ^(-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 patch psmdb some-name -n demand-backup-physical-minio-native-tls-2619 --type=merge -p $'\n{\n "spec": {\n "backup": {\n "storages": {\n "secondary": {\n "type": "minio",\n "minio": {\n "credentialsSecret": "secondary-s3-secret",\n "region": "us-east-1",\n "bucket": "operator-testing",\n "endpointUrl": "https://secondary-s3-storage-all-in-one:8443",\n "secure": true,\n "insecureSkipTLSVerify": false,\n "caBundle": {\n "name": "secondary-s3-ca-bundle",\n "key": "ca.crt"\n }\n }\n }\n }\n }\n }\n}' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.Ghj9MdoDje perconaservermongodb.psmdb.percona.com/some-name patched + cat /tmp/tmp.VpBhdM5BXR + rm /tmp/tmp.Ghj9MdoDje /tmp/tmp.VpBhdM5BXR + return 0 + sleep 300 + wait_cluster_consistency some-name + local cluster_name=some-name + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster some-name to be ready' waiting for cluster some-name to be ready++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.7xJkomeb2v +++ mktemp ++ local LAST_ERR=/tmp/tmp.c3V4lK7yy6 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-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 == \- ]] ++ [[ some-name =~ ^(-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 -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.7xJkomeb2v ++ cat /tmp/tmp.c3V4lK7yy6 ++ rm /tmp/tmp.7xJkomeb2v /tmp/tmp.c3V4lK7yy6 ++ return 0 + [[ ready == ready ]] + echo .OK .OK + desc 'Verify merged CA bundle' + set +o xtrace ----------------------------------------------------------------------------------- Verify merged CA bundle ----------------------------------------------------------------------------------- ++ kubectl_bin exec some-name-rs0-0 -n demand-backup-physical-minio-native-tls-2619 -c backup-agent -- grep -c 'BEGIN CERTIFICATE' /etc/s3/certs/ca-bundle.crt +++ mktemp ++ local LAST_OUT=/tmp/tmp.MliplIEGwj +++ mktemp ++ local LAST_ERR=/tmp/tmp.RHnDmmQtKv ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('exec' 'some-name-rs0-0' '-n' 'demand-backup-physical-minio-native-tls-2619' '-c' 'backup-agent' '--' 'grep' '-c' 'BEGIN CERTIFICATE' '/etc/s3/certs/ca-bundle.crt') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ exec == \- ]] ++ [[ exec =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ some-name-rs0-0 == \- ]] ++ [[ some-name-rs0-0 =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -n == \- ]] ++ [[ -n =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ demand-backup-physical-minio-native-tls-2619 == \- ]] ++ [[ demand-backup-physical-minio-native-tls-2619 =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -c == \- ]] ++ [[ -c =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ backup-agent == \- ]] ++ [[ backup-agent =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -- == \- ]] ++ [[ -- =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ grep == \- ]] ++ [[ grep =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -c == \- ]] ++ [[ -c =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ BEGIN CERTIFICATE == \- ]] ++ [[ BEGIN CERTIFICATE =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ /etc/s3/certs/ca-bundle.crt == \- ]] ++ [[ /etc/s3/certs/ca-bundle.crt =~ ^(-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 some-name-rs0-0 -n demand-backup-physical-minio-native-tls-2619 -c backup-agent -- grep -c 'BEGIN CERTIFICATE' /etc/s3/certs/ca-bundle.crt ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.MliplIEGwj ++ cat /tmp/tmp.RHnDmmQtKv ++ rm /tmp/tmp.MliplIEGwj /tmp/tmp.RHnDmmQtKv ++ return 0 + cert_count=2 + '[' 2 = 2 ']' + desc 'Backup & restore with merged CA' + set +o xtrace ----------------------------------------------------------------------------------- Backup & restore with merged CA ----------------------------------------------------------------------------------- + wait_for_pbm_operations some-name + local cluster=some-name + local max_retries=540 + set +o xtrace waiting for PBM operation to finish.OK + run_mongo_tls 'db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})' userAdmin:userAdmin123456@some-name-rs0.demand-backup-physical-minio-native-tls-2619 + local 'command=db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})' + local uri=userAdmin:userAdmin123456@some-name-rs0.demand-backup-physical-minio-native-tls-2619 + local driver=mongodb+srv + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.hYG9Vvo3Cv +++ mktemp ++ local LAST_ERR=/tmp/tmp.MjgBcCszTk ++ 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.hYG9Vvo3Cv ++ cat /tmp/tmp.MjgBcCszTk ++ rm /tmp/tmp.hYG9Vvo3Cv /tmp/tmp.MjgBcCszTk ++ return 0 + local client_container=psmdb-client-748949c7cd-lnfjx + local mongo_flag= + local port=27017 ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27017 + [[ userAdmin:userAdmin123456@some-name-rs0.demand-backup-physical-minio-native-tls-2619 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-748949c7cd-lnfjx -- bash -c 'export HOME=/tmp; printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n'\'' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ' ++ mktemp + local LAST_OUT=/tmp/tmp.mhfqAv9d9d ++ mktemp + local LAST_ERR=/tmp/tmp.hwSRZHzJ1q + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-748949c7cd-lnfjx' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n'\'' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-748949c7cd-lnfjx == \- ]] + [[ psmdb-client-748949c7cd-lnfjx =~ ^(-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.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames == \- ]] + [[ export HOME=/tmp; printf 'db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames =~ ^(-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-748949c7cd-lnfjx -- bash -c 'export HOME=/tmp; printf '\''db.createUser({user:"myApp",pwd:"myPass",roles:[{db:"myApp",role:"readWrite"}]})\n'\'' | mongo mongodb+srv://userAdmin:userAdmin123456@some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.mhfqAv9d9d Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-2.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017,some-name-rs0-1.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017,some-name-rs0-0.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=true {"t":{"$date":"2026-11-23T06:29:28.616Z"},"s":"I", "c":"NETWORK", "id":5490002, "ctx":"thread1","msg":"Started a new thread for the timer service"} Implicit session: session { "id" : UUID("8045ecbb-58d4-4df6-8d6b-d9b2b4db9d59") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match Successfully added user: { "user" : "myApp", "roles" : [ { "db" : "myApp", "role" : "readWrite" } ] } bye + cat /tmp/tmp.hwSRZHzJ1q + rm /tmp/tmp.mhfqAv9d9d /tmp/tmp.hwSRZHzJ1q + return 0 + run_mongo_tls 'db.getSiblingDB("myApp").test.insert({ x: 100500 })' myApp:myPass@some-name-rs0.demand-backup-physical-minio-native-tls-2619 + local 'command=db.getSiblingDB("myApp").test.insert({ x: 100500 })' + local uri=myApp:myPass@some-name-rs0.demand-backup-physical-minio-native-tls-2619 + local driver=mongodb+srv + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.w6jjMfMUbo +++ mktemp ++ local LAST_ERR=/tmp/tmp.JNUbFrRnqC ++ 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.w6jjMfMUbo ++ cat /tmp/tmp.JNUbFrRnqC ++ rm /tmp/tmp.w6jjMfMUbo /tmp/tmp.JNUbFrRnqC ++ return 0 + local client_container=psmdb-client-748949c7cd-lnfjx + local mongo_flag= + local port=27017 ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27017 + [[ myApp:myPass@some-name-rs0.demand-backup-physical-minio-native-tls-2619 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-748949c7cd-lnfjx -- bash -c 'export HOME=/tmp; printf '\''db.getSiblingDB("myApp").test.insert({ x: 100500 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ' ++ mktemp + local LAST_OUT=/tmp/tmp.7eS1vgJspD ++ mktemp + local LAST_ERR=/tmp/tmp.gKg49j6DjV + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-748949c7cd-lnfjx' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''db.getSiblingDB("myApp").test.insert({ x: 100500 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-748949c7cd-lnfjx == \- ]] + [[ psmdb-client-748949c7cd-lnfjx =~ ^(-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("myApp").test.insert({ x: 100500 })\n' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames == \- ]] + [[ export HOME=/tmp; printf 'db.getSiblingDB("myApp").test.insert({ x: 100500 })\n' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames =~ ^(-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-748949c7cd-lnfjx -- bash -c 'export HOME=/tmp; printf '\''db.getSiblingDB("myApp").test.insert({ x: 100500 })\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.7eS1vgJspD Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-2.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017,some-name-rs0-1.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017,some-name-rs0-0.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=true {"t":{"$date":"2026-11-23T06:29:31.269Z"},"s":"I", "c":"NETWORK", "id":5490002, "ctx":"thread1","msg":"Started a new thread for the timer service"} Implicit session: session { "id" : UUID("b87653c6-5ed8-439f-a92b-471cbaea03b6") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match WriteResult({ "nInserted" : 1 }) bye + cat /tmp/tmp.gKg49j6DjV + rm /tmp/tmp.7eS1vgJspD /tmp/tmp.gKg49j6DjV + return 0 + backup_name_single=backup-local-s3 + run_backup local-s3 backup-local-s3 physical + local storage=local-s3 + local backup_name=backup-local-s3 + local type=physical + log 'running backup backup-local-s3' + set +o xtrace [2026-11-23T06:29:31+0000] running backup backup-local-s3 + yq eval $'.metadata.name = "backup-local-s3"\n\t\t\t| .spec.storageName = "local-s3"\n\t\t\t| .spec.type = "physical"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/conf/backup-local-s3.yml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.IsslDZugt3 ++ mktemp + local LAST_ERR=/tmp/tmp.lXZZ0vzTxm + 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.eflZPPAv0f + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.eflZPPAv0f + 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.eflZPPAv0f + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.IsslDZugt3 perconaservermongodbbackup.psmdb.percona.com/backup-local-s3 created + cat /tmp/tmp.lXZZ0vzTxm + rm /tmp/tmp.IsslDZugt3 /tmp/tmp.lXZZ0vzTxm /tmp/tmp.eflZPPAv0f + return 0 + wait_backup backup-local-s3 + local backup_name=backup-local-s3 + local target_state=ready + set +o xtrace waiting for backup-local-s3 to reach ready state.......OK + check_backup_in_storage backup-local-s3 local-s3 rs0 filelist.pbm https + local backup=backup-local-s3 + local storage_type=local-s3 + local replset=rs0 + local file=filelist.pbm + local protocol=https + local endpoint ++ get_backup_dest backup-local-s3 ++ /usr/sbin/sed 's|https://engk8soperators.blob.core.windows.net/||' ++ local backup_name=backup-local-s3 ++ kubectl_bin get psmdb-backup backup-local-s3 -o 'jsonpath={.status.destination}' ++ sed -e 's/.json$//' ++ sed 's|s3://||' ++ sed 's|azure://||' +++ mktemp ++ sed 's|gs://||' ++ sed 's|oss://||' ++ sed 's|oci://||' ++ local LAST_OUT=/tmp/tmp.vTZRr7ObtI +++ mktemp ++ local LAST_ERR=/tmp/tmp.gFueBhL6TI ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb-backup' 'backup-local-s3' '-o' 'jsonpath={.status.destination}') ++ local args ++ transformed_files=() ++ local transformed_files ++ local stdin_manifest ++ for i in "${!args[@]}" ++ [[ get == \- ]] ++ [[ get =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ psmdb-backup == \- ]] ++ [[ psmdb-backup =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ backup-local-s3 == \- ]] ++ [[ backup-local-s3 =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ -o == \- ]] ++ [[ -o =~ ^(-f|--filename)=-$ ]] ++ for i in "${!args[@]}" ++ [[ jsonpath={.status.destination} == \- ]] ++ [[ jsonpath={.status.destination} =~ ^(-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-backup backup-local-s3 -o 'jsonpath={.status.destination}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.vTZRr7ObtI ++ cat /tmp/tmp.gFueBhL6TI ++ rm /tmp/tmp.vTZRr7ObtI /tmp/tmp.gFueBhL6TI ++ return 0 + backup_dest=operator-testing/2026-11-23T06:29:33Z + case ${storage_type} in + endpoint=s3-storage-all-in-one + local port=8333 + '[' https = https ']' + port=8443 + aws_cli_s3 https://s3-storage-all-in-one:8443 s3 ls s3://operator-testing/2026-11-23T06:29:33Z/rs0/filelist.pbm + grep filelist.pbm + local endpoint=https://s3-storage-all-in-one:8443 + shift + kubectl_bin run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url https://s3-storage-all-in-one:8443 s3 ls s3://operator-testing/2026-11-23T06:29:33Z/rs0/filelist.pbm ++ mktemp + local LAST_OUT=/tmp/tmp.r80VKIRwZ1 ++ mktemp + local LAST_ERR=/tmp/tmp.WOC4eujGnK + local exit_status=0 + local timeout=4 + local i + args=('run' '-i' '--rm' 'aws-cli' '--image=docker.io/amazon/aws-cli:2.34.60' '--restart=Never' '--env=AWS_ACCESS_KEY_ID=some-access-key' '--env=AWS_SECRET_ACCESS_KEY=some-secret-key' '--env=AWS_DEFAULT_REGION=us-east-1' '--' '--no-verify-ssl' '--endpoint-url' 'https://s3-storage-all-in-one:8443' 's3' 'ls' 's3://operator-testing/2026-11-23T06:29:33Z/rs0/filelist.pbm') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ run == \- ]] + [[ run =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -i == \- ]] + [[ -i =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --rm == \- ]] + [[ --rm =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ aws-cli == \- ]] + [[ aws-cli =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --image=docker.io/amazon/aws-cli:2.34.60 == \- ]] + [[ --image=docker.io/amazon/aws-cli:2.34.60 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --restart=Never == \- ]] + [[ --restart=Never =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_ACCESS_KEY_ID=some-access-key == \- ]] + [[ --env=AWS_ACCESS_KEY_ID=some-access-key =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key == \- ]] + [[ --env=AWS_SECRET_ACCESS_KEY=some-secret-key =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --env=AWS_DEFAULT_REGION=us-east-1 == \- ]] + [[ --env=AWS_DEFAULT_REGION=us-east-1 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --no-verify-ssl == \- ]] + [[ --no-verify-ssl =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ --endpoint-url == \- ]] + [[ --endpoint-url =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ https://s3-storage-all-in-one:8443 == \- ]] + [[ https://s3-storage-all-in-one:8443 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3 == \- ]] + [[ s3 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ls == \- ]] + [[ ls =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ s3://operator-testing/2026-11-23T06:29:33Z/rs0/filelist.pbm == \- ]] + [[ s3://operator-testing/2026-11-23T06:29:33Z/rs0/filelist.pbm =~ ^(-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 run -i --rm aws-cli --image=docker.io/amazon/aws-cli:2.34.60 --restart=Never --env=AWS_ACCESS_KEY_ID=some-access-key --env=AWS_SECRET_ACCESS_KEY=some-secret-key --env=AWS_DEFAULT_REGION=us-east-1 -- --no-verify-ssl --endpoint-url https://s3-storage-all-in-one:8443 s3 ls s3://operator-testing/2026-11-23T06:29:33Z/rs0/filelist.pbm + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.r80VKIRwZ1 + cat /tmp/tmp.WOC4eujGnK Warning: BCID failed open: BCID suppressed until 2026-11-23 08:51:39.261270226 +0000 UTC m=+10873.145847837 All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt. If you don't see a command prompt, try pressing enter. urllib3/connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host 's3-storage-all-in-one'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings + rm /tmp/tmp.r80VKIRwZ1 /tmp/tmp.WOC4eujGnK + return 0 2026-11-23 06:29:39 16676 filelist.pbm + run_mongo_tls 'db.getSiblingDB("myApp").test.drop()' myApp:myPass@some-name-rs0.demand-backup-physical-minio-native-tls-2619 + local 'command=db.getSiblingDB("myApp").test.drop()' + local uri=myApp:myPass@some-name-rs0.demand-backup-physical-minio-native-tls-2619 + local driver=mongodb+srv + local suffix=.svc.cluster.local ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.OUySI2acao +++ mktemp ++ local LAST_ERR=/tmp/tmp.ouf0OmKOd2 ++ 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.OUySI2acao ++ cat /tmp/tmp.ouf0OmKOd2 ++ rm /tmp/tmp.OUySI2acao /tmp/tmp.ouf0OmKOd2 ++ return 0 + local client_container=psmdb-client-748949c7cd-lnfjx + local mongo_flag= + local port=27017 ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27017 + [[ myApp:myPass@some-name-rs0.demand-backup-physical-minio-native-tls-2619 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-748949c7cd-lnfjx -- bash -c 'export HOME=/tmp; printf '\''db.getSiblingDB("myApp").test.drop()\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ' ++ mktemp + local LAST_OUT=/tmp/tmp.chFYJBAJxg ++ mktemp + local LAST_ERR=/tmp/tmp.P4hyFMrYRp + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-748949c7cd-lnfjx' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''db.getSiblingDB("myApp").test.drop()\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-748949c7cd-lnfjx == \- ]] + [[ psmdb-client-748949c7cd-lnfjx =~ ^(-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("myApp").test.drop()\n' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames == \- ]] + [[ export HOME=/tmp; printf 'db.getSiblingDB("myApp").test.drop()\n' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames =~ ^(-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-748949c7cd-lnfjx -- bash -c 'export HOME=/tmp; printf '\''db.getSiblingDB("myApp").test.drop()\n'\'' | mongo mongodb+srv://myApp:myPass@some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.chFYJBAJxg Percona Server for MongoDB shell version v4.4.29-28 connecting to: mongodb://some-name-rs0-2.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017,some-name-rs0-1.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017,some-name-rs0-0.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?compressors=disabled&gssapiServiceName=mongodb&replicaSet=rs0&ssl=true {"t":{"$date":"2026-11-23T06:29:51.881Z"},"s":"I", "c":"NETWORK", "id":5490002, "ctx":"thread1","msg":"Started a new thread for the timer service"} Implicit session: session { "id" : UUID("19f54ac6-418f-45bd-b5ea-373863511a85") } Percona Server for MongoDB server version: v8.3.17-5 WARNING: shell and server versions do not match true bye + cat /tmp/tmp.P4hyFMrYRp + rm /tmp/tmp.chFYJBAJxg /tmp/tmp.P4hyFMrYRp + return 0 + run_restore backup-local-s3 + local backup_name=backup-local-s3 + local restore_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/conf/restore.yml + log 'running restore restore-backup-local-s3' + set +o xtrace [2026-11-23T06:29:52+0000] running restore restore-backup-local-s3 + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/conf/restore.yml + /usr/sbin/sed -e 's/name:/name: restore-backup-local-s3/' + /usr/sbin/sed -e 's/backupName:/backupName: backup-local-s3/' + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.ke9eEdWBvK ++ mktemp + local LAST_ERR=/tmp/tmp.k80vCyWOFw + 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.k59Qf1ovLR + cat + transformed_files+=("${stdin_manifest}") + args[$i]=/tmp/tmp.k59Qf1ovLR + 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.k59Qf1ovLR + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.ke9eEdWBvK perconaservermongodbrestore.psmdb.percona.com/restore-backup-local-s3 created + cat /tmp/tmp.k80vCyWOFw + rm /tmp/tmp.ke9eEdWBvK /tmp/tmp.k80vCyWOFw /tmp/tmp.k59Qf1ovLR + return 0 + run_recovery_check backup-local-s3 '' '' true + local backup_name=backup-local-s3 + local compare_suffix=_restore + local is_sharded= + local tls=true + wait_restore backup-local-s3 some-name requested 0 3000 + local backup_name=backup-local-s3 + local cluster_name=some-name + local target_state=requested + local wait_cluster_consistency=0 + local wait_time=3000 + local ok_if_ready=0 + set +o xtrace Waiting for the psmdb-restore/restore-backup-local-s3 object to be created.OK Waiting psmdb-restore/restore-backup-local-s3 to reach state "requested" ..OK after 1 minutes + [[ 0 -eq 1 ]] + echo + compare_kubectl statefulset/some-name-rs0 _restore + local resource=statefulset/some-name-rs0 + local postfix=_restore + local skip_generation_check= + local expected_result=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/compare/statefulset_some-name-rs0_restore.yml + local new_result=/tmp/tmp.dovXlLbFj0/statefulset_some-name-rs0.yml + [[ -n '' ]] + kubectl_bin get -o yaml statefulset/some-name-rs0 + yq eval $'\n\t\t\tdel(.metadata.ownerReferences[].apiVersion) |\n\t\t\tdel(.metadata.managedFields) |\n\t\t\tdel(.. | select(has("creationTimestamp")).creationTimestamp) |\n\t\t\tdel(.. | select(has("namespace")).namespace) |\n\t\t\tdel(.. | select(has("uid")).uid) |\n\t\t\tdel(.metadata.resourceVersion) |\n\t\t\tdel(.spec.template.spec.containers[].env[] | select(.name == "NAMESPACE")) |\n\t\t\tdel(.metadata.selfLink) |\n\t\t\tdel(.metadata.annotations."cloud.google.com/neg") |\n\t\t\tdel(.metadata.annotations."field.cattle.io/publicEndpoints") |\n\t\t\tdel(.metadata.annotations."metallb.io/ip-allocated-from-pool") |\n\t\t\tdel(.metadata.annotations."networking.gke.io/target-pool") |\n\t\t\tdel(.metadata.annotations."kubectl.kubernetes.io/last-applied-configuration") |\n\t\t\tdel(.. | select(has("image")).image) |\n\t\t\tdel(.. | select(has("clusterIP")).clusterIP) |\n\t\t\tdel(.. | select(has("clusterIPs")).clusterIPs) |\n\t\t\tdel(.. | select(has("dataSource")).dataSource) |\n\t\t\tdel(.. | select(has("procMount")).procMount) |\n\t\t\tdel(.. | select(has("storageClassName")).storageClassName) |\n\t\t\tdel(.. | select(has("finalizers")).finalizers) |\n\t\t\tdel(.. | select(has("kubernetes.io/pvc-protection"))."kubernetes.io/pvc-protection") |\n\t\t\tdel(.. | select(has("volumeName")).volumeName) |\n\t\t\tdel(.. | select(has("volume.beta.kubernetes.io/storage-provisioner"))."volume.beta.kubernetes.io/storage-provisioner") |\n\t\t\tdel(.. | select(has("volume.kubernetes.io/storage-provisioner"))."volume.kubernetes.io/storage-provisioner") |\n\t\t\tdel(.spec.volumeMode) |\n\t\t\tdel(.. | select(has("volume.kubernetes.io/selected-node"))."volume.kubernetes.io/selected-node") |\n\t\t\tdel(.. | select(has("percona.com/last-config-hash"))."percona.com/last-config-hash") |\n\t\t\tdel(.. | select(has("percona.com/configuration-hash"))."percona.com/configuration-hash") |\n\t\t\tdel(.. | select(has("percona.com/ssl-hash"))."percona.com/ssl-hash") |\n\t\t\tdel(.. | select(has("percona.com/ssl-internal-hash"))."percona.com/ssl-internal-hash") |\n\t\t\tdel(.. | select(has("percona.com/pbm-tls-hash"))."percona.com/pbm-tls-hash") |\n\t\t\tdel(.spec.volumeClaimTemplates[].spec.volumeMode | select(. == "Filesystem")) |\n\t\t\tdel(.. | select(has("healthCheckNodePort")).healthCheckNodePort) |\n\t\t\tdel(.. | select(has("nodePort")).nodePort) |\n\t\t\tdel(.status) |\n\t\t\t(.. | select(tag == "!!str")) |= sub("demand-backup-physical-minio-native-tls-2619", "NAME_SPACE") |\n\t\t\tdel(.spec.volumeClaimTemplates[].apiVersion) |\n\t\t\tdel(.spec.volumeClaimTemplates[].kind) |\n\t\t\tdel(.spec.ipFamilies) |\n\t\t\tdel(.spec.ipFamilyPolicy) |\n\t\t\t(.. | select(. == "extensions/v1beta1")) = "apps/v1" |\n\t\t\t(.. | select(. == "batch/v1beta1")) = "batch/v1" ' - ++ mktemp + local LAST_OUT=/tmp/tmp.PNGrDV47ia ++ mktemp + local LAST_ERR=/tmp/tmp.jIMQBS2R9o + local exit_status=0 + local timeout=4 + local i + args=('get' '-o' 'yaml' 'statefulset/some-name-rs0') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ get == \- ]] + [[ get =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -o == \- ]] + [[ -o =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ yaml == \- ]] + [[ yaml =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ statefulset/some-name-rs0 == \- ]] + [[ statefulset/some-name-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 get -o yaml statefulset/some-name-rs0 + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.PNGrDV47ia + cat /tmp/tmp.jIMQBS2R9o + rm /tmp/tmp.PNGrDV47ia /tmp/tmp.jIMQBS2R9o + return 0 + yq -i eval 'del(.spec.persistentVolumeClaimRetentionPolicy)' /tmp/tmp.dovXlLbFj0/statefulset_some-name-rs0.yml + arch_scheduling_enabled + [[ -n '' ]] + version_gt 1.22 ++ echo '1.34 >= 1.22' ++ bc -l + '[' 1 -eq 1 ']' + return 0 + yq -i eval 'del(.spec.internalTrafficPolicy)' /tmp/tmp.dovXlLbFj0/statefulset_some-name-rs0.yml + yq -i eval 'del(.spec.allocateLoadBalancerNodePorts)' /tmp/tmp.dovXlLbFj0/statefulset_some-name-rs0.yml + [[ /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/compare/statefulset_some-name-rs0_restore.yml == */cronjob* ]] + '[' -n '' ']' + [[ 0 -eq 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/compare/statefulset_some-name-rs0_restore.yml /tmp/tmp.dovXlLbFj0/statefulset_some-name-rs0.yml + log 'compare_kubectl: statefulset/some-name-rs0 OK' + set +o xtrace [2026-11-23T06:31:39+0000] compare_kubectl: statefulset/some-name-rs0 OK + wait_restore backup-local-s3 some-name ready 0 3000 + local backup_name=backup-local-s3 + local cluster_name=some-name + local target_state=ready + local wait_cluster_consistency=0 + local wait_time=3000 + local ok_if_ready=0 + set +o xtrace Waiting for the psmdb-restore/restore-backup-local-s3 object to be created.OK Waiting psmdb-restore/restore-backup-local-s3 to reach state "ready" ..OK after 1 minutes + [[ 0 -eq 1 ]] + log 'Physical restore finished: OK' + set +o xtrace [2026-11-23T06:33:14+0000] Physical restore finished: OK ++ kubectl_bin get psmdb some-name -o yaml ++ yq '.metadata.annotations."percona.com/resync-pbm"' +++ mktemp ++ local LAST_OUT=/tmp/tmp.FlLfn1Td7t +++ mktemp ++ local LAST_ERR=/tmp/tmp.FeOIP1Um4L ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-o' 'yaml') ++ 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[@]}" ++ [[ yaml == \- ]] ++ [[ 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 get psmdb some-name -o yaml ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.FlLfn1Td7t ++ cat /tmp/tmp.FeOIP1Um4L ++ rm /tmp/tmp.FlLfn1Td7t /tmp/tmp.FeOIP1Um4L ++ return 0 + '[' true == null ']' + echo + local max_wait=120 + local error_grace=600 + local error_time=0 + local retry=0 + sleep 7 + echo -n 'waiting for cluster some-name to be ready after physical restore' waiting for cluster some-name to be ready after physical restore+ true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.sxd2TaoZBK +++ mktemp ++ local LAST_ERR=/tmp/tmp.JVA9Xl2j40 ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-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 == \- ]] ++ [[ some-name =~ ^(-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 -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.sxd2TaoZBK ++ cat /tmp/tmp.JVA9Xl2j40 ++ rm /tmp/tmp.sxd2TaoZBK /tmp/tmp.JVA9Xl2j40 ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=1 + [[ 1 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ZN9EIyK2Tn +++ mktemp ++ local LAST_ERR=/tmp/tmp.u9cmFOb7Dt ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-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 == \- ]] ++ [[ some-name =~ ^(-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 -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.ZN9EIyK2Tn ++ cat /tmp/tmp.u9cmFOb7Dt ++ rm /tmp/tmp.ZN9EIyK2Tn /tmp/tmp.u9cmFOb7Dt ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=2 + [[ 2 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.KetHCULuQG +++ mktemp ++ local LAST_ERR=/tmp/tmp.82O2IUw8Ga ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-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 == \- ]] ++ [[ some-name =~ ^(-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 -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.KetHCULuQG ++ cat /tmp/tmp.82O2IUw8Ga ++ rm /tmp/tmp.KetHCULuQG /tmp/tmp.82O2IUw8Ga ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=3 + [[ 3 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.TffGzf9q0e +++ mktemp ++ local LAST_ERR=/tmp/tmp.MxFYkxpLKj ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-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 == \- ]] ++ [[ some-name =~ ^(-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 -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.TffGzf9q0e ++ cat /tmp/tmp.MxFYkxpLKj ++ rm /tmp/tmp.TffGzf9q0e /tmp/tmp.MxFYkxpLKj ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=4 + [[ 4 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.NQVV9s5d3E +++ mktemp ++ local LAST_ERR=/tmp/tmp.Uq6MySzv5x ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-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 == \- ]] ++ [[ some-name =~ ^(-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 -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.NQVV9s5d3E ++ cat /tmp/tmp.Uq6MySzv5x ++ rm /tmp/tmp.NQVV9s5d3E /tmp/tmp.Uq6MySzv5x ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=5 + [[ 5 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.nqG5SvtVdP +++ mktemp ++ local LAST_ERR=/tmp/tmp.a7rzC3j6yI ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-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 == \- ]] ++ [[ some-name =~ ^(-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 -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.nqG5SvtVdP ++ cat /tmp/tmp.a7rzC3j6yI ++ rm /tmp/tmp.nqG5SvtVdP /tmp/tmp.a7rzC3j6yI ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=6 + [[ 6 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.a7RMbNZjp1 +++ mktemp ++ local LAST_ERR=/tmp/tmp.ZjzUrEDmke ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-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 == \- ]] ++ [[ some-name =~ ^(-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 -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.a7RMbNZjp1 ++ cat /tmp/tmp.ZjzUrEDmke ++ rm /tmp/tmp.a7RMbNZjp1 /tmp/tmp.ZjzUrEDmke ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=7 + [[ 7 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.6X9L5LH5Xs +++ mktemp ++ local LAST_ERR=/tmp/tmp.ZAW24cIlzE ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-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 == \- ]] ++ [[ some-name =~ ^(-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 -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.6X9L5LH5Xs ++ cat /tmp/tmp.ZAW24cIlzE ++ rm /tmp/tmp.6X9L5LH5Xs /tmp/tmp.ZAW24cIlzE ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=8 + [[ 8 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.0BPJrTGe29 +++ mktemp ++ local LAST_ERR=/tmp/tmp.Zyp8HC5wyH ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-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 == \- ]] ++ [[ some-name =~ ^(-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 -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.0BPJrTGe29 ++ cat /tmp/tmp.Zyp8HC5wyH ++ rm /tmp/tmp.0BPJrTGe29 /tmp/tmp.Zyp8HC5wyH ++ return 0 + state=initializing + [[ initializing == ready ]] + [[ initializing == error ]] + error_time=0 + retry=9 + [[ 9 -ge 120 ]] + echo -n . .+ sleep 10 + true + local state ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.EkLnbNZcxC +++ mktemp ++ local LAST_ERR=/tmp/tmp.VERfrlBcsk ++ local exit_status=0 ++ local timeout=4 ++ local i ++ args=('get' 'psmdb' 'some-name' '-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 == \- ]] ++ [[ some-name =~ ^(-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 -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ [[ 0 == 0 ]] ++ break ++ cat /tmp/tmp.EkLnbNZcxC ++ cat /tmp/tmp.VERfrlBcsk ++ rm /tmp/tmp.EkLnbNZcxC /tmp/tmp.VERfrlBcsk ++ return 0 + state=ready + [[ ready == ready ]] + break + echo .OK .OK + wait_for_pbm_operations some-name + local cluster=some-name + local max_retries=540 + set +o xtrace waiting for PBM operation to finish.OK + log 'Operator triggered PBM resync: OK' + set +o xtrace [2026-11-23T06:35:03+0000] Operator triggered PBM resync: OK + '[' -n '' ']' + compare_mongo_cmd find myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-physical-minio-native-tls-2619 '' '' '' '' '' true + local command=find + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-physical-minio-native-tls-2619 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local tls=true + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-23T06:35:03+0000] running db.test.find() in myApp + [[ true == true ]] + mongo_command=run_mongo_tls ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo_tls 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-physical-minio-native-tls-2619 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-physical-minio-native-tls-2619 + local driver=mongodb + local suffix=.svc.cluster.local + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.3k7AnJpGZ2 +++ mktemp ++ local LAST_ERR=/tmp/tmp.0iJ6X9dvJr ++ 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.3k7AnJpGZ2 ++ cat /tmp/tmp.0iJ6X9dvJr ++ rm /tmp/tmp.3k7AnJpGZ2 /tmp/tmp.0iJ6X9dvJr ++ return 0 + local client_container=psmdb-client-748949c7cd-lnfjx + local mongo_flag= + local port=27017 ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27017 + [[ myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-physical-minio-native-tls-2619 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-748949c7cd-lnfjx -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ' ++ mktemp + local LAST_OUT=/tmp/tmp.XnOCqNf55t ++ mktemp + local LAST_ERR=/tmp/tmp.NFmSMVI5Cf + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-748949c7cd-lnfjx' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-748949c7cd-lnfjx == \- ]] + [[ psmdb-client-748949c7cd-lnfjx =~ ^(-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 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames =~ ^(-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-748949c7cd-lnfjx -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-0.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.XnOCqNf55t + cat /tmp/tmp.NFmSMVI5Cf + rm /tmp/tmp.XnOCqNf55t /tmp/tmp.NFmSMVI5Cf + return 0 + compare_mongo_output find '' + local command=find + local postfix= + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/compare/find.json /tmp/tmp.dovXlLbFj0/find + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-physical-minio-native-tls-2619 '' '' '' '' '' true + local command=find + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-physical-minio-native-tls-2619 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local tls=true + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-23T06:35:06+0000] running db.test.find() in myApp + [[ true == true ]] + mongo_command=run_mongo_tls ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo_tls 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-physical-minio-native-tls-2619 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + local uri=myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-physical-minio-native-tls-2619 + local driver=mongodb + local suffix=.svc.cluster.local + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.QV4Z9ERi5p +++ mktemp ++ local LAST_ERR=/tmp/tmp.UKz3iFtssA ++ 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.QV4Z9ERi5p ++ cat /tmp/tmp.UKz3iFtssA ++ rm /tmp/tmp.QV4Z9ERi5p /tmp/tmp.UKz3iFtssA ++ return 0 + local client_container=psmdb-client-748949c7cd-lnfjx + local mongo_flag= + local port=27017 ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27017 + [[ myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-physical-minio-native-tls-2619 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-748949c7cd-lnfjx -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ' ++ mktemp + local LAST_OUT=/tmp/tmp.efEOOGT2H7 ++ mktemp + local LAST_ERR=/tmp/tmp.dacsvDF99N + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-748949c7cd-lnfjx' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-748949c7cd-lnfjx == \- ]] + [[ psmdb-client-748949c7cd-lnfjx =~ ^(-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 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames =~ ^(-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-748949c7cd-lnfjx -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-1.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.efEOOGT2H7 + cat /tmp/tmp.dacsvDF99N + rm /tmp/tmp.efEOOGT2H7 /tmp/tmp.dacsvDF99N + return 0 + compare_mongo_output find '' + local command=find + local postfix= + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/compare/find.json /tmp/tmp.dovXlLbFj0/find + return + compare_mongo_cmd find myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-physical-minio-native-tls-2619 '' '' '' '' '' true + local command=find + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-physical-minio-native-tls-2619 + local postfix= + local suffix= + local database=myApp + local collection=test + local sort= + local tls=true + local replicaset= + local retries=3 + local retry_delay=10 + local 'full_command=db.test.find()' + [[ -n '' ]] + log 'running db.test.find() in myApp' + set +o xtrace [2026-11-23T06:35:08+0000] running db.test.find() in myApp + [[ true == true ]] + mongo_command=run_mongo_tls ++ seq 1 3 + for attempt in $(seq 1 "$retries") + run_mongo_tls 'use myApp\n db.test.find()' myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-physical-minio-native-tls-2619 mongodb '' '' '' + local 'command=use myApp\n db.test.find()' + grep -E -v 'I NETWORK|W NETWORK|F NETWORK|"c":"NETWORK"|Error saving history file|Percona Server for MongoDB|connecting to:|Unable to reach primary for set|Implicit session:|versions do not match|Error saving history file:|Started a new thread for the timer service' + local uri=myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-physical-minio-native-tls-2619 + local driver=mongodb + local suffix=.svc.cluster.local + /usr/sbin/sed -re 's/ObjectId\("[0-9a-f]+"\)//; s/-[0-9]+.svc/-xxx.svc/' ++ kubectl_bin get pods --selector=name=psmdb-client -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.BAL6Fy1sTn +++ mktemp ++ local LAST_ERR=/tmp/tmp.3qJc2RogUW ++ 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.BAL6Fy1sTn ++ cat /tmp/tmp.3qJc2RogUW ++ rm /tmp/tmp.BAL6Fy1sTn /tmp/tmp.3qJc2RogUW ++ return 0 + local client_container=psmdb-client-748949c7cd-lnfjx + local mongo_flag= + local port=27017 ++ echo .svc.cluster.local ++ awk -F: '{print $2}' + suffix_port= + [[ -z '' ]] + suffix=.svc.cluster.local:27017 + [[ myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-physical-minio-native-tls-2619 == *cfg* ]] + replica_set=rs0 + kubectl_bin exec psmdb-client-748949c7cd-lnfjx -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ' ++ mktemp + local LAST_OUT=/tmp/tmp.JkyMhiZKL9 ++ mktemp + local LAST_ERR=/tmp/tmp.D4SieqjjZV + local exit_status=0 + local timeout=4 + local i + args=('exec' 'psmdb-client-748949c7cd-lnfjx' '--' 'bash' '-c' 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ psmdb-client-748949c7cd-lnfjx == \- ]] + [[ psmdb-client-748949c7cd-lnfjx =~ ^(-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 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames == \- ]] + [[ export HOME=/tmp; printf 'use myApp\n db.test.find()\n' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames =~ ^(-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-748949c7cd-lnfjx -- bash -c 'export HOME=/tmp; printf '\''use myApp\n db.test.find()\n'\'' | mongo mongodb://myApp:myPass@some-name-rs0-2.some-name-rs0.demand-backup-physical-minio-native-tls-2619.svc.cluster.local:27017/admin?replicaSet=rs0 --tls --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidHostnames ' + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.JkyMhiZKL9 + cat /tmp/tmp.D4SieqjjZV + rm /tmp/tmp.JkyMhiZKL9 /tmp/tmp.D4SieqjjZV + return 0 + compare_mongo_output find '' + local command=find + local postfix= + [[ 0 -ne 0 ]] + diff -u /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/demand-backup-physical-minio-native-tls/compare/find.json /tmp/tmp.dovXlLbFj0/find + return + log 'Data restored: OK' + set +o xtrace [2026-11-23T06:35:11+0000] Data restored: OK + echo some-name-rs0-0:/data/db/pbm-restore-logs some-name-rs0-0:/data/db/pbm-restore-logs + kubectl_bin exec some-name-rs0-0 -- ls -l /data/db/pbm-restore-logs ++ mktemp + local LAST_OUT=/tmp/tmp.FiZM58OO26 ++ mktemp + local LAST_ERR=/tmp/tmp.St40NAfXIg + local exit_status=0 + local timeout=4 + local i + args=('exec' 'some-name-rs0-0' '--' 'ls' '-l' '/data/db/pbm-restore-logs') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-rs0-0 == \- ]] + [[ some-name-rs0-0 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ls == \- ]] + [[ ls =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -l == \- ]] + [[ -l =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /data/db/pbm-restore-logs == \- ]] + [[ /data/db/pbm-restore-logs =~ ^(-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 some-name-rs0-0 -- ls -l /data/db/pbm-restore-logs + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.FiZM58OO26 total 668 -rw-rw-r-- 1 mongodb 1001 485315 Nov 23 06:32 mongod.log -rw-rw-r-- 1 mongodb 1001 45044 Nov 23 06:33 pbm-agent.log -rw-rw---- 1 mongodb 1001 71355 Nov 23 06:32 pbm.restore.log.2026-11-23T06-32-35 -rw-rw---- 1 mongodb 1001 76452 Nov 23 06:32 pbm.restore.log.2026-11-23T06-32-39 + cat /tmp/tmp.St40NAfXIg Defaulted container "mongod" out of: mongod, backup-agent, mongo-init (init) + rm /tmp/tmp.FiZM58OO26 /tmp/tmp.St40NAfXIg + return 0 + echo some-name-rs0-1:/data/db/pbm-restore-logs some-name-rs0-1:/data/db/pbm-restore-logs + kubectl_bin exec some-name-rs0-1 -- ls -l /data/db/pbm-restore-logs ++ mktemp + local LAST_OUT=/tmp/tmp.n2hWJXy9aB ++ mktemp + local LAST_ERR=/tmp/tmp.JZoUeNWB2O + local exit_status=0 + local timeout=4 + local i + args=('exec' 'some-name-rs0-1' '--' 'ls' '-l' '/data/db/pbm-restore-logs') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-rs0-1 == \- ]] + [[ some-name-rs0-1 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ls == \- ]] + [[ ls =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -l == \- ]] + [[ -l =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /data/db/pbm-restore-logs == \- ]] + [[ /data/db/pbm-restore-logs =~ ^(-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 some-name-rs0-1 -- ls -l /data/db/pbm-restore-logs + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.n2hWJXy9aB total 756 -rw-rw-r-- 1 mongodb 1001 570251 Nov 23 06:32 mongod.log -rw-rw-r-- 1 mongodb 1001 48625 Nov 23 06:33 pbm-agent.log -rw-rw---- 1 mongodb 1001 71317 Nov 23 06:32 pbm.restore.log.2026-11-23T06-33-00 -rw-rw---- 1 mongodb 1001 76905 Nov 23 06:33 pbm.restore.log.2026-11-23T06-33-03 + cat /tmp/tmp.JZoUeNWB2O Defaulted container "mongod" out of: mongod, backup-agent, mongo-init (init) + rm /tmp/tmp.n2hWJXy9aB /tmp/tmp.JZoUeNWB2O + return 0 + echo some-name-rs0-2:/data/db/pbm-restore-logs some-name-rs0-2:/data/db/pbm-restore-logs + kubectl_bin exec some-name-rs0-2 -- ls -l /data/db/pbm-restore-logs ++ mktemp + local LAST_OUT=/tmp/tmp.AIMxT9xE1M ++ mktemp + local LAST_ERR=/tmp/tmp.Ee5F5O45SM + local exit_status=0 + local timeout=4 + local i + args=('exec' 'some-name-rs0-2' '--' 'ls' '-l' '/data/db/pbm-restore-logs') + local args + transformed_files=() + local transformed_files + local stdin_manifest + for i in "${!args[@]}" + [[ exec == \- ]] + [[ exec =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ some-name-rs0-2 == \- ]] + [[ some-name-rs0-2 =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -- == \- ]] + [[ -- =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ ls == \- ]] + [[ ls =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ -l == \- ]] + [[ -l =~ ^(-f|--filename)=-$ ]] + for i in "${!args[@]}" + [[ /data/db/pbm-restore-logs == \- ]] + [[ /data/db/pbm-restore-logs =~ ^(-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 some-name-rs0-2 -- ls -l /data/db/pbm-restore-logs + exit_status=0 + set -e + [[ 0 == 0 ]] + break + cat /tmp/tmp.AIMxT9xE1M total 332 -rw-rw-r-- 1 mongodb 1001 138309 Nov 23 06:32 mongod.log -rw-rw-r-- 1 mongodb 1001 42955 Nov 23 06:33 pbm-agent.log -rw-rw---- 1 mongodb 1001 71320 Nov 23 06:32 pbm.restore.log.2026-11-23T06-32-36 -rw-rw---- 1 mongodb 1001 76401 Nov 23 06:32 pbm.restore.log.2026-11-23T06-32-39 + cat /tmp/tmp.Ee5F5O45SM Defaulted container "mongod" out of: mongod, backup-agent, mongo-init (init) + rm /tmp/tmp.AIMxT9xE1M /tmp/tmp.Ee5F5O45SM + return 0 + '[' -n '' ']' + log 'Restore logs are preserved: OK' + set +o xtrace [2026-11-23T06:35:15+0000] Restore logs are preserved: OK + rm -f /tmp/s3-cert.pem /tmp/secondary-s3-cert.pem + destroy demand-backup-physical-minio-native-tls-2619 + local namespace=demand-backup-physical-minio-native-tls-2619 + local ignore_logs=true + [[ 1 == 1 ]] + echo 'SKIP_DELETE=1, not destroying demand-backup-physical-minio-native-tls-2619' SKIP_DELETE=1, not destroying demand-backup-physical-minio-native-tls-2619 + return + desc 'test passed' + set +o xtrace ----------------------------------------------------------------------------------- test passed ----------------------------------------------------------------------------------- ==================================================================================================== [PASSED] e2e-tests/test_pytest_wrapper.py::test_bash_wrapper ==================================================================================================== [06:35:17.233101] INFO Deleting cert-manager [06:35:43.383753] INFO Cleaning up test environment -------------------------------- generated xml file: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/reports/demand-backup-physical-minio-native-tls.xml --------------------------------- --------------------------- Generated html report: file:///mnt/jenkins/workspace/cloud-psmdb-operator_PR-2715/e2e-tests/reports/demand-backup-physical-minio-native-tls.html --------------------------- ==================================================================================== 1 passed in 1233.25s (0:20:33) ====================================================================================