the error "Malformed request body" for Jclouds

Bug #1343193 reported by hugo deng
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Unassigned

Bug Description

when i use the ServerApi to resize a Server, i got a error like this:
org.jclouds.http.HttpResponseException: command: POST http://controller:8774/v2/3489ffad1a63422daa15974861ce7580/servers/3e01420b-db11-4e77-b38e-7a72f159e9a4/action HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content: [{"badRequest": {"message": "Malformed request body", "code": 400}}]
 at org.jclouds.openstack.nova.v2_0.handlers.NovaErrorHandler.handleError(NovaErrorHandler.java:81)
 at org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:67)
 at org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180)
 at org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150)
 at org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.invoke(InvokeSyncToAsyncHttpMethod.java:129)
 at org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:95)
 at org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:56)
 at org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
 at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:79)
 at com.sun.proxy.$Proxy72.resize(Unknown Source)
 at com.csvcn.cmaapi.nova.dao.InstanceDao.resizeServer(InstanceDao.java:105)
 at com.csvcn.cmaapi.nova.service.InstanceService.resizeInstance(InstanceService.java:159)
 at com.csvcn.cmaapi.nova.service.InstanceService.main(InstanceService.java:177)

the version of openstack-nova is 1.7.5.

Curtis Hovey (sinzui)
affects: juju-core → nova
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Hugo, do you have the server side traces? from nova api logs?

thanks,
dims

Changed in nova:
status: New → Incomplete
Revision history for this message
hugo deng (dengqm) wrote :

sorry,i can not find any logs from the server includeing nova logs, keystone logs, neutron logs and so on.
i tried to use the reboot method of ServerApi, and it is ok.
so i tried to debug the resize method, i found the request have not authentication.
why running the resize method is not success,but running other methods of ServerApi are ok?

Revision history for this message
hugo deng (dengqm) wrote :

it seems that the http header validate failed.so there are no any logs.
i encapsulate this interface by httpclient.now it works well.
and i want to report anthor bug.
thanks

Sean Dague (sdague)
Changed in nova:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.