Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Completely remove openstack from system after installation from devstack script

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.

like image 467
Apurva Mayank Avatar asked Nov 28 '22 09:11

Apurva Mayank


2 Answers

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
like image 144
Roman Prykhodchenko Avatar answered Dec 06 '22 03:12

Roman Prykhodchenko


Follow the following 3 steps:

  1. ./clean.sh
  2. rm -rf /opt/stack
  3. rm -rf /usr/local/bin (careful, this will remove everything installed to your local bin folder, which might include previously installed applications).

For more info of all the impacted files and directories this link.

like image 40
DhruvKalaria Avatar answered Dec 06 '22 02:12

DhruvKalaria