我在04号物理机上配置了nova和neutron,把04作为openstack的物理机。
在dashboard上都能够看到04节点了。但是通过dashboard创建虚拟机时,怎么创都不能进入04节点,虚拟机在04节点每次创建都显示失败。
后面分析原因有两点,第一是没有配置networking options,这里有两条路可选:
第一个是配置供应商网络
第二个是配置自助服务网络
区别参考下面两个链接
http://docs.openstack.org/liberty/install-guide-obs/neutron-compute-install-option1.html
http://docs.openstack.org/liberty/install-guide-obs/neutron-compute-install-option2.html
同时,如果没有这一步,尽管物理节点和控制节点联系上了,但是还是没有办法在物理节点建立虚拟机。
还有就是新建的虚拟机我是把它放在/dsx01/instances/目录下的
虽然有了上一步,但是还是无法新建虚拟机,原因是目录的用户是root
Sugon04:/dsx01 # ll
total 18303268
drwxr-xr-x 4 root root 4096 Mar 17 09:30 instances
drwx------ 2 root root 16384 Jan 27 17:07 lost+found
修改目录的用户为nova,就ok了
Sugon04:/dsx01 # ll
total 18303268
drwxr-xr-x 4 nova nova 4096 Mar 17 09:30 instances
drwx------ 2 root root 16384 Jan 27 17:07 lost+found
命令很简单:chown nova:nova instances/