Re: [Openstack] ERROR: Malformed request url (HTTP 400)
Hi all again! Just need clarification, in which way I can send a messages about mistakes in that docs? On Sun, May 13, 2012 at 6:47 PM, Igor Laskovy igor.lask...@gmail.com wrote: Well, instead of it I did use the real uuid of service tenant)) End, actually that clarify about %(tenant_id)s is exist at docs. BTW, for what reason needs to execute TENANT variable in the volume section? On May 13, 2012 5:55 PM, Dolph Mathews dolph.math...@gmail.com wrote: Igor, What did you use instead / how did you interpret that portion of the docs? I think we need to clarify in the docs that %(tenant_id)s is very intentional, and intended to be used exactly as written (and explain how it behaves) -- you're certainly not the first person to run into this kind of issue on endpoints. -Dolph On Sun, May 13, 2012 at 8:42 AM, Igor Laskovy igor.lask...@gmail.com wrote: Hello all, I have solved this problem)) For me it was incorrect built endpoints in keystone for nova and volume services. I thought that %(tenant_id)s is mistake as other mistakes in the installation guide (http://docs.openstack.org/trunk/openstack-compute/install/content/keystone-service-endpoint-create.html), but it wasn't . Thanks everybody for attention! On Sat, May 12, 2012 at 4:53 PM, Igor Laskovy igor.lask...@gmail.com wrote: Guys, I am still need help)) On May 10, 2012 9:45 PM, Igor Laskovy igor.lask...@gmail.com wrote: Hi Dolph and Kevin, thank you for your attention and sorry for delay reply. Here are what I have in nova-api.log : 2012-05-10 14:40:08 INFO nova.api.openstack.wsgi [req-c6b9ea76-bbe1-4796-a231-41fc41c7695f 50be127b9b7f49dcbf5ffea06d23d83a ebf29e67cbd445daa5ad09f76cdf69f9] GET http://192.168.1.71:8774/v2/7033300637bc4964a8d0a43649fcf898/images/detail 2012-05-10 14:40:08 DEBUG nova.api.openstack.wsgi [req-c6b9ea76-bbe1-4796-a231-41fc41c7695f 50be127b9b7f49dcbf5ffea06d23d83a ebf29e67cbd445daa5ad09f76cdf69f9] Unrecognized Content-Type provided in request from (pid=1005) get_body /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:697 On Thu, May 10, 2012 at 2:27 AM, Dolph Mathews dolph.math...@gmail.com wrote: Hrm, good catch! I see no problems with that request at all... -Dolph Mathews On May 9, 2012, at 5:58 PM, Kevin L. Mitchell kevin.mitch...@rackspace.com wrote: On Wed, 2012-05-09 at 15:32 -0500, Dolph Mathews wrote: It also just occurred to me that perhaps you're using a *very* old novaclient against a more recent version of keystone? Actually, if you look a little more closely: $ nova --debug image-list connect: (192.168.1.71, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 192.168.1.71:5000\r\nContent-Length: 117\r \ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r \naccept: application/json\r\nuser-agent: python-novaclient\r\n \r\n{auth: {tenantName: labSpaceDemo, passwordCredentials: {username: adminUser, password: lfplhfgthvf}}}' The request body for Keystone is not, in fact, malformed. It would be interesting to look at the nova-api logs for this request… -- Kevin L. Mitchell kevin.mitch...@rackspace.com -- Igor Laskovy -- Igor Laskovy -- Igor Laskovy Kiev, Ukraine ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] ERROR: Malformed request url (HTTP 400)
Hi Dolph and Kevin, thank you for your attention and sorry for delay reply. Here are what I have in nova-api.log : 2012-05-10 14:40:08 INFO nova.api.openstack.wsgi [req-c6b9ea76-bbe1-4796-a231-41fc41c7695f 50be127b9b7f49dcbf5ffea06d23d83a ebf29e67cbd445daa5ad09f76cdf69f9] GET http://192.168.1.71:8774/v2/7033300637bc4964a8d0a43649fcf898/images/detail 2012-05-10 14:40:08 DEBUG nova.api.openstack.wsgi [req-c6b9ea76-bbe1-4796-a231-41fc41c7695f 50be127b9b7f49dcbf5ffea06d23d83a ebf29e67cbd445daa5ad09f76cdf69f9] Unrecognized Content-Type provided in request from (pid=1005) get_body /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:697 On Thu, May 10, 2012 at 2:27 AM, Dolph Mathews dolph.math...@gmail.com wrote: Hrm, good catch! I see no problems with that request at all... -Dolph Mathews On May 9, 2012, at 5:58 PM, Kevin L. Mitchell kevin.mitch...@rackspace.com wrote: On Wed, 2012-05-09 at 15:32 -0500, Dolph Mathews wrote: It also just occurred to me that perhaps you're using a *very* old novaclient against a more recent version of keystone? Actually, if you look a little more closely: $ nova --debug image-list connect: (192.168.1.71, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 192.168.1.71:5000\r\nContent-Length: 117\r \ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r \naccept: application/json\r\nuser-agent: python-novaclient\r\n \r\n{auth: {tenantName: labSpaceDemo, passwordCredentials: {username: adminUser, password: lfplhfgthvf}}}' The request body for Keystone is not, in fact, malformed. It would be interesting to look at the nova-api logs for this request… -- Kevin L. Mitchell kevin.mitch...@rackspace.com -- Igor Laskovy ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] ERROR: Malformed request url (HTTP 400)
Hi all from sunny Kiev! Have the problem below: $ nova image-list ERROR: Malformed request url (HTTP 400) $ nova --debug image-list connect: (192.168.1.71, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 192.168.1.71:5000\r\nContent-Length: 117\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{auth: {tenantName: labSpaceDemo, passwordCredentials: {username: adminUser, password: lfplhfgthvf}}}' reply: 'HTTP/1.1 200 OK\r\n' header: Content-Type: application/json header: Vary: X-Auth-Token header: Date: Wed, 09 May 2012 18:23:48 GMT header: Transfer-Encoding: chunked connect: (192.168.1.71, 8774) send: u'GET /v2/7033300637bc4964a8d0a43649fcf898/images/detail HTTP/1.1\r\nHost: 192.168.1.71:8774\r\nx-auth-project-id: labSpaceDemo\r\nx-auth-token: 65e6d91f80f047a7b1a49ede0aa7c0f1\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n' reply: 'HTTP/1.1 400 Bad Request\r\n' header: Content-Length: 65 header: Content-Type: application/json; charset=UTF-8 header: X-Compute-Request-Id: req-faef2b77-9f53-4849-b0f5-c0508fe2cf21 header: Date: Wed, 09 May 2012 18:23:48 GMT DEBUG (shell:416) Malformed request url (HTTP 400) Traceback (most recent call last): File /usr/lib/python2.7/dist-packages/novaclient/shell.py, line 413, in main OpenStackComputeShell().main(sys.argv[1:]) File /usr/lib/python2.7/dist-packages/novaclient/shell.py, line 364, in main args.func(self.cs, args) File /usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py, line 350, in do_image_list image_list = cs.images.list() File /usr/lib/python2.7/dist-packages/novaclient/v1_1/images.py, line 47, in list return self._list(/images/detail, images) File /usr/lib/python2.7/dist-packages/novaclient/base.py, line 71, in _list resp, body = self.api.client.get(url) File /usr/lib/python2.7/dist-packages/novaclient/client.py, line 136, in get return self._cs_request(url, 'GET', **kwargs) File /usr/lib/python2.7/dist-packages/novaclient/client.py, line 124, in _cs_request **kwargs) File /usr/lib/python2.7/dist-packages/novaclient/client.py, line 107, in request raise exceptions.from_response(resp, body) BadRequest: Malformed request url (HTTP 400) ERROR: Malformed request url (HTTP 400) At the same time $ glance index works well. And I have --auth_strategy=keystone in my nova.conf. -- Igor Laskovy ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] ERROR: Malformed request url (HTTP 400)
The request URL is actually fine, but the request body is quite malformed: {tenantName: labSpaceDemo, passwordCredentials: {username: adminUser, password: lfplhfgthvf}}} What's there would be just fine if it were wrapped in an auth element (see http://keystone.openstack.org/api_curl_examples.html#id4 ): {auth: {tenantName: labSpaceDemo, passwordCredentials: {username: adminUser, password: lfplhfgthvf -Dolph On Wed, May 9, 2012 at 1:25 PM, Igor Laskovy igor.lask...@gmail.com wrote: Hi all from sunny Kiev! Have the problem below: $ nova image-list ERROR: Malformed request url (HTTP 400) $ nova --debug image-list connect: (192.168.1.71, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 192.168.1.71:5000\r\nContent-Length: 117\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{auth: {tenantName: labSpaceDemo, passwordCredentials: {username: adminUser, password: lfplhfgthvf}}}' reply: 'HTTP/1.1 200 OK\r\n' header: Content-Type: application/json header: Vary: X-Auth-Token header: Date: Wed, 09 May 2012 18:23:48 GMT header: Transfer-Encoding: chunked connect: (192.168.1.71, 8774) send: u'GET /v2/7033300637bc4964a8d0a43649fcf898/images/detail HTTP/1.1\r\nHost: 192.168.1.71:8774\r\nx-auth-project-id: labSpaceDemo\r\nx-auth-token: 65e6d91f80f047a7b1a49ede0aa7c0f1\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n' reply: 'HTTP/1.1 400 Bad Request\r\n' header: Content-Length: 65 header: Content-Type: application/json; charset=UTF-8 header: X-Compute-Request-Id: req-faef2b77-9f53-4849-b0f5-c0508fe2cf21 header: Date: Wed, 09 May 2012 18:23:48 GMT DEBUG (shell:416) Malformed request url (HTTP 400) Traceback (most recent call last): File /usr/lib/python2.7/dist-packages/novaclient/shell.py, line 413, in main OpenStackComputeShell().main(sys.argv[1:]) File /usr/lib/python2.7/dist-packages/novaclient/shell.py, line 364, in main args.func(self.cs, args) File /usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py, line 350, in do_image_list image_list = cs.images.list() File /usr/lib/python2.7/dist-packages/novaclient/v1_1/images.py, line 47, in list return self._list(/images/detail, images) File /usr/lib/python2.7/dist-packages/novaclient/base.py, line 71, in _list resp, body = self.api.client.get(url) File /usr/lib/python2.7/dist-packages/novaclient/client.py, line 136, in get return self._cs_request(url, 'GET', **kwargs) File /usr/lib/python2.7/dist-packages/novaclient/client.py, line 124, in _cs_request **kwargs) File /usr/lib/python2.7/dist-packages/novaclient/client.py, line 107, in request raise exceptions.from_response(resp, body) BadRequest: Malformed request url (HTTP 400) ERROR: Malformed request url (HTTP 400) At the same time $ glance index works well. And I have --auth_strategy=keystone in my nova.conf. -- Igor Laskovy ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] ERROR: Malformed request url (HTTP 400)
It also just occurred to me that perhaps you're using a *very* old novaclient against a more recent version of keystone? -Dolph On Wed, May 9, 2012 at 3:30 PM, Dolph Mathews dolph.math...@gmail.comwrote: The request URL is actually fine, but the request body is quite malformed: {tenantName: labSpaceDemo, passwordCredentials: {username: adminUser, password: lfplhfgthvf}}} What's there would be just fine if it were wrapped in an auth element (see http://keystone.openstack.org/api_curl_examples.html#id4 ): {auth: {tenantName: labSpaceDemo, passwordCredentials: {username: adminUser, password: lfplhfgthvf -Dolph On Wed, May 9, 2012 at 1:25 PM, Igor Laskovy igor.lask...@gmail.comwrote: Hi all from sunny Kiev! Have the problem below: $ nova image-list ERROR: Malformed request url (HTTP 400) $ nova --debug image-list connect: (192.168.1.71, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 192.168.1.71:5000\r\nContent-Length: 117\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{auth: {tenantName: labSpaceDemo, passwordCredentials: {username: adminUser, password: lfplhfgthvf}}}' reply: 'HTTP/1.1 200 OK\r\n' header: Content-Type: application/json header: Vary: X-Auth-Token header: Date: Wed, 09 May 2012 18:23:48 GMT header: Transfer-Encoding: chunked connect: (192.168.1.71, 8774) send: u'GET /v2/7033300637bc4964a8d0a43649fcf898/images/detail HTTP/1.1\r\nHost: 192.168.1.71:8774\r\nx-auth-project-id: labSpaceDemo\r\nx-auth-token: 65e6d91f80f047a7b1a49ede0aa7c0f1\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n' reply: 'HTTP/1.1 400 Bad Request\r\n' header: Content-Length: 65 header: Content-Type: application/json; charset=UTF-8 header: X-Compute-Request-Id: req-faef2b77-9f53-4849-b0f5-c0508fe2cf21 header: Date: Wed, 09 May 2012 18:23:48 GMT DEBUG (shell:416) Malformed request url (HTTP 400) Traceback (most recent call last): File /usr/lib/python2.7/dist-packages/novaclient/shell.py, line 413, in main OpenStackComputeShell().main(sys.argv[1:]) File /usr/lib/python2.7/dist-packages/novaclient/shell.py, line 364, in main args.func(self.cs, args) File /usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py, line 350, in do_image_list image_list = cs.images.list() File /usr/lib/python2.7/dist-packages/novaclient/v1_1/images.py, line 47, in list return self._list(/images/detail, images) File /usr/lib/python2.7/dist-packages/novaclient/base.py, line 71, in _list resp, body = self.api.client.get(url) File /usr/lib/python2.7/dist-packages/novaclient/client.py, line 136, in get return self._cs_request(url, 'GET', **kwargs) File /usr/lib/python2.7/dist-packages/novaclient/client.py, line 124, in _cs_request **kwargs) File /usr/lib/python2.7/dist-packages/novaclient/client.py, line 107, in request raise exceptions.from_response(resp, body) BadRequest: Malformed request url (HTTP 400) ERROR: Malformed request url (HTTP 400) At the same time $ glance index works well. And I have --auth_strategy=keystone in my nova.conf. -- Igor Laskovy ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] ERROR: Malformed request url (HTTP 400)
On Wed, 2012-05-09 at 15:32 -0500, Dolph Mathews wrote: It also just occurred to me that perhaps you're using a *very* old novaclient against a more recent version of keystone? Actually, if you look a little more closely: $ nova --debug image-list connect: (192.168.1.71, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 192.168.1.71:5000\r\nContent-Length: 117\r \ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r \naccept: application/json\r\nuser-agent: python-novaclient\r\n \r\n{auth: {tenantName: labSpaceDemo, passwordCredentials: {username: adminUser, password: lfplhfgthvf}}}' The request body for Keystone is not, in fact, malformed. It would be interesting to look at the nova-api logs for this request… -- Kevin L. Mitchell kevin.mitch...@rackspace.com ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] ERROR: Malformed request url (HTTP 400)
Hrm, good catch! I see no problems with that request at all... -Dolph Mathews On May 9, 2012, at 5:58 PM, Kevin L. Mitchell kevin.mitch...@rackspace.com wrote: On Wed, 2012-05-09 at 15:32 -0500, Dolph Mathews wrote: It also just occurred to me that perhaps you're using a *very* old novaclient against a more recent version of keystone? Actually, if you look a little more closely: $ nova --debug image-list connect: (192.168.1.71, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 192.168.1.71:5000\r\nContent-Length: 117\r \ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r \naccept: application/json\r\nuser-agent: python-novaclient\r\n \r\n{auth: {tenantName: labSpaceDemo, passwordCredentials: {username: adminUser, password: lfplhfgthvf}}}' The request body for Keystone is not, in fact, malformed. It would be interesting to look at the nova-api logs for this request… -- Kevin L. Mitchell kevin.mitch...@rackspace.com ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp