centos7下openstack安装的部分问题

1、 ERROR:1045 SOLUTION:

(1).关闭mysql
# service mariadb stop(systemctl stop mariadb.service)
(2).屏蔽权限
# mysqld_safe –skip-grant-table
屏幕出现: Starting demo from …..
(3)新开起一个终端输入
# mysql -u root mysql
mysql> delete from user where USER=”;
mysql> FLUSH PRIVILEGES;//记得要这句话,否则如果关闭先前的终端,又会出现原来的错误
mysql> \q
(4)、systemctl start mariadb.service

2、 ERROR:1290 SOLUTION: mysql>flush privileges;

3、 配置nova.conf时在[libvirt]下加virt_type=qemu cpu_mode=host-model

4、 问题:网页登录dashboard出现500 Internal Server Error错误

查看/var/log/httpd/error_log日志:
[core:error] [pid 5643] [client 192.168.47.200:29381] End of script output before headers: django.wsgi

解决方法:在/etc/httpd/conf.d/openstack-dashboard.conf文件中,添加  WSGIApplicationGroup %{GLOBAL}

5、 问题:dashboard登录异常 /var/log/httpd/error_log :”Unable to create a new session key. “缓存有问题

解决办法:将 /etc/openstack-dashboard/local_settings 里的

    SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
    SESSION_ENGINE = 'django.contrib.sessions.backends.file'

猜你喜欢

转载自blog.csdn.net/sunny0121/article/details/78520809