robottelo.vm_capsule
¶
Virtual machine client provisioning with satellite capsule product setup
Module Contents¶
Classes¶
Virtual machine client provisioning with satellite capsule product |
Attributes¶
- robottelo.vm_capsule.logger¶
- exception robottelo.vm_capsule.CapsuleVirtualMachineError¶
Bases:
Exception
Exception raised for failed capsule virtual machine operations
- class robottelo.vm_capsule.CapsuleVirtualMachine(cpu=4, ram=16384, distro=None, provisioning_server=None, image_dir=None, org_id=None, lce_id=None, organization_ids=None, location_ids=None)¶
Bases:
robottelo.vm.VirtualMachine
Virtual machine client provisioning with satellite capsule product setup
- property hostname_local(self)¶
The virtual machine local hostname from provisioning server
- property capsule_org(self)¶
- property capsule(self)¶
- property capsule_lce(self)¶
- property capsule_location_ids(self)¶
- property capsule_organization_ids(self)¶
- _capsule_setup_name_resolution(self)¶
Setup a name resolution so the capsule and satellite are resolvable
- _capsule_cleanup(self)¶
make the necessary cleanup in case of a crash
- _setup_capsule(self)¶
Prepare the virtual machine to host a capsule node
- create(self)¶
Creates a virtual machine on the provisioning server using snap-guest
- Raises
robottelo.vm.VirtualMachineError – Whenever a virtual machine could not be executed.
- suspend(self, ensure=False, timeout=None, connection_timeout=30)¶
Suspend the virtual machine.
- Parameters
ensure (bool) – ensure that the virtual machine is unreachable
timeout (int) – Time to wait for the ssh command to finish.
connection_timeout (int) – Time to wait for establishing the connection.
Notes:
The virtual machine will consume system RAM but not processor resources. Disk and network I/O does not occur while the guest is suspended.
This operation is immediate and the guest can be restarted with resume.
- resume(self, ensure=False, timeout=None, connection_timeout=30)¶
Restore from a suspended state
- Parameters
ensure (bool) – ensure that the virtual machine is reachable
timeout (int) – Time to wait for the ssh command to finish.
connection_timeout (int) – Time to wait for establishing the connection.
Note: This operation is immediate
- destroy(self)¶
Destroys the virtual machine on the provisioning server