Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/e2e-tests/logs/replset-remapping.log grep: warning: stray \ before - Warning: version difference between client (1.35) and server (1.31) exceeds the supported minor version skew of +/-1 Warning: version difference between client (1.35) and server (1.31) exceeds the supported minor version skew of +/-1 Warning: version difference between client (1.35) and server (1.31) exceeds the supported minor version skew of +/-1 + source_cluster=some-name-source + target_cluster=some-name-target + setup_infra + create_infra replset-remapping-5618 + local ns=replset-remapping-5618 + [[ 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-2152/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.ItyiRchAPy ++ mktemp + local LAST_ERR=/tmp/tmp.zDcBvmbL5j + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ItyiRchAPy customresourcedefinition.apiextensions.k8s.io "perconaservermongodbbackups.psmdb.percona.com" deleted customresourcedefinition.apiextensions.k8s.io "perconaservermongodbrestores.psmdb.percona.com" deleted customresourcedefinition.apiextensions.k8s.io "perconaservermongodbs.psmdb.percona.com" deleted + cat /tmp/tmp.zDcBvmbL5j + rm /tmp/tmp.ItyiRchAPy /tmp/tmp.zDcBvmbL5j + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/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" + kubectl patch perconaservermongodbbackups.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbbackups" + : + kubectl_bin wait --for=delete crd perconaservermongodbbackups.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.wsi8XAQIdz ++ mktemp + local LAST_ERR=/tmp/tmp.yjWeiBRHKk + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete crd perconaservermongodbbackups.psmdb.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.wsi8XAQIdz + cat /tmp/tmp.yjWeiBRHKk + rm /tmp/tmp.wsi8XAQIdz /tmp/tmp.yjWeiBRHKk + return 0 + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + kubectl get perconaservermongodbrestores.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbrestores.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbrestores" + kubectl patch perconaservermongodbrestores.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbrestores" + : + kubectl_bin wait --for=delete crd perconaservermongodbrestores.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.OH4J7DTC8d ++ mktemp + local LAST_ERR=/tmp/tmp.ODJxSJKJWC + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete crd perconaservermongodbrestores.psmdb.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.OH4J7DTC8d + cat /tmp/tmp.ODJxSJKJWC + rm /tmp/tmp.OH4J7DTC8d /tmp/tmp.ODJxSJKJWC + return 0 + for crd_name in $(yq eval '.metadata.name' "${src_dir}/deploy/crd.yaml" | grep -v '\-\-\-') + kubectl get perconaservermongodbs.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbs.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' No resources found + kubectl patch perconaservermongodbs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbs" + : + kubectl_bin wait --for=delete crd perconaservermongodbs.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.PafsUtp5po ++ mktemp + local LAST_ERR=/tmp/tmp.nsCw1WrU6Q + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete crd perconaservermongodbs.psmdb.percona.com + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.PafsUtp5po + cat /tmp/tmp.nsCw1WrU6Q + rm /tmp/tmp.PafsUtp5po /tmp/tmp.nsCw1WrU6Q + return 0 + local rbac_yaml=rbac.yaml + '[' -n psmdb-operator ']' + rbac_yaml=cw-rbac.yaml + kubectl_bin delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/deploy/cw-rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.C5xA6ljHMi ++ mktemp + local LAST_ERR=/tmp/tmp.zU9xf8hXXJ + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/deploy/cw-rbac.yaml --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.C5xA6ljHMi 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.zU9xf8hXXJ + rm /tmp/tmp.C5xA6ljHMi /tmp/tmp.zU9xf8hXXJ + return 0 + check_crd_for_deletion PR-2152-4461031b + local git_tag=PR-2152-4461031b ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-2152-4461031b/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.7khsgVXGuj +++ mktemp ++ local LAST_ERR=/tmp/tmp.P5bnIC18Ap ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get crd/null -o 'jsonpath={.status.conditions[-1].type}' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.7khsgVXGuj ++ cat /tmp/tmp.P5bnIC18Ap Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 0 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get crd/null -o 'jsonpath={.status.conditions[-1].type}' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.7khsgVXGuj ++ cat /tmp/tmp.P5bnIC18Ap Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 4 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get crd/null -o 'jsonpath={.status.conditions[-1].type}' ++ exit_status=1 ++ set -e ++ '[' 1 '!=' 0 -a -n 1 ']' ++ cat /tmp/tmp.7khsgVXGuj ++ cat /tmp/tmp.P5bnIC18Ap Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 8 ++ cat /tmp/tmp.7khsgVXGuj ++ cat /tmp/tmp.P5bnIC18Ap Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.7khsgVXGuj /tmp/tmp.P5bnIC18Ap ++ return 1 + [[ '' == \T\e\r\m\i\n\a\t\i\n\g ]] + '[' -n psmdb-operator ']' + create_namespace psmdb-operator + local namespace=psmdb-operator + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ 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 ----------------------------------------------------------------------------------- + kubectl_bin get ns + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + '[' -n '' ']' + awk '{print$1}' + desc 'cleaned up old namespaces psmdb-operator' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin delete namespace psmdb-operator --ignore-not-found + xargs kubectl delete ns ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.6i81FxJCvL egrep: warning: egrep is obsolescent; using grep -E ++ mktemp + local LAST_OUT=/tmp/tmp.s7TjFDESnh ++ mktemp + local LAST_ERR=/tmp/tmp.eLf3fXtRiK + local exit_status=0 + local timeout=4 ++ seq 0 2 + local LAST_ERR=/tmp/tmp.SiPPzyjuPi + local exit_status=0 + local timeout=4 + for i in $(seq 0 2) + set +e + kubectl get ns ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete namespace psmdb-operator --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.6i81FxJCvL + cat /tmp/tmp.eLf3fXtRiK + rm /tmp/tmp.6i81FxJCvL /tmp/tmp.eLf3fXtRiK + return 0 namespace "replset-remapping-13194" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.s7TjFDESnh namespace "psmdb-operator" deleted + cat /tmp/tmp.SiPPzyjuPi + rm /tmp/tmp.s7TjFDESnh /tmp/tmp.SiPPzyjuPi + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.qBZzbYtqPa ++ mktemp + local LAST_ERR=/tmp/tmp.Qk25w26vZc + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete namespace psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.qBZzbYtqPa + cat /tmp/tmp.Qk25w26vZc + rm /tmp/tmp.qBZzbYtqPa /tmp/tmp.Qk25w26vZc + 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.lms89WwvIo ++ mktemp + local LAST_ERR=/tmp/tmp.Kac03ZGMuA + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl create namespace psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.lms89WwvIo namespace/psmdb-operator created + cat /tmp/tmp.Kac03ZGMuA + rm /tmp/tmp.lms89WwvIo /tmp/tmp.Kac03ZGMuA + return 0 + set_kube_ctx psmdb-operator + local namespace=psmdb-operator ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.ADaweRdIau +++ mktemp ++ local LAST_ERR=/tmp/tmp.ZRi02Hoetn ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.ADaweRdIau ++ cat /tmp/tmp.ZRi02Hoetn ++ rm /tmp/tmp.ADaweRdIau /tmp/tmp.ZRi02Hoetn ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2152-4461031b-2-cluster3 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.LZltPnE6kQ ++ mktemp + local LAST_ERR=/tmp/tmp.zU8sPkj372 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2152-4461031b-2-cluster3 --namespace=psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.LZltPnE6kQ Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2152-4461031b-2-cluster3" modified. + cat /tmp/tmp.zU8sPkj372 + rm /tmp/tmp.LZltPnE6kQ /tmp/tmp.zU8sPkj372 + return 0 + deploy_operator + desc 'start PSMDB operator: perconalab/percona-server-mongodb-operator:PR-2152-4461031b' + set +o xtrace ----------------------------------------------------------------------------------- start PSMDB operator: perconalab/percona-server-mongodb-operator:PR-2152-4461031b ----------------------------------------------------------------------------------- + local cr_file + '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/e2e-tests/replset-remapping/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.Dmf1bCcGtm ++ mktemp + local LAST_ERR=/tmp/tmp.HErdy2yn0E + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Dmf1bCcGtm customresourcedefinition.apiextensions.k8s.io/perconaservermongodbbackups.psmdb.percona.com serverside-applied customresourcedefinition.apiextensions.k8s.io/perconaservermongodbrestores.psmdb.percona.com serverside-applied customresourcedefinition.apiextensions.k8s.io/perconaservermongodbs.psmdb.percona.com serverside-applied + cat /tmp/tmp.HErdy2yn0E + rm /tmp/tmp.Dmf1bCcGtm /tmp/tmp.HErdy2yn0E + 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-2152/deploy/cw-rbac.yaml + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.55zIGL3FEh ++ mktemp + local LAST_ERR=/tmp/tmp.BhtRsUYUqq + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -n psmdb-operator -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.55zIGL3FEh 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.BhtRsUYUqq + rm /tmp/tmp.55zIGL3FEh /tmp/tmp.BhtRsUYUqq + return 0 + yq eval ' (.spec.template.spec.containers[].image = "perconalab/percona-server-mongodb-operator:PR-2152-4461031b") | ((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") | ((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/deploy/cw-operator.yaml + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.ubAX4WYSi3 ++ mktemp + local LAST_ERR=/tmp/tmp.tfpFufuF3q + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -n psmdb-operator -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ubAX4WYSi3 deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.tfpFufuF3q + rm /tmp/tmp.ubAX4WYSi3 /tmp/tmp.tfpFufuF3q + 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.8g7Jechmmw +++ mktemp ++ local LAST_ERR=/tmp/tmp.1grQenjwRf ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' -n psmdb-operator ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.8g7Jechmmw ++ cat /tmp/tmp.1grQenjwRf ++ rm /tmp/tmp.8g7Jechmmw /tmp/tmp.1grQenjwRf ++ return 0 + wait_operator_pod percona-server-mongodb-operator-78c57f9588-c9w8j + local pod=percona-server-mongodb-operator-78c57f9588-c9w8j + set +o xtrace waiting for pod/percona-server-mongodb-operator-78c57f9588-c9w8j 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.tuGo7Yc1LN +++ mktemp ++ local LAST_ERR=/tmp/tmp.aZRmN0GYTU ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=name=percona-server-mongodb-operator -o 'jsonpath={.items[].metadata.name}' -n psmdb-operator ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.tuGo7Yc1LN ++ cat /tmp/tmp.aZRmN0GYTU ++ rm /tmp/tmp.tuGo7Yc1LN /tmp/tmp.aZRmN0GYTU ++ return 0 + kubectl_bin logs -n psmdb-operator percona-server-mongodb-operator-78c57f9588-c9w8j ++ mktemp + local LAST_OUT=/tmp/tmp.O4GnY5kIgo ++ mktemp + local LAST_ERR=/tmp/tmp.TT9AxiRtlJ + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl logs -n psmdb-operator percona-server-mongodb-operator-78c57f9588-c9w8j + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.O4GnY5kIgo + cat /tmp/tmp.TT9AxiRtlJ + rm /tmp/tmp.O4GnY5kIgo /tmp/tmp.TT9AxiRtlJ + return 0 2025-12-18T19:43:47.010Z INFO setup Manager starting up {"gitCommit": "4461031b25c11e5b29d77d465c058b936127aac2", "gitBranch": "PR-2152-4461031b", "buildTime": "", "goVersion": "go1.25.5", "os": "linux", "arch": "amd64"} + create_namespace replset-remapping-5618 + local namespace=replset-remapping-5618 + 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 ----------------------------------------------------------------------------------- + kubectl_bin get ns + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + awk '{print$1}' ++ mktemp + '[' -n '' ']' + xargs kubectl delete ns + desc 'cleaned up old namespaces replset-remapping-5618' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces replset-remapping-5618 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace replset-remapping-5618 --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.TJfUBHCSbp ++ mktemp egrep: warning: egrep is obsolescent; using grep -E + local LAST_OUT=/tmp/tmp.XHCnhqdsR1 + local LAST_ERR=/tmp/tmp.b1FtfuEwQs + local exit_status=0 + local timeout=4 ++ mktemp ++ seq 0 2 + local LAST_ERR=/tmp/tmp.XJt0IqZjOA + local exit_status=0 + local timeout=4 + for i in $(seq 0 2) + set +e + kubectl get ns ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete namespace replset-remapping-5618 --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.TJfUBHCSbp + cat /tmp/tmp.b1FtfuEwQs + rm /tmp/tmp.TJfUBHCSbp /tmp/tmp.b1FtfuEwQs + return 0 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.XHCnhqdsR1 + cat /tmp/tmp.XJt0IqZjOA + rm /tmp/tmp.XHCnhqdsR1 /tmp/tmp.XJt0IqZjOA error: resource(s) were provided, but no name was specified + return 0 + kubectl_bin wait --for=delete namespace replset-remapping-5618 ++ mktemp + local LAST_OUT=/tmp/tmp.fmezzMKYpX ++ mktemp + local LAST_ERR=/tmp/tmp.euLnYaxhHH + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete namespace replset-remapping-5618 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.fmezzMKYpX + cat /tmp/tmp.euLnYaxhHH + rm /tmp/tmp.fmezzMKYpX /tmp/tmp.euLnYaxhHH + return 0 + desc 'create namespace replset-remapping-5618' + set +o xtrace ----------------------------------------------------------------------------------- create namespace replset-remapping-5618 ----------------------------------------------------------------------------------- + kubectl_bin create namespace replset-remapping-5618 ++ mktemp + local LAST_OUT=/tmp/tmp.jPlSaXAKpD ++ mktemp + local LAST_ERR=/tmp/tmp.5yNyRZSgpN + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl create namespace replset-remapping-5618 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.jPlSaXAKpD namespace/replset-remapping-5618 created + cat /tmp/tmp.5yNyRZSgpN + rm /tmp/tmp.jPlSaXAKpD /tmp/tmp.5yNyRZSgpN + return 0 + set_kube_ctx replset-remapping-5618 + local namespace=replset-remapping-5618 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.UtlxCMtpBp +++ mktemp ++ local LAST_ERR=/tmp/tmp.62GM385HdN ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl config current-context ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.UtlxCMtpBp ++ cat /tmp/tmp.62GM385HdN ++ rm /tmp/tmp.UtlxCMtpBp /tmp/tmp.62GM385HdN ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2152-4461031b-2-cluster3 --namespace=replset-remapping-5618 ++ mktemp + local LAST_OUT=/tmp/tmp.JY5tr2R5fd ++ mktemp + local LAST_ERR=/tmp/tmp.LHTbQklBUP + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2152-4461031b-2-cluster3 --namespace=replset-remapping-5618 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.JY5tr2R5fd Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2152-4461031b-2-cluster3" modified. + cat /tmp/tmp.LHTbQklBUP + rm /tmp/tmp.JY5tr2R5fd /tmp/tmp.LHTbQklBUP + return 0 + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/e2e-tests/conf/secrets_with_tls.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/e2e-tests/conf/minio-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.MoTniOUD0e ++ mktemp + local LAST_ERR=/tmp/tmp.HTGjsI4ulE + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/e2e-tests/conf/secrets_with_tls.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/e2e-tests/conf/minio-secret.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.MoTniOUD0e deployment.apps/psmdb-client created secret/some-users created secret/some-name-ssl created secret/some-name-ssl-internal created secret/minio-secret created + cat /tmp/tmp.HTGjsI4ulE + rm /tmp/tmp.MoTniOUD0e /tmp/tmp.HTGjsI4ulE + return 0 + deploy_minio + desc 'install Minio' + set +o xtrace ----------------------------------------------------------------------------------- install Minio ----------------------------------------------------------------------------------- + helm uninstall minio-service Error: uninstall: Release not loaded: minio-service: release: not found + : + helm repo remove minio "minio" has been removed from your repositories + helm repo add minio https://charts.min.io/ "minio" has been added to your repositories + retry 10 60 helm install minio-service --version 5.4.0 --set replicas=1 --set mode=standalone --set resources.requests.memory=256Mi --set rootUser=rootuser --set rootPassword=rootpass123 --set 'users[0].accessKey=some-access-key' --set 'users[0].secretKey=some-secret-key' --set 'users[0].policy=consoleAdmin' --set service.type=ClusterIP --set configPathmc=/tmp/.minio/ --set persistence.size=2G --set securityContext.enabled=false minio/minio + local max=10 + local delay=60 + shift 2 + local n=1 + helm install minio-service --version 5.4.0 --set replicas=1 --set mode=standalone --set resources.requests.memory=256Mi --set rootUser=rootuser --set rootPassword=rootpass123 --set 'users[0].accessKey=some-access-key' --set 'users[0].secretKey=some-secret-key' --set 'users[0].policy=consoleAdmin' --set service.type=ClusterIP --set configPathmc=/tmp/.minio/ --set persistence.size=2G --set securityContext.enabled=false minio/minio NAME: minio-service LAST DEPLOYED: Thu Dec 18 19:44:31 2025 NAMESPACE: replset-remapping-5618 STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: MinIO can be accessed via port 9000 on the following DNS name from within your cluster: minio-service.replset-remapping-5618.cluster.local To access MinIO from localhost, run the below commands: 1. export POD_NAME=$(kubectl get pods --namespace replset-remapping-5618 -l "release=minio-service" -o jsonpath="{.items[0].metadata.name}") 2. kubectl port-forward $POD_NAME 9000 --namespace replset-remapping-5618 Read more about port forwarding here: http://kubernetes.io/docs/user-guide/kubectl/kubectl_port-forward/ You can now access MinIO server on http://localhost:9000. Follow the below steps to connect to MinIO server with mc client: 1. Download the MinIO mc client - https://min.io/docs/minio/linux/reference/minio-mc.html#quickstart 2. export MC_HOST_minio-service-local=http://$(kubectl get secret --namespace replset-remapping-5618 minio-service -o jsonpath="{.data.rootUser}" | base64 --decode):$(kubectl get secret --namespace replset-remapping-5618 minio-service -o jsonpath="{.data.rootPassword}" | base64 --decode)@localhost:9000 3. mc ls minio-service-local ++ kubectl_bin get pods --selector=release=minio-service -o 'jsonpath={.items[].metadata.name}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.HJXtwhuZpH +++ mktemp ++ local LAST_ERR=/tmp/tmp.Uu35fyerfj ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get pods --selector=release=minio-service -o 'jsonpath={.items[].metadata.name}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.HJXtwhuZpH ++ cat /tmp/tmp.Uu35fyerfj ++ rm /tmp/tmp.HJXtwhuZpH /tmp/tmp.Uu35fyerfj ++ return 0 + MINIO_POD=minio-service-d9589b474-zdxhg + wait_pod minio-service-d9589b474-zdxhg + local pod=minio-service-d9589b474-zdxhg + set +o xtrace waiting for pod/minio-service-d9589b474-zdxhg to be ready.OK + '[' -n psmdb-operator ']' + kubectl_bin create svc -n psmdb-operator externalname minio-service --external-name=minio-service.replset-remapping-5618.svc.cluster.local --tcp=9000 ++ mktemp + local LAST_OUT=/tmp/tmp.tzeXBgfYNO ++ mktemp + local LAST_ERR=/tmp/tmp.kLYzuEKu5K + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl create svc -n psmdb-operator externalname minio-service --external-name=minio-service.replset-remapping-5618.svc.cluster.local --tcp=9000 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.tzeXBgfYNO service/minio-service created + cat /tmp/tmp.kLYzuEKu5K + rm /tmp/tmp.tzeXBgfYNO /tmp/tmp.kLYzuEKu5K + return 0 + create_minio_bucket operator-testing + local bucket=operator-testing + kubectl_bin run -i --rm aws-cli --image=perconalab/awscli --restart=Never -- bash -c 'AWS_ACCESS_KEY_ID=some-access-key AWS_SECRET_ACCESS_KEY=some-secret-key AWS_DEFAULT_REGION=us-east-1 /usr/bin/aws --endpoint-url http://minio-service:9000 s3 mb s3://operator-testing' ++ mktemp + local LAST_OUT=/tmp/tmp.aH03I3uPxG ++ mktemp + local LAST_ERR=/tmp/tmp.1pdhqt3t4F + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl run -i --rm aws-cli --image=perconalab/awscli --restart=Never -- bash -c 'AWS_ACCESS_KEY_ID=some-access-key AWS_SECRET_ACCESS_KEY=some-secret-key AWS_DEFAULT_REGION=us-east-1 /usr/bin/aws --endpoint-url http://minio-service:9000 s3 mb s3://operator-testing' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.aH03I3uPxG make_bucket: operator-testing pod "aws-cli" deleted from replset-remapping-5618 namespace + cat /tmp/tmp.1pdhqt3t4F 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. warning: couldn't attach to pod/aws-cli, falling back to streaming logs: Internal error occurred: unable to upgrade connection: container aws-cli not found in pod aws-cli_replset-remapping-5618 + rm /tmp/tmp.aH03I3uPxG /tmp/tmp.1pdhqt3t4F + return 0 + setup_source_cluster + desc 'setting up source cluster: some-name-source' + set +o xtrace ----------------------------------------------------------------------------------- setting up source cluster: some-name-source ----------------------------------------------------------------------------------- + log 'creating PSMDB cluster: some-name-source' + set +o xtrace [2025-12-18T19:45:07+0000] creating PSMDB cluster: some-name-source + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/e2e-tests/replset-remapping/conf/some-name-source.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/e2e-tests/replset-remapping/conf/some-name-source.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2152/e2e-tests/replset-remapping/conf/some-name-source.yml + yq eval '(.spec | select(.image == null)).image = "perconalab/percona-server-mongodb-operator:main-mongod8.0"' + yq eval '(.spec | select(has("pmm"))).pmm.image = "percona/pmm-client:2.44.1-1"' ++ mktemp + yq eval '(.spec | select(has("initImage"))).initImage = "perconalab/percona-server-mongodb-operator:PR-2152-4461031b"' + yq eval '.spec.upgradeOptions.apply="Never"' + yq eval '(.spec | select(has("backup"))).backup.image = "perconalab/percona-server-mongodb-operator:main-backup"' + local LAST_OUT=/tmp/tmp.TIZRZ445R1 ++ mktemp + local LAST_ERR=/tmp/tmp.OnBqEMPE7r + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl apply -f - + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.TIZRZ445R1 perconaservermongodb.psmdb.percona.com/some-name-source created + cat /tmp/tmp.OnBqEMPE7r + rm /tmp/tmp.TIZRZ445R1 /tmp/tmp.OnBqEMPE7r + return 0 + wait_for_running some-name-source-rs0 3 + local name=some-name-source-rs0 + let last_pod=2 + local check_cluster_readyness=true + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=rs0 + local cluster_name=some-name-source ++ seq 0 2 + for i in $(seq 0 $last_pod) + [[ 0 -eq 2 ]] + wait_pod some-name-source-rs0-0 + local pod=some-name-source-rs0-0 + set +o xtrace waiting for pod/some-name-source-rs0-0 to be ready........OK + for i in $(seq 0 $last_pod) + [[ 1 -eq 2 ]] + wait_pod some-name-source-rs0-1 + local pod=some-name-source-rs0-1 + set +o xtrace waiting for pod/some-name-source-rs0-1 to be ready......OK + for i in $(seq 0 $last_pod) + [[ 2 -eq 2 ]] ++ kubectl_bin get psmdb some-name-source -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.V6u1rmKAN3 +++ mktemp ++ local LAST_ERR=/tmp/tmp.EtuHsuEPXy ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-source -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.V6u1rmKAN3 ++ cat /tmp/tmp.EtuHsuEPXy ++ rm /tmp/tmp.V6u1rmKAN3 /tmp/tmp.EtuHsuEPXy ++ return 0 + [[ '' == \t\r\u\e ]] + wait_pod some-name-source-rs0-2 + local pod=some-name-source-rs0-2 + set +o xtrace waiting for pod/some-name-source-rs0-2 to be ready.....OK ++ kubectl_bin get psmdb some-name-source -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.xsUXgQ4tEs +++ mktemp ++ local LAST_ERR=/tmp/tmp.rBTRQO7WVW ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-source -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.xsUXgQ4tEs ++ cat /tmp/tmp.rBTRQO7WVW ++ rm /tmp/tmp.xsUXgQ4tEs /tmp/tmp.rBTRQO7WVW ++ return 0 + [[ '' == \t\r\u\e ]] ++ kubectl_bin get psmdb some-name-source -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.XexaG2oFWi +++ mktemp ++ local LAST_ERR=/tmp/tmp.q3ie1h27fY ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name-source -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.XexaG2oFWi ++ cat /tmp/tmp.q3ie1h27fY ++ rm /tmp/tmp.XexaG2oFWi /tmp/tmp.q3ie1h27fY ++ return 0 + [[ '' == \t\r\u\e ]] + sleep 10 + [[ true == \t\r\u\e ]] + set +x Waiting for cluster readyness...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................