實際生産環境是juno版本,參考了官網的文檔《openstack-ops-manual》,文檔上是先servcie stop,後start,挺麻煩的,直接restart,整理後的重新開機指令如下:
<code>service rabbitmq-server restart</code>
OpenStack Identity:
<code> </code><code>service openstack-keystone restart</code>
OpenStack Image Service:
<code> </code><code>service openstack-glance-api restart</code>
<code> </code><code>service openstack-glance-registry restart</code>
OpenStack Compute:
<code># service openstack-nova-api restart</code>
<code># service openstack-nova-scheduler restart</code>
<code># service openstack-nova-conductor restart</code>
<code># service openstack-nova-cert restart</code>
<code># service openstack-nova-consoleauth restart</code>
<code># service openstack-nova-novncproxy restart</code>
OpenStack Block Storage:
<code># service openstack-cinder-api restart</code>
<code># service openstack-cinder-scheduler restart</code>
Restart compute services:
<code># service openstack-nova-compute restart</code>
<code># service openstack-nova-network restart</code>
<code># service openstack-nova-metadata-api restart</code>
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
本文轉自yuweibing51CTO部落格,原文連結:http://blog.51cto.com/yuweibing/1656461 ,如需轉載請自行聯系原作者