Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

CTADIRAC v1r55p1

arrabito edited this page Jan 3, 2020 · 11 revisions

CTADIRAC v1r55p1

The main change in this release is that it depends on a new DIRAC major release v7r0. Detailed informations can be found at https://github.com/DIRACGrid/DIRAC/wiki/DIRAC-v7r0. In this release Externals and Lcgbundle packages are replaced by DIRACOS (https://github.com/DIRACGrid/DIRACOS). DIRACOS aims at bringing in one archive all the dependencies needed by DIRAC to run Agents, Services and clients. It is not intended to perform interactive tasks (debugging, file editing, etc). We are aware than some "basic" tools won't work (less, emacs, etc). They won't be fixed. During this upgrade, some DIRAC servers have been also migrated to new ones so that CTADIRAC client should be reconfigured (see the Client update section below).

Supported platforms

Supported platforms for the native CTADIRAC client are SL6/CC7. Other linux platforms are regularly tested but no support is provided. Note that MacOS is not supported anymore. For all platforms the CTADIRAC client can be installed in a container. An up-to-date singularity container with CTADIRAC v1r55p1 installed is available (see CTADIRAC singularity container).

Client update

  mv bashrc bashrc_backup

(note that cshrc is not supported anymore)

  mv dirac-install.py  dirac-install_backup.py
  wget --no-check-certificate "https://github.com/DIRACGrid/DIRAC/raw/v7r0p8/Core/scripts/dirac-install.py"
  rm etc/dirac.cfg
  python dirac-install.py -V CTA -v
  source bashrc 
  dirac-proxy-init
  dirac-configure defaults-CTA.cfg

Job API

The submit method of DIRAC.Interfaces.API.Dirac module is deprecated and it should be replaced by submitJob as in the exemple below:

  from DIRAC.Core.Base import Script
  Script.parseCommandLine()
  from DIRAC.Interfaces.API.Job import Job
  from DIRAC.Interfaces.API.Dirac import Dirac
  dirac = Dirac()
  j = Job()
  j.setCPUTime(500)
  j.setExecutable('echo', 'Hello World!')
  j.setName('Hello World')
  res = dirac.submitJob(j)
  print 'Submission Result: ',res['Value']
Clone this wiki locally