mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-10-27 10:25:25 +03:00
I thought that the following is the problem.
---------------------------------------------------------------------- In finish() of "create.py", the port number of VNC become -1. When "Status monitoring" is short, the port number of VNC is updated in a short time, but, when "Status monitoring" is long, the port number of VNC is not updated for a long time. Because the XML data cached in "domain.py" is updated only in tick(). ---------------------------------------------------------------------- And, I forgot retrying in "console.py". Therefore, I adopted updating the port number of VNC in "cerate.py". I remake the patch. This patch only clears XML in get_graphics_console(), and the connection to the console is not retried in "create.py". So, by applying this patch, the XML data is cleared by retrying in "console.py" even when "Status monitoring" is long, and the port number of VNC is updated. (Because retrying in "console.py" calls get_graphics_console()) Thanks, Masayuki Sunou. ----------------------------------------------------------------------
This commit is contained in:
parent
04501bbe77
commit
c320e035e7
@ -430,6 +430,7 @@ class vmmDomain(gobject.GObject):
|
||||
return os.access(tty, os.R_OK | os.W_OK)
|
||||
|
||||
def get_graphics_console(self):
|
||||
self.xml = None
|
||||
type = self.get_xml_string("/domain/devices/graphics/@type")
|
||||
port = None
|
||||
if type == "vnc":
|
||||
|
Loading…
Reference in New Issue
Block a user