教程请参考官方教程
只是罗列了一些遇到的问题与解决方法
1.keystone 无法启动可以先执行以下操作
# keystone-manage pki_setup --keystone-user keystone --keystone-group keystone
# chown -R keystone:keystone /var/log/keystone
# chown -R keystone:keystone /etc/keystone/ssl
# chmod -R o-rwx /etc/keystone/ssl
2.glance-api服务启动失败
修改 api.log 权限
chown -R glance:glance /var/log/glance/api.log
3.上传镜像失败
错误提示:410 Gone: Error in store configuration. Adding images to store is disabled. (HTTP N/A)
上传镜像的目录权限问题
chown -R glance:glance /var/lib/glance/images/
4.安装compute节点服务后,nova-compute服务无法启动,/var/log/nova/nova-compute.log报以下错误: 2015-06-26 03:31:17.501 1390 ERROR oslo_messaging._drivers.impl_rabbit [req-d7a3a24b-fe9f-4885-8db6-efc850b9ec44 - - - - -] AMQP server on controller:
5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 2 seconds.
2015-06-26 03:31:18.526 1390 ERROR oslo_messaging._drivers.impl_rabbit [req-d7a3a24b-fe9f-4885-8db6-efc850b9ec44 - - - - -] AMQP server on controller:
5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 2 seconds.
2015-06-26 03:31:19.548 1390 ERROR oslo_messaging._drivers.impl_rabbit [req-d7a3a24b-fe9f-4885-8db6-efc850b9ec44 - - - - -] AMQP server on controller:
5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 2 seconds.
在controller节点放开AMQP连接防火墙,放开rabbitmq server或AMQP 端口5672。 #firewall-cmd --list-all
[root@controller nova]# firewall-cmd --list-all public (default, active)
interfaces: eno16777736 eno33554976 sources:
services: dhcpv6-client ftp http mysql ssh ports: 23/tcp masquerade: no forward-ports: icmp-blocks: rich rules:
[root@controller nova]#
# firewall-cmd --permanent --add-port=5672/tcp #firewall-cmd –reload
[root@controller nova]# firewall-cmd --list-all public (default, active)
interfaces: eno16777736 eno33554976 sources:
services: dhcpv6-client ftp http mysql ssh ports: 23/tcp 5672/tcp masquerade: no forward-ports: icmp-blocks: rich rules:
5.nova-compute 启动失败 错误提示:Unable to load the virtualization driver
修改配置文件/etc/nova/nova.conf
egrep -c ‘(vmx|svm)‘ /proc/cpuinfo
输出:0
/etc/nova/nova-compute.conf配置文件
compute_driver=libvirt.LibvirtDriver
[libvirt]
virt_type=qemu
如果在虚拟机环境下则无法使用virt_type=kvm
compute_dirver 应该替换成
#compute_driver=libvirt.LibvirtDriver
compute_driver=nova.virt.libvirt.LibvirtDriver
接下来会提示防火墙错误
错误信息:
"AttributeError: ‘module‘ object has no attribute ‘NoopFirewallDriver‘\n
原因是:配置文件中
firewall_driver=nova.virt.libvirt.firewall.NoopFirewallDrive
替换成
firewall_driver=nova.virt.firewall.NoopFirewallDrive
6.openstack命令无法使用?
yum install python-openstackclient
7.控制节点执行neutron agent-list出错
Unable to establish connection to http://controller:9696/v2.0/agents.json
8.时间不同步导致 neutron ageng-list xxx的问题
同步节点间的时间就可以了
9.compute节点报错
ConnectionRefused: Unable to establish connection to http://controller:35357/v2.0/tokens
原因是控制节点的 防火墙导致的,关闭防火墙即可 systemctl stop firewall.service
10.vnc连接虚拟机失败原因
由于在COMPUTE节点的防火墙没有放开5900+端口导致的
centos 7 安装openstack kilo in three node
原文地址:http://heroair.blog.51cto.com/1121997/1720827