These are instructions for those who would like to upgrade to Eucalyptus 1.5 from source-based or RPM-based 1.4 installation. If you're still running 1.3, please, follow the instructions for upgrading to 1.4 before following these instructions.
These upgrade instructions involve making a backup of the key state. The last section of this document explains how to roll back to the previous installation using the backup.
Commands below assume that your $EUCALYPTUS variable points to the root of the (old) 1.4 installation. The typical 1.4 installation is in /opt/eucalyptus. After moving the 1.4 installation away or backing it up, the same location will be re-used for the 1.5 installation. If you want to install 1.5 somewhere else, adjust the commands accordingly.
ec2-terminate-instances ... # (as admin)
$EUCALYPTUS/etc/init.d/eucalyptus stop
ps aux | grep euca kill -9 ...
Both source- and RPM-based installations can be upgraded:
export EUCALYPTUS_OLD=/opt/eucalyptus-1.4
mv $EUCALYPTUS $EUCALYPTUS_OLD
$EUCALYPTUS/etc/init.d/eucalyptus $EUCALYPTUS/etc/eucalyptus $EUCALYPTUS/usr/sbin/euca_* $EUCALYPTUS/usr/share/eucalyptus $EUCALYPTUS/var/eucalyptus/[^b]* # (everything except the "bukkits" directory)
$EUCALYPTUS/var/log/eucalyptus $EUCALYPTUS/var/run/eucalyptus
cp $EUCALYPTUS_OLD/var/eucalyptus/db/eucalyptus.* $EUCALYPTUS/var/lib/eucalyptus/db/ cp $EUCALYPTUS_OLD/var/eucalyptus/db/eucalyptus_volumes.* $EUCALYPTUS/var/lib/eucalyptus/db/ rm -f $EUCALYPTUS/var/eucalyptus/db/*.lck cp $EUCALYPTUS_OLD/var/eucalyptus/keys/* $EUCALYPTUS/var/lib/eucalyptus/keys/
mv $EUCALYPTUS_OLD/var/eucalyptus/bukkits $EUCALYPTUS/var/eucalyptus(FYI: The official default Walrus path in 1.5 is $EUCALYPTUS/var/lib/eucalyptus. If you want to move the buckets there, for consistency with the official value, be sure to also change the Walrus Path setting under the Configuration tab of the Web interface.)
$EUCALYPTUS/usr/sbin/euca_conf -upgrade-conf <old_config> <new_config>after which we strongly advice to go and check the generated configuration file: if you upgraded from an older RPM the above command was executed automatically during the upgrade.
$EUCALYPTUS/usr/sbin/euca_sync_key -c $EUCALYPTUS/etc/eucalyptus/eucalyptus.conf
$EUCALYPTUS/etc/init.d/eucalyptus-nc start $EUCALYPTUS/etc/init.d/eucalyptus-cc start $EUCALYPTUS/etc/init.d/eucalyptus-clc start
ec2-describe-availability-zones verbose
Once you are confident that the new installation is working, delete the old state on disk.
rm -rf $EUCALYPTUS_OLD
If you upgraded using RPM packages, delete on all nodes the backup of old state that was created during the upgrade:
rm /root/eucalyptus-pre-1.5-rollback.tar
The upgrade moved some directories location (in order to comply to FHS) so you may have to remove by hand some directory in particular
rm -rf $EUCALYPTUS/var/eucalyptus
rm -rf $EUCALYPTUS
mv $EUCALYPTUS_OLD $EUCALYPTUS
rpm -e eucalyptus-cloud eucalyptus-cc euca-httpd euca-axis2c euca-libvirt eucalyptus
rpm -ivh eucalyptus-1.4-2.i386.rpm eucalyptus-cloud-1.4-2.i386.rpm eucalyptus-cc-1.4-2.i386.rpm eucalyptus-gl-1.4-2.i386.rpm
cd $EUCALYPTUS tar xf /root/eucalyptus-pre-1.5-rollback.tar
cd $EUCALYPTUS cp etc/eucalyptus/eucalyptus.conf.old etc/eucalyptus/eucalyptus.conf