def __init__(self, context, config):
     self.context = context
     self.config = config
     self.hostname = config.hostname
     self.proc = None
     # used for apt-get in lava-test.py
     self.aptget_cmd = "apt-get"
     self.target_device = get_target(context, config)
     self.vm_group = VmGroupHandler(self)
Beispiel #2
0
 def __init__(self, context, config):
     self.context = context
     self.config = config
     self.hostname = config.hostname
     self.proc = None
     # used for apt-get in lava-test.py
     self.aptget_cmd = "apt-get"
     self.target_device = get_target(context, config)
     self.vm_group = VmGroupHandler(self)
Beispiel #3
0
    def __init__(self, context, config):

        super(DynamicVmTarget, self).__init__(context, config)

        device_type = config.dynamic_vm_backend_device_type
        if device_type not in self.supported_backends.keys():
            raise CriticalError("%s is not supported as a backend" %
                                device_type)

        backend_config = get_device_config(config.hostname,
                                           backend_device_type=device_type)
        self.backend = get_target(context, backend_config)
        adapter_class = self.supported_backends[device_type]()
        self.backend_adapter = adapter_class(self.backend)
Beispiel #4
0
    def __init__(self, context, config):

        super(DynamicVmTarget, self).__init__(context, config)

        device_type = config.dynamic_vm_backend_device_type
        if device_type not in self.supported_backends.keys():
            raise CriticalError("%s is not supported as a backend" %
                                device_type)

        backend_config = get_device_config(config.hostname,
                                           backend_device_type=device_type)
        self.backend = get_target(context, backend_config)
        adapter_class = self.supported_backends[device_type]()
        self.backend_adapter = adapter_class(self.backend)