Bug 489799
| Summary: | libvirt "missing source" error message overwritten by "failed to build sexpr" error | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Pasi Karkkainen <pasik> | ||||||||
| Component: | libvirt | Assignee: | Daniel Veillard <veillard> | ||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | low | ||||||||||
| Version: | unspecified | CC: | berrange, crobinso, markmc, virt-maint, xen-maint | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | All | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2009-06-04 10:58:00 UTC | Type: | --- | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Pasi Karkkainen
2009-03-11 21:36:47 UTC
This bit of the logs is interesting.. Wed, 11 Mar 2009 21:58:52 WARNING Non-error from libvirt: 'Failed to find the network: Is the daemon running ?' Do you have the libvirtd daemon running on this machine ? (eg do service libvirtd start) Sorry for the delay.. I was away for a while. It seems libvirtd had crashed.. there was a segfault from libvirtd in /var/log/messages. This segfault could be a problem of pv_ops dom0 kernel, and not libvirtd itself.. I'll have to do some more testing and report back here. Ok, now I did more testing. This "XML description for failed to build sexpr error" happens when libvirtd is not running and you run virt-install. When I created this bz libvirtd was not running because it had unexpectedly crashed with segfault.. which I believe was because of pv_ops dom0 kernel CONFIG_HIGHPTE bug on 32bit machines. So no need worry about that segfault.. I think. Should that error message be fixed to say 'libvirtd is not running, cannot continue' instead of giving pretty mysterious error? :) Hmm.. actually now it crashed again: /var/log/messages: Mar 23 22:48:55 dom0test kernel: libvirtd[2790]: segfault at 62696c00 ip b7e746f5 sp bfa5fd10 error 4 in libvirt.so.0.5.1[b7e1b000+98000] gdb traceback from libvirtd crash available here: http://pasik.reaktio.net/xen/fedora/fedora-10-virt-install-libvirtd-crash.txt Also attached to this bz. It seems to happen when I hit CTRL+C during virt-install execution.. Is that likely caused by (buggy) pv_ops dom0 kernel, or a bug in libvirtd? Created attachment 336389 [details]
fedora-10-virt-install-libvirtd-crash.txt
So yeah.. should I create a separate bz about that libvirtd crash issue? About the original problem in this bz: Would be a good idea to fix the error message to say clearly that libvirtd is not running, instead of giving mysterious "XML description for failed to build sexpr error".. And also, should I be testing pv_ops dom0 stuff with rawhide instead of F10? :) Yeah F11 would be nicer, but failing that, at least update to the 0.6.1 libvirt build available in F10 updates-testing, whch may well fix the crash you see I just upgraded libvirt stuff to 0.6.1 on my F10 dom0 testbox and it fixed a lot of the problems I had! libvirtd doesn't seem to crash anymore. AND earlier I had some problems with virt-install stalling instead of opening a console for F10 domU installer.. That works now aswell! Now I've been able to run CentOS 5.3 PV domU and Fedora 10 PV domU on Fedora 10 pv_ops 2.6.29-rc8 dom0 :) Installing PV domU with virt-install seems to work also. Thanks! The PID file problem with libvirtd is still there though with 0.6.1: [root@dom0test ~]# /etc/init.d/libvirtd start Starting libvirtd daemon: [ OK ] When in reality it said: error : Failed to open pid file '/var/run/libvirtd.pid' : File exists and didn't start. But yeah, there's another bz about that libvirtd PID issue: https://bugzilla.redhat.com/show_bug.cgi?id=491766 The original problem of this bz still remains though.. so I guess this bz still has to be open: if libvirtd is not running print error about it; otherwise virt-install will fail later with "XML description for failed to build sexpr" error. virt-install doesn't need to print anything in particular.
The problem is in the libvirt Xen driver & the way it converts the XML -> SEXPR. If the daemon is missing, it can't turn this bit:
<interface type='network'>
<source network='default'/>
<mac address='00:16:36:55:e7:dd'/>
</interface>
into a bridge name required by XenD. It reports a nice error about this that clearly explains the problem....
....unfortunately it then overwrites this useful error with the useless message
"XML description for failed to build sexpr
so we need to fix libvirt Xen driver.
Okay, updated the title to reflect the error overwriting problem Moving to upstream libvirt bugzilla, since it's not a huge issue for Fedora Created attachment 337324 [details] Fix error reporting for missing network Posted fix upstream http://www.redhat.com/archives/libvir-list/2009-March/msg00506.html Addressed in the 0.6.3 release |