Difference between revisions of "Imperial Dirac Maintenance"

From GridPP Wiki
Jump to: navigation, search
(Adding a new VO)
Line 47: Line 47:
  
 
== Adding a new VO ==
 
== Adding a new VO ==
(example taken from the LZ VO) <br>
+
(example taken from the LZ VO, from memory, so probably incomplete) <br>
 
on dirac01: <br>
 
on dirac01: <br>
add VO to /etc/vomses and /etc/grid-security/vomsdir <br>
+
add VO to /etc/vomses and /etc/grid-security/vomsdir (as root) <br>
  
 +
on the webinterface (as dirac_admin): <br>
 +
Registry -> Groups: create lz_pilot and lz_user with all options <br>
 +
Registry -> VO: add lz with all options and subfolder VOMSServers <br>
 +
Registry -> VOMS -> Mapping: add lz_user and lz_pilot <br>
 +
Registry -> VOMS -> URLs: add lz folder with all options <br>
  
 +
as dirac user: <br>
 
dirac-install-agent WorkloadManagement SiteDirectorLz -m SiteDirector
 
dirac-install-agent WorkloadManagement SiteDirectorLz -m SiteDirector
 
 
dirac-proxy-init -C /etc/grid-security/pilotcert.pem -K /etc/grid-security/pilotkey.pem -g lz_pilot -M -P
 
dirac-proxy-init -C /etc/grid-security/pilotcert.pem -K /etc/grid-security/pilotkey.pem -g lz_pilot -M -P

Revision as of 10:36, 9 September 2015

Hardware

The Imperial dirac server consists of 4 machines:
dirac01 (configuration server, main dirac server)
dirac02 (second dirac server, for load balancing etc)
diracdb (hosts the databases)
diracweb (hosts the webserver)

Restarting dirac

To restart dirac:
as 'dirac' in /opt/dirac/:

killall -SIGHUP runsvdir
source bashrc
runsvdir /opt/dirac/startup &

Updating the dirac install

Note: dirac01 and dirac02 should always run the same version of the dirac software. Whatever you do it helps having a clean shell without the cursed bashrc having been invoked.

cd /opt/dirac/DIRAC
git status
git pull
find . -iname '*.pyo' -delete
[restart dirac]

and the GridPP module

cd /opt/dirac/GridPPDIRAC
git status
git pull
find . -iname '*.pyo' -delete
[restart dirac]

Check the logs

Looking at a specific SiteDirector:
tail -f startup/WorkloadManagement_SiteDirectorGridPP/log/current
Local dirac code:
tail -f /opt/dirac/startup/Configuration_AutoBdii2CSAgent/log/current


Best of Github

Merge requests: Being logged into github really helps :-)

to check what changed if 'git status' complains about modified files:
git diff [file it's upset about]

Adding a new VO

(example taken from the LZ VO, from memory, so probably incomplete)
on dirac01:
add VO to /etc/vomses and /etc/grid-security/vomsdir (as root)

on the webinterface (as dirac_admin):
Registry -> Groups: create lz_pilot and lz_user with all options
Registry -> VO: add lz with all options and subfolder VOMSServers
Registry -> VOMS -> Mapping: add lz_user and lz_pilot
Registry -> VOMS -> URLs: add lz folder with all options

as dirac user:
dirac-install-agent WorkloadManagement SiteDirectorLz -m SiteDirector dirac-proxy-init -C /etc/grid-security/pilotcert.pem -K /etc/grid-security/pilotkey.pem -g lz_pilot -M -P