slave.vm package¶
Subpackages¶
Submodules¶
slave.vm.bootstrap module¶
-
class
slave.vm.bootstrap.
HostComms
(recv_callback, job_id, job_idx, tool, dev=False)[source]¶ Bases:
threading.Thread
-
class
slave.vm.bootstrap.
TalusBootstrap
(config_path, dev=False)[source]¶ Bases:
object
The main class that will bootstrap the job and get things running
-
class
slave.vm.bootstrap.
TalusCodeImporter
(loc, username, password, parent_log=None)[source]¶ Bases:
object
This class will dynamically import tools and components from the talus git repository.
This class should conform to “pep-302”:https://www.python.org/dev/peps/pep-0302/
-
download_module
(abs_name)[source]¶ Download the module found at
abs_name
from the talus git repositoryParameters: abs_name (str) – The absolute module name of the module to be downloaded
-
find_module
(abs_name, path=None)[source]¶ Normally, a finder object would return a loader that can load the module. In our case, we’re going to be sneaky and just download the files and return
None
and let the normal sys.path-type loading take place.This method is cleaner and less error prone
Parameters: abs_name (str) – The absolute name of the module to be imported
-
Module contents¶
-
class
slave.vm.
ImageManager
[source]¶ Bases:
object
-
ensure_image
(image_id)[source]¶ Ensure that the image
image_id
and its bases exist in LIBVIRT_BASE checking its md5 against the md5 sum stored in the databaseReturns: True/False on success
-