How to clean a cloud without re-installing the OS

Follow

Problem: I need to reinstall my cloud, but I don't want to wipe the underlying OS. 

Solution: 

1. Stop all Eucalyptus services

2. remove all installed Eucalyptus packages: 

[root@OMGLOL]# yum remove "eucalyptus*"
Loaded plugins: fastestmirror, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package eucalyptus.x86_64 0:3.4.2-0.0.548.el6 will be erased
---> Package eucalyptus-admin-tools.noarch 0:3.4.2-0.0.548.el6 will be erased
---> Package eucalyptus-cc.x86_64 0:3.4.2-0.0.548.el6 will be erased
---> Package eucalyptus-cloud.x86_64 0:3.4.2-0.0.548.el6 will be erased
---> Package eucalyptus-common-java.x86_64 0:3.4.2-0.0.548.el6 will be erased
---> Package eucalyptus-common-java-libs.x86_64 0:3.4.2-0.0.548.el6 will be erased
---> Package eucalyptus-gl.x86_64 0:3.4.2-0.0.548.el6 will be erased
---> Package eucalyptus-load-balancer-image.x86_64 0:1.0.4-0.164.el6 will be erased
---> Package eucalyptus-nc.x86_64 0:3.4.2-0.0.548.el6 will be erased
---> Package eucalyptus-release.noarch 0:3.4-1.el6 will be erased
---> Package eucalyptus-sc.x86_64 0:3.4.2-0.0.548.el6 will be erased
---> Package eucalyptus-walrus.x86_64 0:3.4.2-0.0.548.el6 will be erased
--> Finished Dependency Resolution
centos-6u5-x86_64-os | 3.7 kB 00:00
centos-6u5-x86_64-updates | 3.4 kB 00:00
centos-6u5-x86_64-updates/primary_db | 2.6 MB 00:00
elrepo-6-x86_64 | 2.9 kB 00:00
epel-6-x86_64 | 4.4 kB 00:00
epel-6-x86_64/primary_db | 6.1 MB 00:00
euca2ools-release | 1.2 kB 00:00
eucalyptus-release | 1.2 kB 00:00
extras | 3.4 kB 00:00

Dependencies Resolved

==============================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================
Removing:
eucalyptus x86_64 3.4.2-0.0.548.el6 @eucalyptus-release 2.4 M
eucalyptus-admin-tools noarch 3.4.2-0.0.548.el6 @eucalyptus-release 93 k
eucalyptus-cc x86_64 3.4.2-0.0.548.el6 @eucalyptus-release 10 M
eucalyptus-cloud x86_64 3.4.2-0.0.548.el6 @eucalyptus-release 20 k
eucalyptus-common-java x86_64 3.4.2-0.0.548.el6 @eucalyptus-release 1.2 M
eucalyptus-common-java-libs x86_64 3.4.2-0.0.548.el6 @eucalyptus-release 82 M
eucalyptus-gl x86_64 3.4.2-0.0.548.el6 @eucalyptus-release 251 k
eucalyptus-load-balancer-image x86_64 1.0.4-0.164.el6 @eucalyptus-release 171 M
eucalyptus-nc x86_64 3.4.2-0.0.548.el6 @eucalyptus-release 3.1 M
eucalyptus-release noarch 3.4-1.el6 @/eucalyptus-release-3.4.noarch 1.9 k
eucalyptus-sc x86_64 3.4.2-0.0.548.el6 @eucalyptus-release 8.6 k
eucalyptus-walrus x86_64 3.4.2-0.0.548.el6 @eucalyptus-release 528

Transaction Summary
==============================================================================================================================================================
Remove 12 Package(s)

Installed size: 270 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : eucalyptus-sc-3.4.2-0.0.548.el6.x86_64 1/12
Erasing : eucalyptus-walrus-3.4.2-0.0.548.el6.x86_64 2/12
Erasing : eucalyptus-cloud-3.4.2-0.0.548.el6.x86_64 3/12
Erasing : eucalyptus-release-3.4-1.el6.noarch 4/12
Erasing : eucalyptus-load-balancer-image-1.0.4-0.164.el6.x86_64 5/12
Erasing : eucalyptus-common-java-3.4.2-0.0.548.el6.x86_64 6/12
Stopping Eucalyptus services: Warning: eucalyptus-cloud process was not running
done.
Erasing : eucalyptus-cc-3.4.2-0.0.548.el6.x86_64 7/12
Stopping Eucalyptus cluster controller: done.
Erasing : eucalyptus-nc-3.4.2-0.0.548.el6.x86_64 8/12
Stopping Eucalyptus services: done.
Erasing : eucalyptus-admin-tools-3.4.2-0.0.548.el6.noarch 9/12
Erasing : eucalyptus-common-java-libs-3.4.2-0.0.548.el6.x86_64 10/12
Erasing : eucalyptus-gl-3.4.2-0.0.548.el6.x86_64 11/12
Erasing : eucalyptus-3.4.2-0.0.548.el6.x86_64 12/12
warning: /etc/eucalyptus/eucalyptus.conf saved as /etc/eucalyptus/eucalyptus.conf.rpmsave
Verifying : eucalyptus-common-java-3.4.2-0.0.548.el6.x86_64 1/12
Verifying : eucalyptus-load-balancer-image-1.0.4-0.164.el6.x86_64 2/12
Verifying : eucalyptus-nc-3.4.2-0.0.548.el6.x86_64 3/12
Verifying : eucalyptus-cc-3.4.2-0.0.548.el6.x86_64 4/12
Verifying : eucalyptus-release-3.4-1.el6.noarch 5/12
Verifying : eucalyptus-common-java-libs-3.4.2-0.0.548.el6.x86_64 6/12
Verifying : eucalyptus-admin-tools-3.4.2-0.0.548.el6.noarch 7/12
Verifying : eucalyptus-gl-3.4.2-0.0.548.el6.x86_64 8/12
Verifying : eucalyptus-3.4.2-0.0.548.el6.x86_64 9/12
Verifying : eucalyptus-cloud-3.4.2-0.0.548.el6.x86_64 10/12
Verifying : eucalyptus-walrus-3.4.2-0.0.548.el6.x86_64 11/12
Verifying : eucalyptus-sc-3.4.2-0.0.548.el6.x86_64 12/12

Removed:
eucalyptus.x86_64 0:3.4.2-0.0.548.el6 eucalyptus-admin-tools.noarch 0:3.4.2-0.0.548.el6 eucalyptus-cc.x86_64 0:3.4.2-0.0.548.el6
eucalyptus-cloud.x86_64 0:3.4.2-0.0.548.el6 eucalyptus-common-java.x86_64 0:3.4.2-0.0.548.el6 eucalyptus-common-java-libs.x86_64 0:3.4.2-0.0.548.el6
eucalyptus-gl.x86_64 0:3.4.2-0.0.548.el6 eucalyptus-load-balancer-image.x86_64 0:1.0.4-0.164.el6 eucalyptus-nc.x86_64 0:3.4.2-0.0.548.el6
eucalyptus-release.noarch 0:3.4-1.el6 eucalyptus-sc.x86_64 0:3.4.2-0.0.548.el6 eucalyptus-walrus.x86_64 0:3.4.2-0.0.548.el6

Complete!

3. Remove all trace folders: 

rm -rf /etc/eucalyptus ; rm -rf /var/run/eucalyptus ; rm -rf /var/log/eucalyptus ; rm -rf /var/lib/eucalyptus ; rm -rf /usr/share/eucalyptus

That's it, you should be able to rebuild your cloud from scratch from here.  

 

Have more questions? Submit a request

Comments

Powered by Zendesk