Open SemmZemm opened 11 years ago
I think this was fixed recently. Can you check again? Thanks.
Sorry, always migrated to jclouds + self written REST Requests. If I'll test it I write you.
when I create an image ,I send the parameters in the headers,but I get the problem,like that
LoggingFilter - Request received on thread main 1 > POST http://192.168.1.232:9292/v2/images 1 > x-Image-Meta-Owner: null 1 > x-Image-Meta-Name: os-java-glance-test 1 > x-Image-Meta-Container_format: bare 1 > x-Image-Meta-Id: null 1 > X-Auth-Token: ***** 1 > x-Image-Meta-Disk_format: raw 1 > x-Image-Meta-Checksum: null 1 > x-Image-Meta-Is_public: true 1 > Accept: application/json 1 > x-Image-Meta-Size: null
LoggingFilter - Response received on thread main 2 < 400 2 < X-Openstack-Request-Id: req-34ff5612-dedd-41bd-8677-4ca274bdb0b5 2 < Date: Tue, 09 Jul 2013 04:29:23 GMT 2 < Content-Length: 47 2 < Content-Type: text/plain; charset=UTF-8 2 < Connection: keep-alive 400 Bad Request
Body expected in request.
as the response said ,the request need body ,so ,how to fill the body@
I have Solved. change the url is http://192.168.1.232:9292/v1/images,it works!
When I try to create an image instead of sending the parameters in the headers like that (like glance client)
openstack-java-sdk sends it like that
As a result creating image doesn't work. I receive
Indeed once message (even one with all correct headers) has a body you get this error.
If you look here: http://docs.openstack.org/developer/glance/glanceapi.html you'll see well described headers. Moreover
Thanks in advance!
Tested with OpenStack 2012.2.3 on Fedora 18