Bug 212272 - libxc does not propagate errors during domain creation back to XenD
libxc does not propagate errors during domain creation back to XenD
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: xen (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Berrange
Depends On:
Blocks: 213166 216893
  Show dependency treegraph
Reported: 2006-10-25 18:37 EDT by Daniel Berrange
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version: RHEA-2007-0635
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-07 12:07:31 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Daniel Berrange 2006-10-25 18:37:46 EDT
Description of problem:
The libxc library is used by XenD for creating guest domains. When a problem
occurs, it simply returns -1, sets errno to -EINVAL and does an printf to stderr
with the actual error message. This means that XenD does not get back any useful
information about the failure. In turn applications like virt-manager can not
give the user any useful info about what went wrong.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Try to create a VM using a non-PAE kernel on a PAE i686 hypervisor
Actual results:
Error message '-EINVAL'

Expected results:
Message about PAE mismatch in guest kernel

Additional info:

Another scenario where current lack of error reporting caused issues
Comment 1 Daniel Berrange 2006-10-25 18:41:40 EDT
Patches for libxc posted upstream, but not accepted in current form


We absolutely must get the patches accepted upstream before trying to
incorporate this change in RHEL, because it will require addition of new APIs &
we definitely don't want to supporting APIs which don't get accepted.
Comment 2 RHEL Product and Program Management 2007-03-21 19:45:39 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
Comment 3 Daniel Berrange 2007-03-27 12:29:19 EDT
Merged upstream:


Plus some further fixes / cleanups:


Should be possible to apply to 3.0.3 without too much change.
Comment 5 Daniel Berrange 2007-06-15 11:06:39 EDT
This fix was picked up as part of the rebase of libxc to 3.1.0. The fix is built
into xen-3.0.3-27.el5  in dist-5E-qu-candidate

When trying to start a 32-bit non-PAE kernel on a PAE hv I now see

# virsh start break
libvir: Xen Daemon error : POST operation failed: (xend.err "Error creating
domain: (2, 'Invalid kernel', 'xc_dom_compat_check: guest type xen-3.0-x86_32
not supported by xen kernel, sorry\\n')")
error: Failed to start domain break

Which is desired behaviour
Comment 8 errata-xmlrpc 2007-11-07 12:07:31 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.