++ echo 'Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/e2e-tests/logs/mongod-major-upgrade-sharded.log' Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/e2e-tests/logs/mongod-major-upgrade-sharded.log ++ '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/e2e-tests/conf/cloud-secret.yml ']' ++ SKIP_BACKUPS_TO_AWS_GCP_AZURE= ++ oc get projects ++ kubectl get nodes ++ grep '^minikube' +++ kubectl version -o json +++ grep '\-eks\-' +++ jq -r .serverVersion.gitVersion WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1 ++ '[' ']' ++ EKS=0 +++ kubectl version -o json +++ jq -r .serverVersion.gitVersion +++ grep gke WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1 ++ '[' v1.26.15-gke.1381000 ']' ++ GKE=1 +++ kubectl version -o json +++ jq -r '.serverVersion.major + "." + .serverVersion.minor' +++ /usr/bin/sed -r 's/[^0-9.]+//g' WARNING: version difference between client (1.30) and server (1.26) exceeds the supported minor version skew of +/-1 ++ KUBE_VERSION=1.26 + set_debug + [[ 1 == 1 ]] + set -o xtrace + main + rbac=rbac + '[' -n psmdb-operator ']' + rbac=cw-rbac + create_infra mongod-major-upgrade-sharded-29637 + local ns=mongod-major-upgrade-sharded-29637 + 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-1552/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.xx0tqA0SQa ++ mktemp + local LAST_ERR=/tmp/tmp.N0cA262mp3 + 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-1552/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.xx0tqA0SQa 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.N0cA262mp3 + rm /tmp/tmp.xx0tqA0SQa /tmp/tmp.N0cA262mp3 + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml ++ grep -v '\-\-\-' + 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.2ITSNJ4Pbu ++ mktemp + local LAST_ERR=/tmp/tmp.gRwAte5uiP + 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.2ITSNJ4Pbu + cat /tmp/tmp.gRwAte5uiP + rm /tmp/tmp.2ITSNJ4Pbu /tmp/tmp.gRwAte5uiP + 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.ir6sAK6soR ++ mktemp + local LAST_ERR=/tmp/tmp.SsuQCxEzz4 + 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.ir6sAK6soR + cat /tmp/tmp.SsuQCxEzz4 + rm /tmp/tmp.ir6sAK6soR /tmp/tmp.SsuQCxEzz4 + return 0 + for crd_name in '$(yq eval '\''.metadata.name'\'' "${src_dir}/deploy/crd.yaml" | grep -v '\''\-\-\-'\'')' + kubectl get perconaservermongodbs.psmdb.percona.com --all-namespaces -o wide + grep -v NAMESPACE + xargs -L 1 sh -xc 'kubectl patch perconaservermongodbs.psmdb.percona.com -n $0 $1 --type=merge -p "{\"metadata\":{\"finalizers\":[]}}"' error: the server doesn't have a resource type "perconaservermongodbs" + kubectl patch perconaservermongodbs.psmdb.percona.com -n sh --type=merge -p '{"metadata":{"finalizers":[]}}' error: the server doesn't have a resource type "perconaservermongodbs" + : + kubectl_bin wait --for=delete crd perconaservermongodbs.psmdb.percona.com ++ mktemp + local LAST_OUT=/tmp/tmp.sIewVEo2Ti ++ mktemp + local LAST_ERR=/tmp/tmp.bjeFsytpR6 + 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.sIewVEo2Ti + cat /tmp/tmp.bjeFsytpR6 + rm /tmp/tmp.sIewVEo2Ti /tmp/tmp.bjeFsytpR6 + 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-1552/deploy/cw-rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.wDcU0f3URB ++ mktemp + local LAST_ERR=/tmp/tmp.O8xp0Mf182 + 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-1552/deploy/cw-rbac.yaml --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.wDcU0f3URB 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.O8xp0Mf182 + rm /tmp/tmp.wDcU0f3URB /tmp/tmp.O8xp0Mf182 + return 0 + check_crd_for_deletion PR-1552-a008e872 + local git_tag=PR-1552-a008e872 ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-1552-a008e872/deploy/crd.yaml ++ yq eval .metadata.name ++ /usr/bin/sed s/---//g ++ /usr/bin/sed ':a;N;$!ba;s/\n/ /g' + for crd_name in '$(curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/${git_tag}/deploy/crd.yaml | yq eval '\''.metadata.name'\'' | $sed '\''s/---//g'\'' | $sed '\'':a;N;$!ba;s/\n/ /g'\'')' ++ kubectl_bin get crd/null -o 'jsonpath={.status.conditions[-1].type}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.biYsZMJxOO +++ mktemp ++ local LAST_ERR=/tmp/tmp.CFTTpmAJj2 ++ 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.biYsZMJxOO ++ cat /tmp/tmp.CFTTpmAJj2 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.biYsZMJxOO ++ cat /tmp/tmp.CFTTpmAJj2 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.biYsZMJxOO ++ cat /tmp/tmp.CFTTpmAJj2 Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 8 ++ cat /tmp/tmp.biYsZMJxOO ++ cat /tmp/tmp.CFTTpmAJj2 Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.biYsZMJxOO /tmp/tmp.CFTTpmAJj2 ++ 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 ++ sed s/NAMESPACE// ++ awk '-F ' '{print $2}' + 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 + awk '{print$1}' + '[' -n '' ']' + desc 'cleaned up old namespaces psmdb-operator' + xargs kubectl delete ns + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces psmdb-operator ----------------------------------------------------------------------------------- + kubectl_bin delete namespace psmdb-operator --ignore-not-found + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|gke-mcs|^NAME' ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.pQfeWWfLMW + local LAST_OUT=/tmp/tmp.Rm8o9IICDP ++ mktemp + local LAST_ERR=/tmp/tmp.tGOQrnNs12 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get ns ++ mktemp + local LAST_ERR=/tmp/tmp.W23sO6EUkF + local exit_status=0 + local timeout=4 ++ 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.pQfeWWfLMW + cat /tmp/tmp.tGOQrnNs12 + rm /tmp/tmp.pQfeWWfLMW /tmp/tmp.tGOQrnNs12 + return 0 namespace "mongod-major-upgrade-sharded-20930" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Rm8o9IICDP namespace "psmdb-operator" deleted + cat /tmp/tmp.W23sO6EUkF + rm /tmp/tmp.Rm8o9IICDP /tmp/tmp.W23sO6EUkF + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.CFK3l4kDkB ++ mktemp + local LAST_ERR=/tmp/tmp.adDAuIejVg + 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.CFK3l4kDkB + cat /tmp/tmp.adDAuIejVg + rm /tmp/tmp.CFK3l4kDkB /tmp/tmp.adDAuIejVg + 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.B8eA0SyVTy ++ mktemp + local LAST_ERR=/tmp/tmp.NINNzCvU0S + 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.B8eA0SyVTy namespace/psmdb-operator created + cat /tmp/tmp.NINNzCvU0S + rm /tmp/tmp.B8eA0SyVTy /tmp/tmp.NINNzCvU0S + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.wjXN3NHOLk +++ mktemp ++ local LAST_ERR=/tmp/tmp.1mYUApsuHe ++ 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.wjXN3NHOLk ++ cat /tmp/tmp.1mYUApsuHe ++ rm /tmp/tmp.wjXN3NHOLk /tmp/tmp.1mYUApsuHe ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1552-a008e872-2-cluster3 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.ewAHidvVh7 ++ mktemp + local LAST_ERR=/tmp/tmp.9RYvV2VXLL + 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-1552-a008e872-2-cluster3 --namespace=psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ewAHidvVh7 Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1552-a008e872-2-cluster3" modified. + cat /tmp/tmp.9RYvV2VXLL + rm /tmp/tmp.ewAHidvVh7 /tmp/tmp.9RYvV2VXLL + return 0 + deploy_operator + desc 'start PSMDB operator' + set +o xtrace ----------------------------------------------------------------------------------- start PSMDB operator ----------------------------------------------------------------------------------- + local cr_file + '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/e2e-tests/mongod-major-upgrade-sharded/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.rVLGIAVs0K ++ mktemp + local LAST_ERR=/tmp/tmp.nAec2rSLiX + 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-1552/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.rVLGIAVs0K 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.nAec2rSLiX + rm /tmp/tmp.rVLGIAVs0K /tmp/tmp.nAec2rSLiX + 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-1552/deploy/cw-rbac.yaml + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.55Uhydya6x ++ mktemp + local LAST_ERR=/tmp/tmp.OhLTQnRLUE + 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.55Uhydya6x 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.OhLTQnRLUE + rm /tmp/tmp.55Uhydya6x /tmp/tmp.OhLTQnRLUE + return 0 + kubectl_bin apply -f - + yq eval ' (.spec.template.spec.containers[].image = "perconalab/percona-server-mongodb-operator:PR-1552-a008e872") | ((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") | ((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/deploy/cw-operator.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.LoMlYqdRvf ++ mktemp + local LAST_ERR=/tmp/tmp.8xv8PEgZvJ + 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.LoMlYqdRvf deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.8xv8PEgZvJ + rm /tmp/tmp.LoMlYqdRvf /tmp/tmp.8xv8PEgZvJ + return 0 + sleep 2 ++ 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.weoC9COXV5 +++ mktemp ++ local LAST_ERR=/tmp/tmp.qCeYfFhLNS ++ 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.weoC9COXV5 ++ cat /tmp/tmp.qCeYfFhLNS ++ rm /tmp/tmp.weoC9COXV5 /tmp/tmp.qCeYfFhLNS ++ return 0 + wait_pod percona-server-mongodb-operator-5575c6d57c-txxvq + local pod=percona-server-mongodb-operator-5575c6d57c-txxvq + set +o xtrace waiting for pod/percona-server-mongodb-operator-5575c6d57c-txxvq to be ready.OK + create_namespace mongod-major-upgrade-sharded-29637 + local namespace=mongod-major-upgrade-sharded-29637 + 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 + '[' -n '' ']' ++ mktemp + desc 'cleaned up old namespaces mongod-major-upgrade-sharded-29637' + xargs kubectl delete ns + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces mongod-major-upgrade-sharded-29637 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace mongod-major-upgrade-sharded-29637 --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.zFoPMG2aPH + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|gke-mcs|^NAME' ++ mktemp + local LAST_OUT=/tmp/tmp.F9arcvVklc ++ mktemp + local LAST_ERR=/tmp/tmp.tINYfCLt7v + local exit_status=0 + local timeout=4 ++ seq 0 2 + local LAST_ERR=/tmp/tmp.EanjLyVZ2C + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl get ns + for i in '$(seq 0 2)' + set +e + kubectl delete namespace mongod-major-upgrade-sharded-29637 --ignore-not-found + awk '{print$1}' + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.zFoPMG2aPH + cat /tmp/tmp.tINYfCLt7v + rm /tmp/tmp.zFoPMG2aPH /tmp/tmp.tINYfCLt7v + return 0 error: resource(s) were provided, but no name was specified + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.F9arcvVklc + cat /tmp/tmp.EanjLyVZ2C + rm /tmp/tmp.F9arcvVklc /tmp/tmp.EanjLyVZ2C + return 0 + kubectl_bin wait --for=delete namespace mongod-major-upgrade-sharded-29637 ++ mktemp + local LAST_OUT=/tmp/tmp.IlZ4hjZ8i3 ++ mktemp + local LAST_ERR=/tmp/tmp.zRuru4cX6k + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl wait --for=delete namespace mongod-major-upgrade-sharded-29637 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.IlZ4hjZ8i3 + cat /tmp/tmp.zRuru4cX6k + rm /tmp/tmp.IlZ4hjZ8i3 /tmp/tmp.zRuru4cX6k + return 0 + desc 'create namespace mongod-major-upgrade-sharded-29637' + set +o xtrace ----------------------------------------------------------------------------------- create namespace mongod-major-upgrade-sharded-29637 ----------------------------------------------------------------------------------- + kubectl_bin create namespace mongod-major-upgrade-sharded-29637 ++ mktemp + local LAST_OUT=/tmp/tmp.QkMQcKG8Zu ++ mktemp + local LAST_ERR=/tmp/tmp.hukwEZ9Pts + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in '$(seq 0 2)' + set +e + kubectl create namespace mongod-major-upgrade-sharded-29637 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.QkMQcKG8Zu namespace/mongod-major-upgrade-sharded-29637 created + cat /tmp/tmp.hukwEZ9Pts + rm /tmp/tmp.QkMQcKG8Zu /tmp/tmp.hukwEZ9Pts + return 0 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.aIYf8nKrhW +++ mktemp ++ local LAST_ERR=/tmp/tmp.brHYArwdjY ++ 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.aIYf8nKrhW ++ cat /tmp/tmp.brHYArwdjY ++ rm /tmp/tmp.aIYf8nKrhW /tmp/tmp.brHYArwdjY ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-1552-a008e872-2-cluster3 --namespace=mongod-major-upgrade-sharded-29637 ++ mktemp + local LAST_OUT=/tmp/tmp.3PYkhv93gH ++ mktemp + local LAST_ERR=/tmp/tmp.DBMssCXhQR + 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-1552-a008e872-2-cluster3 --namespace=mongod-major-upgrade-sharded-29637 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.3PYkhv93gH Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-1552-a008e872-2-cluster3" modified. + cat /tmp/tmp.DBMssCXhQR + rm /tmp/tmp.3PYkhv93gH /tmp/tmp.DBMssCXhQR + 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-1552/e2e-tests/conf/minio-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/e2e-tests/conf/cloud-secret.yml ++ mktemp + local LAST_OUT=/tmp/tmp.dzr3IWyBFX ++ mktemp + local LAST_ERR=/tmp/tmp.6vomuW4xts + 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-1552/e2e-tests/conf/minio-secret.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/e2e-tests/conf/cloud-secret.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.dzr3IWyBFX secret/minio-secret created secret/aws-s3-secret created secret/gcp-cs-secret created secret/azure-secret created + cat /tmp/tmp.6vomuW4xts + rm /tmp/tmp.dzr3IWyBFX /tmp/tmp.6vomuW4xts + return 0 + kubectl_bin apply -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/e2e-tests/conf/secrets.yml ++ mktemp + local LAST_OUT=/tmp/tmp.uVqlhKHtTY ++ mktemp + local LAST_ERR=/tmp/tmp.c79uf6DSy6 + 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-1552/e2e-tests/conf/client.yml -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/e2e-tests/conf/secrets.yml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.uVqlhKHtTY deployment.apps/psmdb-client created secret/some-users created + cat /tmp/tmp.c79uf6DSy6 + rm /tmp/tmp.uVqlhKHtTY /tmp/tmp.c79uf6DSy6 + return 0 + desc 'install version service' + set +o xtrace ----------------------------------------------------------------------------------- install version service ----------------------------------------------------------------------------------- + cp /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/e2e-tests/mongod-major-upgrade-sharded/conf/operator.main.psmdb-operator.dep.json /tmp/tmp.6aK7YrCmPI/operator.1.17.0.psmdb-operator.dep.json + generate_vs_json /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/e2e-tests/mongod-major-upgrade-sharded/conf/operator.main.psmdb-operator.json /tmp/tmp.6aK7YrCmPI/operator.1.17.0.psmdb-operator.json + local template_path=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/e2e-tests/mongod-major-upgrade-sharded/conf/operator.main.psmdb-operator.json + local target_path=/tmp/tmp.6aK7YrCmPI/operator.1.17.0.psmdb-operator.json ++ jq '.versions[0].operator="1.17.0"' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-1552/e2e-tests/mongod-major-upgrade-sharded/conf/operator.main.psmdb-operator.json + local 'version_service_source={ "versions": [ { "operator": "1.17.0", "product": "psmdb-operator", "matrix": { "mongod": {}, "pmm": { "2.27.0": { "image_path": "percona/pmm-client:2.27.0", "image_hash": "4f4d4508afe4ef3b5d72e2ebec6485be84204902b0b2b23c3a9e7c2fe4726884", "status": "recommended", "critical": false } }, "backup": {}, "operator": {} } } ] }' + for image_mongod in '${IMAGE_MONGOD_CHAIN[@]}' ++ get_mongod_ver_from_image perconalab/percona-server-mongodb-operator:main-mongod5.0 ++ local image=perconalab/percona-server-mongodb-operator:main-mongod5.0 +++ run_simple_cli_inside_image perconalab/percona-server-mongodb-operator:main-mongod5.0 'mongod --version' +++ local image=perconalab/percona-server-mongodb-operator:main-mongod5.0 +++ /usr/bin/sed -r 's/^.*db version v(([0-9]+\.){2}[0-9]+-[0-9]+).*$/\1/g' +++ local 'cli=mongod --version' +++ local pod_name=16456 +++ kubectl_bin -n default run 16456 --image=perconalab/percona-server-mongodb-operator:main-mongod5.0 --restart=Never --command -- sleep infinity ++++ mktemp +++ local LAST_OUT=/tmp/tmp.gUQZ35fCh0 ++++ mktemp +++ local LAST_ERR=/tmp/tmp.FVqP6s9idV +++ local exit_status=0 +++ local timeout=4 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl -n default run 16456 --image=perconalab/percona-server-mongodb-operator:main-mongod5.0 --restart=Never --command -- sleep infinity +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 -a -n 1 ']' +++ break +++ cat /tmp/tmp.gUQZ35fCh0 +++ cat /tmp/tmp.FVqP6s9idV +++ rm /tmp/tmp.gUQZ35fCh0 /tmp/tmp.FVqP6s9idV +++ return 0 +++ kubectl_bin -n default wait --for=condition=Ready pod/16456 ++++ mktemp +++ local LAST_OUT=/tmp/tmp.EIfCQlOaFS ++++ mktemp +++ local LAST_ERR=/tmp/tmp.33bWuAhL8w +++ local exit_status=0 +++ local timeout=4 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl -n default wait --for=condition=Ready pod/16456 +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 -a -n 1 ']' +++ break +++ cat /tmp/tmp.EIfCQlOaFS +++ cat /tmp/tmp.33bWuAhL8w +++ rm /tmp/tmp.EIfCQlOaFS /tmp/tmp.33bWuAhL8w +++ return 0 ++++ kubectl_bin -n default exec 16456 -- mongod --version +++++ mktemp ++++ local LAST_OUT=/tmp/tmp.Yh3Ru6lamc +++++ mktemp ++++ local LAST_ERR=/tmp/tmp.e86glSlhzn ++++ local exit_status=0 ++++ local timeout=4 +++++ seq 0 2 ++++ for i in '$(seq 0 2)' ++++ set +e ++++ kubectl -n default exec 16456 -- mongod --version ++++ exit_status=1 ++++ set -e ++++ '[' 1 '!=' 0 -a -n 1 ']' ++++ cat /tmp/tmp.Yh3Ru6lamc ++++ cat /tmp/tmp.e86glSlhzn Error from server: error dialing backend: dial tcp 10.210.0.89:10250: i/o timeout ++++ sleep 0 ++++ for i in '$(seq 0 2)' ++++ set +e ++++ kubectl -n default exec 16456 -- mongod --version ++++ exit_status=1 ++++ set -e ++++ '[' 1 '!=' 0 -a -n 1 ']' ++++ cat /tmp/tmp.Yh3Ru6lamc ++++ cat /tmp/tmp.e86glSlhzn Error from server: error dialing backend: dial tcp 10.210.0.89:10250: i/o timeout ++++ sleep 4 ++++ for i in '$(seq 0 2)' ++++ set +e ++++ kubectl -n default exec 16456 -- mongod --version ++++ exit_status=1 ++++ set -e ++++ '[' 1 '!=' 0 -a -n 1 ']' ++++ cat /tmp/tmp.Yh3Ru6lamc ++++ cat /tmp/tmp.e86glSlhzn Error from server: error dialing backend: dial tcp 10.210.0.89:10250: i/o timeout ++++ sleep 8 ++++ cat /tmp/tmp.Yh3Ru6lamc ++++ cat /tmp/tmp.e86glSlhzn Error from server: error dialing backend: dial tcp 10.210.0.89:10250: i/o timeout ++++ rm /tmp/tmp.Yh3Ru6lamc /tmp/tmp.e86glSlhzn ++++ return 1 +++ local output= +++ kubectl_bin -n default delete pod/16456 --grace-period=0 --force ++++ mktemp +++ local LAST_OUT=/tmp/tmp.A2lBrNlHIE ++++ mktemp +++ local LAST_ERR=/tmp/tmp.ADGiSEMVJO +++ local exit_status=0 +++ local timeout=4 ++++ seq 0 2 +++ for i in '$(seq 0 2)' +++ set +e +++ kubectl -n default delete pod/16456 --grace-period=0 --force +++ exit_status=0 +++ set -e +++ '[' 0 '!=' 0 -a -n 1 ']' +++ break +++ cat /tmp/tmp.A2lBrNlHIE +++ cat /tmp/tmp.ADGiSEMVJO Warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. +++ rm /tmp/tmp.A2lBrNlHIE /tmp/tmp.ADGiSEMVJO +++ return 0 +++ echo ++ version_info= ++ [[ ! '' =~ ^([0-9]+\.){2}[0-9]+-[0-9]+$ ]] ++ printf 'No mongod version obtained from %s. Exiting' perconalab/percona-server-mongodb-operator:main-mongod5.0 ++ exit 1 + current_mongod_version='No mongod version obtained from perconalab/percona-server-mongodb-operator:main-mongod5.0. Exiting'