Adding disk via RHV API fails with "RESTEASY003020: Bad arguments passed to public" message
Issue
Adding disk via RHV API with following command fails with "RESTEASY003020: Bad arguments passed to public" message
# curl -v --cookie JSESSIONID=yPqkaANgeK5a4ccJotHIE9Q5IPd4PlGYuTE7RQVB.lxf02p999 --request POST --header 'Accept: application/xml' --header 'Content-Type: application/xml' --header 'Prefer: persistent-auth' -k -d @/tmp/test/disk https://testrhv:443/ovirt-engine/api/vms/12159c21-2dca-4510-9f63-b5be850a426f/disks
< HTTP/1.1 500 Internal Server Error
< Date: Tue, 03 Jul 2018 13:39:08 GMT
< Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips
< Content-Type: text/html;charset=UTF-8
< Content-Length: 266
< Correlation-Id: 3f8271f9-bc5c-407b-82d4-88e76b205c48
< Connection: close
<
* Closing connection 0
RESTEASY003020: Bad arguments passed to public javax.ws.rs.core.Response org.ovirt.engine.api.restapi.resource.BackendDiskAttachmentsResource.add(org.ovirt.engine.api.model.DiskAttachment) ( org.ovirt.engine.api.model.Disk org.ovirt.engine.api.model.Disk@1c7a39d9 )
The /tmp/test/disk file contains following
<disk id="cefa39e6-1432-4c3f-8957-37870144e317"></disk>
Environment
- Red Hat Virtualization 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.