[virt-tools-list] virt-manager issue, and ideas?
Cole Robinson
crobinso at redhat.com
Wed Sep 16 20:49:21 UTC 2015
On 09/16/2015 04:29 PM, Jason Helfman wrote:
> On Wed, Sep 16, 2015 at 9:10 AM, Cole Robinson <crobinso at redhat.com
> <mailto:crobinso at redhat.com>> wrote:
>
> On 09/16/2015 12:04 PM, Jason Helfman wrote:
> > Here is a link to a bug that was recently filed with FreeBSD on using
> > virt-manager that displays an error.
> >
> > Any ideas on this issue?
> > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203152
> >
> > Current version in our tree is 1.2.1
>
> First thing to ask for when any bug is filed with a UI error is complete
> output of virt-manager --debug when reproducing. Please ask the reporter
> for that
>
> I haven't seen the error before... probably some issue with the vnc or spice
> gobject introspection bindings on freebsd. But the debug info will give
> some hints
>
> Thanks,
> Cole
>
>
> The output is attached to the bug, now, but I'll also place it in-line.
>
> [yonas at desktop yonas]$ virt-manager --debug
> [Wed, 16 Sep 2015 14:23:15 virt-manager 29623] DEBUG (cli:187) Launched with command line: /usr/local/share/virt-manager/virt-manager --debug
> [Wed, 16 Sep 2015 14:23:15 virt-manager 29623] DEBUG (virt-manager:148) virt-manager version: 1.1.0
> [Wed, 16 Sep 2015 14:23:15 virt-manager 29623] DEBUG (virt-manager:149) virtManager import: <module 'virtManager' from '/usr/local/share/virt-manager/virtManager/__init__.py'>
> [Wed, 16 Sep 2015 14:23:15 virt-manager 29623] DEBUG (virt-manager:207) GTK version: 3.14.12
> [Wed, 16 Sep 2015 14:23:15 virt-manager 29623] DEBUG (engine:455) libguestfs inspection support: False
> [Wed, 16 Sep 2015 14:23:15 virt-manager 29623] DEBUG (systray:150) Showing systray: False
> [Wed, 16 Sep 2015 14:23:15 virt-manager 29623] DEBUG (engine:229) About to connect to uris ['qemu+ssh://yonas@u3/system']
> [Wed, 16 Sep 2015 14:23:16 virt-manager 29623] DEBUG (manager:208) Showing manager
> [Wed, 16 Sep 2015 14:23:16 virt-manager 29623] DEBUG (engine:356) window counter incremented to 1
> [Wed, 16 Sep 2015 14:23:16 virt-manager 29623] DEBUG (connection:946) Scheduling background open thread for qemu+ssh://yonas@u3/system
> [Wed, 16 Sep 2015 14:23:16 virt-manager 29623] DEBUG (connection:960) Background 'open connection' thread is running
> [Wed, 16 Sep 2015 14:23:16 virt-manager 29623] DEBUG (connection:1011) Background open thread complete, scheduling notify
> [Wed, 16 Sep 2015 14:23:16 virt-manager 29623] DEBUG (connection:1016) Notifying open result
> [Wed, 16 Sep 2015 14:23:16 virt-manager 29623] DEBUG (connection:1022) libvirt version=1002016
> [Wed, 16 Sep 2015 14:23:16 virt-manager 29623] DEBUG (connection:1024) daemon version=1002012
> [Wed, 16 Sep 2015 14:23:16 virt-manager 29623] DEBUG (connection:1025) conn version=2002000
> [Wed, 16 Sep 2015 14:23:16 virt-manager 29623] DEBUG (connection:1027) qemu+ssh://yonas@u3/system capabilities:
> <capabilities>
>
> <host>
> <uuid>01ac76fb-8dfe-d511-995a-f4ce46ba0a3c</uuid>
> <cpu>
> <arch>x86_64</arch>
> <model>Nehalem</model>
> <vendor>Intel</vendor>
> <topology sockets='1' cores='4' threads='2'/>
> <feature name='invtsc'/>
> <feature name='rdtscp'/>
> <feature name='dca'/>
> <feature name='pdcm'/>
> <feature name='xtpr'/>
> <feature name='tm2'/>
> <feature name='est'/>
> <feature name='vmx'/>
> <feature name='ds_cpl'/>
> <feature name='monitor'/>
> <feature name='dtes64'/>
> <feature name='pbe'/>
> <feature name='tm'/>
> <feature name='ht'/>
> <feature name='ss'/>
> <feature name='acpi'/>
> <feature name='ds'/>
> <feature name='vme'/>
> <pages unit='KiB' size='4'/>
> <pages unit='KiB' size='2048'/>
> </cpu>
> <power_management>
> <suspend_mem/>
> <suspend_disk/>
> <suspend_hybrid/>
> </power_management>
> <migration_features>
> <live/>
> <uri_transports>
> <uri_transport>tcp</uri_transport>
> <uri_transport>rdma</uri_transport>
> </uri_transports>
> </migration_features>
> <topology>
> <cells num='2'>
> <cell id='0'>
> <memory unit='KiB'>9198016</memory>
> <pages unit='KiB' size='4'>2299504</pages>
> <pages unit='KiB' size='2048'>0</pages>
> <distances>
> <sibling id='0' value='10'/>
> <sibling id='1' value='20'/>
> </distances>
> <cpus num='8'>
> <cpu id='0' socket_id='0' core_id='0' siblings='0,8'/>
> <cpu id='1' socket_id='0' core_id='1' siblings='1,9'/>
> <cpu id='2' socket_id='0' core_id='2' siblings='2,10'/>
> <cpu id='3' socket_id='0' core_id='3' siblings='3,11'/>
> <cpu id='8' socket_id='0' core_id='0' siblings='0,8'/>
> <cpu id='9' socket_id='0' core_id='1' siblings='1,9'/>
> <cpu id='10' socket_id='0' core_id='2' siblings='2,10'/>
> <cpu id='11' socket_id='0' core_id='3' siblings='3,11'/>
> </cpus>
> </cell>
> <cell id='1'>
> <memory unit='KiB'>9287628</memory>
> <pages unit='KiB' size='4'>2321907</pages>
> <pages unit='KiB' size='2048'>0</pages>
> <distances>
> <sibling id='0' value='20'/>
> <sibling id='1' value='10'/>
> </distances>
> <cpus num='8'>
> <cpu id='4' socket_id='1' core_id='0' siblings='4,12'/>
> <cpu id='5' socket_id='1' core_id='1' siblings='5,13'/>
> <cpu id='6' socket_id='1' core_id='2' siblings='6,14'/>
> <cpu id='7' socket_id='1' core_id='3' siblings='7,15'/>
> <cpu id='12' socket_id='1' core_id='0' siblings='4,12'/>
> <cpu id='13' socket_id='1' core_id='1' siblings='5,13'/>
> <cpu id='14' socket_id='1' core_id='2' siblings='6,14'/>
> <cpu id='15' socket_id='1' core_id='3' siblings='7,15'/>
> </cpus>
> </cell>
> </cells>
> </topology>
> <secmodel>
> <model>apparmor</model>
> <doi>0</doi>
> </secmodel>
> <secmodel>
> <model>dac</model>
> <doi>0</doi>
> <baselabel type='kvm'>+106:+106</baselabel>
> <baselabel type='qemu'>+106:+106</baselabel>
> </secmodel>
> </host>
>
> <guest>
> <os_type>hvm</os_type>
> <arch name='i686'>
> <wordsize>32</wordsize>
> <emulator>/usr/bin/qemu-system-i386</emulator>
> <machine canonical='pc-i440fx-utopic' maxCpus='255'>ubuntu</machine>
> <machine maxCpus='255'>pc-0.12</machine>
> <machine maxCpus='255'>pc-1.3</machine>
> <machine maxCpus='255'>pc-q35-1.6</machine>
> <machine maxCpus='255'>pc-q35-1.5</machine>
> <machine maxCpus='255'>pc-i440fx-1.6</machine>
> <machine canonical='pc-q35-2.2' maxCpus='255'>q35</machine>
> <machine maxCpus='1'>xenpv</machine>
> <machine maxCpus='255'>pc-i440fx-1.7</machine>
> <machine maxCpus='255'>pc-q35-2.1</machine>
> <machine maxCpus='255'>pc-0.11</machine>
> <machine maxCpus='255'>pc-0.10</machine>
> <machine maxCpus='255'>pc-1.2</machine>
> <machine canonical='pc-i440fx-2.2' maxCpus='255'>pc</machine>
> <machine maxCpus='1'>isapc</machine>
> <machine maxCpus='255'>pc-i440fx-trusty</machine>
> <machine maxCpus='255'>pc-q35-1.4</machine>
> <machine maxCpus='128'>xenfv</machine>
> <machine maxCpus='255'>pc-0.15</machine>
> <machine maxCpus='255'>pc-i440fx-1.5</machine>
> <machine maxCpus='255'>pc-0.14</machine>
> <machine maxCpus='255'>pc-q35-2.0</machine>
> <machine maxCpus='255'>pc-i440fx-1.4</machine>
> <machine maxCpus='255'>pc-1.1</machine>
> <machine maxCpus='255'>pc-q35-1.7</machine>
> <machine maxCpus='255'>pc-i440fx-2.1</machine>
> <machine maxCpus='255'>pc-1.0</machine>
> <machine maxCpus='255'>pc-i440fx-2.0</machine>
> <machine maxCpus='255'>pc-0.13</machine>
> <domain type='qemu'/>
> <domain type='kvm'>
> <emulator>/usr/bin/kvm-spice</emulator>
> <machine canonical='pc-i440fx-utopic' maxCpus='255'>ubuntu</machine>
> <machine maxCpus='255'>pc-1.3</machine>
> <machine maxCpus='255'>pc-0.12</machine>
> <machine maxCpus='255'>pc-q35-1.6</machine>
> <machine maxCpus='255'>pc-q35-1.5</machine>
> <machine maxCpus='255'>pc-i440fx-1.6</machine>
> <machine canonical='pc-q35-2.2' maxCpus='255'>q35</machine>
> <machine maxCpus='255'>pc-i440fx-1.7</machine>
> <machine maxCpus='1'>xenpv</machine>
> <machine maxCpus='255'>pc-q35-2.1</machine>
> <machine maxCpus='255'>pc-0.11</machine>
> <machine maxCpus='255'>pc-0.10</machine>
> <machine canonical='pc-i440fx-2.2' maxCpus='255'>pc</machine>
> <machine maxCpus='255'>pc-1.2</machine>
> <machine maxCpus='1'>isapc</machine>
> <machine maxCpus='255'>pc-i440fx-trusty</machine>
> <machine maxCpus='255'>pc-q35-1.4</machine>
> <machine maxCpus='128'>xenfv</machine>
> <machine maxCpus='255'>pc-0.15</machine>
> <machine maxCpus='255'>pc-i440fx-1.5</machine>
> <machine maxCpus='255'>pc-i440fx-1.4</machine>
> <machine maxCpus='255'>pc-q35-2.0</machine>
> <machine maxCpus='255'>pc-0.14</machine>
> <machine maxCpus='255'>pc-1.1</machine>
> <machine maxCpus='255'>pc-q35-1.7</machine>
> <machine maxCpus='255'>pc-i440fx-2.1</machine>
> <machine maxCpus='255'>pc-1.0</machine>
> <machine maxCpus='255'>pc-i440fx-2.0</machine>
> <machine maxCpus='255'>pc-0.13</machine>
> </domain>
> </arch>
> <features>
> <cpuselection/>
> <deviceboot/>
> <disksnapshot default='on' toggle='no'/>
> <acpi default='on' toggle='yes'/>
> <apic default='on' toggle='no'/>
> <pae/>
> <nonpae/>
> </features>
> </guest>
>
> <guest>
> <os_type>hvm</os_type>
> <arch name='x86_64'>
> <wordsize>64</wordsize>
> <emulator>/usr/bin/qemu-system-x86_64</emulator>
> <machine canonical='pc-i440fx-utopic' maxCpus='255'>ubuntu</machine>
> <machine maxCpus='255'>pc-1.3</machine>
> <machine maxCpus='255'>pc-0.12</machine>
> <machine maxCpus='255'>pc-q35-1.6</machine>
> <machine maxCpus='255'>pc-q35-1.5</machine>
> <machine maxCpus='255'>pc-i440fx-1.6</machine>
> <machine canonical='pc-q35-2.2' maxCpus='255'>q35</machine>
> <machine maxCpus='255'>pc-i440fx-1.7</machine>
> <machine maxCpus='1'>xenpv</machine>
> <machine maxCpus='255'>pc-q35-2.1</machine>
> <machine maxCpus='255'>pc-0.11</machine>
> <machine maxCpus='255'>pc-0.10</machine>
> <machine canonical='pc-i440fx-2.2' maxCpus='255'>pc</machine>
> <machine maxCpus='255'>pc-1.2</machine>
> <machine maxCpus='1'>isapc</machine>
> <machine maxCpus='255'>pc-i440fx-trusty</machine>
> <machine maxCpus='255'>pc-q35-1.4</machine>
> <machine maxCpus='128'>xenfv</machine>
> <machine maxCpus='255'>pc-0.15</machine>
> <machine maxCpus='255'>pc-i440fx-1.5</machine>
> <machine maxCpus='255'>pc-i440fx-1.4</machine>
> <machine maxCpus='255'>pc-q35-2.0</machine>
> <machine maxCpus='255'>pc-0.14</machine>
> <machine maxCpus='255'>pc-1.1</machine>
> <machine maxCpus='255'>pc-q35-1.7</machine>
> <machine maxCpus='255'>pc-i440fx-2.1</machine>
> <machine maxCpus='255'>pc-1.0</machine>
> <machine maxCpus='255'>pc-i440fx-2.0</machine>
> <machine maxCpus='255'>pc-0.13</machine>
> <domain type='qemu'/>
> <domain type='kvm'>
> <emulator>/usr/bin/kvm-spice</emulator>
> <machine canonical='pc-i440fx-utopic' maxCpus='255'>ubuntu</machine>
> <machine maxCpus='255'>pc-1.3</machine>
> <machine maxCpus='255'>pc-0.12</machine>
> <machine maxCpus='255'>pc-q35-1.6</machine>
> <machine maxCpus='255'>pc-q35-1.5</machine>
> <machine maxCpus='255'>pc-i440fx-1.6</machine>
> <machine canonical='pc-q35-2.2' maxCpus='255'>q35</machine>
> <machine maxCpus='255'>pc-i440fx-1.7</machine>
> <machine maxCpus='1'>xenpv</machine>
> <machine maxCpus='255'>pc-q35-2.1</machine>
> <machine maxCpus='255'>pc-0.11</machine>
> <machine maxCpus='255'>pc-0.10</machine>
> <machine canonical='pc-i440fx-2.2' maxCpus='255'>pc</machine>
> <machine maxCpus='255'>pc-1.2</machine>
> <machine maxCpus='1'>isapc</machine>
> <machine maxCpus='255'>pc-i440fx-trusty</machine>
> <machine maxCpus='255'>pc-q35-1.4</machine>
> <machine maxCpus='128'>xenfv</machine>
> <machine maxCpus='255'>pc-0.15</machine>
> <machine maxCpus='255'>pc-i440fx-1.5</machine>
> <machine maxCpus='255'>pc-i440fx-1.4</machine>
> <machine maxCpus='255'>pc-q35-2.0</machine>
> <machine maxCpus='255'>pc-0.14</machine>
> <machine maxCpus='255'>pc-1.1</machine>
> <machine maxCpus='255'>pc-q35-1.7</machine>
> <machine maxCpus='255'>pc-i440fx-2.1</machine>
> <machine maxCpus='255'>pc-1.0</machine>
> <machine maxCpus='255'>pc-i440fx-2.0</machine>
> <machine maxCpus='255'>pc-0.13</machine>
> </domain>
> </arch>
> <features>
> <cpuselection/>
> <deviceboot/>
> <disksnapshot default='on' toggle='no'/>
> <acpi default='on' toggle='yes'/>
> <apic default='on' toggle='no'/>
> </features>
> </guest>
>
> </capabilities>
>
> [Wed, 16 Sep 2015 14:23:16 virt-manager 29623] DEBUG (connection:804) Using domain events
> [Wed, 16 Sep 2015 14:23:16 virt-manager 29623] DEBUG (connection:838) Using network events
> [Wed, 16 Sep 2015 14:23:17 virt-manager 29623] DEBUG (connection:210) Using libvirt API for mediadev enumeration
> [Wed, 16 Sep 2015 14:23:17 virt-manager 29623] DEBUG (connection:1198) domain=security-onion status=Shutoff added
> [Wed, 16 Sep 2015 14:23:17 virt-manager 29623] DEBUG (connection:1198) domain=ovirt-engine status=Shutoff added
> [Wed, 16 Sep 2015 14:23:17 virt-manager 29623] DEBUG (connection:1198) domain=fbsd status=Shutoff added
> [Wed, 16 Sep 2015 14:23:17 virt-manager 29623] DEBUG (connection:1198) domain=coreos1 status=Shutoff added
> [Wed, 16 Sep 2015 14:23:17 virt-manager 29623] DEBUG (connection:1207) network=default added
> [Wed, 16 Sep 2015 14:23:17 virt-manager 29623] DEBUG (connection:1220) pool=default added
> [Wed, 16 Sep 2015 14:23:17 virt-manager 29623] DEBUG (connection:1220) pool=ISOs added
> [Wed, 16 Sep 2015 14:23:17 virt-manager 29623] DEBUG (connection:1220) pool=portable-disk added
> [Wed, 16 Sep 2015 14:23:17 virt-manager 29623] DEBUG (connection:1220) pool=iSCSI added
> [Wed, 16 Sep 2015 14:23:17 virt-manager 29623] DEBUG (connection:1220) pool=fbsd-iscsi-freenas2 added
> [Wed, 16 Sep 2015 14:23:17 virt-manager 29623] DEBUG (connection:1233) interface=lo added
> [Wed, 16 Sep 2015 14:23:17 virt-manager 29623] DEBUG (connection:1233) interface=em1 added
> [Wed, 16 Sep 2015 14:23:17 virt-manager 29623] DEBUG (connection:1233) interface=eth0 added
> [Wed, 16 Sep 2015 14:23:21 virt-manager 29623] DEBUG (details:729) Showing VM details: <vmmDomain object at 0x813ee8d70 (virtManager+domain+vmmDomain at 0x81281d640)>
> [Wed, 16 Sep 2015 14:23:21 virt-manager 29623] DEBUG (engine:356) window counter incremented to 2
> [Wed, 16 Sep 2015 14:23:26 virt-manager 29623] DEBUG (engine:1047) Starting vm 'ovirt-engine'
> [Wed, 16 Sep 2015 14:23:27 virt-manager 29623] DEBUG (domain:1692) domain=ovirt-engine status changed to 1=Running
> [Wed, 16 Sep 2015 14:23:28 virt-manager 29623] DEBUG (console:1499) Starting connect process for proto=vnc trans=ssh connhost=u3 connuser=yonas connport=None gaddr=127.0.0.1 gport=5900 gtlsport=None gsocket=None
> [Wed, 16 Sep 2015 14:23:28 virt-manager 29623] ERROR (console:1514) Error connection to graphical console
> Traceback (most recent call last):
> File "/usr/local/share/virt-manager/virtManager/console.py", line 1502, in _try_login
> self.viewer = VNCViewer(self)
> File "/usr/local/share/virt-manager/virtManager/console.py", line 388, in __init__
> self.display = GtkVnc.Display.new()
> TypeError: Object constructor cannot be used to create instances of a subclass Display
> [Wed, 16 Sep 2015 14:23:28 virt-manager 29623] DEBUG (console:1499) Starting connect process for proto=vnc trans=ssh connhost=u3 connuser=yonas connport=None gaddr=127.0.0.1 gport=5900 gtlsport=None gsocket=None
> [Wed, 16 Sep 2015 14:23:28 virt-manager 29623] ERROR (console:1514) Error connection to graphical console
> Traceback (most recent call last):
> File "/usr/local/share/virt-manager/virtManager/console.py", line 1502, in _try_login
> self.viewer = VNCViewer(self)
> File "/usr/local/share/virt-manager/virtManager/console.py", line 388, in __init__
> self.display = GtkVnc.Display.new()
> TypeError: Object constructor cannot be used to create instances of a subclass Display
> [Wed, 16 Sep 2015 14:23:32 virt-manager 29623] DEBUG (details:746) Closing VM details: <vmmDomain object at 0x813ee8d70 (virtManager+domain+vmmDomain at 0x81281d640)>
> [Wed, 16 Sep 2015 14:23:32 virt-manager 29623] DEBUG (engine:360) window counter decremented to 1
> [Wed, 16 Sep 2015 14:23:33 virt-manager 29623] DEBUG (manager:219) Closing manager
> [Wed, 16 Sep 2015 14:23:33 virt-manager 29623] DEBUG (engine:360) window counter decremented to 0
> /usr/local/share/virt-manager/virtManager/engine.py:381: Warning: Source ID 8 was not found when attempting to remove it
> GLib.source_remove(self.timer)
> [Wed, 16 Sep 2015 14:23:33 virt-manager 29623] DEBUG (details:746) Closing VM details: <vmmDomain object at 0x813ee8d70 (virtManager+domain+vmmDomain at 0x81281d640)>
> [Wed, 16 Sep 2015 14:23:33 virt-manager 29623] DEBUG (connection:882) conn.close() uri=qemu+ssh://yonas@u3/system
> [Wed, 16 Sep 2015 14:23:33 virt-manager 29623] DEBUG (engine:442) Exiting app normally.
Strange... the new() doesn't cause problems on Fedora. But there's a few hits
on google with people hitting the same problem with other pygobject code:
https://stackoverflow.com/questions/23207870/python-gtk3-inheritance
So I pushed this, it should fix that issue. You'll need to adapt the patch to
change console.py for 1.2.1 though
commit 5df6757a0bd9b8f4dcca17a73bad3d9fe46d7823
Author: Cole Robinson <crobinso at redhat.com>
Date: Wed Sep 16 16:46:39 2015 -0400
viewers: Use GtkVnc.Display() not GtkVnc.Display.new()
The latter doesn't cause problems on Fedora, but it's currently throwing
errors on Freebsd:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203152
- Cole
More information about the virt-tools-list
mailing list