您的位置:首页 > 运维架构 > Linux

在centos7或者ubuntu14.04环境中安装openstack-I版本成功后dashboard无法登陆问题的解决

2016-02-17 15:58 976 查看
只有openstack-I版本的安装这里不再过多的描述,这里只是说明一下,当一切都安装完毕之后, dashboard出现无法登陆的情况。

在以上两个版本中进行openstack版本的安装,可以安装成功,但是登录dashboard的时候出现错误:

mportError at /

No module named utils

Request Method: GET

Request URL: http://10.0.1.218/
Django Version: 1.6.11

Exception Type: ImportError

Exception Value:

No module named utils

Exception Location: /usr/lib/python2.7/site-packages/compressor/conf.py in <module>, line 5

Python Executable: /usr/bin/python

Python Version: 2.7.5

这个问题出现的原因就是当时openstack-I版本使用时,centos7或者ubuntu14.04并没有大规模的应用,所以I版本并没有在这两个版本上进行测试。导致出现不兼容的问题。

 解决方法:

openstack/requirements / global-requirements.txt
django_compressor>=1.3 修改为 django_compressor>=1.3,<2.0 https://review.openstack.org/#/c/265025/2/global-requirements.txt
    openstack/horizon / requirements.txt
django_compressor>=1.3 修改为 django_compressor<2.0,>=1.3 https://review.openstack.org/#/c/266646/1/requirements.txt
将上述两次修改完毕之后,再次运行stack.sh脚本进行安装就可以了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  openstack