and in nova-api.log 2012-03-07 10:16:23 INFO nova.api.openstack.wsgi [req-384a202a-45c6-4aa7-9a92-a8ad15f8ec3c 7e749fed4cee4999ac86a79044c68d1b 7e749fed4cee4999ac86a79044c68d1b] GET http://127.0.0.1:8774/v2/6b2fa9e4aadf48e7b0d44ad6a0eea6a8/servers/detail 2012-03-07 10:16:23 DEBUG nova.api.openstack.wsgi [req-384a202a-45c6-4aa7-9a92-a8ad15f8ec3c 7e749fed4cee4999ac86a79044c68d1b 7e749fed4cee4999ac86a79044c68d1b] Unrecognized Content-Type provided in request from (pid=29743) get_body /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:694
---------- Forwarded message ---------- From: Roman Sokolkov <[email protected]> Date: 2012/3/7 Subject: Re: [Openstack] nova endpoint in keystone To: Dolph Mathews <[email protected]> Thanks, but from keystone client I couldn't add *$(tenant_id)s* , but could %*(tenant_id)s* and it fixed this problem. But I have another one # nova --debug list connect: (127.0.0.1, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 127.0.0.1:5000\r\nContent-Length: 103\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": "admin", "passwordCredentials": {"username": "demouser2", "password": "demo"}}}' reply: 'HTTP/1.1 200 OK\r\n' header: Content-Type: application/json header: Vary: X-Auth-Token header: Date: Wed, 07 Mar 2012 06:16:23 GMT header: Transfer-Encoding: chunked connect: (127.0.0.1, 8774) send: u'GET /v2/6b2fa9e4aadf48e7b0d44ad6a0eea6a8/servers/detail HTTP/1.1\r\nHost: 127.0.0.1:8774\r\nx-auth-project-id: admin\r\nx-auth-token: 7e749fed4cee4999ac86a79044c68d1b\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: Date: Wed, 07 Mar 2012 06:16:23 GMT DEBUG (shell:384) Malformed request url (HTTP 400) Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 381, in main OpenStackComputeShell().main(sys.argv[1:]) File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 332, in main args.func(self.cs, args) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 465, in do_list utils.print_list(cs.servers.list(search_opts=search_opts), columns, File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 265, in list return self._list("/servers%s%s" % (detail, query_string), "servers") File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 74, in _list resp, body = self.api.client.get(url) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 132, in get return self._cs_request(url, 'GET', **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 120, in _cs_request **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 103, in request raise exceptions.from_response(resp, body) BadRequest: Malformed request url (HTTP 400) ERROR: Malformed request url (HTTP 400) 2012/3/6 Dolph Mathews <[email protected]> > Try using *$(tenant_id)s* instead of *%tenant_id%* > > On Tue, Mar 6, 2012 at 10:38 AM, Roman Sokolkov <[email protected]>wrote: > >> Hi, folks! >> >> I use essex-4 packages for ubuntu. I ve added endpoint in keystone >> >> *keystone endpoint-create --region=nova >> --service_id=264d572eaccc44f69b465a571983496f --publicurl= >> http://127.0.0.1:8774/v2/%tenant_id% --internalurl= >> http://127.0.0.1:8774/v2/%tenant_id% --adminurl= >> http://127.0.0.1:35357/v2/%tenant_id%* >> >> and try to >> >> *nova list* >> >> keystone has a traceback. ends with >> >> File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line >> 180, in __call__ >> result = method(context, **params) >> File "/usr/lib/python2.7/dist-packages/keystone/service.py", line 294, >> in authenticate >> metadata=metadata_ref) >> File "/usr/lib/python2.7/dist-packages/keystone/common/manager.py", >> line 34, in _wrapper >> return f(*args, **kw) >> File >> "/usr/lib/python2.7/dist-packages/keystone/catalog/backends/sql.py", line >> 163, in get_catalog >> catalog[region][srv_type]['publicURL'] = public_url % d >> ValueError: unsupported format character 't' (0x74) at index 27 >> >> if >> >> *keystone endpoint-create --region=nova >> --service_id=264d572eaccc44f69b465a571983496f --publicurl= >> http://127.0.0.1:8774/v2/ --internalurl=http://127.0.0.1:8774/v2/--adminurl= >> http://127.0.0.1:35357/v2/* >> >> *nova list* >> >> >> ERROR: n/a (HTTP 404) >> -- >> Regards, Roman Sokolkov >> >> _______________________________________________ >> Mailing list: https://launchpad.net/~openstack >> Post to : [email protected] >> Unsubscribe : https://launchpad.net/~openstack >> More help : https://help.launchpad.net/ListHelp >> >> > -- Regards, Roman Sokolkov -- Regards, Roman Sokolkov
_______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : [email protected] Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp

