This guide assumes an upgrade from the previous v0.4rc1 version of Archipelago. This guide does not support upgrading from an intermediate snapshot version of Archipelago.
If you plan to integrate Archipelago with Pithos, all Archipelago nodes must be upgraded first.
The following steps must be applied to each node that gets upgraded.
Archipelago v0.4rc2 relies on having group read/write permissions on certain files for the components to communicate with each other. Since snf-image is one of these components, if you are using it, you must upgrade snf-image on all nodes to v0.16.3 which can properly handle file creation permissions.
Each node that will be updated must be idle with respect to Archipelago. To achieve the above the administrator must make sure that neither him nor the upper service layers perform any kind of Archipelago action on the node.
In order to do so, the administrator can manually set each node to be upgraded as drained using the following command on the ganeti master:
# gnt-node modify --drained=True <node>
or set the whole cluster to drained using the following snf-manage command from the Cyclades service node:
# snf-manage backend-modify --drained=True <backend_id>
For each node to be upgraded, the administrator must evacuate it from Archipelago VMs, by either live-migrating them or failing them over to an already upgrade node. Of course, there is an exception on the first node to be upgraded.
Archipelago must be fully stopped before upgrading. Perform the following command to achieve it:
# archipelago stop
Archipelago consists of the following packages:
You can install them by installing archipelago archipelago-ganeti.
# apt-get install archipelago archipelago-ganeti
Optionally if you want RADOS support for archipelago, you should install archipelago-rados package.
# apt-get install archipelago-rados
and also xseg-tools package in case you need to dig into the shared memory segment
# apt-get install xseg-tools
On the nodes that will host VMs, blktap-archipelago-utils from GRNET and the distro-provided blktap-dkms package must also be installed.
# apt-get install blktap-archipelago-utils blktap-dkms
The Archipelago config file is located on /etc/archipelago/archipelago.conf. You can choose to keep your configuration file from rc1 or use the one shipped with rc2. In the first case, you must make sure to add the new configuration settings introduced in rc2. In the latter case, you should reconfigure Archipelago to match your installation.
New config option that were introduced in rc2 is:
Tip
You should also make sure that you have upgraded your snf-image to v0.16.3.
Archipelago v0.4rc2 also creates a new system user and group called archipelago. By default the configuration file shipped with Archipelago is set up to run as those users. If you choose to use your previous configuration file, make sure you switch the USER and GROUP settings to archipelago (with one exception noted below).
If your are using Archipelago with filed special care is needed:
After successfully configuring the new/upgraded Archipelago installation, start it.
# archipelago start
After a successfull start, you can undrain the node:
# gnt-cluster modify --drained=False <node>
If you have drained the whole cluster and successfully upgraded all the nodes, you can undrain it using the snf-manage command:
# snf-manage backend-modify --drained=False <backend_id>
After upgrading all Archipelago nodes, you have to take certain steps to finalize the upgrade.
If your installation does not rely on filed skip this section.
In previous Archipelago versions, lock files were placed along with the data files of blockerm. In Archipelago version 0.4 we set a distinct lock file directory for easier lock lookup.
Make sure you have a common directory shared with all Archipelago nodes (e.g. /srv/archip/locks). The directory must be owned by the user and group Archipelago run as (default archipelago:archipelago) and both the user and the group must have read and write permissions.
On every node that runs Archipelago, perform the following:
# archipelago stop
Use the -f option if there are mapped volumes. Have in mind that during the time Archipelago is stopped, the VMs will appear frozen whenever they attempt to perform any disk I/O.
Set the lock directory for all blockerm peers on all nodes. Add the following line lock_dir=/srv/archip/lock where /srv/archip/locks is the shared directory created on step 0.
On every node that runs Archipelago, perform the following:
# archipelago start
If you haven’t executed this proccedure while installing Archipelago v0.4rc1 it is recommended to perform it now. Otherwise skip this section.
If you are using Pithos backed by Archipelago with filed, after having upgraded all Archipelago nodes and successfully installed the upgraded Pithos version, the following steps must also be followed.
On every node that runs Archipelago, perform the following:
# archipelago stop
Use the -f option if there are mapped volumes. Have in mind that during the time Archipelago is stopped, the VMs will appear frozen whenever they attempt to perform any disk I/O.
Enable the pithos_migrate setting for all blockerm and blockerb peers on all nodes. Add the following line pithos_migrate=True on the blockerm and blockerb section of the configuration files.
On every node that runs Archipelago, perform the following:
# archipelago start
If you haven’t executed this proccedure while installing Archipelago v0.4rc1 it is recommended to perform it now. Otherwise skip this section.
Archipelago lazily upgrades the mapfiles to the latest version, when they are accessed. To make sure that all mapfiles have been upgraded to the latest version, the provided migration tool must be executed. The tool is located in /usr/share/archipelago/tools/finalize_upgrade_0.4. You can run it from any node with access to Archipelago. Make sure that it completes successfully.
It is advised, in order to avoid false alarms (e.g. a mapfile that failed to upgrade), to be idle wrt to Archipelago control operations.