Ask Your Question
0

trove list return ERROR: Unauthorized

asked 2014-10-29 16:06:14 -0500

Elad gravatar image

updated 2014-10-30 09:13:51 -0500

Hi, I followed this guide : OPEN STACK INSTALLATION GUIDE FOR RED HAT - ICEHOUSE
I installed nova, glance and trove on Two-node architecture with legacy networking :

[ec2-user@ip-10-0-0-10 trove]$ keystone user-list
+----------------------------------+--------+---------+---------------------+
|                id                |  name  | enabled |        email        |
+----------------------------------+--------+---------+---------------------+
| 6ff00f31eae64ba6b770fb8909e0adf5 | admin  |   True  |  ******@gmail.com  |
| 2ad2f9351e5548149c7c57d203c9b698 |  demo  |   True  |      DEMO_EMAIL     |
| f90ce2ed3c614c50ac505d6024860053 | glance |   True  |  ******@gmail.com  |
| 76f0a477c8d24e5fb9c5d6914fbd132e |  nova  |   True  |  ******@gmail.com  |
| 63a7ec70f7f14b939af36e44b4b7aa24 | trove  |   True  | ******@example.com |
+----------------------------------+--------+---------+---------------------+
[ec2-user@ip-10-0-0-10 trove]$ keystone tenant-list
+----------------------------------+---------+---------+
|                id                |   name  | enabled |
+----------------------------------+---------+---------+
| c9d9411c5e81456ba4c844b455592b34 |  admin  |   True  |
| f39ca9d6a05a439e932981926d50340d |   demo  |   True  |
| 45375ff9aa054840ba6b2d9bef8c21aa | service |   True  |
+----------------------------------+---------+---------+
[ec2-user@ip-10-0-0-10 trove]$ keystone service-list
+----------------------------------+----------+----------+----------------------------+
|                id                |   name   |   type   |        description         |
+----------------------------------+----------+----------+----------------------------+
| 31135873f06b4824ac34edb307830742 |  glance  |  image   |  OpenStack Image Service   |
| 45c92d8812c944018848dd913e89f5b8 | keystone | identity |     OpenStack Identity     |
| 62e126affe994179b8063724e8515568 |   nova   | compute  |     OpenStack Compute      |
| f8246e042be5433eaac29003b35e58b2 |  trove   | database | OpenStack Database Service |
+----------------------------------+----------+----------+----------------------------+
[ec2-user@ip-10-0-0-10 trove]$ keystone endpoint-list
+----------------------------------+-----------+-------------------------------------------+-------------------------------------------+-------------------------------------------+----------------------------------+
|                id                |   region  |                 publicurl                 |                internalurl                |                  adminurl                 |            service_id            |
+----------------------------------+-----------+-------------------------------------------+-------------------------------------------+-------------------------------------------+----------------------------------+
| 1a46c8cffd654bd196b6aaa9507cde9c | regionOne |        http://controller:5000/v2.0        |        http://controller:5000/v2.0        |        http://controller:35357/v2.0       | 45c92d8812c944018848dd913e89f5b8 |
| 26db09d466494353b4bc872bb77e8611 | regionOne |           http://controller:9292          |           http://controller:9292          |           http://controller:9292          | 31135873f06b4824ac34edb307830742 |
| 788676a434214866b4baa285095b04db | regionOne | http://controller:8779/v1.0/%(tenant_id)s | http://controller:8779/v1.0/%(tenant_id)s | http://controller:8779/v1.0/%(tenant_id)s | f8246e042be5433eaac29003b35e58b2 |
| 8b3acb5c832448ea86af6f4ed552ae5a | regionOne |  http://controller:8774/v2/%(tenant_id)s  |  http://controller:8774/v2/%(tenant_id)s  |  http://controller:8774/v2/%(tenant_id)s  | 62e126affe994179b8063724e8515568 |
+----------------------------------+-----------+-------------------------------------------+-------------------------------------------+-------------------------------------------+----------------------------------+

nova and glance works great but I'm having troubles with trove. when I try to run trove list I get the following ( with debug):

[ec2-user@ip-10-0-0-10 trove]$ trove --debug list

REQ: curl -i http://controller:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-troveclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "1"}}}'

RESP: [200] {'date': 'Wed, 29 Oct 2014 20:46:13 GMT', 'content-type': 'application/json', 'content-length': '4832', 'vary': 'X-Auth-Token'}
RESP BODY: {"access": {"token": {"issued_at": "2014-10-29T20:46:13.472128", "expires": "2014-10-29T21:46:13Z", "id": "MIII2AYJKoZIhvcNAQcCoIIIyTCCCMUCAQExCTAHBgUrDgMCGjCCBy4GCSqGSIb3DQEHAaCCBx8EggcbeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0xMC0yOVQyMDo0NjoxMy40N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sIHsibmFtZSI6ICJhZG1pbiJ9XSwgIm5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiOWZlMmZmOWVlNDM4NGIxODk0YTkwODc4ZDNlOTJiYWIiLCAiOGQ5ZGNmMGI4ZjNmNGYxMWJiOWIyZmU0NTg5NmQ5NzQiXX19fTGCAYEwggF9AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQBo9+u5rxzCqWrHu5Wz2iJBP0ZTWV6buzZ55i08NoT985Gn7PnQpLQTmhbzyDMgdJ8oMASEq5VC4ct8ZQyNOx6Gx4fRNPhehRwCPbtT53tzscNo4ozHzIiZhVblA0OoOVD63u7XQi-36bV9trwmp9IQ136KqWYP6d0Do63Qt78Vsnvv9OxBI0Qf8y5iCFJpK4xxnG5JxMeo7gE3djUJnEerDL-ilhndvIuwmCQs4UtPz6iToLOy5lkVJfJmZjhUUDyPg9jwmUwyPWnkg4CntW6A0eD18DPxk9XaW2SWJ+3LUgjQKhRcgt+ptcRIgvsFzIY76HCUfeoMnEX8rCJb5Je+", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "c9d9411c5e81456ba4c844b455592b34", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://controller:9292", "region": "regionOne", "internalURL": "http://controller:9292", "id": "204badbf9d5743ca98151c24127e6750", "publicURL": "http://controller:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://controller:8774/v2/c9d9411c5e81456ba4c844b455592b34", "region": "regionOne", "internalURL": "http://controller:8774/v2/c9d9411c5e81456ba4c844b455592b34", "id": "37179154a92c46fc9abfb7a8d1aa9ba0", "publicURL": "http://controller:8774/v2/c9d9411c5e81456ba4c844b455592b34"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://controller:35357/v2.0", "region": "regionOne", "internalURL": "http://controller:5000/v2.0", "id": "02fa1563bb194b768d12360ba91f9bca", "publicURL": "http://controller:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}, {"endpoints": [{"adminURL": "http://controller:8779/v1.0/c9d9411c5e81456ba4c844b455592b34", "region": "regionOne", "internalURL": "http://controller:8779/v1.0/c9d9411c5e81456ba4c844b455592b34", "id": "16e66c99f1e04bc9a77c09c0c5ed2e1c", "publicURL": "http://controller:8779/v1.0/c9d9411c5e81456ba4c844b455592b34"}], "endpoints_links": [], "type": "database", "name": "trove"}], "user": {"username": "admin", "roles_links": [], "id": "6ff00f31eae64ba6b770fb8909e0adf5", "roles": [{"name": "_member_"}, {"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab", "8d9dcf0b8f3f4f11bb9b2fe45896d974"]}}}


REQ: curl -i http://controller:8779/v1.0/c9d9411c5e81456ba4c844b455592b34/instances -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-troveclient" -H "Accept: application/json" -H "X-Auth-Token: MIII2AYJKoZIhvcNAQcCoIIIyTCCCMUCAQExCTAHBgUrDgMCGjCCBy4GCSqGSIb3DQEHAaCCBx8EggcbeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0xMC0yOVQyMDo0NjoxMy40NzIxMjgiLCAiZXhwaXJlcyI6ICIyMDE0LTEwLTI5VDIxOjQ2OjEzWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogImM5ZDk0MTFjNWU4MTQ1NmJhNGM4NDRiNDU1NTkyYjM0IiwgIm5hbWUiO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AkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQBo9+u5rxzCqWrHu5Wz2iJBP0ZTWV6buzZ55i08NoT985Gn7PnQpLQTmhbzyDMgdJ8oMASEq5VC4ct8ZQyNOx6Gx4fRNPhehRwCPbtT53tzscNo4ozHzIiZhVblA0OoOVD63u7XQi-36bV9trwmp9IQ136KqWYP6d0Do63Qt78Vsnvv9OxBI0Qf8y5iCFJpK4xxnG5JxMeo7gE3djUJnEerDL-ilhndvIuwmCQs4UtPz6iToLOy5lkVJfJmZjhUUDyPg9jwmUwyPWnkg4CntW6A0eD18DPxk9XaW2SWJ+3LUgjQKhRcgt+ptcRIgvsFzIY76HCUfeoMnEX8rCJb5Je+"

RESP: [401] {'date': 'Wed, 29 Oct 2014 20:46:17 GMT', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='https://127.0.0.1:35357'"}
RESP BODY: Authentication required

Unauthorized, reauthenticating.

REQ: curl -i http://controller:35357/v2.0/tokens -X POST -H ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-10-30 08:24:45 -0500

bishoy gravatar image

edit /usr/share/trove/trove-dist-paste.ini to add under [filter:authtoken]: auth_host = master auth_port = 35357 auth_protocol = http admin_user = admin admin_password = system admin_tenant_name = service

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: 2014-10-29 16:06:14 -0500

Seen: 308 times

Last updated: Oct 30 '14