部署OpenStack问题汇总(二)--openstack dashboard 问题解决方案

时间:2024-06-26 12:34:32

在打开dashboard的时候报错:

LocationParseError at /admin/

(LocationParseError(...), 'Failed to parse: Failed to parse: 10.50.20.75:35357:v2.0')
Request Method: GET
Request URL: http://10.50.20.75/dashboard/admin/
Django Version: 1.4.8
Exception Type: LocationParseError
Exception Value:
(LocationParseError(...), 'Failed to parse: Failed to parse: 10.50.20.75:35357:v2.0')
Exception Location: /usr/lib/python2.6/site-packages/urllib3/util.py in parse_url, line 145
Python Executable: /usr/bin/python
Python Version: 2.6.6
Python Path:
['/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../..',
'/usr/lib64/python26.zip',
'/usr/lib64/python2.6',
'/usr/lib64/python2.6/plat-linux2',
'/usr/lib64/python2.6/lib-tk',
'/usr/lib64/python2.6/lib-old',
'/usr/lib64/python2.6/lib-dynload',
'/usr/lib64/python2.6/site-packages',
'/usr/lib/python2.6/site-packages',
'/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info',
'/usr/share/openstack-dashboard/openstack_dashboard']


以上错误通过取消endpoint接口中的$\(tend_id)s$后,没有再出现这样的报错,而是出现了另外一种报错

KeyError at /admin/

'tenant_usages'
Request Method: GET
Request URL: http://10.50.20.75/dashboard/admin/
Django Version: 1.4.8
Exception Type: KeyError
Exception Value:
'tenant_usages'
Exception Location: /usr/lib/python2.6/site-packages/novaclient/base.py in _list, line 69
Python Executable: /usr/bin/python
Python Version: 2.6.6
Python Path:
['/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../..',
'/usr/lib64/python26.zip',
'/usr/lib64/python2.6',
'/usr/lib64/python2.6/plat-linux2',
'/usr/lib64/python2.6/lib-tk',
'/usr/lib64/python2.6/lib-old',
'/usr/lib64/python2.6/lib-dynload',
'/usr/lib64/python2.6/site-packages',
'/usr/lib/python2.6/site-packages',
'/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info',
'/usr/share/openstack-dashboard/openstack_dashboard']