BEgridServer

From Begrid Wiki
Jump to navigationJump to search

The installation procedure for the CB server.

Provides

  • SCDB
  • SWREP
  • additional installation files for ks

SCDB Structure Layout

Base

Setup the base structure in svn

  cd /var/www/svn
  svnadmin create centralised-begrid-v1
  chown -R apache.apache centralised-begrid-v1
  mkdir /tmp/struct
  cd /tmp/struct
  mkdir tags
  mkdir trunk
  mkdir branches
  svn import . file:///var/www/svn/centralised-begrid-v1 -m "Initial structure layout"
  cd -
  rm -Rf /tmp/struct

Now we just import the current profiles in the trunk-directory.

 When checking out, people should always use the trunk. All others will be read-only (and only used by local scripts).

Links

Trac

Installation

  • SCDB section of the installation guide
  • Don't froget to add the rcl-renewal to cron!

There are 2 directories that are seen outside:

 /var/www/html/begrid/install
 /var/www/html/begrid/swrep

Add admin DN's in /etc/quattor/cdb.allow:

# ===========================================================================
# Quattor CDB user list
#
# Only users listed in this file are allowed to connect to CDB using
# the SOAP gateway. Please put one user per line. The format is:
#
#    <username>[:<info1>[:<info2>]...]
#
# where <username> must not begin with spaces, tabs, any other non-word
# characters; then an optional colon-separated list of <info> tokens may
# follow: this extra information is possibly processed by some authentication
# plugin. Beware of trailing spaces in the <info> tokens (especially the last
# one)!
# ===========================================================================
#
swrep:/C=BE/O=BEGRID...:.....:...


Fill the swrep:

  • There's a script that does this 95% automatically.

Fill the install section:

  • create the install section (used by all platfroms)
  mkdir /var/www/html/begrid/install
  • for one platform eg SL305
  mkdir /var/www/html/begrid/install/i386_sl3
  wget -r -np http://linuxsoft.cern.ch/scientific/305/i386/SL/base/;
  wget -r -np http://linuxsoft.cern.ch/scientific/305/i386/SL/build/ 
  cd linuxsoft.cern.ch/scientific/305/i386
  mv * /var/www/html/begrid/install/i386_sl3
  cd -
  rm -Rf linuxsoft.cern.ch
  rm -Rf /var/www/html/begrid/install/i386_sl3/SL/RPMS
  ln -s /var/www/html/begrid/swrep/i386_sl3 /var/www/html/begrid/install/i386_sl3/SL/RPMS

Tips and Tricks (and Scripts)

Createrepo

  • there's a possible problme with the createrepo wrapper from the repository.
    • If you get errors like
Traceback (most recent call first):
  File "/usr/lib/python2.4/site-packages/yum/<u>init</u>.py", line 415, in doGroupS
etup
    raise Errors.GroupsError, 'No Groups Available in any repository'
  File "/usr/lib/anaconda/yuminstall.py", line 792, in doGroupSetup
    self.ayum.doGroupSetup()
  File "/usr/lib/anaconda/yuminstall.py", line 877, in doRepoSetup
    self.doGroupSetup()
  File "/usr/lib/anaconda/backend.py", line 149, in doRepoSetup
    anaconda.backend.doRepoSetup(anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 199, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 122, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/text.py", line 584, in run
    anaconda.dispatch.gotoNext()
  File "/usr/bin/anaconda", line 1002, in ?
    anaconda.intf.run(anaconda)
GroupsError: No Groups Available in any repository
then the repodata directory is badly created. You need to redownload it from the original location (and thus not recreating it).
(See also http://bugs.centos.org/print_bug_page.php?bug_id=1854)



Back to BEgrid_And_Quattor page


Template:TracNotice