-
Notifications
You must be signed in to change notification settings - Fork 7
Uninstall
The uninstall guide assumes that you alread installed the Autonomiccs platform, and has dowloaded the installation package; this package countains also the uninstall script.
This process has to be executed from the server in which ACS is running. To uninstall the autonomic manager, it is necessary to provide execution permission (chmod u+x) to the uninstall.sh script and execute it. The script removes any jar added in the CloudStack jars path by the Autonomiccs platform installation process and restores the original 'cloud-core' jar; it will use a backup copy that it saves in the directory that the install script was executed from. It also removes database references created by our solution.
The uninstall.sh script does the following steps:
- if the CloudStack service is running, it aborts the uninstall process and prints the "CloudStack is running, please stop the CloudStack service before being able to uninstall Autonomiccs platform!";
- it will then present a message asking if the CloudStack jars are located in the default path ("CloudStack jars files are in the default directory [/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/]? (y/n)"), press 'y' to proceed; otherwise, it will ask for the CloudStack directory; be sure that the directory exists and it is the correct one. If the directory does not exist, the script will exit;
- it moves the original 'cloud-core' jar file back to the CloudStack jars directory;
- then it runs the removeJars.sh script that removes our jar files from the CloudStack jars directory;
- after that, it will run the removeReferencesOnCloudStackDB.sh script to remove changes applied on the CloudStack database;
- it will request the mysql host, port, user and password to connect on the database;
- it tries to connect in the 'cloud' database and execute the sql script removeCsDatabaseReferences.sql. In case of issues with the connection or sql script, it will print "Failed to execute removeCsDatabaseReferences.sql query to remove Autonomiccs platform database structures!";
- finally, it will deactivates ours System VMs.