Malformed endpoint URL [closed]
Hello All,
Operating System: Ubuntu Server 12.04.
I have blundered while defining the Nova endpoint urls, I entered the following (I have replaced my service id with the letter x:
keystone endpoint-create
--service-id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
--publicurl=http://192.168.1.204:8774/v2/%\{tenant_id\)s
--internalurl=http://192.168.1.204:8774/v2/%\{tenant_id\)s
--adminurl=http://192.168.1.204:8774/v2/%\{tenant_id\)s
You will notice that I accidentally used the { instead of the (
May I please know how to purge the messed up urls so I can start over?
Here is some Nova debug info:
nova --debug image-list
REQ: curl -i http://192.168.1.204:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "theadminyes", "password": "xxxxxxxxxxxxxxxxxxxxx"}}}'
INFO (connectionpool:202) Starting new HTTP connection (1): 192.168.1.204
DEBUG (connectionpool:296) "POST /v2.0/tokens HTTP/1.1" 500 168
RESP: [500] CaseInsensitiveDict({'date': 'Fri, 01 Nov 2013 07:07:17 GMT', 'vary': 'X-Auth-Token', 'content-length': '168', 'content-type': 'application/json'})
RESP BODY: {"error": {"message": "Malformed endpoint URL (http://192.168.1.204:8774/v2/%{tenant_id)s), see ERROR log for details.", "code": 500, "title": "Internal Server Error"}}
DEBUG (shell:740) Malformed endpoint URL (http://192.168.1.204:8774/v2/%{tenant_id)s), see ERROR log for details. (HTTP 500)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 737, in main
OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 667, in main
self.cs.authenticate()
File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/client.py", line 171, in authenticate
self.client.authenticate()
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 329, in authenticate
auth_url = self._v2_auth(auth_url)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 411, in _v2_auth
return self._authenticate(url, body)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 423, in _authenticate
**kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 195, in _time_request
resp, body = self.request(url, method, **kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 189, in request
raise exceptions.from_response(resp, body, url, method)
ClientException: Malformed endpoint URL (http://192.168.1.204:8774/v2/%{tenant_id)s), see ERROR log for details. (HTTP 500)
ERROR: Malformed endpoint URL (http://192.168.1.204:8774/v2/%{tenant_id)s), see ERROR log for details. (HTTP 500)
Thank you, AC.
While waiting for a solution to my issue, I spinned up another VM and built it using the same instructions, when I got to the part that caused my troubles, I made sure to prevent another typo. All is well. I have just installed the dashboard. You can go ahead and close this thread.