swift keystone authentication : This server could not verify that you are authorized to access the document you requested [closed]
I am able to get the swift authentication through tempauth. But when I am using keystoneauth it is failing. The proxy-server.conf: [pipeline:main] pipeline=gatekeeper cache catch_errors healthcheck formpost authtoken keystoneauth tempauth proxy-logging dlo name_check proxy-server and opertor roles have been configured as: operator_roles = admin,swiftoperator,ResellerAdmin
Using tempauth: curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://localhost:8080/auth/v1.0 generates * About to connect() to localhost port 8080 (#0) * Trying 127.0.0.1... * Connected to localhost (127.0.0.1) port 8080 (#0)
GET /auth/v1.0 HTTP/1.1 User-Agent: curl/7.29.0 Host: localhost:8080 Accept: / X-Storage-User: test:tester X-Storage-Pass: testing
< HTTP/1.1 200 OK < X-Storage-Url: http://localhost:8080/v1/AUTH_test < X-Auth-Token: AUTH_tk1a65d757f499482eb37290b212e8a131 < Content-Type: text/html; charset=UTF-8 < X-Storage-Token: AUTH_tk1a65d757f499482eb37290b212e8a131 < X-Trans-Id: tx26e500d645354409a3c97-0054c23f92 < Content-Length: 0 < Date: Fri, 23 Jan 2015 12:33:22 GMT < * Connection #0 to host localhost left intact and the command gives the correct output swift -A http://localhost:8080/auth/v1.0 -U test:tester -K testing stat Account: AUTH_test Containers: 0 Objects: 0 Bytes: 0 X-Put-Timestamp: 1422016563.04302 X-Timestamp: 1422016563.04302 X-Trans-Id: txabadfd14ec224176b5059-0054c24032 Content-Type: text/plain; charset=utf-8
But facing issues with keystone.
In step 1: I am able to create create the token.
curl -d '{"auth":{"passwordCredentials":{"username": "demo", "password": "demo_pwd"},"tenantName":"demo"}}' -H "Content-type: application/json" http://localhost:5000/v2.0/tokens | python -mjson.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3855 100 3758 100 97 11071 285 --:--:-- --:--:-- --:--:-- 11118 { "access": { "metadata": { "is_admin": 0, "roles": [ "09afce5a5e7b4e8c8197e39bd21ba6f5", "ed99b5357f3d4270b5c98730d50eb48e" ] }, "serviceCatalog": [ { "endpoints": [ { "adminURL": "http://localhost:8774/v2/602f0101b8ac4c47a85faa81d5638abc", "id": "e8abaef805434e2abfd398cafd675b6d", "internalURL": "http://localhost:8774/v2/602f0101b8ac4c47a85faa81d5638abc", "publicURL": "http://localhost:8774/v2/602f0101b8ac4c47a85faa81d5638abc", "region": "regionOne" } ], "endpoints_links": [], "name": "nova", "type": "compute" }, { "endpoints": [ { "adminURL": "http://localhost:9696", "id": "3eb2f592a093460a860bf6d9281e665d", "internalURL": "http://localhost:9696", "publicURL": "http://localhost:9696", "region": "regionOne" } ], "endpoints_links": [], "name": "neutron", "type": "network" }, { "endpoints": [ { "adminURL": "http://localhost:8776/v2/602f0101b8ac4c47a85faa81d5638abc", "id": "44cc97c468c145c59792d4b256fa3e95", "internalURL": "http://localhost:8776/v2/602f0101b8ac4c47a85faa81d5638abc", "publicURL": "http://localhost:8776/v2/602f0101b8ac4c47a85faa81d5638abc", "region": "regionOne" } ], "endpoints_links": [], "name": "cinderv2", "type": "volumev2" }, { "endpoints": [ { "adminURL": "http://localhost:9292", "id": "1af674de70dc493f8044d2f8b2534679", "internalURL": "http://localhost:9292", "publicURL": "http://localhost:9292", "region": "regionOne" } ], "endpoints_links": [], "name": "glance", "type": "image" }, { "endpoints": [ { "adminURL": "http://localhost:8777", "id": "463f6349156e4dbe9097b73423a7e308", "internalURL": "http://localhost:8777", "publicURL": "http://localhost:8777", "region": "regionOne" } ], "endpoints_links": [], "name": "ceilometer", "type": "metering" }, { "endpoints": [ { "adminURL": "http://localhost:8000/v1", "id": "4083ac3a3cef4d3fa738cbf39ee62c0e", "internalURL": "http://localhost:8000/v1", "publicURL": "http://localhost:8000/v1", "region": "regionOne" } ], "endpoints_links": [], "name": "heat-cfn", "type": "cloudformation" }, { "endpoints": [ { "adminURL": "http://localhost:8776/v1/602f0101b8ac4c47a85faa81d5638abc", "id": "709edc64493544f1af8531968d1ee8f8", "internalURL": "http://localhost:8776/v1/602f0101b8ac4c47a85faa81d5638abc", "publicURL": "http://localhost:8776/v1/602f0101b8ac4c47a85faa81d5638abc", "region": "regionOne" } ], "endpoints_links": [], "name": "cinder", "type": "volume" }, { "endpoints": [ { "adminURL": "http://localhost:8004/v1/602f0101b8ac4c47a85faa81d5638abc", "id": "8f36fed5b453464989924c8be006fb6f", "internalURL": "http://localhost:8004/v1/602f0101b8ac4c47a85faa81d5638abc", "publicURL": "http://localhost:8004/v1/602f0101b8ac4c47a85faa81d5638abc", "region": "regionOne" } ], "endpoints_links": [], "name": "heat", "type": "orchestration" }, { "endpoints": [ { "adminURL": "http://localhost:8080", "id": "1e07b5b5edd9458299848c956ceaee02", "internalURL": "http://localhost:8080/v1/AUTH_602f0101b8ac4c47a85faa81d5638abc", "publicURL": "http://localhost:8080/v1/AUTH_602f0101b8ac4c47a85faa81d5638abc", "region": "regionOne" } ], "endpoints_links": [], "name": "swift", "type": "object-store" }, { "endpoints": [ { "adminURL": "http://localhost:35357/v2.0", "id ...
This question has been asked and answered multiple times on this site. Search around before posting.
Yes. there are many questions asked eralier. Unfortunately whatever has been mentioned to make changes in Proxy-server.conf did not solve the problem I am facing. Only tempauth works.
Thanks for the support. I could fix the issue and this can be closed.