[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [virt-tools-list] Provision through virt-manager not supported on para-virtualized Xen?



2012/2/7 Cole Robinson <crobinso redhat com>:
> On 02/06/2012 08:01 AM, Cheer Xiao wrote:
>> 2012/2/6 Cheer Xiao <xiaqqaix gmail com>:
>>> 2012/2/5 Cheer Xiao <xiaqqaix gmail com>:
>>>> 2012/2/4 Cole Robinson <crobinso redhat com>:
>>>>> ... [snip] ...
>>>>> Okay, none of that indicates why it isn't working. I can't reproduce using
>>>>> your capabilities output and virt-manager 0.9.0 either (though I hacked it in
>>>>> so I could have missed a detail).
>>>>>
>>>>> Can you try with current upstream?
>>>>>
>>>>> git clone git://git.fedorahosted.org/virt-manager.git
>>>>> git clone git://git.fedorahosted.org/python-virtinst.git
>>>>> cd python-virtinst
>>>>> python setup.py build
>>>>> cd ../virt-manager
>>>>> ./autogen.sh && ./configure && make -j4
>>>>>
>>>>> # Then after you can launch virt-manager with
>>>>> PYTHONPATH=../python-virtinst python src/virt-manager.py --debug
>>>>>
>>>>> See if you can reproduce, and if so please provide debug output and we can go
>>>>> from there.
>>>>
>>>> Thanks! I'll be testing in a few days.
>>>
>>> The problem is still present, and I have collected the debug output. FYII,
>>>
>>
>> Sorry, wrong log. This is the correct version:
>>
>> xiaq vblackie ~/S/python-virtinst> virt-manager --debug
>>
>> ** WARNING **: Trying to register gtype 'GMountMountFlags' as enum
>> when in fact it is of type 'GFlags'
>>
>> ** WARNING **: Trying to register gtype 'GDriveStartFlags' as enum
>> when in fact it is of type 'GFlags'
>>
>> Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
>> 2012-02-06 20:59:56,609 (cli:71): virt-manager startup
>> 2012-02-06 20:59:56,618 (virt-manager:291): Launched as:
>> /usr/local/share/virt-manager/virt-manager.py --debug
>> 2012-02-06 20:59:56,620 (virt-manager:292): GTK version: (2, 24, 8)
>> 2012-02-06 20:59:56,621 (virt-manager:293): virt-manager version: 0.9.1
>> 2012-02-06 20:59:56,621 (virt-manager:294): virtManager import:
>> <module 'virtManager' from
>> '/usr/local/share/virt-manager/virtManager/__init__.py'>
>> 2012-02-06 20:59:56,873 (cli:118): virtinst version: 0.600.1
>> 2012-02-06 20:59:56,875 (cli:119): virtinst import: <module 'virtinst'
>> from '/usr/local/lib/python2.7/dist-packages/virtinst/__init__.pyc'>
>> /usr/local/share/virt-manager/virt-manager.py:305: DeprecationWarning:
>> Importing dbus.glib to use the GLib main loop with dbus-python is
>> deprecated.
>> Instead, use this sequence:
>>
>>     from dbus.mainloop.glib import DBusGMainLoop
>>
>>     DBusGMainLoop(set_as_default=True)
>>
>>   import dbus.glib
>> 2012-02-06 20:59:57,541 (engine:555): No inspection thread because
>> libguestfs is too old, not available, or libvirt is not thread safe.
>> 2012-02-06 20:59:57,552 (systray:138): Showing systray: False
>> 2012-02-06 20:59:57,566 (engine:346): About to connect to uris
>> ['xen+ssh://xiaq lux-002/']
>> 2012-02-06 20:59:57,780 (manager:171): Showing manager
>> 2012-02-06 20:59:57,946 (engine:471): window counter incremented to 1
>> 2012-02-06 20:59:59,745 (connection:991): Scheduling background open
>> thread for xen+ssh://xiaq lux-002/
>> 2012-02-06 20:59:59,756 (connection:1177): Background 'open
>> connection' thread is running
>> xiaq lux-002's password:
>> 2012-02-06 21:00:04,097 (connection:1227): Background open thread
>> complete, scheduling notify
>> 2012-02-06 21:00:04,102 (connection:1232): Notifying open result
>> 2012-02-06 21:00:06,158 (connection:1239): xen+ssh://xiaq lux-002/ capabilities:
>> <capabilities>
>>
>>   <host>
>>     <cpu>
>>       <arch>i686</arch>
>>       <features>
>>         <pae/>
>>       </features>
>>     </cpu>
>>     <migration_features>
>>       <live/>
>>       <uri_transports>
>>         <uri_transport>xenmigr</uri_transport>
>>       </uri_transports>
>>     </migration_features>
>>     <topology>
>>       <cells num='1'>
>>         <cell id='0'>
>>           <cpus num='4'>
>>             <cpu id='0'/>
>>             <cpu id='1'/>
>>             <cpu id='2'/>
>>             <cpu id='3'/>
>>           </cpus>
>>         </cell>
>>       </cells>
>>     </topology>
>>   </host>
>>
>>   <guest>
>>     <os_type>xen</os_type>
>>     <arch name='i686'>
>>       <wordsize>32</wordsize>
>>       <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
>>       <machine>xenpv</machine>
>>       <domain type='xen'>
>>       </domain>
>>     </arch>
>>     <features>
>>       <pae/>
>>     </features>
>>   </guest>
>>
>> </capabilities>
>>
>> 2012-02-06 21:00:08,648 (connection:551): Connection doesn't seem to
>> support interface APIs. Skipping all interface polling.
>> 2012-02-06 21:00:15,772 (connection:607): Connection managed save support: False
>> 2012-02-06 21:00:17,041 (halhelper:133): Unable to connect to HAL to
>> list network devices: org.freedesktop.DBus.Error.ServiceUnknown: The
>> name org.freedesktop.Hal was not provided by any .service files
>> 2012-02-06 21:00:17,044 (connection:186): Libvirt version does not
>> support physical interface listing
>> 2012-02-06 21:00:17,047 (connection:229): Using libvirt API for
>> mediadev enumeration
>> 2012-02-06 21:00:24,328 (create:174): Showing new vm wizard
>> start None None None
>> after None None None
>> 2012-02-06 21:00:24,439 (create:859): Guest type set to os_type=xen,
>> arch=i686, dom_type=xen
>> start xen xen None
>> after xen xen None
>> start xen xen i686
>> after xen xen i686
>> 2012-02-06 21:00:35,392 (engine:426): Tick is slow, not running at
>> requested rate.
>>
>
> Hmm, okay, can you try applying the attached debugging patch to virt-manager
> and reproduce again?

Patched against HEAD and got this debug output (for completeness I
also included the debug output after I hit the Cancel button of New VM
Wizard and then Exit button of virt-manager):

xiaq vblackie ~> virt-manager --debug

** WARNING **: Trying to register gtype 'GMountMountFlags' as enum
when in fact it is of type 'GFlags'

** WARNING **: Trying to register gtype 'GDriveStartFlags' as enum
when in fact it is of type 'GFlags'

Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
2012-02-09 17:15:00,053 (cli:71): virt-manager startup
2012-02-09 17:15:00,055 (virt-manager:291): Launched as:
/usr/local/share/virt-manager/virt-manager.py --debug
2012-02-09 17:15:00,056 (virt-manager:292): GTK version: (2, 24, 10)
2012-02-09 17:15:00,057 (virt-manager:293): virt-manager version: 0.9.1
2012-02-09 17:15:00,058 (virt-manager:294): virtManager import:
<module 'virtManager' from
'/usr/local/share/virt-manager/virtManager/__init__.py'>
2012-02-09 17:15:00,195 (cli:118): virtinst version: 0.600.1
2012-02-09 17:15:00,197 (cli:119): virtinst import: <module 'virtinst'
from '/usr/local/lib/python2.7/dist-packages/virtinst/__init__.pyc'>
/usr/local/share/virt-manager/virt-manager.py:305: DeprecationWarning:
Importing dbus.glib to use the GLib main loop with dbus-python is
deprecated.
Instead, use this sequence:

    from dbus.mainloop.glib import DBusGMainLoop

    DBusGMainLoop(set_as_default=True)

  import dbus.glib
2012-02-09 17:15:00,777 (engine:555): No inspection thread because
libguestfs is too old, not available, or libvirt is not thread safe.
2012-02-09 17:15:00,786 (systray:138): Showing systray: False
2012-02-09 17:15:00,788 (engine:346): About to connect to uris
['xen+ssh://xiaq lux-002/']
2012-02-09 17:15:00,974 (manager:171): Showing manager
2012-02-09 17:15:01,071 (engine:471): window counter incremented to 1
2012-02-09 17:15:08,640 (connection:991): Scheduling background open
thread for xen+ssh://xiaq lux-002/
2012-02-09 17:15:08,651 (connection:1177): Background 'open
connection' thread is running
xiaq lux-002's password:
2012-02-09 17:15:14,723 (connection:1227): Background open thread
complete, scheduling notify
2012-02-09 17:15:14,730 (connection:1232): Notifying open result
2012-02-09 17:15:16,775 (connection:1239): xen+ssh://xiaq lux-002/ capabilities:
<capabilities>

  <host>
    <cpu>
      <arch>i686</arch>
      <features>
        <pae/>
      </features>
    </cpu>
    <migration_features>
      <live/>
      <uri_transports>
        <uri_transport>xenmigr</uri_transport>
      </uri_transports>
    </migration_features>
    <topology>
      <cells num='1'>
        <cell id='0'>
          <cpus num='4'>
            <cpu id='0'/>
            <cpu id='1'/>
            <cpu id='2'/>
            <cpu id='3'/>
          </cpus>
        </cell>
      </cells>
    </topology>
  </host>

  <guest>
    <os_type>xen</os_type>
    <arch name='i686'>
      <wordsize>32</wordsize>
      <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
      <machine>xenpv</machine>
      <domain type='xen'>
      </domain>
    </arch>
    <features>
      <pae/>
    </features>
  </guest>

</capabilities>

2012-02-09 17:15:18,751 (connection:551): Connection doesn't seem to
support interface APIs. Skipping all interface polling.
2012-02-09 17:15:25,233 (connection:607): Connection managed save support: False
2012-02-09 17:15:26,279 (halhelper:133): Unable to connect to HAL to
list network devices: org.freedesktop.DBus.Error.ServiceUnknown: The
name org.freedesktop.Hal was not provided by any .service files
2012-02-09 17:15:26,283 (connection:186): Libvirt version does not
support physical interface listing
2012-02-09 17:15:26,286 (connection:229): Using libvirt API for
mediadev enumeration
2012-02-09 17:15:31,643 (create:174): Showing new vm wizard
caps <virtinst.CapabilitiesParser.Capabilities object at 0x2b66250>
conn no install options False
caps no install options False
my no install options: guest <virtinst.CapabilitiesParser.Guest object
at 0x2694890>
doms [<virtinst.CapabilitiesParser.Domain object at 0x2694950>]
False
reparsing capabilities
now my no install options: guest <virtinst.CapabilitiesParser.Guest
object at 0x26a9050>
doms [<virtinst.CapabilitiesParser.Domain object at 0x26a9210>]
False
2012-02-09 17:15:31,830 (create:878): Guest type set to os_type=xen,
arch=i686, dom_type=xen
2012-02-09 17:15:39,385 (create:181): Closing new vm wizard
2012-02-09 17:15:44,214 (manager:184): Closing manager
2012-02-09 17:15:44,220 (engine:475): window counter decremented to 0
2012-02-09 17:15:44,225 (manager:184): Closing manager
2012-02-09 17:15:44,242 (create:181): Closing new vm wizard
2012-02-09 17:15:44,260 (engine:548): Leaked <vmmConnection object at
0x2b62d20 (virtManager+connection+vmmConnection at 0x1b762a0)>
2012-02-09 17:15:44,261 (engine:548): Leaked <vmmNodeDevice object at
0x26a7460 (virtManager+nodedev+vmmNodeDevice at 0x2545560)>
2012-02-09 17:15:44,263 (engine:548): Leaked <vmmNodeDevice object at
0x26a7550 (virtManager+nodedev+vmmNodeDevice at 0x2bc4780)>
2012-02-09 17:15:44,264 (engine:548): Leaked <vmmDomain object at
0x26a7690 (virtManager+domain+vmmDomain at 0x254ac40)>
2012-02-09 17:15:44,265 (engine:548): Leaked <vmmMediaDevice object at
0x26a7b40 (virtManager+mediadev+vmmMediaDevice at 0x2554b60)>
2012-02-09 17:15:44,266 (engine:548): Leaked <vmmMediaDevice object at
0x26a7b90 (virtManager+mediadev+vmmMediaDevice at 0x2850960)>
2012-02-09 17:15:44,267 (engine:550): Exiting app normally.
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/local/share/virt-manager/virtManager/cli.py", line 82, in
exception_log
    s = traceback.format_exception(typ, val, tb)
TypeError: 'NoneType' object is not callable

Original exception was:
Traceback (most recent call last):
  File "/usr/local/share/virt-manager/virtManager/libvirtglib.py",
line 132, in glib_event_handle_update
    state.lock.acquire()
AttributeError: 'NoneType' object has no attribute 'lock'
Unhandled exception in thread started by <bound method
Thread.__bootstrap of <Thread(Tick thread, stopped daemon
139928080676608)>>
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/local/share/virt-manager/virtManager/cli.py", line 82, in
exception_log
    s = traceback.format_exception(typ, val, tb)
TypeError: 'NoneType' object is not callable

Original exception was:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 525, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.7/threading.py", line 565, in __bootstrap_inner
    (self.name, _format_exc()))
  File "/usr/lib/python2.7/traceback.py", line 240, in format_exc
    etype, value, tb = sys.exc_info()
AttributeError: 'NoneType' object has no attribute 'exc_info'
Exception AttributeError: "'NoneType' object has no attribute
'virNodeDeviceFree'" in <bound method virNodeDevice.__del__ of
<libvirt.virNodeDevice instance at 0x26a6200>> ignored



-- 
Regards,
Cheer Xiao aka. xiaq


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]