tests.reboot

Add an VM resource to each VM which will reboot the system and test if it works as expected. The user can pass in the type of reboot they would like to trigger either exit_code or flag as the parameter to the Plugin. This MC is mainly useful for functional testing of FIREWHEEL and as an example of how users can reboot VMs using VMRs.

To learn more about triggering reboots with VMRs see Rebooting a VM.

Attribute Depends:
  • topology

Model Component Dependencies:

Plugin

class tests.reboot_plugin.Plugin(graph, log)[source]

Bases: AbstractPlugin

Add an VM resource which will reboot the VM and then verify that a reboot has occurred.

__annotations__ = {}
run(reboot_type='exit_code', extra_vrm='')[source]

Add a VM resource to each VM in the experiment.

Parameters:
  • reboot_type (str) – Which VM resource to use. It can be one of: {exit_code, flag}.

  • extra_vrm (str) – The time at which to run a VRM which adds “running” to the status file. This will help test the order of reboots and ensure that the schedule is maintained. Must be castable to an integer. Defaults to "".