HowtoMigrateWNToCB9

From T2B Wiki
Jump to navigation Jump to search

What does involve the migration from CB8 to CB9 ?

CB9 contains the templates needed to install the new Quattor release (14.2.1). These templates are available on the Quattor project Github.

For the moment, only UMD-3 templates are available for Quattor 14.2.1. So, currently, if you want to migrate EMI-2 machines to Quattor to 14.2.1, you are obliged to also migrate their middleware to UMD-3. That's the challenge we undertook !

A detailed procedure to migrate workernodes

Before applying the following procedure, the workernode must be drained of its jobs !

Prepare the migration

In CB8, modify the object template of the workernode so that it looks like that :

object template profile_node19-101.wn.iihe.ac.be;
variable MIGRATE_QUATTOR_TO_RELEASE_14 = true;
include {'config/wn_glexec'};
include {'machine-types/wn'};
include { PKG_REPOSITORY_CONFIG };

The only difference with what was before is the line :

variable MIGRATE_QUATTOR_TO_RELEASE_14 = true;

The fact that this variable is set to true will trigger the inclusion of the template config/migrate_to_quattor14, whose role is to :

  • install the new ncm-components;
  • remove conflicting packages at the level of the middleware (for example : voms-clients from EMI-2 would conflict with voms-clients3 from UMD-3).

After that, you commit and deploy. When deployment is done, remove the template from CB8, commit and deploy. You also have to remove the XML profile from quatcli in the tmp directory :

cd /opt/CB8/
rm tmp/build/xml/profile_node16-4.wn.iihe.ac.be.xml*

Migrate

Create an object template for the workernode in CB9. It should look like this :

object template profile_node19-101.wn.iihe.ac.be;
variable OS_FLAVOUR_ENABLED = true;
include {'config/wn_glexec'};
variable SECURITY_CA_RPM_REPOSITORY = "repository/snapshot/ca";
include {'machine-types/grid/wn'};
include { PKG_REPOSITORY_CONFIG };

Commit and deploy.


Template:TracNotice