Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-31962 Performance continually mass migration - test fix CNV 4.13.3
  3. CNV-31969

Continually mass migration for 12 hours with MCP rollout - add to automation

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • CNV Perf/Scale
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ---
    • ---

      pause_mcp()
      {
      oc patch --type=merge --patch='{"spec":{"paused": true}}' $(oc get mcp -o name)
      }

      1. Resume master and worker MCP.
        resume_mcp()
        {
        oc patch --type=merge --patch='{"spec":{"paused": false}}' $(oc get mcp -o name)
        }

      wait_mcp_for_updated()
      {
      local attempts=${1:-60} i
      local mcp_updated="false"
      local mcp_stat_file="$(mktemp "${TMDIR:-/tmp}"/mcp-stat.XXXXX)"

      sleep 30

      for ((i=1; i<=attempts; i++)); do
      echo_debug "Attempt ${i}/${attempts}"
      sleep 30
      if oc wait mcp --all --for condition=updated --timeout=1m; then
      echo "MCP is Updated"
      mcp_updated="true"
      break
      fi
      done

      rm -f "${mcp_stat_file}"

      if [[ "${mcp_updated}" == "false" ]]; then
      ech "Error: MCP didn't get Updated!!"
      exit 1
      fi
      }

              guchen11 Guy Chen
              guchen11 Guy Chen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: