From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:39070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfyMF-000214-5j for qemu-devel@nongnu.org; Fri, 24 May 2013 16:13:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfyM8-0000IT-Ut for qemu-devel@nongnu.org; Fri, 24 May 2013 16:12:58 -0400 Received: from mail-ph.de-nserver.de ([85.158.179.214]:38596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfyM8-0000H8-Ka for qemu-devel@nongnu.org; Fri, 24 May 2013 16:12:52 -0400 Message-ID: <519FC9C3.7070803@profihost.ag> Date: Fri, 24 May 2013 22:12:51 +0200 From: Stefan Priebe MIME-Version: 1.0 References: <519EFFA9.3070100@profihost.ag> <20130524092356.2f16521d@redhat.com> <94065BAF-4476-4709-A494-37E4A43884D3@profihost.ag> <20130524100242.39ec0b73@redhat.com> <20130524112152.32ce478a@redhat.com> In-Reply-To: <20130524112152.32ce478a@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qmp commands get rejected List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: qemu-devel , Dietmar Maurer , "qemu-stable@nongnu.org" Hi, i can easily reproduce this with the following script: http://pastebin.com/raw.php?i=JYZyJ8Hn Example output (sometimes it fails for qmp_capabilities and sometimes for qom-set): [cloud1-1202: ~]# perl sock.pl {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} [cloud1-1202: ~]# perl sock.pl {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} {"id": "12125:1", "error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} Stefan Am 24.05.2013 17:21, schrieb Luiz Capitulino: > On Fri, 24 May 2013 16:36:26 +0200 > Stefan Priebe - Profihost AG wrote: > >> Am 24.05.2013 um 16:02 schrieb Luiz Capitulino : >> >>> On Fri, 24 May 2013 15:57:59 +0200 >>> Stefan Priebe - Profihost AG wrote: >>> >>>> Am 24.05.2013 um 15:23 schrieb Luiz Capitulino : >>>> >>>>> On Fri, 24 May 2013 07:50:33 +0200 >>>>> Stefan Priebe wrote: >>>>> >>>>>> Hello list, >>>>>> >>>>>> since upgrading from qemu 1.4.1 to 1.5.0 i've problems with qmp commands. >>>>>> >>>>>> With Qemu 1.5 i've the following socket communication: >>>>>> >>>>>> '{"execute":"qmp_capabilities","id":"12125:1","arguments":{}}' >>>>>> >>>>>> '{"return": {}, "id": "12125:1"}' >>>>>> >>>>>> '{"execute":"qom-set","id":"12125:2","arguments":{"value":2,"path":"machine/peripheral/balloon0","property":"guest-stats-polling-interval"}}' >>>>>> >>>>>> '{"QMP": {"version": {"qemu": {"micro": 0, "minor": 5, "major": 1}, >>>>>> "package": ""}, "capabilities": []}}' >>>>>> >>>>>> '{"id": "12125:2", "error": {"class": "CommandNotFound", "desc": "The >>>>>> command qom-set has not been found"}}' >>>>>> >>>>>> >>>>>> It seems that the command mode (qmp_capabilities) gets resets by the >>>>>> welcome banner? >>>>> >>>>> It looks like you got disconnected before qom-set was issued. >>>> >>>> No its the same socket connection. No disconnect had happened. >>>> >>>>> >>>>> Can you share more details on how those commands are being issued? >>>> >>>> They're send through socket with a perl script. What do you need? >>> >>> That perl script maybe? I can't reproduce the problem. >> >> I would try to create a small example script. > > I use qmp-shell and other little scripts very often. > >> Am this be due to the fact that I don't wait for the welcome banner right now? > > If you're not reading from the socket, then you'll get the banner back when > you read your first response. But qom-set shouldn't fail because of that. >