mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-12 19:38:57 +00:00
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
This commit is contained in:
parent
7c981f9322
commit
3df3aa84ff
@ -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
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user