[libvirt] libvirt 1.2.1 vs. Xen 4.1.4

Hi, a user of Debian's libvirt backport to wheezy using Xen reported libvirt 1.2.1 failing for him like: info : libvirt version: 1.2.1 error : virIdentityGetSystem:173 : Unable to lookup SELinux process context: Invalid argument error : xenHypervisorDoV2Sys:1011 : Unable to issue hypervisor ioctl 3166208: Permission denied error : xenHypervisorDoV2Sys:1011 : Unable to issue hypervisor ioctl 3166208: Permission denied error : xenHypervisorDoV2Sys:1011 : Unable to issue hypervisor ioctl 3166208: Permission denied error : xenHypervisorDoV2Sys:1011 : Unable to issue hypervisor ioctl 3166208: Permission denied error : xenHypervisorDoV2Sys:1011 : Unable to issue hypervisor ioctl 3166208: Permission denied error : xend_req:302 : internal error: failed to parse Xend response return code error : xend_req:302 : internal error: failed to parse Xend response return code error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error It seems there weren't any significant changes in this code area recently so I wonder what might be triggering this? Since I currently don't have a xen test setup it'd be happy about any pointer. We don't have libxl enabled. https://bugzilla.redhat.com/show_bug.cgi?id=1055165 has a similar error message. Cheers, -- Guido

Guido Günther wrote:
Hi,
a user of Debian's libvirt backport to wheezy using Xen reported libvirt 1.2.1 failing for him like:
info : libvirt version: 1.2.1 error : virIdentityGetSystem:173 : Unable to lookup SELinux process context: Invalid argument error : xenHypervisorDoV2Sys:1011 : Unable to issue hypervisor ioctl 3166208: Permission denied error : xenHypervisorDoV2Sys:1011 : Unable to issue hypervisor ioctl 3166208: Permission denied error : xenHypervisorDoV2Sys:1011 : Unable to issue hypervisor ioctl 3166208: Permission denied error : xenHypervisorDoV2Sys:1011 : Unable to issue hypervisor ioctl 3166208: Permission denied error : xenHypervisorDoV2Sys:1011 : Unable to issue hypervisor ioctl 3166208: Permission denied error : xend_req:302 : internal error: failed to parse Xend response return code error : xend_req:302 : internal error: failed to parse Xend response return code error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error
I was able to reproduce this with git master and Xen 4.1.6. The attached patch fixes it for me. Regards, Jim

On 01/28/2014 06:40 PM, Jim Fehlig wrote:
Commit df36af58 broke parsing of http response from xend. The prior use of atoi() would happily parse e.g. a string containing "200 OK\r\n", whereas virStrToLong_i() will fail when called with a NULL end_ptr. Change the calls to virStrToLong_i() to provide a non-NULL end_ptr.
Signed-off-by: Jim Fehlig <jfehlig@suse.com> --- src/xen/xend_internal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
ACK. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

Eric Blake wrote:
On 01/28/2014 06:40 PM, Jim Fehlig wrote:
Commit df36af58 broke parsing of http response from xend. The prior use of atoi() would happily parse e.g. a string containing "200 OK\r\n", whereas virStrToLong_i() will fail when called with a NULL end_ptr. Change the calls to virStrToLong_i() to provide a non-NULL end_ptr.
Signed-off-by: Jim Fehlig <jfehlig@suse.com> --- src/xen/xend_internal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
ACK.
Thanks, pushed. Regards, Jim
participants (3)
-
Eric Blake
-
Guido Günther
-
Jim Fehlig