[Bug 892196] New: virt-manager over TCP/SASL: Attempting to take a screenshot kills connection to libvirtd
https://bugzilla.novell.com/show_bug.cgi?id=892196 https://bugzilla.novell.com/show_bug.cgi?id=892196#c0 Summary: virt-manager over TCP/SASL: Attempting to take a screenshot kills connection to libvirtd Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Xen AssignedTo: jdouglas@suse.com ReportedBy: olafmartens@web.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Attempting to take a screenshot of a domU causes virt-manager to hang initially, and after a certain amount of time the "Save As..." dialog shows up, but the connection is closed in that instant. Attempting to save the desired screenshot is obviously met with failure. The link to libvirtd cannot be reopened as long as the dialog window is open as it inhibits any further action. It must be closed in order to reestablish the TCP connection, but attempting to take the screenshot again yields in the same result: failire. Reproducible: Always Steps to Reproduce: 1. Open a TCP/SASL connection with virt-manager to libvirtd. 2. Pull up an already running VM (it must have its graphical console available). 3. Attempt to take a screenshot. Actual Results: At first virt-manager hangs, and as soon as it opens the "Save As..." dialog, the connection to libvirtd is terminated. No other action can be taken as long as the dialog window is open. Expected Results: Keep the connection to libvirtd open and allow the screenshot to be saved. This can be worked around by resorting to another remote console program like krdc. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=892196 https://bugzilla.novell.com/show_bug.cgi?id=892196#c Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jfehlig@suse.com AssignedTo|jdouglas@suse.com |carnold@suse.com QAContact|qa-bugs@suse.de |jdouglas@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=892196 https://bugzilla.novell.com/show_bug.cgi?id=892196#c1 --- Comment #1 from James Fehlig <jfehlig@suse.com> 2014-08-16 03:57:50 UTC --- Just curious, does 'virsh screenshot ...' work via a TCP/SASL connection to libvirtd? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=892196 https://bugzilla.novell.com/show_bug.cgi?id=892196#c2 --- Comment #2 from Olaf Martens <olafmartens@web.de> 2014-08-21 16:09:04 UTC --- Negative. virsh immediately complains: Error: Could not take a screenshot from domain <xyz> Error: This function is not supported by the connection driver: virDomainScreenshot -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=892196 https://bugzilla.novell.com/show_bug.cgi?id=892196#c3 --- Comment #3 from James Fehlig <jfehlig@suse.com> 2014-08-21 17:01:57 UTC --- (In reply to comment #2)
Error: This function is not supported by the connection driver: virDomainScreenshot
Opps, sorry, I mistakenly thought the host was KVM. virDomainScreenshot is indeed not implemented in the libvirt Xen drivers (neither the old xend one or the new libxl driver). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=892196 https://bugzilla.novell.com/show_bug.cgi?id=892196#c4 --- Comment #4 from Olaf Martens <olafmartens@web.de> 2014-08-21 17:29:05 UTC --- Partially my fault - I forgot to mention that the VMs are running on Xen... ^^ So it seems as if virt-manager relies on the exact same function as does virsh? I think there should at least be some sort of fallback that permits virt-manager to grab the contents of the VM's window, as does krdc, for example. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=892196 https://bugzilla.novell.com/show_bug.cgi?id=892196#c5 --- Comment #5 from James Fehlig <jfehlig@suse.com> 2014-08-21 17:45:57 UTC --- (In reply to comment #4)
So it seems as if virt-manager relies on the exact same function as does virsh?
No. AFAICT, virt-manager doesn't use libvirt's virDomainScreenshot function, but instead captures a pixbuf from the viewer. See the _take_screenshot() function in virt-manager code https://git.fedorahosted.org/cgit/virt-manager.git/tree/virtManager/details.... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=892196 https://bugzilla.novell.com/show_bug.cgi?id=892196#c6 --- Comment #6 from Olaf Martens <olafmartens@web.de> 2014-08-22 07:55:47 UTC --- By digging through virt-manager's logs I found this: *** [Fr, 22 Aug 2014 09:30:36 virt-manager 2216] DEBUG (manager:173) Showing manager [Fr, 22 Aug 2014 09:30:36 virt-manager 2216] DEBUG (engine:329) window counter i ncremented to 1 [Fr, 22 Aug 2014 09:30:38 virt-manager 2216] DEBUG (details:562) Showing VM deta ils: <vmmDomain object at 0x2a2f320 (virtManager+domain+vmmDomain at 0x27b7e00)> [Fr, 22 Aug 2014 09:30:39 virt-manager 2216] DEBUG (engine:329) window counter i ncremented to 2 [Fr, 22 Aug 2014 09:30:39 virt-manager 2216] DEBUG (console:1116) Starting conne ct process for proto=vnc trans=tcp connhost=192.168.127.1 connuser=******* connport=None gaddr=0.0.0.0 gport=5901 gsocket=None [Fr, 22 Aug 2014 09:30:39 virt-manager 2216] DEBUG (console:412) VNC connection to 192.168.127.1:5901 [Fr, 22 Aug 2014 09:30:40 virt-manager 2216] DEBUG (console:1029) Viewer connected [Fr, 22 Aug 2014 09:30:42 virt-manager 2216] DEBUG (manager:186) Closing manager [Fr, 22 Aug 2014 09:30:42 virt-manager 2216] DEBUG (engine:333) window counter decremented to 1 ***
From what I see here it appears as if virt-manager attempts to open a TCP connection to the remote libvirtd - however, there's a connection already up and running so it seems as if the two are colliding.
============================================================================= Then, after some time has passed, I'm also seeing this: *** [Fr, 22 Aug 2014 09:33:22 virt-manager 2216] DEBUG (config:709) get_default_directory(screenshot): returning /home/thorin/Downloads [Fr, 22 Aug 2014 09:33:23 virt-manager 2216] ERROR (engine:310) Could not refresh connection xen+tcp://******@192.168.127.1/ Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/engine.py", line 297, in _tick conn.tick() File "/usr/share/virt-manager/virtManager/connection.py", line 1311, in tick self._tick(noStatsUpdate) File "/usr/share/virt-manager/virtManager/connection.py", line 1320, in _tick self.hostinfo = self.vmm.getInfo() File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3630, in getInfo if ret is None: raise libvirtError ('virNodeGetInfo() failed', conn=self) libvirtError: Ende der Datei beim Lesen von Daten: Eingabe-/Ausgabefehler [Fr, 22 Aug 2014 09:33:23 virt-manager 2216] DEBUG (engine:311) Closing connection since libvirtd appears to have stopped [Fr, 22 Aug 2014 09:33:23 virt-manager 2216] DEBUG (details:579) Closing VM details: <vmmDomain object at 0x2a2f320 (virtManager+domain+vmmDomain at 0x27b7e00)> [Fr, 22 Aug 2014 09:33:23 virt-manager 2216] DEBUG (engine:333) window counter decremented to 0 [Fr, 22 Aug 2014 09:33:24 virt-manager 2216] DEBUG (cli:83) Uncaught exception: Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/console.py", line 341, in <lambda> lambda src: self.console.disconnected()) File "/usr/share/virt-manager/virtManager/console.py", line 1000, in disconnected self.close_viewer() File "/usr/share/virt-manager/virtManager/console.py", line 886, in close_viewer viewport = self.widget("console-vnc-viewport") File "/usr/share/virt-manager/virtManager/baseclass.py", line 248, in widget return self.window.get_object(name) AttributeError: 'NoneType' object has no attribute 'get_object' ============================================================================= I have also noticed an appearance of the following messages every five seconds (my preset refresh interval for VM usage statistics) - just in case this is messing anything up here: *** [Fr, 22 Aug 2014 09:30:40 virt-manager 2216] ERROR (connection:1165) Couldn't fe tch inactive interface 'enp0s29u1u2' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/connection.py", line 1162, in _poll_ helper check_obj(name, False) File "/usr/share/virt-manager/virtManager/connection.py", line 1134, in check_ obj current[key] = build_class(self, obj, key, is_active) File "/usr/share/virt-manager/virtManager/interface.py", line 41, in __init__ self.refresh_xml() File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 105, in refr esh_xml self._xml = self._XMLDesc(self._active_xml_flags) File "/usr/share/virt-manager/virtManager/interface.py", line 45, in _XMLDesc return self.interface.XMLDesc(flags) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2414, in XMLDesc if ret is None: raise libvirtError ('virInterfaceGetXMLDesc() failed', net=s elf) libvirtError: Ein Fehler ist aufgetreten, aber die Ursache ist unbekannt *** The interface in question points to a mobile phone that is currently not attached. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com