These instructions are for those who would like to upgrade to Eucalyptus 1.5.2 from source-based or package-based 1.4 or 1.5.1 or Ubuntu Jaunty installation. If you're still running 1.3, please, follow the instructions for upgrading to 1.4 before following these instructions.
As a precaution, these instructions involve making a backup of the key state. The backup is made automatically during the RPM upgrade, but for DEB-based and source-based upgrade you would need to create the backup manually. The last section of this document explains how to roll back to the previous installation using the backup.
Commands below assume that $EUCALYPTUS variable points to the root of your current installation. After backing up the current installation, the same location will be reused for the 1.5.2 installation. If you want to install 1.5.2 somewhere else, adjust the commands accordingly.
Also, we assume that you set $OLD_VAR variable as follows:
1. Clean up Eucalyptus running state ¶
ps aux | grep euca
kill -9 ...
2. Back up the current installation ¶
If you you are upgrading using RPMs (on CentOS or OpenSUSE), you can skip this section because the backup will be created for you automatically and placed in /root/eucalyptus-pre-1.5.2-rollback.tar.
If you are upgrading a source-based or DEB-based installation (Debian or Ubuntu), you may want to back up the database and the keys in case the upgrade does not go smoothly.
cd $EUCALYPTUS
rm -f $OLD_VAR/db/eucalyptus.lck
tar cvf /root/eucalyptus-pre-1.5.2-rollback.tar etc/eucalyptus $OLD_VAR/db $OLD_VAR/keys/*.p*
cp etc/eucalyptus/eucalyptus.conf /root/eucalyptus-pre-1.5.2-configuration
If you'd like to clean up a bit, you could remove the following two directories:
rm -rf log/eucalyptus run/eucalyptus
Since the "Walrus path" ($EUCALYPTUS/$OLD_VAR/bukkits by default) potentially contains a lot of data and that data is unlikely to be affected by the upgrade, we do not recommend backing it up.
3. Install Eucalyptus 1.5.2 ¶
4. Update the configuration ¶
Between version 1.4 and 1.5 the configuration file acquired new parameters. So, if you are performing an upgrade from 1.4, you will need to reconcile the differences between the old and the new configuration file. You can perform this manually or you can start with an automatic conversion:
$EUCALYPTUS/usr/sbin/euca_conf -upgrade-conf /root/eucalyptus-pre-1.5.2-configuration $EUCALYPTUS/etc/eucalyptus/eucalyptus.conf
If you upgraded from an older binary package, the command above was executed automatically during the upgrade.
Wether you simply copy over your previous configuration or perform the conversion, it is highly recommended to look over the new configuration file to ensure its correctness. Specifically, check the following variables:
Network parameters from 1.4 and 1.5.1 should continue to work. To learn about the new network mode (MANAGED-NOVLAN) see the Network Configuration section of the Administrator's Guide..
Ensure that the new configuration file on each compute node is also valid, either by performing the conversion on each node or by propagating a valid compute-node-specific file to all nodes.
5. Restart Eucalyptus and verify the upgrade ¶
6-a. Clean up old disk state ¶
Once you are confident that the new installation is working, delete the old state on disk.
rm /root/eucalyptus-pre-1.5.2-rollback.tar
As the upgrade may have moved some directories (to comply with FHS), you may have to remove by hand some unnecessary directories:
rm -rf $EUCALYPTUS/var/eucalyptus
6-b. Rolling back to an earlier installation ¶