Ask Your Question
0

Cinder services not authorized after reinstallation

asked 2013-05-29 09:22:03 -0500

shantha-kumar gravatar image

Hi,

I have re-installed cinder service to get lastest code, after re-installation services are getting not authorized error in horizon and in CLI.

root@d00-50-56-8b-09-c5:/home/crowbar# cinder list ERROR: Unauthorized root@d00-50-56-8b-09-c5:/home/crowbar#

Debug logs: #######

root@d00-50-56-8b-09-c5:/home/crowbar# cinder --debug list

REQ: curl -i http://192.168.124.81:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-cinderclient" -d '{"auth": {"tenantName": "AdminProject", "passwordCredentials": {"username": "Admin", "password": "secretword"}}}'

RESP: [200] {'date': 'Mon, 01 Apr 2013 08:37:56 GMT', 'content-type': 'application/json', 'content-length': '9449', 'vary': 'X-Auth-Token'} RESP BODY: {"access": {"token": {"issued_at": "2013-04-01T08:37:56.147173", "expires": "2013-04-02T08:37:56Z", "id": "MIIQWgYJKoZIhvcNAQcCoIIQSzCCEEcCAQExCTAHBgUrDgMCGjCCDzMGCSqGSIb3DQEHAaCCDyQEgg8geyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNC0wMVQwODozNzo1Ni4xNDcxNzMiLCAiZXhwaXJlcyI6ICIyMDEzLTA0LTAyVDA4OjM3OjU2WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIiIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjU1M2ExYjQ4NWY4MjQwNDVhMTI4MDM2MDU2NWU4MjI4IiwgIm5hbWUiOiAiQWRtaW5Qcm9qZWN0In19LCAic2VydmljZUNhdGFsb2ciOiBbeyJlbmRwb2ludHMiOiBbeyJhZG1pblVSTCI6ICJodHRwOi8vMTkyLjE2OC4xMjQuODE6ODc3NC92Mi81NTNhMWI0ODVmODI0MDQ1YTEyODAzNjA1NjVlODIyOCIsICJyZWdpb24iOiAiUmVna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n1dLCAiZW5kcG9pbnRzX2xpbmtzIjogW10sICJ0eXBlIjogInJlZ2lzdHJ5IiwgIm5hbWUiOiAicGVlciJ9XSwgInVzZXIiOiB7InVzZXJuYW1lIjogIkFkbWluIiwgInJvbGVzX2xpbmtzIjogW10sICJpZCI6ICIzNzlhMGMyMzUyMzQ0NGQ3YWIzODY5YjA3YTkxMzAyMSIsICJyb2xlcyI6IFt7Im5hbWUiOiAiYWRtaW4ifV0sICJuYW1lIjogIkFkbWluIn0sICJtZXRhZGF0YSI6IHsiaXNfYWRtaW4iOiAwLCAicm9sZXMiOiBbIjQ4OWYzOTY4MWJmOTQ0MWVhMGQwMTIzNWRjNmM3Zjc3Il19fX0xgf8wgfwCAQEwXDBXMQswCQYDVQQGEwJVUzEOMAwGA1UECBMFVW5zZXQxDjAMBgNVBAcTBVVuc2V0MQ4wDAYDVQQKEwVVbnNldDEYMBYGA1UEAxMPd3d3LmV4YW1wbGUuY29tAgEBMAcGBSsOAwIaMA0GCSqGSIb3DQEBAQUABIGAfyp66uNsWgsnWLFvA4ztGAYIWBZseE9B4oY3+xGUPnI+6I9HTyjwhUO6dPjeflv6ie2m7vT33szh2Dg-Nc29qaq5ASKm77To+7rvY1cxS++TQ1JCGwCnjvHsQOgHfCI0iO1g9i4wQ5MIwLfCXpoYO5GIAs8B4d6cHwuCsPXpdx0=", "tenant": {"description": "", "enabled": true, "id": "553a1b485f824045a1280360565e8228", "name": "AdminProject"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://192.168.124.81:8774/v2/553a1b485f824045a1280360565e8228", "region": "RegionOne", "internalURL": "http://192.168.124.81:8774/v2/553a1b485f824045a1280360565e8228", "id": "176c20bb4c104aa6aae5cf2462629243", "publicURL": "http://10.30.0.1:8774/v2/553a1b485f824045a1280360565e8228"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://192.168.124.81:9696/", "region": "domain", "internalURL": "http://192.168.124.81:9696/", "id": "7cc3ff5193ee407095a64dae566e16c8", "publicURL": "http://10.30.0.1:9696/"}], "endpoints_links": [], "type": "network", "name": "quantum"}, {"endpoints": [{"adminURL": "http://192.168.124.81:21062/", "region": "domain", "internalURL": "http://192.168.124.81:21061/1", "id": "629214a14052481fa8bb8ae1ef2be8ed", "publicURL": "http://10.30.0.1:21061/1"}], "endpoints_links": [], "type": "repository", "name": "focus"}, {"endpoints": [{"adminURL": "http://192.168.124.81:9292", "region": "RegionOne", "internalURL": "http://192.168.124.81:9292", "id": "4b2b49277ce249a9975e3978a19bb201", "publicURL": "http://10.30.0.1:9292"}, {"adminURL": "http://192.168.124.81:9292", "region": "domain", "internalURL": "http://192.168.124.81:9292", "id": "68cfee0eabcb49ae8312130296a90c6b", "publicURL": "http://10.30.0.1:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://192.168.124.81:8776/v1/553a1b485f824045a1280360565e8228", "region": "domain", "internalURL": "http://192.168.124.81:8776/v1/553a1b485f824045a1280360565e8228", "id": "febb06c09f034a0ea9ce83539dddaf45", "publicURL": "http://10.30.0.1:8776/v1/553a1b485f824045a1280360565e8228"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://192.168.124.81:21041/eden/1", "region": "domain", "internalURL": "http://192.168.124.81:21041/eden/1", "id": "92c6a0d44b674632a4f15fa89f590114", "publicURL": "http://10.30.0.1:21041/eden/1"}], "endpoints_links": [], "type": "framework", "name": "eden"}, {"endpoints": [{"adminURL": "http://192.168.124.81:8773/services/Admin", "region": "RegionOne", "internalURL": "http://192.168.124.81:8773/services/Cloud", "id": "19cee8ef29ed423cbf1141ab5b6476eb", "publicURL": "http://10.30.0.1:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://192.168.124.81:21051/eve/1", "region": "domain", "internalURL": "http://192.168.124.81:21051/eve/1", "id": "1a419fb6e60e432885b69b19c9f25511", "publicURL": "http://10.30.0.1:21051/eve/1"}], "endpoints_links": [], "type": "provisioner", "name": "eve"}, {"endpoints": [{"adminURL": "http://192.168.124.81:35357/v2.0", "region": "RegionOne", "internalURL": "http://192.168.124.81:5000/v2.0", "id": "bbff8f6563914157bc4ed58361846658", "publicURL": "http://10.30.0.1:5000/v2.0"}, {"adminURL": "http://192.168.124.81:35357/v2.0", "region": "domain", "internalURL": "http://192.168.124.81:5000/v2.0", "id": "60fabd74eb5c4dae9371fd1de89ef9a2", "publicURL": "http://10.30.0.1:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}, {"endpoints": [{"adminURL": "http ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-06-09 10:11:40 -0500

I too faced the same issue and I found the reason is the in correct user information I have put in the /etc/cinder/cinder.conf As a solution I have created a user named "cinder" and added the user to the tenant "service" which I have already added. The I have granted admin role to the newly created user cinder

Now my /etc/cinder/cinder.conf looks as follows...

admin_user = cinder admin_tenant_name = service admin_password = <password of="" the="" user="" "cinder"<="" p="">

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-05-29 09:22:03 -0500

Seen: 87 times

Last updated: Jun 09 '13