-
Task
-
Resolution: Done
-
Undefined
-
None
-
None
-
Quality / Stability / Reliability
-
13
-
False
-
-
False
-
-
-
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.
- is related to
-
MTV-2333 Collect (Window) VM disk(s) Utilization details for Scale Reports
-
- Closed
-