Cleanup Openstack Script
When I am working on the openstack, I found that my design is not a right design. So I have to restart it from a scratch. I wrote a script to clean up the openstack. Any comments are welcome! Another best way to do that is to take a snapshot before implementing the openstack if snapshot is an option. rebuild openstack: for i in `systemctl list-unit-files |grep openstack |grep enabled |awk '{print $1}'`; do systemctl stop $i; systemctl disable $i; done for i in `systemctl list-unit-files |grep neutron |grep enabled |awk '{print $1}'`; do systemctl stop $i; systemctl disable $i; done for i in `systemctl list-unit-files |grep rabbitmq |grep enabled |awk '{print $1}'`; do systemctl stop $i; systemctl disable $i; done for i in "openvswitch ip6tables ovsdb-server ovs-vswitchd neutron-server httpd libvirtd virtlockd iscsi redis memcached gssproxy ksmtuned tuned" do systemctl stop $i systemctl disable $i done cd /etc/openvswitch mv con...