<div dir="ltr"><div class="gmail_default" style="font-family:'times new roman',serif"><p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px">
I am in <a href="http://docs.openstack.org/icehouse/install-guide/install/yum/content/cinder-controller.html">http://docs.openstack.org/icehouse/install-guide/install/yum/content/cinder-controller.html</a>  step 8. The problem began when I didn't notice that the word controller was in italics in the documentation. I wish it were in ALL CAPS, such as for the CINDER_PASS/. However, I went back and repeated the commands correctly, I think, and I am still getting a 500 internal server error.</p>
<p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px">I used keystone with the --debug switch and tried using the generated curl command:</p>
<p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px">root@controller1-prod.controller1-prod:~# curl -i -X POST <a rel="nofollow" href="http://controller1-prod.sea.opencandy.com:35357/v2.0/tokens" style="color:rgb(0,51,170);text-decoration:none">http://controller1-prod.sea.opencandy.com:35357/v2.0/tokens</a> -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-keystoneclient" \<br>
-d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "f8d67f756e057918ef25dca59de79778"}}}'<br>
HTTP/1.1 500 Internal Server Error<br>Vary: X-Auth-Token<br>Content-Type: application/json<br>Date: Tue, 05 Aug 2014 23:51:10 GMT<br>Transfer-Encoding: chunked</p><p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px">
{"error": {"message": "Malformed endpoint URL (see ERROR log for details):<a rel="nofollow" href="http://controller:8776/v1/%(tenant_id)" style="color:rgb(0,51,170);text-decoration:none">http://controller:8776/v1/%(tenant_id)</a>", "code": 500, "title": "Internal Server Error"}}root@controller1-prod.controller1-prod:~#</p>
<p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px">from /var/log/keystone/keystone.log:</p><p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px">
2014-08-05 16:51:10 ERROR [keystone.catalog.core] Malformed endpoint <a rel="nofollow" href="http://controller:8776/v1/%(tenant_id)" style="color:rgb(0,51,170);text-decoration:none">http://controller:8776/v1/%(tenant_id)</a> - incomplete format (are you missing a type notifier ?)<br>
2014-08-05 16:51:10 WARNING [keystone.common.wsgi] Malformed endpoint URL (see ERROR log for details): <a rel="nofollow" href="http://controller:8776/v1/%(tenant_id)" style="color:rgb(0,51,170);text-decoration:none">http://controller:8776/v1/%(tenant_id)</a></p>
<p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px">I looked at the transfer with wireshark and I confirm that the service endpoint is really sending <a rel="nofollow" href="http://controller:8776/" style="color:rgb(0,51,170);text-decoration:none">http://controller:8776</a> in the error message. I don't know what port 8776 or why the server thinks that there is traffic on port 8776.</p>
<p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px">Whatever I did wrong, it has messed up keystone but good:</p><p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px">
# keystone catalog<br>Traceback (most recent call last):<br>  File "/usr/lib/python2.6/site-packages/keystoneclient/v2_0/client.py", line 172, in get_raw_token_from_identity_service<br>    return a.get_auth_ref(self.session)<br>
  File "/usr/lib/python2.6/site-packages/keystoneclient/auth/identity/v2.py", line 84, in get_auth_ref<br>    authenticated=False)<br>  File "/usr/lib/python2.6/site-packages/keystoneclient/session.py", line 334, in post<br>
    return self.request(url, 'POST', **kwargs)<br>  File "/usr/lib/python2.6/site-packages/keystoneclient/utils.py", line 324, in inner<br>    return func(*args, **kwargs)<br>  File "/usr/lib/python2.6/site-packages/keystoneclient/session.py", line 275, in request<br>
    raise exceptions.from_response(resp, method, url)<br>InternalServerError: Malformed endpoint URL (see ERROR log for details):<a rel="nofollow" href="http://controller:8776/v1/%(tenant_id)" style="color:rgb(0,51,170);text-decoration:none">http://controller:8776/v1/%(tenant_id)</a> (HTTP 500)<br>
not all arguments converted during string formatting<br>root@controller1-prod.controller1-prod:/var/log/httpd#</p><p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px">
I found something similar on launchpad, bug 1291672 <a href="https://bugs.launchpad.net/openstack-manuals/+bug/1291672">https://bugs.launchpad.net/openstack-manuals/+bug/1291672</a> which was closed for lack of activity.</p>
<p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px"><br></p><p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px">
Thank you</p><p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px">Jeff Silverman</p></div><div><br></div>-- <br><div dir="ltr"><b>Jeff Silverman</b><div>
Systems Engineer</div><div>(253) 459-2318 (c)</div><div><img src="https://dl.dropboxusercontent.com/u/16943296/SweetLabs-Signatures/New_2014/signature-logo.png"><br></div></div>
</div>