wiki:Download/QWGTemplates/Install

Version 10 (modified by /C=FR/O=CNRS/OU=UMR8607/CN=Michel Jouvin/emailAddress=jouvin@…, 17 years ago) (diff)

--

How to Install QWG Templates

Note : QWG templates are intended to work both with original CVS-based CDB and the new Subversion-based SCDB. But their integration has been tested mainly with SCDB and tools described here applies mainly to SCDB. Report any problem you could encounter with original CDB.

Initial Installation

For an initial installation of QWG templates, you first need to initialize you repository with a base configuration database. If you want to use SCDB, follow instructions on how to configure your Quattor server with SCDB, in particular SCDB initialization.

Upgrading an existing repository

If you are using the recommended template layout with separate areas for standard templates in your configuration database, upgrading should be no more than replacing the previous version of the templates.

We do our best to ensure that new versions are backward compatible. This means that if you made site customization using the described method (pro_lcg2_config_site, pro_site_cluster_info...) and didn't modify standard templates, no changes should be required to use new version of the templates. When this is really required to introduce a new feature or bring more flexibility for configuring a service, it can happen that this full compatibility cannot be retained. This is normally stated in release announcement. You are always better to check...

Standard templates are made of 3 areas (see template layout) :

  • OS templates : they are never modified, except for fixes. The only modifications apply to errata RPM list. These errata are not installed by default.
  • Middleware templates (if using them) : they bring both changes and fixes at each release. They are intended to be backward compatible : that means the resulting configuration should be the same if you don't change your local configuration. As part of QWG releases, they deliver gLite updates : GLITE_UPDATE_VERSION allows to control deployment of gLite updates as part of QWG templates update.
  • Standard templates : all modifications in this area are entirely backward compatible

There are 2 methods to upgrade QWG templates, according to the structure and constraints of your site :

  • In place upgrade : in this scenario, existing templates will be upgraded and the changes will be deployed on all clusters of your site. You can control the gLite updates you deploy on a per node basis.
  • Fresh installation of new middleware templates : this allows to control on a per cluster basis the deployement of new QWG templates.

For an easy upgrade, the recommended method is :

  • Checkout the QWG template branch you need, in a separate area from your configuration database.
  • Synchronize your configuration database with your local copy of QWG templates.

To integrate new/changed templates in your configuration database, you can use the tool documented at Development/RepUpdate?, originally developped to do the reverse synchronization (update QWG repository from a real configuration database). This tool can be used only with SCDB, as it relies on Subversion to do a non destructive update. As a benefit, it cannot damage your configuration database as every change made by this tool can be reverted with Subversion.

After importing all the changes with directory-sync (or manually), you need to commit them into your SCDB, after checking it compiles successfully and the changes in the profiles look appropriate (generally mainly some RPMS update). For this last check you can use src/utils/profiles/compare_xml script. After integrated the new templates, identify the changed templates, review the change if necessary and revert those not appropriate. You'll probably need to revert changes of all templates in directories repository (these templates are site specific but some of them are required to reside in standard directories for multiple version support).