def log_serial_output(): vm_log_writer = self._vm_log_writers.get(instance_uuid) if vm_log_writer and vm_log_writer.is_active(): LOG.debug("Instance %s log writer is already running.", instance_name) else: vm_log_writer = ioutils.IOThread( pipe_path, console_log_path, self._MAX_CONSOLE_LOG_FILE_SIZE) vm_log_writer.start() self._vm_log_writers[instance_uuid] = vm_log_writer
def setUp(self): self._iothread = ioutils.IOThread( self._FAKE_SRC, self._FAKE_DEST, self._FAKE_MAX_BYTES) super(IOThreadTestCase, self).setUp()