Package virtualization :: Module support
[hide private]
[frames] | no frames]

Module support

source code

Functions [hide private]
 
utf8_encode(msg)
for RHEL6 just pass the function to rhncli for RHEL5 do the same within this module
source code
 
_check_status(daemon)
Checks to see if daemon is running.
source code
 
refresh(fail_on_error=False)
Refreshes the virtualization info for this host and any subdomains on the server.
source code
 
shutdown(uuid)
Shuts down the domain with the given UUID.
source code
 
start(uuid)
Starts up the domain with the given UUID.
source code
 
suspend(uuid)
Suspends the domain with the given UUID.
source code
 
resume(uuid)
Resumes the domain with the given UUID.
source code
 
reboot(uuid)
Reboots the domain with the given UUID.
source code
 
destroy(uuid)
Destroys the domain with the given UUID.
source code
 
setMemory(uuid, memory)
Sets the max memory usage for the domain with the given UUID.
source code
 
setVCPUs(uuid, vcpus)
Sets the number of vcpus for the domain with the given UUID.
source code
 
schedulePoller(minute, hour, dom, month, dow)
Sets when poller should run.
source code
 
_is_host_domain(fail_on_error=False)
This function returns true if this system is currently a host domain.
source code
 
_fetch_host_uuid()
This function returns the UUID of the host system.
source code
Variables [hide private]
  t = gettext.translation('rhn-virtualization', fallback= True)
  _ = t.ugettext
  libvirt = None
hash(x)
  vdsm_enabled = False
Function Details [hide private]

_is_host_domain(fail_on_error=False)

source code 

This function returns true if this system is currently a host domain. Simply having virtualization enabled is sufficient.

We can figure out if Xen/Qemu is running by checking for the type

_fetch_host_uuid()

source code 

This function returns the UUID of the host system. This will always be 16 zeros.