[ovirt-devel] Change in ovirt-engine[master]: restapi: NUMA feature restful API support

Juan Hernandez juan.hernandez at redhat.com
Wed Apr 30 12:33:49 UTC 2014


On 04/30/2014 02:10 PM, Liao, Chuan (Jason Liao, HPservers-Core-OE-PSC)
wrote:
> Hi,
> 
> When we finish all the restful API code for NUMA feature and test it.
> 
> We met one problem which is hard to debug, as attachment.
> 
> Could you help us to review our code or give us some suggestion to debug this problem ?
> The patch set link:
> http://gerrit.ovirt.org/26943
> 
> Thank you very much.
> 
> Best Regards,
> Jason Liao
> 

I think that the problem is that in the VmNumaNodeResource interface you
didn't specify the @Produces annotation. As a result when you call the
GET operation the server uses the default "text/html", and then it fails
to find a writer that can convert your object to HTML. You need to add
this to annotation to the interface:

You should add the following annotation to this class:

@Produces({ApiMediaType.APPLICATION_XML, ApiMediaType.APPLICATION_JSON,
ApiMediaType.APPLICATION_X_Y
AML})

>> -----Original Message-----
>> From: automation at ovirt.org [mailto:automation at ovirt.org]
>> Sent: 2014年4月30日 19:56
>> To: Liao, Chuan (Jason Liao, HPservers-Core-OE-PSC)
>> Cc: Juan Hernandez; Gilad Chaplik; Alexander Wels
>> Subject: Change in ovirt-engine[master]: restapi: NUMA feature restful API support
>>
>> automation at ovirt.org has posted comments on this change.
>>
>> Change subject: restapi: NUMA feature restful API
>> support ......................................................................
>>
>>
>> Patch Set 2:
>>
>> * #1069303::Update tracker: OK
>> * Bug-Url: IGNORE, not in a monitored branch (ovirt-engine-3.4
>> * Check merged to previous: IGNORE, Not in stable branch (['ovirt-engine-3.4',
>> 'ovirt-engine-3.3', 'ovirt-engine-3.4.0', 'ovirt-engine-3.3.4', 'ovirt-engine-3.3.3',
>> 'ovirt-engine-3.3.2', 'ovirt-engine-3.3.1'])
>>
>> --
>> To view, visit http://gerrit.ovirt.org/26943 To unsubscribe, visit
>> http://gerrit.ovirt.org/settings
>>
>> Gerrit-MessageType: comment
>> Gerrit-Change-Id: I72ed4b16c220decbf640f74c4aadffe423afc290
>> Gerrit-PatchSet: 2
>> Gerrit-Project: ovirt-engine
>> Gerrit-Branch: master
>> Gerrit-Owner: Jason Liao <chuan.liao at hp.com>
>> Gerrit-Reviewer: Alexander Wels <awels at redhat.com>
>> Gerrit-Reviewer: Gilad Chaplik <gchaplik at redhat.com>
>> Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
>> Gerrit-Reviewer: automation at ovirt.org
>> Gerrit-Reviewer: oVirt Jenkins CI Server
>> Gerrit-HasComments: No




More information about the Devel mailing list