These two scripts helped me a lot to debug the issues with the stopped services. Hope this could also help you guys !!
You can easily check which service is stopped and look into the logs of that service.
restart-openstack-services.sh
#!/bin/bash
#set -eux
cd /etc/init.d/; for i in $( ls nova-* ); do sudo service $i restart; done
cd /etc/init.d/; for i in $( ls glance-* ); do sudo service $i restart; done
cd /etc/init.d/; for i in $( ls neutron-* ); do sudo service $i restart; done
cd /etc/init.d/; for i in $( ls cinder-* ); do sudo service $i restart; done
service apache2 restart; service memcached restart; service rabitmq-server restart;
#set -eux
cd /etc/init.d/; for i in $( ls nova-* ); do sudo service $i restart; done
cd /etc/init.d/; for i in $( ls glance-* ); do sudo service $i restart; done
cd /etc/init.d/; for i in $( ls neutron-* ); do sudo service $i restart; done
cd /etc/init.d/; for i in $( ls cinder-* ); do sudo service $i restart; done
service apache2 restart; service memcached restart; service rabitmq-server restart;
This script will restart all services running on OpenStack Controller
status-openstack-services.sh
#!/bin/bash
#set -eux
cd /etc/init.d/; for i in $( ls nova-* ); do sudo service $i status; done
cd /etc/init.d/; for i in $( ls glance-* ); do sudo service $i status; done
cd /etc/init.d/; for i in $( ls neutron-* ); do sudo service $i status; done
cd /etc/init.d/; for i in $( ls cinder-* ); do sudo service $i status; done
service apache2 status; service memcached status
#set -eux
cd /etc/init.d/; for i in $( ls nova-* ); do sudo service $i status; done
cd /etc/init.d/; for i in $( ls glance-* ); do sudo service $i status; done
cd /etc/init.d/; for i in $( ls neutron-* ); do sudo service $i status; done
cd /etc/init.d/; for i in $( ls cinder-* ); do sudo service $i status; done
service apache2 status; service memcached status
You can easily check if any of the service is stopped by using following command:
# ./status-openstack-services.sh | grep stop
No comments:
Post a Comment