Uploaded image for project: 'Migration Toolkit for Virtualization'
  1. Migration Toolkit for Virtualization
  2. MTV-2321

Collect (Linux) VM disk(s) Utilization details for Scale Reports

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Scale&Perf-QE
    • Quality / Stability / Reliability
    • 13
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide

      Requested work was completed, reviewed and merged in https://gitlab.cee.redhat.com/mlehrer/mpqe-scale-scripts/-/commit/acc4e5c5fdff6e848cadd09ed830a726afe161bb

      Example of vm util:

      "source_vm":

      { "disks_per_vm": 1, "name": "dsl-4g-thick-fc-vm-1211", "plan_total_util_mb": 22029, "single_vm_util_mb": 3147, "total_vms": 7 }
      Show
      Requested work was completed, reviewed and merged in https://gitlab.cee.redhat.com/mlehrer/mpqe-scale-scripts/-/commit/acc4e5c5fdff6e848cadd09ed830a726afe161bb Example of vm util: "source_vm": { "disks_per_vm": 1, "name": "dsl-4g-thick-fc-vm-1211", "plan_total_util_mb": 22029, "single_vm_util_mb": 3147, "total_vms": 7 }

      This task relates to the needs of automated perf/scale runs to collect Linux VM disk information regarding number of disks and utilization per disk.

      The script utilizes govc utiltiy in podman in order to easily query disk utilization and set VM powerstate while writing relevant info as a json report.

      The script should collect the following information:

      • Get disk usage via VMware Tools with vm_id lookup
      • Pull the govc container image
      • Check if VM is powered on using govc container
      • Check if VM is powered on using govc container
      • Store VM State
      • Power on the VM if it is powered off using govc container
      • Wait until the VM is powered on
      • Run 'df -k' in the guest using Podman container
      • Initialize total_used_kb
      • Accumulate usage for each /dev/* line
      • Show the raw df -k output for reference
      • Save Util value
      • Print total used KB
      • Print total used in MB/GB
      • Return VM to original power state (power off if initially powered off)
      • Wait until the VM is powered off to confirm return to initial state
      • Write VM info to dict
      • Create JSON with collected information

      The values should be written to dynamic folder location where results are stored.
      The script should be executable by kni user from provisioner nodes.

              mlehrer@redhat.com Mordechai Lehrer
              mlehrer@redhat.com Mordechai Lehrer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: