一、遇到的错误
1. ntp同步
2. mysqladmin密码与answer file中的不一致
3. mysqld默认为stop
4. netns_dependecy_install,Cannot retrieve metalink for repository: epel.
在controller节点安装iproute-devel可解决
5. /Stage[main]/Neutron::Keystone::Auth/Keystone_user[neutron]: Could not evaluate: Execution of '/usr/bin/keystone --os-auth-url http://127.0.0.1:35357/v2.0/ token-get'
将answer-file中的keystone password改成和/root/keystonerc_admin中的密码一致
6. 在centos7上安装,默认centos7要在装系统时做个lvm,默认vg的名字是centos,需要改成cinder-volumes:
[root@os1 software]# vgrename centos cinder-volumes
(1) Horizon访问权限
在控制节点上,编辑/etc/openstack-dashboard/local_settings
ALLOWED_HOSTS = [ '*' ]
(2)
网桥配置
在网络节点上,需要手动配置一次OVS网桥
将eth0外网网卡配置复制到br-ex,同时清除eth0的配置信息。
/etc/sysconfig/network-scripts/ifcfg-br-ex
/etc/sysconfig/network-scripts/ifcfg-eth0
添加br-ex、br-int网桥设备,将eth0绑定到网桥上。
# ovs-vsctl add-br br-ex
# ovs-vsctl add-port br-ex eth0
# ovs-vsctl add-br br-int
# service network restart
在计算节点上,需要手动配置一次OVS网桥
# ovs-vsctl add-br br-int
# service network restart
(3)
虚拟网卡MTU配置,降低MTU防止不必要的分片
在网络节点上,增加dnsmasq配置文件:
/etc/neutron/dnsmasq-neutron.conf:
内容为:dhcp-option-force=26,1400
将其指定到dhcp-agent配置文件中:
/etc/neutron/dhcp_agent.ini:
dnsmasq_config_file = /etc/neutron/dnsmasq-neutron.conf
# service neutron-dhcp-agent restart
(4)
配置NoVNC
在计算节点上:/etc/nova/nova.conf
--vnc_enabled=true
--vncserver_listen=0.0.0.0
--vncserver_proxyclient_address=192.168.200.190
--novncproxy_base_url=http://10.1.101.190:6080/vnc_auto.html
--xvpvncproxy_base_url=http://10.1.101.190:6081/console
(5) Libvirt配置
在计算节点上:
/etc/libvirt/libvirtd.conf:
listen_tls = 0
listen_tcp = 1
auth_tcp = "none"
auth_tls = "none"
/etc/libvirt/qemu.conf:
cgroup_device_acl = [
"/dev/null", "/dev/full","/dev/zero",
"/dev/random", "/dev/urandom",
"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
"/dev/rtc", "/dev/hpet","/dev/net/tun",
]
/etc/sysconfig/libvirtd:
LIBVIRTD_ARGS="-d -l"
参考资料:
http://linuxfly.org/post/717/
http://www.nemosky.com/job/1351.html