Closed sstent closed 12 years ago
Remove python-json!
yum erase python-json
Now we get:
Traceback: File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
Exception Type: ServiceCatalogException at /syspanel/ Exception Value: Invalid service catalog service: compute
keystone-manage service list
1 nova nova 2 keystone identity
Still having the same issue using the newer packages.
horizon.noarch 2012.1-b1407
openstack-dashboard.noarch 2012.1-b1407
python-keystoneclient.noarch 2.7-b1413
This has nothing to do with package versions :)
Please initialize your keystone database with appropriate data. You can use https://github.com/aababilov/keystone-init - just follow the instructions for init-keystone-db.py script.
Wow, I love that this doesn't appear in the documentation for installing keystone.
Also, should these python scripts be included in the package if they are essential to installing the system?
1) line 9 ('user', 'add', 'admin', 'secrete'), should be ('user', 'add', 'admin', 'secrete', 'systenant'), This assigns the admin user to the systenant tenancy, otherwise you get an error about no tenant for admin
2) I still get the same error
Traceback: File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
Exception Type: ServiceCatalogException at /syspanel/ Exception Value: Invalid service catalog service: compute
Frankly speaking, there is a sample script to init the database - https://github.com/openstack/keystone/blob/stable/diablo/keystone/test/sampledata.py . But it only shows how should look the keystone's database.
Generally, by design, keystone has bad scenario of integration with nova and glance. So, don't be surprised ;)
That's strange that you have problems with admin
user that has no default tenant. Default tenant is optional, and it is enough if you just grant Admin
role on systenant
for admin
user. However, I will add this default tenant to avoid possible problems.
Have you passed nova=services
and endpoint_templates
tables?
Also, you could restart keystone and also perform authentication by curl and check exact service catalogs.
You could run curl like this: $ curl -d '{"auth":{"tenantName": "systenant", "passwordCredentials":{"username": "admin", "password": "secrete"}}}' -H "Content-type: application/json" http://localhost:5000/v2.0/tokens
Hello sstent,
Does this issue still open?
openstack-keystone.noarch 2011.3.1-b1357 openstack-dashboard.noarch 2012.1-b1351 python-novaclient.noarch 2011.3-b1360
DefaultPluginManager load plugin sqlalchemy = sqlalchemy_nose.noseplugin:NoseSQLAlchemy Creating a new client connection with endpoint: http://127.0.0.1:5000/v2.0. Error while handling form "Login". Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/dashboard/wsgi/../../horizon/forms/base.py", line 211, in maybe_handle return form, form.handle(request, data) File "/usr/lib/python2.6/site-packages/dashboard/wsgi/../../horizon/views/auth_forms.py", line 88, in handle data['password']) File "/usr/lib/python2.6/site-packages/dashboard/wsgi/../../horizon/api/keystone.py", line 167, in token_create tenant_id=tenant) File "/usr/lib/python2.6/site-packages/dashboard/wsgi/../../keystoneclient/v2_0/tokens.py", line 37, in authenticate return self._create('/tokens', params, "access", return_raw=return_raw) File "/usr/lib/python2.6/site-packages/dashboard/wsgi/../../keystoneclient/base.py", line 82, in _create resp, body = self.api.post(url, body=body) File "/usr/lib/python2.6/site-packages/dashboard/wsgi/../../keystoneclient/client.py", line 188, in post return self._cs_request(url, 'POST', _kwargs) File "/usr/lib/python2.6/site-packages/dashboard/wsgi/../../keystoneclient/client.py", line 153, in _cs_request _kwargs) File "/usr/lib/python2.6/site-packages/dashboard/wsgi/../../keystoneclient/client.py", line 114, in request request_kwargs['body'] = json.dumps(kwargs['body'])
AttributeError: 'module' object has no attribute 'dumps'