DIRACGrid / DIRAC

DIRAC Grid
http://diracgrid.org
GNU General Public License v3.0
113 stars 174 forks source link

Banned site do not appear in the list of "Banned sites" #260

Closed closier closed 12 years ago

closier commented 12 years ago

I tried to ban a site but th ecommand told me that it is already banned. But when I get the list of "banned site" I don't see it. And I can't display the logging info of the site:

[lxplus249] x86_64-slc5-gcc43-opt /afs/cern.ch/user/j/joel> dirac-admin-get-banned-sites LCG.BMEGrid.hu 2011-02-06 10:33:32 brook Majority jobs seem to be failing, reporting watchdog identifying job as stalled; looks like a queue length issue to me LCG.CEFET-RJ.br Site not present in logging table LCG.CERN-MPP.ch Site not present in logging table LCG.CESGA.es 2011-03-10 11:14:54 roma Software installation LCG.CYBERSAR.it 2011-08-29 08:52:42 roma All pilots aborted LCG.ECDF.uk 2011-10-25 08:17:14 roma Missing libstdc++.so.6 LCG.FESB.hr 2011-07-27 12:34:38 roma Linux_x86_64_glibc-2.3.4 LCG.IRB.hr 2011-07-27 12:37:20 roma Linux_x86_64_glibc-2.3.4 LCG.KIMON.cy 2011-09-01 14:38:56 roma Failed to upload output data LCG.KNU.ua Site not present in logging table LCG.Lancashire.uk 2011-09-25 10:43:08 roma Job stalled: pilot not running LCG.PIC-test.es Site not present in logging table LCG.RAL-HEP.uk 2011-10-02 10:08:16 roma SAM jobs failed after Downtime LCG.SPBU.ru 2011-07-30 14:10:08 roma Site invisible in BDII LCG.SRCE.hr 2011-07-27 12:09:22 roma Linux_x86_64_glibc-2.3.4 LCG.TAU.il 2011-09-25 09:23:24 roma SetuProject timeout LCG.Torino.it 2011-06-29 10:15:52 roma Software installation problem LCG.Trieste.it 2011-09-24 10:17:39 roma Job stalled: pilot not running LCG.WCSS.pl 2011-10-26 09:15:22 roma SetupProject.sh Execution Failed LCG.WEIZMANN.il 2011-09-27 07:52:23 roma SetupProject.sh Execution Failed [lxplus249] x86_64-slc5-gcc43-opt /afs/cern.ch/user/j/joel> dirac-admin-ban-site DIRAC.ONLINE.ch "Site created for test in certification and associated to CERN-RAW" ERROR DIRAC.ONLINE.ch: Site DIRAC.ONLINE.ch is already banned [lxplus249] x86_64-slc5-gcc43-opt /afs/cern.ch/user/j/joel> dirac-admin-site-mask-logging DIRAC.ONLINE.ch

Site Mask Logging Info for DIRAC.ONLINE.ch

Unknown ( ) "Site not present in logging table"

[lxplus249] x86_64-slc5-gcc43-opt /afs/cern.ch/user/j/joel> dirac-admin-site-info DIRAC.ONLINE.ch {'CE': 'OnlineCE.ch', 'SE': 'CERN-RAW'}

graciani commented 12 years ago

"dirac-admin-ban-site" reports an error, which means your request has not been satisfied. The message is a bit misleading since the check that it is done is if the site is already in the Mask:

mask = self.getSiteMask()
if not mask['OK']:
  return mask
siteMask = mask['Value']
if not site in siteMask:
  return S_ERROR( 'Site %s is already banned' % site )

To banned a Site it has to be in the mask. Can you check the output of? $ dirac-admin-get-site-mask

The output of "dirac-admin-site-mask-logging" confirms that that Site has never been added to the mask. And, thus, can not be banned.

I will reformulate the request, to allow banning a site that is defined but has not been added to the mask.