实际生产环境是juno版本,参考了官网的文档《openstack-ops-manual》,文档上是先servcie stop,后start,挺麻烦的,直接restart,整理后的重启命令如下:
service rabbitmq-server restart
OpenStack Identity:
service openstack-keystone restart
OpenStack Image Service:
service openstack-glance-api restart service openstack-glance-registry restart
OpenStack Compute:
# service openstack-nova-api restart # service openstack-nova-scheduler restart # service openstack-nova-conductor restart # service openstack-nova-cert restart # service openstack-nova-consoleauth restart # service openstack-nova-novncproxy restart
OpenStack Block Storage:
# service openstack-cinder-api restart # service openstack-cinder-scheduler restart
Restart compute services:
# service openstack-nova-compute restart # service openstack-nova-network restart # service openstack-nova-metadata-api restart
neutron部分参照下面列出的服务名:
[root@node-9 ~]# chkconfig --list|grep neutron
neutron-dhcp-agent0:off1:off2:on3:on4:on5:on6:off
neutron-l3-agent0:off1:off2:on3:on4:on5:on6:off
neutron-lbaas-agent0:off1:off2:off3:off4:off5:off6:off
neutron-metadata-agent0:off1:off2:on3:on4:on5:on6:off
neutron-openvswitch-agent0:off1:off2:on3:on4:on5:on6:off
neutron-ovs-cleanup0:off1:off2:on3:on4:on5:on6:off
neutron-server 0:off1:off2:on3:on4:on5:on6:off
具体命令就是service + 上面的服务名 + restart ,这里就不重复了。
最后,可以通过下面的命令检查一下是不是有遗漏的服务没有重启,一般来说,上面的重启命令应该就足够了,有一些不是关键进程,可以不重启,具体需要看你的需求了。
[root@node-9 ~]# chkconfig --list|grep openstack
openstack-cinder-api0:off1:off2:on3:on4:on5:on6:off
openstack-cinder-backup0:off1:off2:off3:off4:off5:off6:off
openstack-cinder-scheduler0:off1:off2:on3:on4:on5:on6:off
openstack-cinder-volume0:off1:off2:off3:off4:off5:off6:off
openstack-glance-api0:off1:off2:on3:on4:on5:on6:off
openstack-glance-registry0:off1:off2:on3:on4:on5:on6:off
openstack-glance-scrubber0:off1:off2:off3:off4:off5:off6:off
openstack-heat-api0:off1:off2:on3:on4:on5:on6:off
openstack-heat-api-cfn0:off1:off2:on3:on4:on5:on6:off
openstack-heat-api-cloudwatch0:off1:off2:on3:on4:on5:on6:off
openstack-heat-engine0:off1:off2:on3:on4:on5:on6:off
openstack-keystone0:off1:off2:on3:on4:on5:on6:off
openstack-nova-api0:off1:off2:on3:on4:on5:on6:off
openstack-nova-cert0:off1:off2:on3:on4:on5:on6:off
openstack-nova-conductor0:off1:off2:on3:on4:on5:on6:off
openstack-nova-console0:off1:off2:off3:off4:off5:off6:off
openstack-nova-consoleauth0:off1:off2:on3:on4:on5:on6:off
openstack-nova-metadata-api0:off1:off2:off3:off4:off5:off6:off
openstack-nova-novncproxy0:off1:off2:on3:on4:on5:on6:off
openstack-nova-objectstore0:off1:off2:on3:on4:on5:on6:off
openstack-nova-scheduler0:off1:off2:on3:on4:on5:on6:off
openstack-nova-xvpvncproxy0:off1:off2:off3:off4:off5:off6:off