The quattor package set is defined in 3 types of templates :
  • repositories templates : defines the content of the repositories (the place where the rpms are stored)
  • package defaults templates : contains the versions numbers of the packages when we add or replace them without specifying a version.
  • base package set template : defines the names of all the packages that will be installed on all computers to have the base installation.

Individual packages may be added, removed and modified in all other templates.

Now we'll see how we generate these templates :

Repositories templates

The repositories are stored on dns-sx-01 in folder /var/www/html/swrep/. We actually have the following repositories :
[dns-sx-01]> ls /var/www/html/swrep/
i386_sl4base   i386_sl4lhcb      i386_sl4quattor  srpms           x86_64_sl4base.old  x86_64_sl4lhcb      x86_64_sl4quattor
i386_sl4extra  i386_sl4onlycern  i386_sl4updates  x86_64_sl4base  x86_64_sl4extra     x86_64_sl4onlycern  x86_64_sl4updates

(srpms is not really a Quattor repository).

The rpms have to be owned by apache user and group so a sudo chown -R apache:apache /var/www/html/swrep/i386_sl4extra/* on all repositories helps.

After an update of the packages in these repositories (mainly the *updates repositories), we have to regenerate the corresponding templates.
It is done with the swrep-soap-client utility on dns-sx-01.
We first have to tell swrep that there are new packages in the repository :

[dns-sx-01] > swrep-soap-client bootstrap i386_sl4extra /extra
...
[INFO] 170 new package(s) bootstrapped 0 error(s) found

Then we generate the templates :

[dns-sx-01] /home/loic/lq/tmp1/newpro > swrep-soap-client template i386_sl4extra
[INFO] repository/lhcbonline_i386_sl4extra.tpl: created. Make sure that namespace 'repository' exists in your CDB.
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2008-03-12 - LoicBrarda
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LHCb All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback