def instance_activate(self, req=None, instanceHostMap=None, processData=None, **kw): instance, host = BaseComputeDriver.get_instance_host_from_map(self, instanceHostMap) progress = Progress(req) client = self._get_docker_client(host) if instance is not None: instance.processData = processData with lock(instance): if self._is_instance_active(instance, host): self._record_state(client, instance) return self._reply(req, self._get_response_data(req, instanceHostMap)) self._do_instance_activate(instance, host, progress) data = self._get_response_data(req, instanceHostMap) return self._reply(req, data)
def instance_activate(self, req=None, instanceHostMap=None, processData=None, **kw): instance, host = \ BaseComputeDriver.get_instance_host_from_map(self, instanceHostMap) progress = Progress(req) client = docker_client() if instance is not None: instance.processData = processData with lock(instance): if self._is_instance_active(instance, host): self._record_state(client, instance) return self._reply( req, self._get_response_data(req, instanceHostMap)) self._do_instance_activate(instance, host, progress) data = self._get_response_data(req, instanceHostMap) return self._reply(req, data)
def __init__(self): self._default_type = None self._checked_default_type = False KindBasedMixin.__init__(self, kind='libvirt') BaseComputeDriver.__init__(self)
def __init__(self): KindBasedMixin.__init__(self, kind='docker') BaseComputeDriver.__init__(self) self.host_info = HostInfo(docker_client()) self.system_images = self.get_agent_images(docker_client())
def __init__(self): KindBasedMixin.__init__(self, kind='docker') BaseComputeDriver.__init__(self)
def __init__(self): KindBasedMixin.__init__(self, kind='docker') BaseComputeDriver.__init__(self) self.host_info = HostInfo()