From 3df3aa84fff9e5991ab534351bb09bdb21d6a7da Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 3 Nov 2016 10:40:00 +0100 Subject: [PATCH] Try to disable enable remote console for VMware to see if it's the source of timeout errors Ref https://github.com/GNS3/gns3-gui/issues/1632 --- gns3server/compute/vmware/vmware_vm.py | 14 +++++++------- gns3server/controller/node.py | 5 ++++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/gns3server/compute/vmware/vmware_vm.py b/gns3server/compute/vmware/vmware_vm.py index 49b45469..a1301976 100644 --- a/gns3server/compute/vmware/vmware_vm.py +++ b/gns3server/compute/vmware/vmware_vm.py @@ -649,13 +649,13 @@ class VMwareVM(BaseNode): :param enable_remote_console: boolean """ - if enable_remote_console: - log.info("VMware VM '{name}' [{id}] has enabled the console".format(name=self.name, id=self.id)) - if self._started: - self._start_remote_console() - else: - log.info("VMware VM '{name}' [{id}] has disabled the console".format(name=self.name, id=self.id)) - self._stop_remote_console() + # if enable_remote_console: + # log.info("VMware VM '{name}' [{id}] has enabled the console".format(name=self.name, id=self.id)) + # if self._started: + # self._start_remote_console() + # else: + # log.info("VMware VM '{name}' [{id}] has disabled the console".format(name=self.name, id=self.id)) + # self._stop_remote_console() self._enable_remote_console = enable_remote_console @property diff --git a/gns3server/controller/node.py b/gns3server/controller/node.py index a1b109c0..378dc04d 100644 --- a/gns3server/controller/node.py +++ b/gns3server/controller/node.py @@ -386,7 +386,10 @@ class Node: """ Start a node """ - yield from self.post("/start") + try: + yield from self.post("/start") + except asyncio.TimeoutError: + raise aiohttp.web.HTTPRequestTimeout(text="Timeout when starting {}".format(self._name)) @asyncio.coroutine def stop(self):