当服务器重启后,服务是不会自动启动的。不需要使用网上12年说的重启脚本,havana版本自带了启动脚本,只不过不是以服务的形式而已。
有几个英文解释,就不翻译了,原文写的很清楚:
running 'sudo losetup -f /opt/stack/data/stack-volumes-backing-file' before rejoin-stack.sh makes the volume group come online and
cinder-volume will start ok.
重启后如何运行:使用rejoin_stack.sh,不必用stack.sh
devstack没有服务的原因和使用什么控制进程启动:
Devstack does not run services. Its runs as screens. After successfully running stack.sh, if you want to restart any openstack service,
get into screen using screen -r. For restarting nova network, go to nova network screen which is screen 9, using the command CTRL+A
followed by 9. Then kill the nova network using CTRL+C and then restart it using "up" arrow and enter.
先使用losetup -f /opt/stack/data/stack-volumes-backing-file创建stack-volumes和volume-group,
再执行rejoin_stack.sh去连接devstack screens。
1. 安装完毕devstack后,需要开启如下服务
chkconfig rabbitmq-server on
service rabbitmq-server start
chkconfig httpd on
service httpd start
chkconfig mysqld on
service mysqld start
chkconfig openvswitch on
service openvswitch start
注意:
1)出现如下错误,是因为openvswitch服务没有启动,执行上面的service openvswitch start
Stderr: 'Device "br-int" does not exist
BridgeDoesNotExist: Bridge br-int does not exist.
Enable network namespaces in CentOS 6.4
2)出现如下错误,是iproute包没有装全,执行yum install kernel iproute
Object “netns” is unknown, try “ip help”
2.screen语法,执行完rejoin_stack.sh后,需要使用screen语法来控制openstack的进程
帮助 ctrl+a+?
查看screen导航 ctrl+a+" 注需要使用shift键
退出screen,有两种方法:
方法1:attach screen ctrl+a+d
方法2:exit screen ctrl+a+K
查看下一个screen ctrl+a+n
查看上一个screen ctrl+a+p
保存screen的日志到文件 ctrl+a+H,再按一次停止保存。
查看screen
[root@cheeliang ~]# screen -ls
There is a screen on:
2678.stack (Attached)
1 Socket in /var/run/screen/S-root.
重连接Re-attach screen screen -r 2678