Skip to content

Commit

Permalink
Add new cmsweb-dev machine vocms0126.
Browse files Browse the repository at this point in the history
  • Loading branch information
geneguvo committed Sep 14, 2015
1 parent 5865cd8 commit e44e132
Show file tree
Hide file tree
Showing 14 changed files with 49 additions and 21 deletions.
14 changes: 11 additions & 3 deletions acdcserver/ACDCConfig-dev.py
Expand Up @@ -4,17 +4,25 @@
ACDC config for a development deployment
"""
import socket
from WMCore.Configuration import Configuration

acdcDatabase = "acdcserver"
HOST = "cmsweb-dev.cern.ch"
COUCH = "https://%s/couchdb" % HOST

HOST = socket.getfqdn().lower()
if re.match(r"^vocms0127\.cern\.ch$", HOST):
ALIAS = "cmsweb-dev.cern.ch"
elif re.match(r"^vocms0126\.cern\.ch$", HOST):
ALIAS = "cmsweb-dev2.cern.ch"
else:
ALIAS = HOST
COUCH = "https://%s/couchdb" % ALIAS

# Nothing after this point should need to be changed.
config = Configuration()

config.section_("Agent")
config.Agent.hostName = HOST
config.Agent.hostName = ALIAS

config.component_("ACDC")
config.ACDC.couchurl = COUCH
Expand Down
2 changes: 1 addition & 1 deletion acdcserver/deploy
Expand Up @@ -44,7 +44,7 @@ deploy_acdcserver_post()

(mkcrontab;
case $variant:$host in
prod:vocms0140 | preprod:vocms0131 | dev:vocms0127 | default:* )
prod:vocms0140 | preprod:vocms0131 | dev:vocms0127 | dev:vocms0126 | default:* )
echo "${cleanup}" ;;
* ) ;;
esac) | crontab -
Expand Down
4 changes: 2 additions & 2 deletions admin/deploy
Expand Up @@ -35,7 +35,7 @@ deploy_admin_post()

local pxlabel pxskip certs
case $host in
vocms0127 | vocms013[1245689] | vocms0140 | vocms016[01235] | vocms030[67] | vocms0318 )
vocms0126 | vocms0127 | vocms013[1245689] | vocms0140 | vocms016[01235] | vocms030[67] | vocms0318 )
pxlabel=cmsweb_backends ;;
* )
pxlabel=devvm_$(echo $host | tr - _) ;;
Expand Down Expand Up @@ -63,7 +63,7 @@ deploy_admin_post()
crontab -

case $host:$root in
vocms0127:/data/srv | vocms0134:/data/srv | vocms0135:/data/srv | \
vocms0126:/data/srv | vocms0127:/data/srv | vocms0134:/data/srv | vocms0135:/data/srv | \
vocms0160:/data/srv | vocms0162:/data/srv | vocms0164:/data/srv )
klist -s # must have afs kerberos token
LOGDIR=/afs/cern.ch/cms/cmsweb/log-archive
Expand Down
3 changes: 2 additions & 1 deletion couchdb/deploy
Expand Up @@ -59,6 +59,7 @@ deploy_couchdb_post()

# Daily backup the databases to other cluster machines
case $host in
vocms0126 ) tohost=vocms0126 hour=1;;
vocms0127 ) tohost=vocms0127 hour=1;;
vocms0132 ) tohost=vocms0131 hour=1;;
vocms0131 ) tohost=vocms0132 hour=2;;
Expand All @@ -74,7 +75,7 @@ deploy_couchdb_post()

# Weekly archive backups to castor
case $host in
vocms0140 | vocms0306 | vocms0307 | vocms0318 | vocms013[123] | vocms0127 )
vocms0140 | vocms0306 | vocms0307 | vocms0318 | vocms013[123] | vocms0127 | vocms0126)
klist -s # must have afs kerberos token
(acrontab -l | { fgrep -v -e " $host $project_config/" || true; }
echo "#30 4 * * 0 $host $project_config/manage archive /castor/cern.ch/cms/archive/cmsweb/backups 'I did read documentation'") | acrontab
Expand Down
2 changes: 1 addition & 1 deletion crabcache/deploy
Expand Up @@ -17,7 +17,7 @@ deploy_crabcache_sw()

deploy_crabcache_post()
{
case $host in vocms013[12] | vocms0127 | vocms0140 | vocms030[67] | vocms0318 ) enable ;; vocms* ) disable ;; * ) enable ;; esac
case $host in vocms013[12] | vocms012[67] | vocms0140 | vocms030[67] | vocms0318 ) enable ;; vocms* ) disable ;; * ) enable ;; esac

local cmd="$project_config/manage clean 3"
$nogroups || cmd="sudo -H -u _crabcache bashs -l -c '$cmd'"
Expand Down
8 changes: 6 additions & 2 deletions frontend/deploy
Expand Up @@ -44,7 +44,11 @@ deploy_frontend_post()
opts="" name="-n cmsweb-testbed.cern.ch"
backends=backends-preprod.txt ;;
dev )
opts="-DTEST" name="-n cmsweb-dev.cern.ch"
opts="-DTEST"
case $host in
vocms0126 ) name="-n cmsweb-dev2.cern.ch";;
* ) name="-n cmsweb-dev.cern.ch";;
esac
backends=backends-dev.txt ;;
* )
opts="-DTEST" name=""
Expand Down Expand Up @@ -109,7 +113,7 @@ deploy_frontend_post()
echo "23 */6 * * * $project_config/update-keys $PWD vocms0162 vocms0164" ;;
preprod:vocms0134 )
echo "23 */6 * * * $project_config/update-keys $PWD vocms0135" ;;
dev:vocms0127 | default:* )
dev:vocms0127 | dev:vocms0126 | default:* )
echo "23 */6 * * * $project_config/update-keys $PWD" ;;
* ) ;;
esac
Expand Down
2 changes: 2 additions & 0 deletions reqmgr/ReqMgrConfig.py
Expand Up @@ -19,6 +19,8 @@
COUCH = "https://cmsweb-testbed.cern.ch/couchdb"
elif re.match(r"^vocms0127\.cern\.ch$", HOST):
COUCH = "https://cmsweb-dev.cern.ch/couchdb"
elif re.match(r"^vocms0126\.cern\.ch$", HOST):
COUCH = "https://cmsweb-dev2.cern.ch/couchdb"

config = ReqMgrConfig.reqMgrConfig(installation=INSTALL,
couchurl = COUCH, addMonitor = ADD_MONITOR_FLAG)
Expand Down
2 changes: 1 addition & 1 deletion reqmgr/deploy
Expand Up @@ -85,7 +85,7 @@ deploy_reqmgr_post()
(mkcrontab
sysboot
case $variant:$host in
prod:vocms0140 | preprod:vocms0131 | dev:vocms0127 | default:* )
prod:vocms0140 | preprod:vocms0131 | dev:vocms0127 | dev:vocms0126 | default:* )
local cmd="$project_config/manage updateversions 'I did read documentation'"
$nogroups || cmd="sudo -H -u _reqmgr bashs -l -c \"${cmd}\""
echo "58 * * * * $cmd" ;;
Expand Down
2 changes: 1 addition & 1 deletion reqmgr2/deploy
Expand Up @@ -64,7 +64,7 @@ deploy_reqmgr2_post()
(mkcrontab
sysboot
case $variant:$host in
prod:vocms0140 | preprod:vocms0131 | dev:vocms0127 | default:* )
prod:vocms0140 | preprod:vocms0131 | dev:vocms0127 | dev:vocms0126 | default:* )
local cmd="$project_config/manage updateversions 'I did read documentation'"
$nogroups || cmd="sudo -H -u _reqmgr2 bashs -l -c \"${cmd}\""
echo "58 * * * * $cmd" ;;
Expand Down
7 changes: 6 additions & 1 deletion reqmon/deploy
Expand Up @@ -27,7 +27,12 @@ deploy_reqmon_sw()
case $variant in
prod ) base_url="https://cmsweb.cern.ch" dbs_ins="prod";;
preprod ) base_url="https://cmsweb-testbed.cern.ch" dbs_ins="int";;
dev ) base_url="https://cmsweb-dev.cern.ch" dbs_ins="dev";;
dev ) case $host in
vocms0126 ) base_url="https://cmsweb-dev2.cern.ch";;
* ) base_url="https://cmsweb-dev.cern.ch";;
esac
dbs_ins="dev"
;;
* ) base_url="https://`hostname -f`" dbs_ins="private_vm";;
esac
perl -p -i -e "s{\"\@\@BASE_URL\@\@\"}{\"$base_url\"}g; \
Expand Down
2 changes: 1 addition & 1 deletion system/deploy
Expand Up @@ -368,7 +368,7 @@ deploy_system_post()

note "IMPORTANT: run the following to update /root/.ssh/known_hosts"
note " sudo cfg/admin/ImageKey start"
note " for h in vocms0{306,307,318,12{7,8},13{1,2,4,5,6,8,9},140,16{0,1,2,3,4,5}}{,.cern.ch}; do"
note " for h in vocms0{306,307,318,12{6,7,8},13{1,2,4,5,6,8,9},140,16{0,1,2,3,4,5}}{,.cern.ch}; do"
note " echo \$h; sudo cfg/admin/ImageKey run ssh cmsweb@\$h uptime"
note " done"
note " sudo cfg/admin/ImageKey stop"
Expand Down
18 changes: 13 additions & 5 deletions workqueue/GlobalWorkQueueConfig-dev.py
Expand Up @@ -15,10 +15,18 @@
workqueueInboxDbName = 'workqueue_inbox'
wmstatDBName = 'wmstats'
reqmgrCouchDB = "reqmgr_workload_cache"
HOST = "cmsweb-dev.cern.ch"
REQMGR = "https://%s/reqmgr/reqMgr" % HOST
REQMGR2 = "https://%s/reqmgr2" % HOST
COUCH = "https://%s/couchdb" % HOST

HOST = socket.getfqdn().lower()
if re.match(r"^vocms0127\.cern\.ch$", HOST):
ALIAS = "cmsweb-dev.cern.ch"
elif re.match(r"^vocms0126\.cern\.ch$", HOST):
ALIAS = "cmsweb-dev2.cern.ch"
else:
ALIAS = HOST

REQMGR = "https://%s/reqmgr/reqMgr" % ALIAS
REQMGR2 = "https://%s/reqmgr2" % ALIAS
COUCH = "https://%s/couchdb" % ALIAS
WEBURL = "%s/%s" % (COUCH, workqueueDBName)
LOG_DB_URL = "%s/wmstats_logdb" % COUCH
LOG_REPORTER = "global_workqueue"
Expand All @@ -31,7 +39,7 @@
config = Configuration()

config.section_("Agent")
config.Agent.hostName = HOST
config.Agent.hostName = ALIAS

config.component_("WorkQueueManager")
config.WorkQueueManager.namespace = "WMComponent.WorkQueueManager.WorkQueueManager"
Expand Down
2 changes: 1 addition & 1 deletion workqueue/deploy
Expand Up @@ -56,7 +56,7 @@ deploy_workqueue_post()

(mkcrontab;
case $variant:$host in
prod:vocms0140 | preprod:vocms0131 | dev:vocms0127 | default:* )
prod:vocms0140 | preprod:vocms0131 | dev:vocms0127 | dev:vocms0126 | default:* )
echo "${req_sync}"
echo "${locations}"
echo "${housekeep}"
Expand Down
2 changes: 1 addition & 1 deletion workqueue/monitoring.ini
@@ -1,4 +1,4 @@
ENABLE_IF='host in ["vocms0140","vocms0131","vocms0127"]'
ENABLE_IF='host in ["vocms0140","vocms0131","vocms0127","vocms0126"]'

# Glob pattern to search for log files under the svc logs directory,
# and the regular expression to look for in those files.
Expand Down

0 comments on commit e44e132

Please sign in to comment.