mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
console: Try to catch xen race errors when opening VNC
This commit is contained in:
parent
3fb1e6e155
commit
9b7bf37c55
@ -546,8 +546,16 @@ class vmmConsolePages(gobject.GObject):
|
|||||||
self.schedule_retry()
|
self.schedule_retry()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
|
(protocol, host,
|
||||||
|
port, trans, username) = self.vm.get_graphics_console()
|
||||||
|
except Exception, e:
|
||||||
|
# We can fail here if VM is destroyed: xen is a bit racy
|
||||||
|
# and can't handle domain lookups that soon after
|
||||||
|
logging.debug("Getting graphics console failed: %s" % str(e))
|
||||||
|
return
|
||||||
|
|
||||||
connport = None
|
connport = None
|
||||||
protocol, host, port, trans, username = self.vm.get_graphics_console()
|
|
||||||
if host.count(":"):
|
if host.count(":"):
|
||||||
host, connport = host.split(":", 1)
|
host, connport = host.split(":", 1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user