qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Bug: object-add qmp command that used to work fails now
@ 2021-03-31 20:00 Lukas Straub
  2021-03-31 20:16 ` Eric Blake
  0 siblings, 1 reply; 4+ messages in thread
From: Lukas Straub @ 2021-03-31 20:00 UTC (permalink / raw)
  To: Kevin Wolf; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 506 bytes --]

Hi,
This qmp command that used to work:
{"execute": "object-add", "arguments": {"qom-type": "filter-mirror", "id": "m0", "props": {"netdev": "hn0", "queue": "tx", "outdev": "mirror0", "vnet_hdr_support": false}}}
now fails with the following error:
{"error": {"class": "GenericError", "desc": "Parameter 'netdev' is missing"}}

I haven't looked closely into it, but I think
9151e59a8b6e854eb733553c6772351049ca6ab6 "qapi/qom: QAPIfy object-add"
is the culprint.

Regards,
Lukas Straub

-- 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug: object-add qmp command that used to work fails now
  2021-03-31 20:00 Bug: object-add qmp command that used to work fails now Lukas Straub
@ 2021-03-31 20:16 ` Eric Blake
  2021-03-31 20:26   ` Lukas Straub
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Blake @ 2021-03-31 20:16 UTC (permalink / raw)
  To: Lukas Straub, Kevin Wolf; +Cc: qemu-devel

On 3/31/21 3:00 PM, Lukas Straub wrote:
> Hi,
> This qmp command that used to work:
> {"execute": "object-add", "arguments": {"qom-type": "filter-mirror", "id": "m0", "props": {"netdev": "hn0", "queue": "tx", "outdev": "mirror0", "vnet_hdr_support": false}}}
> now fails with the following error:
> {"error": {"class": "GenericError", "desc": "Parameter 'netdev' is missing"}}
> 
> I haven't looked closely into it, but I think
> 9151e59a8b6e854eb733553c6772351049ca6ab6 "qapi/qom: QAPIfy object-add"
> is the culprint.

Try getting rid of the nesting caused by props:

{"execute": "object-add", "arguments": {"qom-type": "filter-mirror",
"id": "m0", "netdev": "hn0", "queue": "tx", "outdev": "mirror0",
"vnet_hdr_support": false}}

Per docs/system/removed-features.rst, the change was intentional:

> ``object-add`` option ``props`` (removed in 6.0)
> ''''''''''''''''''''''''''''''''''''''''''''''''
> 
> Specify the properties for the object as top-level arguments instead.

although it is unfortunate that you didn't notice the change during the
deprecation cycle.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug: object-add qmp command that used to work fails now
  2021-03-31 20:16 ` Eric Blake
@ 2021-03-31 20:26   ` Lukas Straub
  2021-03-31 21:07     ` Eric Blake
  0 siblings, 1 reply; 4+ messages in thread
From: Lukas Straub @ 2021-03-31 20:26 UTC (permalink / raw)
  To: Eric Blake; +Cc: Kevin Wolf, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1416 bytes --]

On Wed, 31 Mar 2021 15:16:18 -0500
Eric Blake <eblake@redhat.com> wrote:

> On 3/31/21 3:00 PM, Lukas Straub wrote:
> > Hi,
> > This qmp command that used to work:
> > {"execute": "object-add", "arguments": {"qom-type": "filter-mirror", "id": "m0", "props": {"netdev": "hn0", "queue": "tx", "outdev": "mirror0", "vnet_hdr_support": false}}}
> > now fails with the following error:
> > {"error": {"class": "GenericError", "desc": "Parameter 'netdev' is missing"}}
> > 
> > I haven't looked closely into it, but I think
> > 9151e59a8b6e854eb733553c6772351049ca6ab6 "qapi/qom: QAPIfy object-add"
> > is the culprint.  
> 
> Try getting rid of the nesting caused by props:
> 
> {"execute": "object-add", "arguments": {"qom-type": "filter-mirror",
> "id": "m0", "netdev": "hn0", "queue": "tx", "outdev": "mirror0",
> "vnet_hdr_support": false}}

Okay, that works.

> Per docs/system/removed-features.rst, the change was intentional:
> 
> > ``object-add`` option ``props`` (removed in 6.0)
> > ''''''''''''''''''''''''''''''''''''''''''''''''
> > 
> > Specify the properties for the object as top-level arguments instead.  
> 
> although it is unfortunate that you didn't notice the change during the
> deprecation cycle.
>

Yeah, no big deal. I wasn't sure if this is intentional as the change isn't
documented on https://wiki.qemu.org/ChangeLog/6.0 

Regards,
Lukas Straub

-- 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug: object-add qmp command that used to work fails now
  2021-03-31 20:26   ` Lukas Straub
@ 2021-03-31 21:07     ` Eric Blake
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Blake @ 2021-03-31 21:07 UTC (permalink / raw)
  To: Lukas Straub; +Cc: Kevin Wolf, qemu-devel

On 3/31/21 3:26 PM, Lukas Straub wrote:

>> Per docs/system/removed-features.rst, the change was intentional:
>>
>>> ``object-add`` option ``props`` (removed in 6.0)
>>> ''''''''''''''''''''''''''''''''''''''''''''''''
>>>
>>> Specify the properties for the object as top-level arguments instead.  
>>
>> although it is unfortunate that you didn't notice the change during the
>> deprecation cycle.
>>
> 
> Yeah, no big deal. I wasn't sure if this is intentional as the change isn't
> documented on https://wiki.qemu.org/ChangeLog/6.0 

I'll try and update the top "Incompatible changes" with that and
anything else I see in the removed-features.rst file.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-31 21:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-31 20:00 Bug: object-add qmp command that used to work fails now Lukas Straub
2021-03-31 20:16 ` Eric Blake
2021-03-31 20:26   ` Lukas Straub
2021-03-31 21:07     ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).