qemu mainline regression with xen-unstable: unable to start QMP
Public bug reported:
Quoted 11 lines · Fabio Fantoni
Today after trying xen-unstable build (tested many hours) of some days ago I tried update qemu to latest development version (from git master commit
6fa6b312765f698dc81b2c30e7eeb9683804a05b) and seems that there is a regression:Quoted 6 lines
xl create
/etc/xen/W7.cfg
Parsing config from/etc/xen/W7.cfg
libxl: error: libxl_qmp.c:287:qmp_handle_error_response: received an error message from QMP server: QMP input object member 'id' is unexpected
libxl: error: libxl_qmp.c:715:libxl__qmp_initialize: Failed to connect to QMP
This is caused by:
commit 65207c59d99f2260c5f1d3b9c491146616a522aa
Author: Markus Armbruster <[email protected]> Date: Thu Mar 5 14:35:26 2015 +0100
monitor: Drop broken, unused asynchronous command interface
Quoted 4 lines
DomU is working but operations that require QMP not (for example save/restore).
Thanks for any reply and sorry for my bad english.
** Affects: qemu
Importance: Undecided
Status: New
** Patch added: "0001-monitor-Allow-Xen-s-broken-usage-of-asynchronous-com.patch"
https://bugs.launchpad.net/bugs/1462131/+attachment/4410103/+files/0001-monitor-Allow-Xen-s-broken-usage-of-asynchronous-com.patch
Signature · 11 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1462131 Title: qemu mainline regression with xen-unstable: unable to start QMP Status in QEMU: New Bug description:
Quoted 11 lines · Fabio Fantoni
Today after trying xen-unstable build (tested many hours) of some days ago I tried update qemu to latest development version (from git master commit
6fa6b312765f698dc81b2c30e7eeb9683804a05b) and seems that there is a regression:Quoted 6 lines
xl create
/etc/xen/W7.cfg
Parsing config from/etc/xen/W7.cfg
libxl: error: libxl_qmp.c:287:qmp_handle_error_response: received an error message from QMP server: QMP input object member 'id' is unexpected
libxl: error: libxl_qmp.c:715:libxl__qmp_initialize: Failed to connect to QMP
This is caused by:
commit 65207c59d99f2260c5f1d3b9c491146616a522aa
Author: Markus Armbruster <[email protected]>
Date: Thu Mar 5 14:35:26 2015 +0100
monitor: Drop broken, unused asynchronous command interface
Quoted 4 lines
DomU is working but operations that require QMP not (for example save/restore).
Thanks for any reply and sorry for my bad english.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1462131/+subscriptions
Subject: Re: [Qemu-devel] [Xen-devel] qemu mainline regression with xen-unstable: unable to start QMP
Date: Thu, 04 Jun 2015 16:10:34 -0600
From: Eric Blake <[email protected]>
Organization: Red Hat, Inc.
To: Don Slutz <[email protected]>, Fabio Fantoni <[email protected]>, [email protected] <[email protected]>, xen-devel <[email protected]>, Stefano Stabellini <[email protected]>, Anthony PERARD <[email protected]>, Ian Campbell <[email protected]>, Markus Armbruster <[email protected]>
[adding Markus, as author of the regression]
Quoted 30 lines · Don Slutz
Quoted 11 lines · Fabio Fantoni
Today after trying xen-unstable build (tested many hours) of some days ago I tried update qemu to latest development version (from git master commit
6fa6b312765f698dc81b2c30e7eeb9683804a05b) and seems that there is a regression:Quoted 6 lines
xl create
/etc/xen/W7.cfg
Parsing config from/etc/xen/W7.cfg
libxl: error: libxl_qmp.c:287:qmp_handle_error_response: received an error message from QMP server: QMP input object member 'id' is unexpected
libxl: error: libxl_qmp.c:715:libxl__qmp_initialize: Failed to connect to QMPThis is caused by:
commit
65207c59d99f2260c5f1d3b9c491146616a522aaAuthor: Markus Armbruster <[email protected]> Date: Thu Mar 5 14:35:26 2015 +0100monitor: Drop broken, unused asynchronous command interface
The patch:
Quoted 1 line
From
1b0221078353870fe530e49de158cae205f9bce5Mon Sep 17 00:00:00 2001From: Don Slutz <[email protected]>
Date: Thu, 4 Jun 2015 17:04:42 -0400
Subject: [PATCH 01/14] monitor: Allow Xen's (broken) usage of asynchronous
command interface.
Quoted 7 lines
commit
65207c59d99f2260c5f1d3b9c491146616a522aaAuthor: Markus Armbruster <[email protected]> Date: Thu Mar 5 14:35:26 2015 +0100monitor: Drop broken, unused asynchronous command interface
Breaks Xen. Add a hack un unbreak it.
s/un /to /
Quoted 2 lines
Xen is only doing synchronous commands, but is including an id.
QMP also uses id, but apparently removes it up front before calling into this function; so another fix would be having xen remove it up front.
Quoted 14 lines
Signed-off-by Don Slutz <[email protected]>--- monitor.c | 9 +++++++++ 1 file changed, 9 insertions(+)monitor.c +0
-0@@ -4955,6 +4955,15 @@ static QDict *qmp_check_input_obj(QObject *input_obj, Error **errp) "arguments", "object");return NULL ;
monitor.c static QDict *qmp_check_input_obj(QObject · line 4967
Quoted 10 lines
monitor.c +9
-0} + }else if (!strcmp (arg_name,"id" )) { +/* +* Fixup Xen's usage. Just ignore the "id". See point #5 +* above. This was an attempt at an asynchronous +* command interface. However commit +* 65207c59d99f2260c5f1d3b9c491146616a522aa is +* wrong. Xen does not expect an error when it passes in +* "id":1, so just continue to ignore it. +*/
The comment is a bit verbose, particularly since 'id' is a well-established usage pattern in QMP. Also, we don't need to call out why it changed in the comment here, the commit message is sufficient for that.
Quoted 4 lines
monitor.c +0
-0}else {error_set (errp,QERR_QMP_EXTRA_MEMBER , arg_name);return NULL;
Signature · 15 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1462131 Title: qemu mainline regression with xen-unstable: unable to start QMP Status in QEMU: New Bug description:
Quoted 11 lines · Fabio Fantoni
Today after trying xen-unstable build (tested many hours) of some days ago I tried update qemu to latest development version (from git master commit
6fa6b312765f698dc81b2c30e7eeb9683804a05b) and seems that there is a regression:Quoted 6 lines
xl create
/etc/xen/W7.cfg
Parsing config from/etc/xen/W7.cfg
libxl: error: libxl_qmp.c:287:qmp_handle_error_response: received an error message from QMP server: QMP input object member 'id' is unexpected
libxl: error: libxl_qmp.c:715:libxl__qmp_initialize: Failed to connect to QMP
This is caused by:
commit 65207c59d99f2260c5f1d3b9c491146616a522aa
Author: Markus Armbruster <[email protected]>
Date: Thu Mar 5 14:35:26 2015 +0100
monitor: Drop broken, unused asynchronous command interface
Quoted 4 lines
DomU is working but operations that require QMP not (for example save/restore).
Thanks for any reply and sorry for my bad english.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1462131/+subscriptions
Quoted 2 lines · Don Slutz
QMP also uses id, but apparently removes it up front before calling into this function; so another fix would be having xen remove it up front.
No, we don't break users.
This patch fixes Xen but not virt-test, which relies on ids. It greps the QMP output for an ID in order to find the output of query-commands.
Paolo
Quoted 29 lines
Quoted 16 lines
Quoted 16 lines
Signed-off-by Don Slutz <[email protected]>--- monitor.c | 9 +++++++++ 1 file changed, 9 insertions(+)monitor.c +1
-0@@ -4955,6 +4955,15 @@ static QDict *qmp_check_input_obj(QObject *input_obj, Error **errp) "arguments", "object");return NULL ; } + }else if (!strcmp (arg_name,"id" )) {Quoted 8 lines
monitor.c static QDict *qmp_check_input_obj(QObject · line 4967
Quoted 8 lines
monitor.c +8
-0+/* +* Fixup Xen's usage. Just ignore the "id". See point #5 +* above. This was an attempt at an asynchronous +* command interface. However commit +* 65207c59d99f2260c5f1d3b9c491146616a522aa is +* wrong. Xen does not expect an error when it passes in +* "id":1, so just continue to ignore it. +*/ The comment is a bit verbose, particularly since 'id' is a well-established usage pattern in QMP. Also, we don't need to call out why it changed in the comment here, the commit message is sufficient for that.
** Changed in: qemu
Status: New => Confirmed
Signature · 11 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1462131 Title: qemu mainline regression with xen-unstable: unable to start QMP Status in QEMU: Confirmed Bug description:
Quoted 11 lines · Fabio Fantoni
Today after trying xen-unstable build (tested many hours) of some days ago I tried update qemu to latest development version (from git master commit
6fa6b312765f698dc81b2c30e7eeb9683804a05b) and seems that there is a regression:Quoted 6 lines
xl create
/etc/xen/W7.cfg
Parsing config from/etc/xen/W7.cfg
libxl: error: libxl_qmp.c:287:qmp_handle_error_response: received an error message from QMP server: QMP input object member 'id' is unexpected
libxl: error: libxl_qmp.c:715:libxl__qmp_initialize: Failed to connect to QMP
This is caused by:
commit 65207c59d99f2260c5f1d3b9c491146616a522aa
Author: Markus Armbruster <[email protected]>
Date: Thu Mar 5 14:35:26 2015 +0100
monitor: Drop broken, unused asynchronous command interface
Quoted 4 lines
DomU is working but operations that require QMP not (for example save/restore).
Thanks for any reply and sorry for my bad english.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1462131/+subscriptions
Quoted 27 lines · Don Slutz
Public bug reported:
Quoted 11 lines · Fabio Fantoni
Today after trying xen-unstable build (tested many hours) of some days ago I tried update qemu to latest development version (from git master commit
6fa6b312765f698dc81b2c30e7eeb9683804a05b) and seems that there is a regression:Quoted 6 lines
xl create
/etc/xen/W7.cfg
Parsing config from/etc/xen/W7.cfg
libxl: error: libxl_qmp.c:287:qmp_handle_error_response: received an error message from QMP server: QMP input object member 'id' is unexpected
libxl: error: libxl_qmp.c:715:libxl__qmp_initialize: Failed to connect to QMPThis is caused by:
commit
65207c59d99f2260c5f1d3b9c491146616a522aaAuthor: Markus Armbruster <[email protected]> Date: Thu Mar 5 14:35:26 2015 +0100monitor: Drop broken, unused asynchronous command interface
Quoted 3 lines
DomU is working but operations that require QMP not (for example save/restore).
Quoted 9 lines
Quoted 1 line
Thanks for any reply and sorry for my bad english.
** Affects: qemu
Importance: Undecided
Status: New** Patch added: "0001-monitor-Allow-Xen-s-broken-usage-of-asynchronous-com.patch"
https://bugs.launchpad.net/bugs/1462131/+attachment/4410103/+files/0001-monitor-Allow-Xen-s-broken-usage-of-asynchronous-com.patch
Please try this patch:
Quoted 1 line
From
061dc4ed1012726fc0b8e1c6d0a784476f5c6d48Mon Sep 17 00:00:00 2001
From: Wen Congyang <[email protected]>
Date: Fri, 5 Jun 2015 16:17:18 +0800
Subject: [PATCH] monitor: Allow the "id" key
The management application still needs the "id" key.
--- monitor.c | 2 ++ 1 file changed, 2 insertions(+)
monitor.c +2 -0
@@ -4955,6 +4955,8 @@ static QDict *qmp_check_input_obj(QObject *input_obj, Error **errp) "arguments", "object");return NULL ; } + }else if (!strcmp (arg_name,"id" )) { +/* FIXME: check duplicated IDs for async commands */ }else {error_set (errp,QERR_QMP_EXTRA_MEMBER , arg_name);return NULL ;
Signature · 1 line
2.4.2
Quoted 57 lines · Wen Congyang
Quoted 27 lines · Don Slutz
Public bug reported:
Quoted 11 lines · Fabio Fantoni
Today after trying xen-unstable build (tested many hours) of some days ago I tried update qemu to latest development version (from git master commit
6fa6b312765f698dc81b2c30e7eeb9683804a05b) and seems that there is a regression:Quoted 6 lines
xl create
/etc/xen/W7.cfg
Parsing config from/etc/xen/W7.cfg
libxl: error: libxl_qmp.c:287:qmp_handle_error_response: received an error message from QMP server: QMP input object member 'id' is unexpected
libxl: error: libxl_qmp.c:715:libxl__qmp_initialize: Failed to connect to QMPThis is caused by:
commit
65207c59d99f2260c5f1d3b9c491146616a522aaAuthor: Markus Armbruster <[email protected]> Date: Thu Mar 5 14:35:26 2015 +0100monitor: Drop broken, unused asynchronous command interface
Quoted 3 lines
DomU is working but operations that require QMP not (for example save/restore).
Quoted 9 lines
Quoted 1 line
Thanks for any reply and sorry for my bad english.
** Affects: qemu
Importance: Undecided
Status: New** Patch added: "0001-monitor-Allow-Xen-s-broken-usage-of-asynchronous-com.patch"
https://bugs.launchpad.net/bugs/1462131/+attachment/4410103/+files/0001-monitor-Allow-Xen-s-broken-usage-of-asynchronous-com.patchPlease try this patch:
Quoted 1 line
From
061dc4ed1012726fc0b8e1c6d0a784476f5c6d48Mon Sep 17 00:00:00 2001From: Wen Congyang <[email protected]>
Date: Fri, 5 Jun 2015 16:17:18 +0800
Subject: [PATCH] monitor: Allow the "id" keyThe management application still needs the "id" key.
Signed-off-by Wen Congyang <[email protected]>--- monitor.c | 2 ++ 1 file changed, 2 insertions(+)monitor.c +0
-0
monitor.c static QDict *qmp_check_input_obj(QObject *input_obj, Error **errp) · line 4962
Quoted 8 lines
monitor.c +2
-0@@ -4955,6 +4955,8 @@ static QDict *qmp_check_input_obj(QObject *input_obj, Error **errp) "arguments", "object");return NULL ; } + }else if (!strcmp (arg_name,"id" )) { +/* FIXME: check duplicated IDs for async commands */ }else {error_set (errp,QERR_QMP_EXTRA_MEMBER , arg_name);return NULL ;
Commit 65207c5's removal of the code is wrong (and your patch fixes it), but its removal of the comment is correct. I'll post a revised patch shortly.
Thanks!
Fixed in:
commit 779cec4d20907cbccb26fbf5f5c19c6cdee33eff
Author: Markus Armbruster <[email protected]> Date: Mon Jun 8 10:44:30 2015 +0200
monitor: Fix QMP ABI breakage around "id"
** Changed in: qemu
Status: Confirmed => Fix Released
Signature · 11 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1462131 Title: qemu mainline regression with xen-unstable: unable to start QMP Status in QEMU: Fix Released Bug description:
Quoted 11 lines · Fabio Fantoni
Today after trying xen-unstable build (tested many hours) of some days ago I tried update qemu to latest development version (from git master commit
6fa6b312765f698dc81b2c30e7eeb9683804a05b) and seems that there is a regression:Quoted 6 lines
xl create
/etc/xen/W7.cfg
Parsing config from/etc/xen/W7.cfg
libxl: error: libxl_qmp.c:287:qmp_handle_error_response: received an error message from QMP server: QMP input object member 'id' is unexpected
libxl: error: libxl_qmp.c:715:libxl__qmp_initialize: Failed to connect to QMP
This is caused by:
commit 65207c59d99f2260c5f1d3b9c491146616a522aa
Author: Markus Armbruster <[email protected]>
Date: Thu Mar 5 14:35:26 2015 +0100
monitor: Drop broken, unused asynchronous command interface
Quoted 4 lines
DomU is working but operations that require QMP not (for example save/restore).
Thanks for any reply and sorry for my bad english.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1462131/+subscriptions