openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #04801
Help with Dashboard and Keystone
Hi all. I'm trying to set up a Dashboard with my nova instalation (Diablo)
and I'm getting some errors.
My environment:
Ubuntu 11.04 Server 64
OpenStack: ppa:openstack-release/2011.3
Keystone: ppa:keystone-core/trunk
Swift: ppa:swift-core/ppa
Dashboard: https://github.com/4P/openstack-dashboard
I have used this to set up the keystone.db:
BIN_DIR=${BIN_DIR:-.}
rm -f keystone.db
# Tenants
$BIN_DIR/keystone-manage $* tenant add admin
$BIN_DIR/keystone-manage $* tenant add demo
# Users
$BIN_DIR/keystone-manage $* user add demo 3mbr4p4 demo
$BIN_DIR/keystone-manage $* user add admin 3mbr4p4 admin
# Roles
$BIN_DIR/keystone-manage $* role add Admin
$BIN_DIR/keystone-manage $* role add Member
$BIN_DIR/keystone-manage $* role grant Admin admin
$BIN_DIR/keystone-manage service add swift object-store 'Swift Service'
$BIN_DIR/keystone-manage service add nova compute "Nova Compute Service"
$BIN_DIR/keystone-manage $* service add nova_compat nova_compat nova_compat
$BIN_DIR/keystone-manage service add glance image "Glance Image Service"
$BIN_DIR/keystone-manage service add keystone identity "Keystone Identity
Service"
$BIN_DIR/keystone-manage $* service add identity identity identity
#endpointTemplates
$BIN_DIR/keystone-manage $* endpointTemplates add RegionOne swift
http://localhost:8080/v1/AUTH_%tenant_id% http://localhost:8080/
http://localhost:8080/v1/AUTH_%tenant_id% 1 1
$BIN_DIR/keystone-manage $* endpointTemplates add RegionOne nova_compat
http://localhost:8774/v1.0/ http://localhost:8774/v1.0
http://localhost:8774/v1.0 1 1
$BIN_DIR/keystone-manage $* endpointTemplates add RegionOne nova
http://localhost:8774/v1.1/%tenant_id%
http://localhost:8774/v1.1/%tenant_id%
http://localhost:8774/v1.1/%tenant_id% 1 1
$BIN_DIR/keystone-manage $* endpointTemplates add RegionOne glance
http://localhost:9292/v1.1/%tenant_id%
http://localhost:9292/v1.1/%tenant_id%
http://localhost:9292/v1.1/%tenant_id% 1 1
$BIN_DIR/keystone-manage $* endpointTemplates add RegionOne keystone
http://localhost:8080/v2.0 http://localhost:8081/v2.0
http://localhost:8080/v2.0 1 1
$BIN_DIR/keystone-manage $* endpointTemplates add RegionOne identity
http://localhost:5000/v2.0 http://localhost:35357/v2.0
http://localhost:5000/v2.0 1 1
# Tokens
$BIN_DIR/keystone-manage $* token add 999888777666 admin admin
2015-02-05T00:00
#Tenant endpoints
$BIN_DIR/keystone-manage $* endpoint add admin 1
$BIN_DIR/keystone-manage $* endpoint add admin 2
$BIN_DIR/keystone-manage $* endpoint add admin 3
$BIN_DIR/keystone-manage $* endpoint add admin 4
$BIN_DIR/keystone-manage $* endpoint add admin 5
$BIN_DIR/keystone-manage $* endpoint add admin 6
$BIN_DIR/keystone-manage $* endpoint add demo 1
$BIN_DIR/keystone-manage $* endpoint add demo 2
$BIN_DIR/keystone-manage $* endpoint add demo 3
$BIN_DIR/keystone-manage $* endpoint add demo 4
$BIN_DIR/keystone-manage $* endpoint add demo 5
$BIN_DIR/keystone-manage $* endpoint add demo 6
$BIN_DIR/keystone-manage $* credentials add admin EC2 'admin:admin' admin
admin || echo "no support for adding credentials"
Results:
SUCCESS: Tenant admin created.
SUCCESS: Tenant demo created.
SUCCESS: User demo created.
SUCCESS: User admin created.
SUCCESS: Role Admin created successfully.
SUCCESS: Role Member created successfully.
SUCCESS: Granted Admin the admin role on None.
SUCCESS: Service swift created successfully.
SUCCESS: Service nova created successfully.
SUCCESS: Service nova_compat created successfully.
SUCCESS: Service glance created successfully.
SUCCESS: Service keystone created successfully.
SUCCESS: Service identity created successfully.
SUCCESS: Created EndpointTemplates for swift pointing to
http://localhost:8080/v1/AUTH_%tenant_id%.
SUCCESS: Created EndpointTemplates for nova_compat pointing to
http://localhost:8774/v1.0/.
SUCCESS: Created EndpointTemplates for nova pointing to
http://localhost:8774/v1.1/%tenant_id%.
SUCCESS: Created EndpointTemplates for glance pointing to
http://localhost:9292/v1.1/%tenant_id%.
SUCCESS: Created EndpointTemplates for keystone pointing to
http://localhost:8080/v2.0.
SUCCESS: Created EndpointTemplates for identity pointing to
http://localhost:5000/v2.0.
SUCCESS: Token 999888777666 created.
SUCCESS: Endpoint 1 added to tenant admin.
SUCCESS: Endpoint 2 added to tenant admin.
SUCCESS: Endpoint 3 added to tenant admin.
SUCCESS: Endpoint 4 added to tenant admin.
SUCCESS: Endpoint 5 added to tenant admin.
SUCCESS: Endpoint 6 added to tenant admin.
SUCCESS: Endpoint 1 added to tenant demo.
SUCCESS: Endpoint 2 added to tenant demo.
SUCCESS: Endpoint 3 added to tenant demo.
SUCCESS: Endpoint 4 added to tenant demo.
SUCCESS: Endpoint 5 added to tenant demo.
SUCCESS: Endpoint 6 added to tenant demo.
SUCCESS: Credentials admin created.
Then I started the Dashboard. Accessing in browser is OK but I get several
parts in red with errors. Acessing some tabs the logs show:
ERROR:django_openstack.syspanel.views.services:ApiException fetching service
list
...
ERROR:django_openstack.syspanel.views.tenants:ApiException while getting
tenant list
...
ERROR:django_openstack.api:ApiException fetching service list in instance
usage
...
BadRequest: [Errno 111] ECONNREFUSED (HTTP 400)
showing always something like:
Traceback (most recent call last):
File
"/root/dashboard/openstack-dashboard/django-openstack/django_openstack/api.py",
line 953, in usage
datetime_end)
File
"/root/dashboard/openstack-dashboard/django-openstack/django_openstack/api.py",
line 318, in inner
return f(*args, **kwargs)
File
"/root/dashboard/openstack-dashboard/django-openstack/django_openstack/api.py",
line 657, in usage_list
return [Usage(u) for u in extras_api(request).usage.list(start, end)]
File
"/root/dashboard/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/extras/usage.py",
line 12, in list
return self._list("/extras/usage?start=%s&end=%s" % (start.isoformat(),
end.isoformat()), "usage")
File
"/root/dashboard/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/base.py",
line 27, in _list
resp, body = self.api.connection.get(url)
File
"/root/dashboard/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py",
line 78, in get
return self._cs_request(url, 'GET', **kwargs)
File
"/root/dashboard/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py",
line 63, in _cs_request
**kwargs)
File
"/root/dashboard/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py",
line 48, in request
raise exceptions.from_response(resp, body)
NotFound: This error may be caused by a misconfigured nova url in
keystone's service catalog, or by missing openstackx extensions in nova.
See the dashboard README. (HTTP 404)
So, trying follow some hints ... I added in my nova.conf:
--osapi_extensions_path=/root/dashboard/openstackx/extensions/
--allow_admin_api=true
I clone openstackx to /root/dashboard/openstackx/extensions/ ... (it's just
git clone? Do I need to run some install script?)
I also checke the path
'/root/dashboard/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py'
that is shown in logs... the files are there!
I don't know what to do! Please, help me.
Thanks.
--
- MSc. Correa, J.L.