Skip to content

Commit

Permalink
add mcm url and other mcm config. Close dmwm#150.
Browse files Browse the repository at this point in the history
  • Loading branch information
ticoann authored and geneguvo committed Nov 7, 2014
1 parent c15017b commit 4e8e953
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions reqmgr2/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from os import path

HOST = socket.gethostname().lower()

ROOTDIR = __file__.rsplit('/', 3)[0]
config = Configuration()

main = config.section_("main")
Expand All @@ -23,7 +23,7 @@
main.authz_defaults = {"role": None, "group": None, "site": None}

sec = main.section_("tools").section_("cms_auth")
sec.key_file = "%s/auth/wmcore-auth/header-auth-key" % __file__.rsplit('/', 3)[0]
sec.key_file = "%s/auth/wmcore-auth/header-auth-key" % ROOTDIR

# this is where the application will be mounted, where the REST API
# is reachable and this features in CMS web frontend rewrite rules
Expand Down Expand Up @@ -69,7 +69,7 @@
# web user interface
ui = views.section_("ui")
ui.object = "WMCore.ReqMgr.WebGui.FrontPage.FrontPage"
ui.static_content_dir = path.join(path.abspath(__file__.rsplit('/', 3)[0]),
ui.static_content_dir = path.join(path.abspath(ROOTDIR),
"apps",
main.application,
"data")
Expand All @@ -82,6 +82,10 @@
wmdatamining.reqmgrdb_url = "https://cmsweb.cern.ch/couchdb/reqmgr_workload_cache"
#wmdatamining.wmstats_url = "%s/%s" % (data.couch_host, data.couch_wmstats_db)
#wmdatamining.reqmgrdb_url = "%s/%s" % (data.couch_host, data.couch_reqmgr_db)
wmdatamining.mcm_url = "https://cms-pdmv.cern.ch/mcm"
wmdatamining.mcm_cert = "%s/auth/reqmgr2/dmwm-service-cert.pem" % ROOTDIR
wmdatamining.mcm_key = "%s/auth/reqmgr2/dmwm-service-key.pem" % ROOTDIR
wmdatamining.mcm_tmp_dir = "%s/state/reqmgr2/tmp" % __file__.rsplit('/', 4)[0]
wmdatamining.wmdatamining_url = "%s/%s" % (data.couch_host, data.couch_wmdatamining_db)
wmdatamining.activeDuration = 60 * 15 # every 15 min
wmdatamining.archiveDuration = 60 * 60 * 24 # every 24 hours
Expand All @@ -95,6 +99,10 @@
wmdatamining.reqmgrdb_url = "https://cmsweb-testbed.cern.ch/couchdb/reqmgr_workload_cache"
#wmdatamining.wmstats_url = "%s/%s" % (data.couch_host, data.couch_wmstats_db)
#wmdatamining.reqmgrdb_url = "%s/%s" % (data.couch_host, data.couch_reqmgr_db)
wmdatamining.mcm_url = "https://cms-pdmv.cern.ch/mcm"
wmdatamining.mcm_cert = "%s/auth/reqmgr2/dmwm-service-cert.pem" % ROOTDIR
wmdatamining.mcm_key = "%s/auth/reqmgr2/dmwm-service-key.pem" % ROOTDIR
wmdatamining.mcm_tmp_dir = "%s/state/reqmgr2/tmp" % __file__.rsplit('/', 4)[0]
wmdatamining.wmdatamining_url = "%s/%s" % (data.couch_host, data.couch_wmdatamining_db)
wmdatamining.activeDuration = 60 * 15 # every 15 mins
wmdatamining.archiveDuration = 60 * 60 * 24 # every 24 hours
2 changes: 1 addition & 1 deletion reqmgr2/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ deploy_reqmgr2_deps()

deploy_reqmgr2_prep()
{
mkproj
mkproj tmp
}

deploy_reqmgr2_sw()
Expand Down

0 comments on commit 4e8e953

Please sign in to comment.