Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit 5829071

Browse files
authored
Merge pull request #572 from CMSCompOps/comp_phedex_rm
Remove phedex check except for checkor and htmlor
2 parents c31a22a + e70d0fc commit 5829071

3 files changed

Lines changed: 23 additions & 8 deletions

File tree

Unified/checkor.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
from assignSession import *
33
from utils import getWorkflows, workflowInfo, getDatasetEventsAndLumis, findCustodialLocation, getDatasetEventsPerLumi, siteInfo, getDatasetPresence, campaignInfo, getWorkflowById, forceComplete, makeReplicaRequest, getDatasetSize, getDatasetFiles, sendLog, reqmgr_url, dbs_url, dbs_url_writer, display_time, checkMemory, ThreadHandler, wtcInfo
4-
from utils import componentInfo, unifiedConfiguration, userLock, moduleLock, dataCache, unified_url, getDatasetLumisAndFiles, getDatasetRuns, duplicateAnalyzer, invalidateFiles, findParent, do_html_in_each_module
4+
from utils import componentInfo, unifiedConfiguration, userLock, moduleLock, dataCache, unified_url, getDatasetLumisAndFiles, getDatasetRuns, duplicateAnalyzer, invalidateFiles, findParent, do_html_in_each_module, phedex_url
55
import phedexClient
66
import dbs3Client
77
dbs3Client.dbs3_url = dbs_url
@@ -55,6 +55,14 @@ def checkor(url, spec=None, options=None):
5555
use_mcm = True
5656
up = componentInfo(soft=['mcm','wtc'])
5757
if not up.check(): return
58+
#phedex check
59+
try:
60+
print "checking on phedex"
61+
cust = findCustodialLocation(phedex_url,'/TTJets_mtop1695_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIIWinter15GS-MCRUN2_71_V1-v1/GEN-SIM')
62+
except Exception as e:
63+
print "fail phedex fail"
64+
return
65+
5866
use_mcm = up.status['mcm']
5967

6068
now_s = time.mktime(time.gmtime())

Unified/htmlor.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
from assignSession import *
33
import time
4-
from utils import getWorkLoad, campaignInfo, siteInfo, getWorkflows, unifiedConfiguration, getPrepIDs, componentInfo, getAllAgents, sendLog, moduleLock, dataCache, agentInfo, display_time, eosFile, eosRead, StartStopInfo, remainingDatasetInfo
4+
from utils import getWorkLoad, campaignInfo, siteInfo, getWorkflows, unifiedConfiguration, getPrepIDs, componentInfo, getAllAgents, sendLog, moduleLock, dataCache, agentInfo, display_time, eosFile, eosRead, StartStopInfo, remainingDatasetInfo, findCustodialLocation
55
import os
66
import json
77
from collections import defaultdict
@@ -16,6 +16,13 @@ def htmlor( caller = ""):
1616

1717
up = componentInfo(soft=['mcm','wtc','jira'])
1818
if not up.check(): return
19+
#phedex check
20+
try:
21+
print "checking on phedex"
22+
cust = findCustodialLocation(phedex_url,'/TTJets_mtop1695_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIIWinter15GS-MCRUN2_71_V1-v1/GEN-SIM')
23+
except Exception as e:
24+
print "fail phedex fail"
25+
return
1926

2027
for backup in ['statuses.json','siteInfo.json','equalizor.json']:
2128
print "copying",backup,"to old location"

utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ def __init__(self, block=True, mcm=None, soft=None, keep_trying=False):
10611061
'reqmgr' : False,
10621062
'mcm' : False,
10631063
'dbs' : False,
1064-
'phedex' : False,
1064+
# 'phedex' : False,
10651065
'cmsr' : False,
10661066
'wtc' : False,
10671067
'eos' : False,
@@ -1102,11 +1102,11 @@ def check_dbs(self):
11021102
if not blocks:
11031103
raise Exception("dbs corrupted")
11041104

1105-
def check_phedex(self):
1106-
if 'testbed' in dbs_url:
1107-
cust = findCustodialLocation(phedex_url,'/TTJets_mtop1695_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIIWinter15GS-MCRUN2_71_V1-v1/GEN-SIM')
1108-
else:
1109-
cust = findCustodialLocation(phedex_url,'/TTJets_mtop1695_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIIWinter15GS-MCRUN2_71_V1-v1/GEN-SIM')
1105+
# def check_phedex(self):
1106+
# if 'testbed' in dbs_url:
1107+
# cust = findCustodialLocation(phedex_url,'/TTJets_mtop1695_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIIWinter15GS-MCRUN2_71_V1-v1/GEN-SIM')
1108+
# else:
1109+
# cust = findCustodialLocation(phedex_url,'/TTJets_mtop1695_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIIWinter15GS-MCRUN2_71_V1-v1/GEN-SIM')
11101110

11111111
def check_wtc(self):
11121112
from wtcClient import wtcClient

0 commit comments

Comments
 (0)