Openstack部署 queens版本问题总结
参考官网:https://docs.openstack.org/install-guide/openstack-services.html
https://blog.csdn.net/networken/article/details/80682437
-
安装openstack yum源
yum install centos-release-openstack-queens
为了能使用yum方式快速安装openstack 各组件
也可以自己配置repo
利用yum repolist all查看哪些repo status是enabled,对于disabled可以通过设置enabled=1生效 -
problem
问题 1:计算节点(compute node)连接mariadb报1045错误
在控制节点进入mariadb 执行:
grant all on *.* to 用户名@"%" identified by "密码";//用户名和密码处替换你自己的信息
flush privileges;
问题 2: 计算节点报CantStartEngineError: No sql_connection parameter is established
配置 /etc/nova/nova.conf
[Database] [api_database] 配成与控制节点一样
问题 3:Dashboard登录上后输入用户名密码进不去主页
查看/var/log/httpd/error_log
提示这个:RuntimeError: Unable to create a new session key. It is likely that the cache is unavailable.
缓存有问题 将 /etc/openstack-dashboard/local_settings 里的
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
改成
SESSION_ENGINE = 'django.contrib.sessions.backends.file'
重启httpd和memcached
问题4:使用chrome 连接vnc 报handler exception: [Errno 113] EHOSTUNREACH
1.检查计算节点 /etc/nova/nova.conf配置
my_ip = 192.168.182.137
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = $my_ip
novncproxy_base_url = http://controller:6080/vnc_auto.html
2.检查5900,6080端口是否被防火墙阻拦
iptables -n -v -L |grep 5900
iptables -I INPUT -p tcp -m multiport --ports 5900:6100 -m comment --comment "vnc ports" -j ACCEPT