send: u'POST /v2/e5df6fe673ed4becb58605fdd9e85fc8/servers/65d19429-6ba3-46af-aa3e-e2682f6b7360/action HTTP/1.1\r\nHost: 192.168.1.136:8774\r\nContent-Length: 369\r\nx-auth-project-id: demo\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nx-auth-token: 6aea61cfb02e4c019a3d6fab392afc6b\r\nuser-agent: python-novaclient\r\ncontent-type: application/json\r\n\r\n{"createImage": {"name": "65d19429-6ba3-46af-aa3e-e2682f6b736065d19429-6ba3-46af-aa3e-e2682f6b736065d19429-6ba3-46af-aa3e-e2682f6b736065d19429-6ba3-46af-aa3e-e2682f6b736065d19429-6ba3-46af-aa3e-e2682f6b736065d19429-6ba3-46af-aa3e-e2682f6b736065d19429-6ba3-46af-aa3e-e2682f6b736065d19429-6ba3-46af-aa3e-e2682f6b736065d19429-6ba3-46af-aa3e-e2682f6b7360", "metadata": {}}}'
reply: 'HTTP/1.1 400 Bad Request\r\n'
header: Content-Length: 141
header: Content-Type: application/json; charset=UTF-8
header: X-Compute-Request-Id: req-9f633a87-63f1-4cca-9dce-2f016658f09a
header: Date: Sat, 24 Nov 2012 00:48:12 GMT
RESP:{'date': 'Sat, 24 Nov 2012 00:48:12 GMT', 'status': '400', 'content-length': '141', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-9f633a87-63f1-4cca-9dce-2f016658f09a'} {"badRequest": {"message": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400}}
DEBUG (shell:543) The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-9f633a87-63f1-4cca-9dce-2f016658f09a)
Traceback (most recent call last):
File "/opt/stack/python-novaclient/novaclient/shell.py", line 540, in main
OpenStackComputeShell().main(sys.argv[1:])
File "/opt/stack/python-novaclient/novaclient/shell.py", line 476, in main
args.func(self.cs, args)
File "/opt/stack/python-novaclient/novaclient/v1_1/shell.py", line 914, in do_image_create
image_uuid = cs.servers.create_image(server, args.name)
File "/opt/stack/python-novaclient/novaclient/v1_1/servers.py", line 613, in create_image
location = self._action('createImage', server, body)[0]['location']
File "/opt/stack/python-novaclient/novaclient/v1_1/servers.py", line 715, in _action
return self.api.client.post(url, body=body)
File "/opt/stack/python-novaclient/novaclient/client.py", line 244, in post
return self._cs_request(url, 'POST', **kwargs)
File "/opt/stack/python-novaclient/novaclient/client.py", line 228, in _cs_request
**kwargs)
File "/opt/stack/python-novaclient/novaclient/client.py", line 210, in _time_request
resp, body = self.request(url, method, **kwargs)
File "/opt/stack/python-novaclient/novaclient/client.py", line 204, in request
raise exceptions.from_response(resp, body)
BadRequest: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-9f633a87-63f1-4cca-9dce-2f016658f09a)
ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-9f633a87-63f1-4cca-9dce-2f016658f09a)
Looks like this is already fixed
REQ: curl -i http:// 192.168. 1.136:8774/ v2/e5df6fe673ed 4becb58605fdd9e 85fc8/servers/ 65d19429- 6ba3-46af- aa3e-e2682f6b73 60/action -X POST -H "X-Auth-Project-Id: demo" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 6aea61cfb02e4c0 19a3d6fab392afc 6b" -d '{"createImage": {"name": "65d19429- 6ba3-46af- aa3e-e2682f6b73 6065d19429- 6ba3-46af- aa3e-e2682f6b73 6065d19429- 6ba3-46af- aa3e-e2682f6b73 6065d19429- 6ba3-46af- aa3e-e2682f6b73 6065d19429- 6ba3-46af- aa3e-e2682f6b73 6065d19429- 6ba3-46af- aa3e-e2682f6b73 6065d19429- 6ba3-46af- aa3e-e2682f6b73 6065d19429- 6ba3-46af- aa3e-e2682f6b73 6065d19429- 6ba3-46af- aa3e-e2682f6b73 60", "metadata": {}}}'
send: u'POST /v2/e5df6fe673e d4becb58605fdd9 e85fc8/ servers/ 65d19429- 6ba3-46af- aa3e-e2682f6b73 60/action HTTP/1.1\r\nHost: 192.168. 1.136:8774\ r\nContent- Length: 369\r\nx- auth-project- id: demo\r\ naccept- encoding: gzip, deflate\r\naccept: application/ json\r\ nx-auth- token: 6aea61cfb02e4c0 19a3d6fab392afc 6b\r\nuser- agent: python- novaclient\ r\ncontent- type: application/ json\r\ n\r\n{" createImage" : {"name": "65d19429- 6ba3-46af- aa3e-e2682f6b73 6065d19429- 6ba3-46af- aa3e-e2682f6b73 6065d19429- 6ba3-46af- aa3e-e2682f6b73 6065d19429- 6ba3-46af- aa3e-e2682f6b73 6065d19429- 6ba3-46af- aa3e-e2682f6b73 6065d19429- 6ba3-46af- aa3e-e2682f6b73 6065d19429- 6ba3-46af- aa3e-e2682f6b73 6065d19429- 6ba3-46af- aa3e-e2682f6b73 6065d19429- 6ba3-46af- aa3e-e2682f6b73 60", "metadata": {}}}' Request- Id: req-9f633a87- 63f1-4cca- 9dce-2f016658f0 9a request- id': 'req-9f633a87- 63f1-4cca- 9dce-2f016658f0 9a'} {"badRequest": {"message": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400}}
reply: 'HTTP/1.1 400 Bad Request\r\n'
header: Content-Length: 141
header: Content-Type: application/json; charset=UTF-8
header: X-Compute-
header: Date: Sat, 24 Nov 2012 00:48:12 GMT
RESP:{'date': 'Sat, 24 Nov 2012 00:48:12 GMT', 'status': '400', 'content-length': '141', 'content-type': 'application/json; charset=UTF-8', 'x-compute-
DEBUG (shell:543) The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-9f633a87- 63f1-4cca- 9dce-2f016658f0 9a) python- novaclient/ novaclient/ shell.py" , line 540, in main mputeShell( ).main( sys.argv[ 1:]) python- novaclient/ novaclient/ shell.py" , line 476, in main func(self. cs, args) python- novaclient/ novaclient/ v1_1/shell. py", line 914, in do_image_create create_ image(server, args.name) python- novaclient/ novaclient/ v1_1/servers. py", line 613, in create_image 'createImage' , server, body)[0] ['location' ] python- novaclient/ novaclient/ v1_1/servers. py", line 715, in _action client. post(url, body=body) python- novaclient/ novaclient/ client. py", line 244, in post request( url, 'POST', **kwargs) python- novaclient/ novaclient/ client. py", line 228, in _cs_request python- novaclient/ novaclient/ client. py", line 210, in _time_request python- novaclient/ novaclient/ client. py", line 204, in request from_response( resp, body) 63f1-4cca- 9dce-2f016658f0 9a) 63f1-4cca- 9dce-2f016658f0 9a)
Traceback (most recent call last):
File "/opt/stack/
OpenStackCo
File "/opt/stack/
args.
File "/opt/stack/
image_uuid = cs.servers.
File "/opt/stack/
location = self._action(
File "/opt/stack/
return self.api.
File "/opt/stack/
return self._cs_
File "/opt/stack/
**kwargs)
File "/opt/stack/
resp, body = self.request(url, method, **kwargs)
File "/opt/stack/
raise exceptions.
BadRequest: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-9f633a87-
ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-9f633a87-