<div dir="ltr">One more thing, i can see the volumes in the dashboard without troubles...</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/29 Juan José Pavlik Salles <span dir="ltr"><<a href="mailto:jjpavlik@gmail.com" target="_blank">jjpavlik@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, i have spent the last days trying to solve this problem. I can't list my cinder volumes from my shell:<div>
<br></div><div><div>root@locro:~# cinder --os-username=admin --os-tenant-name=admin --os-password=XXX --os-auth-url=<a href="http://172.19.136.1:35357/v2.0" target="_blank">http://172.19.136.1:35357/v2.0</a> --debug list</div>
<div><br></div><div>REQ: curl -i <a href="http://172.19.136.1:35357/v2.0/tokens" target="_blank">http://172.19.136.1:35357/v2.0/tokens</a> -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-cinderclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "zGp05Nsa"}}}'</div>
<div><br></div><div>RESP: [200] {'date': 'Mon, 29 Apr 2013 17:24:44 GMT', 'content-type': 'application/json', 'content-length': '7096', 'vary': 'X-Auth-Token'}</div>
<div>RESP BODY: {"access": {"token": {"issued_at": "2013-04-29T17:24:44.044013", "expires": "2013-04-30T17:24:43Z", "id": "MIIMaQYJKoZIhvcNAQcC...", "tenant": {"description": null, "enabled": true, "id": "6aa3bf1ab68040218873a782f90cffa7", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "<a href="http://172.19.136.11:8774/v2/6aa3bf1ab68040218873a782f90cffa7" target="_blank">http://172.19.136.11:8774/v2/6aa3bf1ab68040218873a782f90cffa7</a>", "region": "RegionOne", "internalURL": "<a href="http://172.19.136.10:8774/v2/6aa3bf1ab68040218873a782f90cffa7" target="_blank">http://172.19.136.10:8774/v2/6aa3bf1ab68040218873a782f90cffa7</a>", "id": "26178391275a42cfa3b786ab151c8f8a", "publicURL": "<a href="http://172.19.136.11:8774/v2/6aa3bf1ab68040218873a782f90cffa7" target="_blank">http://172.19.136.11:8774/v2/6aa3bf1ab68040218873a782f90cffa7</a>"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "<a href="http://172.19.136.11:9696/" target="_blank">http://172.19.136.11:9696/</a>", "region": "RegionOne", "internalURL": "<a href="http://172.19.136.11:9696/" target="_blank">http://172.19.136.11:9696/</a>", "id": "1d0f394d83804ecaaa5ba708ccf0417b", "publicURL": "<a href="http://172.19.136.11:9696/" target="_blank">http://172.19.136.11:9696/</a>"}], "endpoints_links": [], "type": "network", "name": "quantum"}, {"endpoints": [{"adminURL": "<a href="http://172.19.136.10:9292/v2" target="_blank">http://172.19.136.10:9292/v2</a>", "region": "RegionOne", "internalURL": "<a href="http://172.19.136.11:9292/v2" target="_blank">http://172.19.136.11:9292/v2</a>", "id": "11f37a313bad47f28b846cb9b94d458c", "publicURL": "<a href="http://172.19.136.11:9292/v2" target="_blank">http://172.19.136.11:9292/v2</a>"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "<a href="http://172.19.136.1:8776/v1/6aa3bf1ab68040218873a782f90cffa7" target="_blank">http://172.19.136.1:8776/v1/6aa3bf1ab68040218873a782f90cffa7</a>", "region": "RegionOne", "internalURL": "<a href="http://172.19.136.1:8776/v1/6aa3bf1ab68040218873a782f90cffa7" target="_blank">http://172.19.136.1:8776/v1/6aa3bf1ab68040218873a782f90cffa7</a>", "id": "1ebe70478edd45d087263a4dc457f03a", "publicURL": "<a href="http://172.19.136.1:8776/v1/6aa3bf1ab68040218873a782f90cffa7" target="_blank">http://172.19.136.1:8776/v1/6aa3bf1ab68040218873a782f90cffa7</a>"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "<a href="http://172.19.136.11:8773/services/Admin" target="_blank">http://172.19.136.11:8773/services/Admin</a>", "region": "RegionOne", "internalURL": "<a href="http://172.19.136.10:8773/services/Cloud" target="_blank">http://172.19.136.10:8773/services/Cloud</a>", "id": "4fd5bcbee3584c2b883b08f22f81de54", "publicURL": "<a href="http://172.19.136.10:8773/services/Cloud" target="_blank">http://172.19.136.10:8773/services/Cloud</a>"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "<a href="http://172.19.136.10:8080/v1" target="_blank">http://172.19.136.10:8080/v1</a>", "region": "RegionOne", "internalURL": "<a href="http://172.19.136.11:8080/v1/AUTH_6aa3bf1ab68040218873a782f90cffa7" target="_blank">http://172.19.136.11:8080/v1/AUTH_6aa3bf1ab68040218873a782f90cffa7</a>", "id": "65911114c36341a19006c328c6d0a2ae", "publicURL": "<a href="http://172.19.136.10:8080/v1/AUTH_6aa3bf1ab68040218873a782f90cffa7" target="_blank">http://172.19.136.10:8080/v1/AUTH_6aa3bf1ab68040218873a782f90cffa7</a>"}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "<a href="http://172.19.136.11:35357/v2.0" target="_blank">http://172.19.136.11:35357/v2.0</a>", "region": "RegionOne", "internalURL": "<a href="http://172.19.136.10:5000/v2.0" target="_blank">http://172.19.136.10:5000/v2.0</a>", "id": "0f9389d0485e4f2f9f7874c41181bd28", "publicURL": "<a href="http://172.19.136.10:5000/v2.0" target="_blank">http://172.19.136.10:5000/v2.0</a>"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "3f82673b5fe0411ab5fd8216bdb693c6", "roles": [{"name": "KeystoneServiceAdmin"}, {"name": "KeystoneAdmin"}, {"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["6666fa99078a4f07a070e7e858c32f02", "36bba9ef0178448c8a654b75feb3a0f4", "a25581dd3470460b91ecaa29eca7205c"]}}}</div>
<div><br></div><div><br></div><div>REQ: curl -i <a href="http://172.19.136.1:8776/v1/6aa3bf1ab68040218873a782f90cffa7/volumes/detail" target="_blank">http://172.19.136.1:8776/v1/6aa3bf1ab68040218873a782f90cffa7/volumes/detail</a> -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-cinderclient" -H "Accept: application/json" -H "X-Auth-Token: MIIMaQYJKoZIhvcNAQcCo..."</div>
<div><br></div><div>RESP: [401] {'date': 'Mon, 29 Apr 2013 17:24:44 GMT', 'content-length': '276', 'content-type': 'text/plain; charset=UTF-8', 'www-authenticate': "Keystone uri='<a href="http://172.19.136.1:35357" target="_blank">http://172.19.136.1:35357</a>'"}</div>
<div>RESP BODY: 401 Unauthorized</div><div><br></div><div>This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.</div>
<div><br></div><div> Authentication required </div><div><br></div><div>Unauthorized, reauthenticating.</div><div><br></div><div>I don't have this problem with the other services like glance or keystone with the same user/password/tenant, all of them work great. I noticed that i can list the endpoints with cinder and it works:</div>
<div><br></div><div>root@locro:~# cinder --os-username=admin --os-tenant-name=admin --os-password=XXX --os-auth-url=<a href="http://172.19.136.1:35357/v2.0" target="_blank">http://172.19.136.1:35357/v2.0</a> endpoints<br>
</div>
<div><div><div>+-------------+---------------------------------------------------------------+</div><div>| nova | Value |</div><div>+-------------+---------------------------------------------------------------+</div>
<div>| adminURL | <a href="http://172.19.136.11:8774/v2/6aa3bf1ab68040218873a782f90cffa7" target="_blank">http://172.19.136.11:8774/v2/6aa3bf1ab68040218873a782f90cffa7</a> |</div><div>| id | 26178391275a42cfa3b786ab151c8f8a |</div>
<div>| internalURL | <a href="http://172.19.136.10:8774/v2/6aa3bf1ab68040218873a782f90cffa7" target="_blank">http://172.19.136.10:8774/v2/6aa3bf1ab68040218873a782f90cffa7</a> |</div><div>| publicURL | <a href="http://172.19.136.11:8774/v2/6aa3bf1ab68040218873a782f90cffa7" target="_blank">http://172.19.136.11:8774/v2/6aa3bf1ab68040218873a782f90cffa7</a> |</div>
<div>| region | RegionOne |</div><div>| serviceName | nova |</div><div>+-------------+---------------------------------------------------------------+</div>
<div>+-------------+----------------------------------+</div><div>| quantum | Value |</div><div>+-------------+----------------------------------+</div><div>| adminURL | <a href="http://172.19.136.11:9696/" target="_blank">http://172.19.136.11:9696/</a> |</div>
<div>| id | 1d0f394d83804ecaaa5ba708ccf0417b |</div><div>| internalURL | <a href="http://172.19.136.11:9696/" target="_blank">http://172.19.136.11:9696/</a> |</div><div>| publicURL | <a href="http://172.19.136.11:9696/" target="_blank">http://172.19.136.11:9696/</a> |</div>
<div>| region | RegionOne |</div><div>+-------------+----------------------------------+</div><div>+-------------+----------------------------------+</div><div>| glance | Value |</div>
<div>+-------------+----------------------------------+</div></div></div><div>...</div><div><br></div><div>So... what's wrong here? From my point of view, it's not just an auth problem, it must be something else. Any ideas?</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div><br></div>-- <br>Pavlik Juan José
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Pavlik Juan José
</div>