diff --git a/tests/performance/statistic/cmd/stat/main.go b/tests/performance/statistic/cmd/stat/main.go index 0bb3e6e03..3febc470f 100644 --- a/tests/performance/statistic/cmd/stat/main.go +++ b/tests/performance/statistic/cmd/stat/main.go @@ -16,11 +16,6 @@ func main() { getVM := flag.Bool("vm", false, "Get VMs, default false") flag.Parse() - // err := helpers.SaveToCSV() - // if err != nil { - // os.Exit(1) - // } - ns := *namespace if *getVM { diff --git a/tests/performance/statistic/internal/vm/get_vm.go b/tests/performance/statistic/internal/vm/get_vm.go index c39701907..efe7f2a97 100644 --- a/tests/performance/statistic/internal/vm/get_vm.go +++ b/tests/performance/statistic/internal/vm/get_vm.go @@ -81,6 +81,7 @@ func Get(client kubeclient.Client, namespace string) { if string(vm.Status.Phase) == "Running" { vms.Items = append(vms.Items, VM{ + // Name: vm.Status.Stats.PhasesTransitions[len(vm.Status.Stats.PhasesTransitions)-1], use range Name: vm.Name, VirtualMachineLaunchTimeDuration: v1alpha2.VirtualMachineLaunchTimeDuration{ WaitingForDependencies: vm.Status.Stats.LaunchTimeDuration.WaitingForDependencies, diff --git a/tests/performance/templates/vms.yaml b/tests/performance/templates/vms.yaml index 76c65a7d2..eec6f98a9 100644 --- a/tests/performance/templates/vms.yaml +++ b/tests/performance/templates/vms.yaml @@ -10,7 +10,7 @@ metadata: labels: vm: {{ $.Values.resourcesPrefix }} spec: - runPolicy: AlwaysOn + runPolicy: {{ $.Values.runPolicy }} enableParavirtualization: true disruptions: # To ensure an equal amount of virtual machines with Manual and Automatic modes during testing, diff --git a/tests/performance/values.yaml b/tests/performance/values.yaml index 1ad20637f..1bc0cadaa 100644 --- a/tests/performance/values.yaml +++ b/tests/performance/values.yaml @@ -8,6 +8,12 @@ spec: # viType: vi viType: pvc +# VM startup policy +# AlwaysOn - after creation the VM is always in a running state, even in case of its shutdown by OS means. +# AlwaysOff - after creation the VM is always in the off state. +# Manual - after creation the VM is switched off, the VM state (switching on/off) is controlled via sub-resources or OS means. +# AlwaysOnUnlessStoppedManually - after creation the VM is always in a running state, even in case of its shutdown by means of the OS, the VM can be shut down using the corresponding subresource. +runPolicy: AlwaysOnUnlessStoppedManually vmDiskType: vd resources: "all" resourcesPrefix: "performance"