Log: /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2044/e2e-tests/logs/stable-resource-version.log grep: warning: stray \ before - Warning: version difference between client (1.34) and server (1.30) exceeds the supported minor version skew of +/-1 Warning: version difference between client (1.34) and server (1.30) exceeds the supported minor version skew of +/-1 Warning: version difference between client (1.34) and server (1.30) exceeds the supported minor version skew of +/-1 + cluster=some-name + create_infra stable-resource-version-16048 + local ns=stable-resource-version-16048 + [[ 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-2044/deploy/crd.yaml --ignore-not-found --wait=false ++ mktemp + local LAST_OUT=/tmp/tmp.kwBXZMrbb6 ++ mktemp + local LAST_ERR=/tmp/tmp.Bx9SjNtgAe + 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-2044/deploy/crd.yaml --ignore-not-found --wait=false + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.kwBXZMrbb6 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.Bx9SjNtgAe + rm /tmp/tmp.kwBXZMrbb6 /tmp/tmp.Bx9SjNtgAe + return 0 ++ yq eval .metadata.name /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2044/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.VVA1zK3sJ2 ++ mktemp + local LAST_ERR=/tmp/tmp.fPEzkTT0hf + 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.VVA1zK3sJ2 + cat /tmp/tmp.fPEzkTT0hf + rm /tmp/tmp.VVA1zK3sJ2 /tmp/tmp.fPEzkTT0hf + 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.4KyM0j1Jqw ++ mktemp + local LAST_ERR=/tmp/tmp.xlR2ff5vQZ + 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.4KyM0j1Jqw + cat /tmp/tmp.xlR2ff5vQZ + rm /tmp/tmp.4KyM0j1Jqw /tmp/tmp.xlR2ff5vQZ + 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.78k5g5x4kY ++ mktemp + local LAST_ERR=/tmp/tmp.DUz6zPlcjP + 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.78k5g5x4kY + cat /tmp/tmp.DUz6zPlcjP + rm /tmp/tmp.78k5g5x4kY /tmp/tmp.DUz6zPlcjP + 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-2044/deploy/cw-rbac.yaml --ignore-not-found ++ mktemp + local LAST_OUT=/tmp/tmp.ukV7krlRTj ++ mktemp + local LAST_ERR=/tmp/tmp.CwoPUouu8U + 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-2044/deploy/cw-rbac.yaml --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ukV7krlRTj 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.CwoPUouu8U + rm /tmp/tmp.ukV7krlRTj /tmp/tmp.CwoPUouu8U + return 0 + check_crd_for_deletion PR-2044-1a2e24e2 + local git_tag=PR-2044-1a2e24e2 ++ curl -s https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/PR-2044-1a2e24e2/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.xz4znErRns +++ mktemp ++ local LAST_ERR=/tmp/tmp.HSYV8HEWIW ++ 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.xz4znErRns ++ cat /tmp/tmp.HSYV8HEWIW 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.xz4znErRns ++ cat /tmp/tmp.HSYV8HEWIW 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.xz4znErRns ++ cat /tmp/tmp.HSYV8HEWIW Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ sleep 8 ++ cat /tmp/tmp.xz4znErRns ++ cat /tmp/tmp.HSYV8HEWIW Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "null" not found ++ rm /tmp/tmp.xz4znErRns /tmp/tmp.HSYV8HEWIW ++ 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' + awk '{print$1}' + '[' -n '' ']' + xargs kubectl delete ns + 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 ++ mktemp ++ mktemp + local LAST_OUT=/tmp/tmp.mLB0fifQtC egrep: warning: egrep is obsolescent; using grep -E ++ mktemp + local LAST_OUT=/tmp/tmp.ehXY0PcNqk ++ mktemp + local LAST_ERR=/tmp/tmp.eJah7awSbd + local exit_status=0 + local timeout=4 ++ seq 0 2 + local LAST_ERR=/tmp/tmp.dGwFmoHZgk + 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 psmdb-operator --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.mLB0fifQtC + cat /tmp/tmp.eJah7awSbd + rm /tmp/tmp.mLB0fifQtC /tmp/tmp.eJah7awSbd + return 0 namespace "stable-resource-version-26421" deleted + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.ehXY0PcNqk namespace "psmdb-operator" deleted + cat /tmp/tmp.dGwFmoHZgk + rm /tmp/tmp.ehXY0PcNqk /tmp/tmp.dGwFmoHZgk + return 0 + kubectl_bin wait --for=delete namespace psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.jW2Oq9BiH9 ++ mktemp + local LAST_ERR=/tmp/tmp.qYFSM716Jj + 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.jW2Oq9BiH9 + cat /tmp/tmp.qYFSM716Jj + rm /tmp/tmp.jW2Oq9BiH9 /tmp/tmp.qYFSM716Jj + 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.tFBwbQQUji ++ mktemp + local LAST_ERR=/tmp/tmp.Pgh9zTFfk1 + 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.tFBwbQQUji namespace/psmdb-operator created + cat /tmp/tmp.Pgh9zTFfk1 + rm /tmp/tmp.tFBwbQQUji /tmp/tmp.Pgh9zTFfk1 + return 0 + set_kube_ctx psmdb-operator + local namespace=psmdb-operator ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.ljRTk1DXY1 +++ mktemp ++ local LAST_ERR=/tmp/tmp.wXo0DWpud5 ++ 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.ljRTk1DXY1 ++ cat /tmp/tmp.wXo0DWpud5 ++ rm /tmp/tmp.ljRTk1DXY1 /tmp/tmp.wXo0DWpud5 ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2044-1a2e24e2-3-cluster4 --namespace=psmdb-operator ++ mktemp + local LAST_OUT=/tmp/tmp.87q1Q2rvW3 ++ mktemp + local LAST_ERR=/tmp/tmp.NeTXt5juV4 + 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-2044-1a2e24e2-3-cluster4 --namespace=psmdb-operator + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.87q1Q2rvW3 Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2044-1a2e24e2-3-cluster4" modified. + cat /tmp/tmp.NeTXt5juV4 + rm /tmp/tmp.87q1Q2rvW3 /tmp/tmp.NeTXt5juV4 + 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-2044/e2e-tests/stable-resource-version/conf/crd.yaml ']' + cr_file=/mnt/jenkins/workspace/cloud-psmdb-operator_PR-2044/deploy/crd.yaml + kubectl_bin apply --server-side --force-conflicts -f /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2044/deploy/crd.yaml ++ mktemp + local LAST_OUT=/tmp/tmp.yQvM3rUHHG ++ mktemp + local LAST_ERR=/tmp/tmp.EvhCaqIPeO + 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-2044/deploy/crd.yaml + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.yQvM3rUHHG 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.EvhCaqIPeO + rm /tmp/tmp.yQvM3rUHHG /tmp/tmp.EvhCaqIPeO + 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-2044/deploy/cw-rbac.yaml + sed -e 's^namespace: .*^namespace: psmdb-operator^' + kubectl_bin apply -n psmdb-operator -f - ++ mktemp + local LAST_OUT=/tmp/tmp.U3NtTVWmjv ++ mktemp + local LAST_ERR=/tmp/tmp.Uf2jdBXZSk + 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.U3NtTVWmjv 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.Uf2jdBXZSk + rm /tmp/tmp.U3NtTVWmjv /tmp/tmp.Uf2jdBXZSk + return 0 + yq eval ' (.spec.template.spec.containers[].image = "perconalab/percona-server-mongodb-operator:PR-2044-1a2e24e2") | ((.. | select(.[] == "DISABLE_TELEMETRY")) |= .value="true") | ((.. | select(.[] == "LOG_LEVEL")) |= .value="DEBUG")' /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2044/deploy/cw-operator.yaml + kubectl_bin apply -f - ++ mktemp + local LAST_OUT=/tmp/tmp.GMpnXYQerA ++ mktemp + local LAST_ERR=/tmp/tmp.DPndqMA2qS + 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.GMpnXYQerA deployment.apps/percona-server-mongodb-operator created + cat /tmp/tmp.DPndqMA2qS + rm /tmp/tmp.GMpnXYQerA /tmp/tmp.DPndqMA2qS + 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.0bI2iYDgoq +++ mktemp ++ local LAST_ERR=/tmp/tmp.RZ2b0rwt28 ++ 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.0bI2iYDgoq ++ cat /tmp/tmp.RZ2b0rwt28 ++ rm /tmp/tmp.0bI2iYDgoq /tmp/tmp.RZ2b0rwt28 ++ return 0 + wait_pod percona-server-mongodb-operator-7cb95d4f6d-zkt8n + local pod=percona-server-mongodb-operator-7cb95d4f6d-zkt8n + set +o xtrace waiting for pod/percona-server-mongodb-operator-7cb95d4f6d-zkt8n 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.XiZsD83W3Z +++ mktemp ++ local LAST_ERR=/tmp/tmp.Ny9wDKbeiP ++ 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.XiZsD83W3Z ++ cat /tmp/tmp.Ny9wDKbeiP ++ rm /tmp/tmp.XiZsD83W3Z /tmp/tmp.Ny9wDKbeiP ++ return 0 + kubectl_bin logs percona-server-mongodb-operator-7cb95d4f6d-zkt8n ++ mktemp + local LAST_OUT=/tmp/tmp.d6yco9SEK3 ++ mktemp + local LAST_ERR=/tmp/tmp.uL3CBM9H10 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl logs percona-server-mongodb-operator-7cb95d4f6d-zkt8n + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.d6yco9SEK3 + cat /tmp/tmp.uL3CBM9H10 + rm /tmp/tmp.d6yco9SEK3 /tmp/tmp.uL3CBM9H10 + return 0 2025-09-14T11:09:25.735Z INFO setup Manager starting up {"gitCommit": "1a2e24e21a69585ac8fcb6108c10381b376579c9", "gitBranch": "PR-2044-1a2e24e2", "buildTime": "", "goVersion": "go1.24.7", "os": "linux", "arch": "amd64"} + create_namespace stable-resource-version-16048 + local namespace=stable-resource-version-16048 + local skip_clean_namespace= + [[ 1 == 1 ]] + [[ -z '' ]] + destroy_chaos_mesh ++ helm list --all-namespaces --filter chaos-mesh ++ tail -n1 ++ awk '-F ' '{print $2}' ++ sed s/NAMESPACE// + local chaos_mesh_ns= + desc 'destroy chaos-mesh' + set +o xtrace ----------------------------------------------------------------------------------- destroy chaos-mesh ----------------------------------------------------------------------------------- + '[' -n '' ']' ++ kubectl get MutatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete MutatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ kubectl get ValidatingWebhookConfiguration ++ grep validate-auth ++ awk '{print $1}' + timeout 30 kubectl delete ValidatingWebhookConfiguration error: resource(s) were provided, but no name was specified + : ++ grep chaos-mesh ++ kubectl api-resources ++ awk '{print $1}' ++ kubectl get crd ++ grep chaos-mesh.org ++ awk '{print $1}' + timeout 30 kubectl delete crd error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrolebinding ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrolebinding error: resource(s) were provided, but no name was specified + : ++ kubectl get clusterrole ++ grep chaos-mesh ++ awk '{print $1}' + timeout 30 kubectl delete clusterrole error: resource(s) were provided, but no name was specified + : + desc 'cleaned up all old namespaces' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up all old namespaces ----------------------------------------------------------------------------------- + kubectl_bin get ns + egrep -v '^kube-|^default|Terminating|psmdb-operator|openshift|^gke-|^gmp-|^NAME' + '[' -n '' ']' + desc 'cleaned up old namespaces stable-resource-version-16048' + set +o xtrace ----------------------------------------------------------------------------------- cleaned up old namespaces stable-resource-version-16048 ----------------------------------------------------------------------------------- ++ mktemp + kubectl_bin delete namespace stable-resource-version-16048 --ignore-not-found + awk '{print$1}' + local LAST_OUT=/tmp/tmp.u1rnGEMJXQ + xargs kubectl delete ns ++ mktemp egrep: warning: egrep is obsolescent; using grep -E + local LAST_ERR=/tmp/tmp.4zGaloXpAf + 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.Sm4fqkjpU2 ++ mktemp + local LAST_ERR=/tmp/tmp.yMbrfGkNgz + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl delete namespace stable-resource-version-16048 --ignore-not-found + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.u1rnGEMJXQ + cat /tmp/tmp.4zGaloXpAf + rm /tmp/tmp.u1rnGEMJXQ /tmp/tmp.4zGaloXpAf + 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.Sm4fqkjpU2 + cat /tmp/tmp.yMbrfGkNgz + rm /tmp/tmp.Sm4fqkjpU2 /tmp/tmp.yMbrfGkNgz + return 0 + kubectl_bin wait --for=delete namespace stable-resource-version-16048 ++ mktemp + local LAST_OUT=/tmp/tmp.5LIuTzuIbF ++ mktemp + local LAST_ERR=/tmp/tmp.1Ux9HxhKIG + 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-16048 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.5LIuTzuIbF + cat /tmp/tmp.1Ux9HxhKIG + rm /tmp/tmp.5LIuTzuIbF /tmp/tmp.1Ux9HxhKIG + return 0 + desc 'create namespace stable-resource-version-16048' + set +o xtrace ----------------------------------------------------------------------------------- create namespace stable-resource-version-16048 ----------------------------------------------------------------------------------- + kubectl_bin create namespace stable-resource-version-16048 ++ mktemp + local LAST_OUT=/tmp/tmp.LSFL2LlzuR ++ mktemp + local LAST_ERR=/tmp/tmp.tdAdw1pg57 + local exit_status=0 + local timeout=4 ++ seq 0 2 + for i in $(seq 0 2) + set +e + kubectl create namespace stable-resource-version-16048 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.LSFL2LlzuR namespace/stable-resource-version-16048 created + cat /tmp/tmp.tdAdw1pg57 + rm /tmp/tmp.LSFL2LlzuR /tmp/tmp.tdAdw1pg57 + return 0 + set_kube_ctx stable-resource-version-16048 + local namespace=stable-resource-version-16048 ++ kubectl_bin config current-context +++ mktemp ++ local LAST_OUT=/tmp/tmp.n1nMfdOfY0 +++ mktemp ++ local LAST_ERR=/tmp/tmp.g6Y7KN27jG ++ 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.n1nMfdOfY0 ++ cat /tmp/tmp.g6Y7KN27jG ++ rm /tmp/tmp.n1nMfdOfY0 /tmp/tmp.g6Y7KN27jG ++ return 0 + kubectl_bin config set-context gke_cloud-dev-112233_us-central1-a_jen-psmdb-2044-1a2e24e2-3-cluster4 --namespace=stable-resource-version-16048 ++ mktemp + local LAST_OUT=/tmp/tmp.Ka28eRNKUK ++ mktemp + local LAST_ERR=/tmp/tmp.7w9th0ATa9 + 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-2044-1a2e24e2-3-cluster4 --namespace=stable-resource-version-16048 + exit_status=0 + set -e + '[' 0 '!=' 0 -a -n 1 ']' + break + cat /tmp/tmp.Ka28eRNKUK Context "gke_cloud-dev-112233_us-central1-a_jen-psmdb-2044-1a2e24e2-3-cluster4" modified. + cat /tmp/tmp.7w9th0ATa9 + rm /tmp/tmp.Ka28eRNKUK /tmp/tmp.7w9th0ATa9 + 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-2044/e2e-tests/stable-resource-version/conf/some-name.yml + '[' -z '' ']' + cat_config /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2044/e2e-tests/stable-resource-version/conf/some-name.yml + kubectl_bin apply -f - + cat /mnt/jenkins/workspace/cloud-psmdb-operator_PR-2044/e2e-tests/stable-resource-version/conf/some-name.yml + yq eval '(.spec | select(.image == null)).image = "perconalab/percona-server-mongodb-operator:main-mongod7.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-2044-1a2e24e2"' + yq eval '(.spec | select(has("backup"))).backup.image = "perconalab/percona-server-mongodb-operator:main-backup"' + local LAST_OUT=/tmp/tmp.WBYMMO1sr7 ++ mktemp + yq eval '.spec.upgradeOptions.apply="Never"' + local LAST_ERR=/tmp/tmp.3Cr35xG6Kd + 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.WBYMMO1sr7 perconaservermongodb.psmdb.percona.com/some-name created + cat /tmp/tmp.3Cr35xG6Kd + rm /tmp/tmp.WBYMMO1sr7 /tmp/tmp.3Cr35xG6Kd + 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.lP7vp58nKT +++ mktemp ++ local LAST_ERR=/tmp/tmp.daPpRlNzZ4 ++ 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.lP7vp58nKT ++ cat /tmp/tmp.daPpRlNzZ4 ++ rm /tmp/tmp.lP7vp58nKT /tmp/tmp.daPpRlNzZ4 ++ 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")].non_voting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.wsCjXrqpnq +++ mktemp ++ local LAST_ERR=/tmp/tmp.DKq5ia2Oh4 ++ 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")].non_voting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.wsCjXrqpnq ++ cat /tmp/tmp.DKq5ia2Oh4 ++ rm /tmp/tmp.wsCjXrqpnq /tmp/tmp.DKq5ia2Oh4 ++ 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.o1G8xK62TB +++ mktemp ++ local LAST_ERR=/tmp/tmp.3mRSXccmJP ++ 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.o1G8xK62TB ++ cat /tmp/tmp.3mRSXccmJP ++ rm /tmp/tmp.o1G8xK62TB /tmp/tmp.3mRSXccmJP ++ 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.5j8iDO87O5 +++ mktemp ++ local LAST_ERR=/tmp/tmp.egggRnU72F ++ 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.5j8iDO87O5 ++ cat /tmp/tmp.egggRnU72F ++ rm /tmp/tmp.5j8iDO87O5 /tmp/tmp.egggRnU72F ++ 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")].non_voting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.q6Bjm6xMwz +++ mktemp ++ local LAST_ERR=/tmp/tmp.KBS1ZlbR4A ++ 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")].non_voting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.q6Bjm6xMwz ++ cat /tmp/tmp.KBS1ZlbR4A ++ rm /tmp/tmp.q6Bjm6xMwz /tmp/tmp.KBS1ZlbR4A ++ 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.GcLzPstQQ2 +++ mktemp ++ local LAST_ERR=/tmp/tmp.dx9ZfZuDr5 ++ 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.GcLzPstQQ2 ++ cat /tmp/tmp.dx9ZfZuDr5 ++ rm /tmp/tmp.GcLzPstQQ2 /tmp/tmp.dx9ZfZuDr5 ++ 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.up3QpRcILh +++ mktemp ++ local LAST_ERR=/tmp/tmp.32hQyzHZfZ ++ 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.up3QpRcILh ++ cat /tmp/tmp.32hQyzHZfZ ++ rm /tmp/tmp.up3QpRcILh /tmp/tmp.32hQyzHZfZ ++ 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")].non_voting.enabled}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.XdnLTDoqP3 +++ mktemp ++ local LAST_ERR=/tmp/tmp.8t8CYuGUM3 ++ 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")].non_voting.enabled}' ++ exit_status=0 ++ set -e ++ '[' 0 '!=' 0 -a -n 1 ']' ++ break ++ cat /tmp/tmp.XdnLTDoqP3 ++ cat /tmp/tmp.8t8CYuGUM3 ++ rm /tmp/tmp.XdnLTDoqP3 /tmp/tmp.8t8CYuGUM3 ++ 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.Z9wNBIBHGM +++ mktemp ++ local LAST_ERR=/tmp/tmp.1xIn2yaqRP ++ 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.Z9wNBIBHGM ++ cat /tmp/tmp.1xIn2yaqRP ++ rm /tmp/tmp.Z9wNBIBHGM /tmp/tmp.1xIn2yaqRP ++ 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.dvgrbI0plL +++ mktemp ++ local LAST_ERR=/tmp/tmp.2SgrY8NRTT ++ 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.dvgrbI0plL ++ cat /tmp/tmp.2SgrY8NRTT ++ rm /tmp/tmp.dvgrbI0plL /tmp/tmp.2SgrY8NRTT ++ return 0 + [[ ready == \r\e\a\d\y ]] + echo + 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.wxpAJZvZ1E +++ mktemp ++ local LAST_ERR=/tmp/tmp.Hu8D1X7rNY ++ 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.wxpAJZvZ1E ++ cat /tmp/tmp.Hu8D1X7rNY ++ rm /tmp/tmp.wxpAJZvZ1E /tmp/tmp.Hu8D1X7rNY ++ return 0 + initial_resource_version=1757848331872831023 ++ seq 1 5 + for i in $(seq 1 5) + sleep 7 + echo -n 'check 1: expected resourceVersion is 1757848331872831023' check 1: expected resourceVersion is 1757848331872831023++ kubectl_bin get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.ayfjuOXfGO +++ mktemp ++ local LAST_ERR=/tmp/tmp.qtuTUrjB3b ++ 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.ayfjuOXfGO ++ cat /tmp/tmp.qtuTUrjB3b ++ rm /tmp/tmp.ayfjuOXfGO /tmp/tmp.qtuTUrjB3b ++ return 0 + resource_version=1757848331872831023 + [[ 1757848331872831023 != 1757848331872831023 ]] + echo ...OK ...OK + for i in $(seq 1 5) + sleep 7 + echo -n 'check 2: expected resourceVersion is 1757848331872831023' check 2: expected resourceVersion is 1757848331872831023++ kubectl_bin get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.mk8QZEGbZC +++ mktemp ++ local LAST_ERR=/tmp/tmp.kKWd3LuPlR ++ 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.mk8QZEGbZC ++ cat /tmp/tmp.kKWd3LuPlR ++ rm /tmp/tmp.mk8QZEGbZC /tmp/tmp.kKWd3LuPlR ++ return 0 + resource_version=1757848331872831023 + [[ 1757848331872831023 != 1757848331872831023 ]] + echo ...OK ...OK + for i in $(seq 1 5) + sleep 7 + echo -n 'check 3: expected resourceVersion is 1757848331872831023' check 3: expected resourceVersion is 1757848331872831023++ kubectl_bin get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.tEXUUnKeTw +++ mktemp ++ local LAST_ERR=/tmp/tmp.nqEMK6iHKa ++ 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.tEXUUnKeTw ++ cat /tmp/tmp.nqEMK6iHKa ++ rm /tmp/tmp.tEXUUnKeTw /tmp/tmp.nqEMK6iHKa ++ return 0 + resource_version=1757848331872831023 + [[ 1757848331872831023 != 1757848331872831023 ]] + echo ...OK ...OK + for i in $(seq 1 5) + sleep 7 + echo -n 'check 4: expected resourceVersion is 1757848331872831023' check 4: expected resourceVersion is 1757848331872831023++ kubectl_bin get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.L46Hb9tLGd +++ mktemp ++ local LAST_ERR=/tmp/tmp.YEG0cclhXW ++ 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.L46Hb9tLGd ++ cat /tmp/tmp.YEG0cclhXW ++ rm /tmp/tmp.L46Hb9tLGd /tmp/tmp.YEG0cclhXW ++ return 0 + resource_version=1757848331872831023 + [[ 1757848331872831023 != 1757848331872831023 ]] + echo ...OK ...OK + for i in $(seq 1 5) + sleep 7 + echo -n 'check 5: expected resourceVersion is 1757848331872831023' check 5: expected resourceVersion is 1757848331872831023++ kubectl_bin get psmdb some-name -o 'jsonpath={.metadata.resourceVersion}' +++ mktemp ++ local LAST_OUT=/tmp/tmp.fp9NmzAh3x +++ mktemp ++ local LAST_ERR=/tmp/tmp.0jIlIuqNKJ ++ 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.fp9NmzAh3x ++ cat /tmp/tmp.0jIlIuqNKJ ++ rm /tmp/tmp.fp9NmzAh3x /tmp/tmp.0jIlIuqNKJ ++ return 0 + resource_version=1757848331872831023 + [[ 1757848331872831023 != 1757848331872831023 ]] + echo ...OK ...OK + desc 'test passed' + set +o xtrace ----------------------------------------------------------------------------------- test passed ----------------------------------------------------------------------------------- + exit 0