Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2276/e2e-tests/logs/stable-resource-version.log Warning: version difference between client (1.35) and server (1.32) exceeds the supported minor version skew of +/-1 Warning: version difference between client (1.35) and server (1.32) exceeds the supported minor version skew of +/-1 Warning: version difference between client (1.35) and server (1.32) exceeds the supported minor version skew of +/-1 + cluster=some-name + create_infra stable-resource-version-8786 + local ns=stable-resource-version-8786 + [[ 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-2276/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.XTvp7m8r4e ++ mktemp + local LAST_ERR=/tmp/tmp.WSBVwKj0vv + 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-2276/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.XTvp7m8r4e 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.WSBVwKj0vv + rm /tmp/tmp.XTvp7m8r4e /tmp/tmp.WSBVwKj0vv + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2276/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.VqPcM7OFT5 ++ mktemp + local LAST_ERR=/tmp/tmp.aPYlH7Nom7 + 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.VqPcM7OFT5 + cat /tmp/tmp.aPYlH7Nom7 + rm /tmp/tmp.VqPcM7OFT5 /tmp/tmp.aPYlH7Nom7 + 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.wfhbrSuJ3s ++ mktemp + local LAST_ERR=/tmp/tmp.GhkOEpk25Z + 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.wfhbrSuJ3s + cat /tmp/tmp.GhkOEpk25Z + rm /tmp/tmp.wfhbrSuJ3s /tmp/tmp.GhkOEpk25Z + 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.h9yrD9K1Cx ++ mktemp + local LAST_ERR=/tmp/tmp.njrVMHgXWY + 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.h9yrD9K1Cx + cat /tmp/tmp.njrVMHgXWY + rm /tmp/tmp.h9yrD9K1Cx /tmp/tmp.njrVMHgXWY + 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-2276/deploy/cw-rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.TW3mh6rUXE ++ mktemp + local LAST_ERR=/tmp/tmp.oXuFWCvJSp + 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-2276/deploy/cw-rbac.yaml --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.TW3mh6rUXE 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.oXuFWCvJSp + rm /tmp/tmp.TW3mh6rUXE /tmp/tmp.oXuFWCvJSp + return 0 + check_crd_for_deletion PR-2276-96813772 + local git_tag=PR-2276-96813772 ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-2276-96813772/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.oGYNbOJbWc +++ mktemp ++ local LAST_ERR=/tmp/tmp.0Jhb15Oc8c ++ 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.oGYNbOJbWc ++ cat /tmp/tmp.0Jhb15Oc8c 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.oGYNbOJbWc ++ cat /tmp/tmp.0Jhb15Oc8c 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.oGYNbOJbWc ++ cat /tmp/tmp.0Jhb15Oc8c Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 8 ++ cat /tmp/tmp.oGYNbOJbWc ++ cat /tmp/tmp.0Jhb15Oc8c Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.oGYNbOJbWc /tmp/tmp.0Jhb15Oc8c ++ 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}' ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ 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 + grep -E -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + 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 ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.B2hC2KrAPm ++ mktemp + local LAST_OUT=/tmp/tmp.FQcqt0IuRT + local LAST_ERR=/tmp/tmp.lYQelH2byB + local exit_status=0 + local timeout=4 ++ seq 0 2 ++ mktemp + for i in $(seq 0 2) + set +e + kubectl delete namespace psmdb-operator --ignore-not-found + local LAST_ERR=/tmp/tmp.QvNvw5vWuY + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl get ns + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.FQcqt0IuRT + cat /tmp/tmp.QvNvw5vWuY + rm /tmp/tmp.FQcqt0IuRT /tmp/tmp.QvNvw5vWuY + return 0 namespace "stable-resource-version-22704" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.B2hC2KrAPm namespace "psmdb-operator" deleted + cat /tmp/tmp.lYQelH2byB + rm /tmp/tmp.B2hC2KrAPm /tmp/tmp.lYQelH2byB + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.zfYCGJzpNv ++ mktemp + local LAST_ERR=/tmp/tmp.ZwCiWdU5lM + 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.zfYCGJzpNv + cat /tmp/tmp.ZwCiWdU5lM + rm /tmp/tmp.zfYCGJzpNv /tmp/tmp.ZwCiWdU5lM + 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.5kHcyFaL16 ++ mktemp + local LAST_ERR=/tmp/tmp.KEKBeWz3eo + 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.5kHcyFaL16 namespace/psmdb-operator created + cat /tmp/tmp.KEKBeWz3eo + rm /tmp/tmp.5kHcyFaL16 /tmp/tmp.KEKBeWz3eo + return 0 + set_kube_ctx psmdb-operator + local namespace=psmdb-operator ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.W8Jpcp6KVN +++ mktemp ++ local LAST_ERR=/tmp/tmp.xXzvgr7Wpu ++ 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.W8Jpcp6KVN ++ cat /tmp/tmp.xXzvgr7Wpu ++ rm /tmp/tmp.W8Jpcp6KVN /tmp/tmp.xXzvgr7Wpu ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2276-96813772-6-cluster15 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.6ipOOjZIFR ++ mktemp + local LAST_ERR=/tmp/tmp.ooHQ5n6AhD + 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-2276-96813772-6-cluster15 --namespace=psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.6ipOOjZIFR Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2276-96813772-6-cluster15" modified. + cat /tmp/tmp.ooHQ5n6AhD + rm /tmp/tmp.6ipOOjZIFR /tmp/tmp.ooHQ5n6AhD + return 0 + deploy_operator + desc 'start PSMDB operator: docker.io/perconalab/percona-server-mongodb-operator:PR-2276-96813772' + set +o xtrace ----------------------------------------------------------------------------------- start PSMDB operator: docker.io/perconalab/percona-server-mongodb-operator:PR-2276-96813772 ----------------------------------------------------------------------------------- + local cr_file + '[' -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2276/e2e-tests/stable-resource-version/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2276/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2276/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.tbJbd5c9Si ++ mktemp + local LAST_ERR=/tmp/tmp.ok14re1deu + 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-2276/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.tbJbd5c9Si 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.ok14re1deu + rm /tmp/tmp.tbJbd5c9Si /tmp/tmp.ok14re1deu + 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-2276/deploy/cw-rbac.yaml + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.Bx3RXvTU3F ++ mktemp + local LAST_ERR=/tmp/tmp.FmhKUj9TVW + 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.Bx3RXvTU3F 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.FmhKUj9TVW + rm /tmp/tmp.Bx3RXvTU3F /tmp/tmp.FmhKUj9TVW + return 0 + yq eval ' (.spec.template.spec.containers[].image = "docker.io/perconalab/percona-server-mongodb-operator:PR-2276-96813772") | ((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") | ((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2276/deploy/cw-operator.yaml + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.qQCkuRwPoe ++ mktemp + local LAST_ERR=/tmp/tmp.ayqimO9lR6 + 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.qQCkuRwPoe deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.ayqimO9lR6 + rm /tmp/tmp.qQCkuRwPoe /tmp/tmp.ayqimO9lR6 + 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.RXtMGPtHTE +++ mktemp ++ local LAST_ERR=/tmp/tmp.7LtZZ4tSb8 ++ 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.RXtMGPtHTE ++ cat /tmp/tmp.7LtZZ4tSb8 ++ rm /tmp/tmp.RXtMGPtHTE /tmp/tmp.7LtZZ4tSb8 ++ return 0 + wait_operator_pod percona-server-mongodb-operator-74b4cf489c-5zwwq + local pod=percona-server-mongodb-operator-74b4cf489c-5zwwq + set +o xtrace waiting for pod/percona-server-mongodb-operator-74b4cf489c-5zwwq 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.h9vknMzzWB +++ mktemp ++ local LAST_ERR=/tmp/tmp.W0yv49BAbd ++ 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.h9vknMzzWB ++ cat /tmp/tmp.W0yv49BAbd ++ rm /tmp/tmp.h9vknMzzWB /tmp/tmp.W0yv49BAbd ++ return 0 + kubectl_bin logs -n psmdb-operator percona-server-mongodb-operator-74b4cf489c-5zwwq ++ mktemp + local LAST_OUT=/tmp/tmp.2W8AJYcXkO ++ mktemp + local LAST_ERR=/tmp/tmp.V7yppescNR + 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-74b4cf489c-5zwwq + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.2W8AJYcXkO + cat /tmp/tmp.V7yppescNR + rm /tmp/tmp.2W8AJYcXkO /tmp/tmp.V7yppescNR + return 0 2026-03-26T09:49:44.865Z INFO setup Manager starting up {"gitCommit": "96813772af244cf39192467fc2e61f90dca8c3cb", "gitBranch": "PR-2276-96813772", "buildTime": "", "goVersion": "go1.25.8", "os": "linux", "arch": "amd64"} + create_namespace stable-resource-version-8786 + local namespace=stable-resource-version-8786 + 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 + grep -E -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + awk '{print$1}' ++ mktemp + local LAST_OUT=/tmp/tmp.jtIOGMtgil ++ mktemp + '[' -n '' ']' + desc 'cleaned up old namespaces stable-resource-version-8786' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces stable-resource-version-8786 ----------------------------------------------------------------------------------- + kubectl_bin delete namespace stable-resource-version-8786 --ignore-not-found + xargs kubectl delete ns + local LAST_ERR=/tmp/tmp.LRCKynzJO6 + local exit_status=0 + local timeout=4 ++ seq 0 2 ++ mktemp + for i in $(seq 0 2) + set +e + kubectl get ns + local LAST_OUT=/tmp/tmp.PpKRTMmhLn ++ mktemp + local LAST_ERR=/tmp/tmp.GhJWsj1U3Y + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete namespace stable-resource-version-8786 --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.jtIOGMtgil + cat /tmp/tmp.LRCKynzJO6 + rm /tmp/tmp.jtIOGMtgil /tmp/tmp.LRCKynzJO6 + 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.PpKRTMmhLn + cat /tmp/tmp.GhJWsj1U3Y + rm /tmp/tmp.PpKRTMmhLn /tmp/tmp.GhJWsj1U3Y + return 0 + kubectl_bin wait --for=delete namespace stable-resource-version-8786 ++ mktemp + local LAST_OUT=/tmp/tmp.jFI34dhObM ++ mktemp + local LAST_ERR=/tmp/tmp.hwkxIrHZ9G + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl wait --for=delete namespace stable-resource-version-8786 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.jFI34dhObM + cat /tmp/tmp.hwkxIrHZ9G + rm /tmp/tmp.jFI34dhObM /tmp/tmp.hwkxIrHZ9G + return 0 + desc 'create namespace stable-resource-version-8786' + set +o xtrace ----------------------------------------------------------------------------------- create namespace stable-resource-version-8786 ----------------------------------------------------------------------------------- + kubectl_bin create namespace stable-resource-version-8786 ++ mktemp + local LAST_OUT=/tmp/tmp.PKnk51LQz9 ++ mktemp + local LAST_ERR=/tmp/tmp.yatWQkxYHH + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl create namespace stable-resource-version-8786 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.PKnk51LQz9 namespace/stable-resource-version-8786 created + cat /tmp/tmp.yatWQkxYHH + rm /tmp/tmp.PKnk51LQz9 /tmp/tmp.yatWQkxYHH + return 0 + set_kube_ctx stable-resource-version-8786 + local namespace=stable-resource-version-8786 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.85mjWKEjoi +++ mktemp ++ local LAST_ERR=/tmp/tmp.J0gRHjnJUn ++ 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.85mjWKEjoi ++ cat /tmp/tmp.J0gRHjnJUn ++ rm /tmp/tmp.85mjWKEjoi /tmp/tmp.J0gRHjnJUn ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2276-96813772-6-cluster15 --namespace=stable-resource-version-8786 ++ mktemp + local LAST_OUT=/tmp/tmp.dr24qkqP7E ++ mktemp + local LAST_ERR=/tmp/tmp.g3NU7bRljh + 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-2276-96813772-6-cluster15 --namespace=stable-resource-version-8786 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.dr24qkqP7E Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2276-96813772-6-cluster15" modified. + cat /tmp/tmp.g3NU7bRljh + rm /tmp/tmp.dr24qkqP7E /tmp/tmp.g3NU7bRljh + return 0 + desc 'create PSMDB cluster some-name' + set +o xtrace ----------------------------------------------------------------------------------- create PSMDB cluster some-name ----------------------------------------------------------------------------------- + apply_cluster /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2276/e2e-tests/stable-resource-version/conf/some-name.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2276/e2e-tests/stable-resource-version/conf/some-name.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2276/e2e-tests/stable-resource-version/conf/some-name.yml + yq eval '(.spec | select(.image == null)).image = "docker.io/perconalab/percona-server-mongodb-operator:main-mongod8.0"' ++ mktemp + yq eval '(.spec | select(has("pmm"))).pmm.image = "docker.io/percona/pmm-client:2.44.1-1"' + local LAST_OUT=/tmp/tmp.pMmlY5tysa + yq eval '(.spec | select(has("initImage"))).initImage = "docker.io/perconalab/percona-server-mongodb-operator:PR-2276-96813772"' ++ mktemp + local LAST_ERR=/tmp/tmp.PSp3kxLdbg + local exit_status=0 + local timeout=4 + /usr/sbin/sed -e s/NAME_SPACE/stable-resource-version-8786/g + yq eval '.spec.upgradeOptions.apply="Never"' + yq eval '(.spec | select(has("backup"))).backup.image = "docker.io/perconalab/percona-server-mongodb-operator:main-backup"' ++ 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.pMmlY5tysa perconaservermongodb.psmdb.percona.com/some-name created + cat /tmp/tmp.PSp3kxLdbg + rm /tmp/tmp.pMmlY5tysa /tmp/tmp.PSp3kxLdbg + return 0 + desc 'check if all pods started' + set +o xtrace ----------------------------------------------------------------------------------- check if all pods started ----------------------------------------------------------------------------------- + wait_for_running some-name-rs0 3 false + local name=some-name-rs0 + let last_pod=2 + local check_cluster_readyness=false + 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.zwu8YmPoXH +++ mktemp ++ local LAST_ERR=/tmp/tmp.ia4FWt1gDo ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.zwu8YmPoXH ++ cat /tmp/tmp.ia4FWt1gDo ++ rm /tmp/tmp.zwu8YmPoXH /tmp/tmp.ia4FWt1gDo ++ return 0 + [[ '' == \t\r\u\e ]] + 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.UYZbbx4wOj +++ mktemp ++ local LAST_ERR=/tmp/tmp.ALLzpBPfJ9 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.UYZbbx4wOj ++ cat /tmp/tmp.ALLzpBPfJ9 ++ rm /tmp/tmp.UYZbbx4wOj /tmp/tmp.ALLzpBPfJ9 ++ return 0 + [[ '' == \t\r\u\e ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.RkuPO3DL61 +++ mktemp ++ local LAST_ERR=/tmp/tmp.VWUKnPSCHO ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="rs0")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.RkuPO3DL61 ++ cat /tmp/tmp.VWUKnPSCHO ++ rm /tmp/tmp.RkuPO3DL61 /tmp/tmp.VWUKnPSCHO ++ return 0 + [[ '' == \t\r\u\e ]] + sleep 10 + [[ false == \t\r\u\e ]] + wait_for_running some-name-cfg 3 false + local name=some-name-cfg + let last_pod=2 + local check_cluster_readyness=false + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=cfg + local cluster_name=some-name ++ seq 0 2 + for i in $(seq 0 $last_pod) + [[ 0 -eq 2 ]] + wait_pod some-name-cfg-0 + local pod=some-name-cfg-0 + set +o xtrace waiting for pod/some-name-cfg-0 to be ready.OK + for i in $(seq 0 $last_pod) + [[ 1 -eq 2 ]] + wait_pod some-name-cfg-1 + local pod=some-name-cfg-1 + set +o xtrace waiting for pod/some-name-cfg-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=="cfg")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.DqA24Em1eP +++ mktemp ++ local LAST_ERR=/tmp/tmp.nf04lIzqlK ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.DqA24Em1eP ++ cat /tmp/tmp.nf04lIzqlK ++ rm /tmp/tmp.DqA24Em1eP /tmp/tmp.nf04lIzqlK ++ return 0 + [[ '' == \t\r\u\e ]] + wait_pod some-name-cfg-2 + local pod=some-name-cfg-2 + set +o xtrace waiting for pod/some-name-cfg-2 to be ready.OK ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.mlMvXNA5j5 +++ mktemp ++ local LAST_ERR=/tmp/tmp.GtH0dN9WdH ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.mlMvXNA5j5 ++ cat /tmp/tmp.GtH0dN9WdH ++ rm /tmp/tmp.mlMvXNA5j5 /tmp/tmp.GtH0dN9WdH ++ return 0 + [[ '' == \t\r\u\e ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.iraAn68iTh +++ mktemp ++ local LAST_ERR=/tmp/tmp.dZiHIDyYOb ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="cfg")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.iraAn68iTh ++ cat /tmp/tmp.dZiHIDyYOb ++ rm /tmp/tmp.iraAn68iTh /tmp/tmp.dZiHIDyYOb ++ return 0 + [[ '' == \t\r\u\e ]] + sleep 10 + [[ false == \t\r\u\e ]] + wait_for_running some-name-mongos 3 false + local name=some-name-mongos + let last_pod=2 + local check_cluster_readyness=false + set_debug + [[ 1 == 1 ]] + set -o xtrace + local rs_name=mongos + local cluster_name=some-name ++ seq 0 2 + for i in $(seq 0 $last_pod) + [[ 0 -eq 2 ]] + wait_pod some-name-mongos-0 + local pod=some-name-mongos-0 + set +o xtrace waiting for pod/some-name-mongos-0 to be ready.OK + for i in $(seq 0 $last_pod) + [[ 1 -eq 2 ]] + wait_pod some-name-mongos-1 + local pod=some-name-mongos-1 + set +o xtrace waiting for pod/some-name-mongos-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=="mongos")].arbiter.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.B6pWFzUME3 +++ mktemp ++ local LAST_ERR=/tmp/tmp.E1vRQjJ9ci ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].arbiter.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.B6pWFzUME3 ++ cat /tmp/tmp.E1vRQjJ9ci ++ rm /tmp/tmp.B6pWFzUME3 /tmp/tmp.E1vRQjJ9ci ++ return 0 + [[ '' == \t\r\u\e ]] + wait_pod some-name-mongos-2 + local pod=some-name-mongos-2 + set +o xtrace waiting for pod/some-name-mongos-2 to be ready...OK ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].nonvoting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.mtmx8ROVQK +++ mktemp ++ local LAST_ERR=/tmp/tmp.Bl4ORTwrNH ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].nonvoting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.mtmx8ROVQK ++ cat /tmp/tmp.Bl4ORTwrNH ++ rm /tmp/tmp.mtmx8ROVQK /tmp/tmp.Bl4ORTwrNH ++ return 0 + [[ '' == \t\r\u\e ]] ++ kubectl_bin get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].hidden.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.XQhrnc6JFu +++ mktemp ++ local LAST_ERR=/tmp/tmp.Xll8C4Tara ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.spec.replsets[?(@.name=="mongos")].hidden.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.XQhrnc6JFu ++ cat /tmp/tmp.Xll8C4Tara ++ rm /tmp/tmp.XQhrnc6JFu /tmp/tmp.Xll8C4Tara ++ return 0 + [[ '' == \t\r\u\e ]] + sleep 10 + [[ false == \t\r\u\e ]] + wait_cluster_consistency some-name + local cluster_name=some-name + local wait_time=32 + retry=0 + sleep 7 + echo -n 'waiting for cluster readyness' waiting for cluster readyness++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.hs8P6Zqdbn +++ mktemp ++ local LAST_ERR=/tmp/tmp.P1XltS1WO1 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.hs8P6Zqdbn ++ cat /tmp/tmp.P1XltS1WO1 ++ rm /tmp/tmp.hs8P6Zqdbn /tmp/tmp.P1XltS1WO1 ++ return 0 + [[ initializing == \r\e\a\d\y ]] + let retry+=1 + '[' 1 -ge 32 ']' + echo -n . .+ sleep 10 ++ kubectl_bin get psmdb some-name -o 'jsonpath={.status.state}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.vWHwa1UfKi +++ mktemp ++ local LAST_ERR=/tmp/tmp.4e2Ibfylsu ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.status.state}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.vWHwa1UfKi ++ cat /tmp/tmp.4e2Ibfylsu ++ rm /tmp/tmp.vWHwa1UfKi /tmp/tmp.4e2Ibfylsu ++ return 0 + [[ ready == \r\e\a\d\y ]] + echo .OK .OK + desc 'check if .metadata.resourceVersion is stable' + set +o xtrace ----------------------------------------------------------------------------------- check if .metadata.resourceVersion is stable ----------------------------------------------------------------------------------- ++ kubectl_bin get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.fI35Ezmo0d +++ mktemp ++ local LAST_ERR=/tmp/tmp.iBQTobHkw0 ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.fI35Ezmo0d ++ cat /tmp/tmp.iBQTobHkw0 ++ rm /tmp/tmp.fI35Ezmo0d /tmp/tmp.iBQTobHkw0 ++ return 0 + initial_resource_version=1774518778313887011 ++ seq 1 5 + for i in $(seq 1 5) + sleep 7 + echo -n 'check 1: expected resourceVersion is 1774518778313887011' check 1: expected resourceVersion is 1774518778313887011++ kubectl_bin get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.xey3vryHZc +++ mktemp ++ local LAST_ERR=/tmp/tmp.S600YwyBhU ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.xey3vryHZc ++ cat /tmp/tmp.S600YwyBhU ++ rm /tmp/tmp.xey3vryHZc /tmp/tmp.S600YwyBhU ++ return 0 + resource_version=1774518778313887011 + [[ 1774518778313887011 != 1774518778313887011 ]] + echo ...OK ...OK + for i in $(seq 1 5) + sleep 7 + echo -n 'check 2: expected resourceVersion is 1774518778313887011' check 2: expected resourceVersion is 1774518778313887011++ kubectl_bin get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.SlhWvgJhWj +++ mktemp ++ local LAST_ERR=/tmp/tmp.HOvveFwRyP ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.SlhWvgJhWj ++ cat /tmp/tmp.HOvveFwRyP ++ rm /tmp/tmp.SlhWvgJhWj /tmp/tmp.HOvveFwRyP ++ return 0 + resource_version=1774518778313887011 + [[ 1774518778313887011 != 1774518778313887011 ]] + echo ...OK ...OK + for i in $(seq 1 5) + sleep 7 + echo -n 'check 3: expected resourceVersion is 1774518778313887011' check 3: expected resourceVersion is 1774518778313887011++ kubectl_bin get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.zYsz0pHNWs +++ mktemp ++ local LAST_ERR=/tmp/tmp.ozbGXyx3Fh ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.zYsz0pHNWs ++ cat /tmp/tmp.ozbGXyx3Fh ++ rm /tmp/tmp.zYsz0pHNWs /tmp/tmp.ozbGXyx3Fh ++ return 0 + resource_version=1774518778313887011 + [[ 1774518778313887011 != 1774518778313887011 ]] + echo ...OK ...OK + for i in $(seq 1 5) + sleep 7 + echo -n 'check 4: expected resourceVersion is 1774518778313887011' check 4: expected resourceVersion is 1774518778313887011++ kubectl_bin get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.meEsTIusNf +++ mktemp ++ local LAST_ERR=/tmp/tmp.fV7ycIoL1j ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.meEsTIusNf ++ cat /tmp/tmp.fV7ycIoL1j ++ rm /tmp/tmp.meEsTIusNf /tmp/tmp.fV7ycIoL1j ++ return 0 + resource_version=1774518778313887011 + [[ 1774518778313887011 != 1774518778313887011 ]] + echo ...OK ...OK + for i in $(seq 1 5) + sleep 7 + echo -n 'check 5: expected resourceVersion is 1774518778313887011' check 5: expected resourceVersion is 1774518778313887011++ kubectl_bin get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.Na7wm0aV8c +++ mktemp ++ local LAST_ERR=/tmp/tmp.JbUFQ6okYX ++ local exit_status=0 ++ local timeout=4 +++ seq 0 2 ++ for i in $(seq 0 2) ++ set +e ++ kubectl get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.Na7wm0aV8c ++ cat /tmp/tmp.JbUFQ6okYX ++ rm /tmp/tmp.Na7wm0aV8c /tmp/tmp.JbUFQ6okYX ++ return 0 + resource_version=1774518778313887011 + [[ 1774518778313887011 != 1774518778313887011 ]] + echo ...OK ...OK + desc 'test passed' + set +o xtrace ----------------------------------------------------------------------------------- test passed ----------------------------------------------------------------------------------- + exit 0