dmwm / CRAB2

CRAB2
2 stars 11 forks source link

consistently use SITEDB CACHE #907

Closed ericvaandering closed 10 years ago

ericvaandering commented 10 years ago

Original Savannah ticket 102073 reported by belforte on Mon Jul 22 03:49:24 2013.

Avrei l'ardire di proporre del codice per la prossima versione di CRAB. Lo trovi sotto

~asciaba/public/SiteDBReport.py

In pratica serve per far riconoscere CMS_SITEDB_CACHE_DIR anche al codice di Brian.

Ciao,

Andrea

On 16/07/2013 15:55, Andrea Sciaba' wrote: > On 16/07/2013 15:30, Stefano Belforte wrote: > >> lo chiama solo quando la cache e' espirata ? O forse lo usa ma non >> te ne accorgi perche' hai un token AFS valido ? > > La seconda che hai detto spiega sicuramente perche' lanciando un task a > mano non ho mai problemi, ma anche per i task lanciati da HC ogni tanto > funziona. > >>> 2) esiste un modo per dire a CRAB di mettere la directory .sitedb in un >>> posto diverso dalla HOME? >> si, come facevamo ai tempi del JR >> export CMS_SITEDB_CACHE_DIR=/data/hc/.... > > Uhm... nel codice (SiteDBReport.py) pero' vedo: > > filename = '$HOME/.sitedb/%s.cache' % name > filename = os.path.expandvars(filename) > dirname = '$HOME/.sitedb/' > dirname = os.path.expandvars(dirname) > > CMS_SITEDB_CACHE_DIR viene usata solo in CacheCleaner.py: > > if os.getenv('CMS_SITEDB_CACHE_DIR'): > sitedbCache = os.getenv('CMS_SITEDB_CACHE_DIR') + > '/.cms_sitedbcache' > elif os.getenv('HOME'): > sitedbCache = os.getenv('HOME') + '/.cmssitedbcache' > else: > sitedbCache = '/tmp/sitedbjson' + pwd.getpwuid(os.getuid())[0] > > Temo che esistano due cache del SiteDB... > Per inciso, sto guardando il codice della 288. > > Andrea >

ericvaandering commented 10 years ago

Comment by belforte on Mon Jul 22 03:51:20 2013

come back to this and review as part of SiteBD V2 API migration as that piece of cose may also require changes

ericvaandering commented 10 years ago

Comment by belforte on Mon Jul 29 08:28:35 2013

fix committed: /local/reps/CMSSW/COMP/PRODCOMMON/src/python/ProdCommon/SiteDB/SiteDBReport.py,v <-- SiteDBReport.py new revision: 1.3; previous revision: 1.2

ericvaandering commented 10 years ago

Comment by belforte on Tue Aug 20 09:52:42 2013

fix released in Crab_2_9_0

ericvaandering commented 10 years ago

Closed by belforte on Tue Aug 20 09:52:42 2013