<div dir="ltr">You're missing the "s" on the end of your endpoint URL:<div><br></div><div><a rel="nofollow" href="http://controller:8776/v1/%(tenant_id)" target="_blank" style="color:rgb(0,51,170);font-family:monospace;font-size:12px;line-height:18px;text-decoration:none">http://controller:8776/v1/%(tenant_id)</a>s<br>
</div><div><br></div><div><br></div><div>Cheers,</div><div>Kieran</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 6 August 2014 10:42, Jeff Silverman <span dir="ltr"><<a href="mailto:jeff@sweetlabs.com" target="_blank">jeff@sweetlabs.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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><span class="HOEnZb"><font color="#888888"><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></font></span></div>
<span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div dir="ltr"><b>Jeff Silverman</b><div>
Systems Engineer</div><div>(253) 459-2318 (c)</div><div><img><br></div></div>
</font></span></div>
<br>_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
<br></blockquote></div><br></div>