Completely remove openstack from system after installation from devstack script

Apurva Mayank picture Apurva Mayank · Mar 27, 2013 · Viewed 22.4k times · Source

I am installing OpenStack on my local machine via this link. But I am having trouble in completely removing installed components from my local machine. I ran following command:-

$ sudo ./unstack.sh
tgtadm: can't send the request to the tgt daemon, Transport endpoint is not connected
tgtd seems to be in a bad state, restarting...
stop: Unknown instance: 
tgt start/running, process 14629
tgt stop/waiting
Volume group "stack-volumes" not found
Skipping volume group stack-volumes

And file are still present in /opt/stack and /usr/local/bin/. But manually removing these file will not be a good option.

Answer

Roman Prykhodchenko picture Roman Prykhodchenko · Dec 4, 2013

The unstack.sh script only stops the services without removing them. Devstack's folder contains a clean.sh script that removes openstack and dependencies so you can run something like this:

cd path/to/devstack

# There's no need to call unstack.sh explicitly
# clean.sh invokes that script itself.
./clean.sh