kimchi-project / kimchi

An HTML5 management interface for KVM guests
https://github.com/kimchi-project/kimchi/releases/latest
Other
3.08k stars 366 forks source link

Failed to import plugin.kimchi.Kimchi [Compile from source code] #1213

Closed steve3add7 closed 6 years ago

steve3add7 commented 6 years ago

hihi! I install wok and kimchi on own specific OS. Got some error log as below, I don't know how to debug because "e.message" == nothing

wok-error.log

Debug: module_name=plugins.kimchi, class_name=Kimchi Debug: mod=<module 'wok.plugins.kimchi' from '/raid/data/module/kimchi/sys/usr/lib/python2.7/site-packages/wok/plugins/kimchi/init.pyc'> Debug: after getattr=<class 'wok.plugins.kimchi.root.Kimchi'> Unable to register pool event handler: virConnectStoragePoolEventRegisterAny() failed Unable to register pool event handler: virConnectStoragePoolEventRegisterAny() failed Unable to register network event handler: virConnectNetworkEventRegisterAny() failed Unable to register network event handler: virConnectNetworkEventRegisterAny() failed Unable to register network event handler: virConnectNetworkEventRegisterAny() failed

Kimchi: Running feature tests Service Libvirtd running ...: True operation failed: no storage pools were found on host '127.0.0.1' NFS Target Probe support ...: True Fibre Channel Host support .: True Run command: 'modprobe vfio-pci' Kernel VFIO support ........: True Network Manager running ....: True Memory Hotplug support .....: True Kimchi: Feature tests completed

Unknown device type: drm Unknown device type: drm Unknown device type: drm Unknown device type: drm Unknown device type: drm Unknown device type: drm Unknown device type: drm Unknown device type: drm Unknown device type: drm Debug: plugin_app failed, Failed to import plugin plugins.kimchi.Kimchi, error:

Add debug code on "src/wok/utils.py"

def load_plugin(plugin_name, plugin_config): wok_log.debug(" Debug: test") try: options = get_plugin_config_options() plugin_app = import_class(plugin_class)(options) except (ImportError, Exception), e: '''debug''' wok_log.debug(" Debug: plugin_app failed, %s", e.message) cherrypy.log.error_log.error( "Failed to import plugin %s, " "error: %s" % (plugin_class, e.message) ) return

alinefm commented 6 years ago

Hi,

Do you have all the dependencies installed in your system? Is libvirtd service running?

Regards,

On Sat, Feb 10, 2018 at 1:51 AM, Ekko notifications@github.com wrote:

hihi! I install wok and kimchi on own specific OS. Got some error log as below, I don't know how to debug because "e.message" == nothing wok-error.log

Debug http://test: module_name=plugins.kimchi, class_name=Kimchi Debug http://test: mod=<module 'wok.plugins.kimchi' from '/raid/data/module/kimchi/sys/usr/lib/python2.7/site- packages/wok/plugins/kimchi/init.pyc'> Debug http://test: after getattr=<class 'wok.plugins.kimchi.root. Kimchi'> Unable to register pool event handler: virConnectStoragePoolEventRegisterAny() failed Unable to register pool event handler: virConnectStoragePoolEventRegisterAny() failed Unable to register network event handler: virConnectNetworkEventRegisterAny() failed Unable to register network event handler: virConnectNetworkEventRegisterAny() failed Unable to register network event handler: virConnectNetworkEventRegisterAny() failed

Kimchi: Running feature tests Service Libvirtd running ...: True operation failed: no storage pools were found on host '127.0.0.1' NFS Target Probe support ...: True Fibre Channel Host support .: True Run command: 'modprobe vfio-pci' Kernel VFIO support ........: True Network Manager running ....: True Memory Hotplug support .....: True Kimchi: Feature tests completed Unknown device type: drm Unknown device type: drm Unknown device type: drm Unknown device type: drm Unknown device type: drm Unknown device type: drm Unknown device type: drm Unknown device type: drm Unknown device type: drm Debug http://test: plugin_app failed, Failed to import plugin plugins.kimchi.Kimchi, error: Add debug code on "src/wok/utils.py" def load_plugin(plugin_name, plugin_config): wok_log.debug(" Debug http://test: test") try: options = get_plugin_config_options() plugin_app = import_class(plugin_class)(options) except (ImportError, Exception), e: '''debug''' wok_log.debug(" Debug http://test: plugin_app failed, %s", e.message) cherrypy.log.error_log.error( "Failed to import plugin %s, " "error: %s" % (plugin_class, e.message) ) return

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kimchi-project/kimchi/issues/1213, or mute the thread https://github.com/notifications/unsubscribe-auth/AEsZdjj-caWrwIhEY-ObWUeJLS5TC1T8ks5tTTxhgaJpZM4SA1ND .

-- Aline Manera

steve3add7 commented 6 years ago

Hi Aline, Thank for your reply!

I set the wrong parameter of storage pool. And also I missing some dependencies packages. After I fixed that, it is working fine!

This issue could be closed! Thanks a lot