Skip to content

Commit

Permalink
Update crons/switches to match new machines.
Browse files Browse the repository at this point in the history
  • Loading branch information
geneguvo committed Jul 23, 2015
1 parent 727649f commit 202be1a
Show file tree
Hide file tree
Showing 25 changed files with 32 additions and 33 deletions.
2 changes: 1 addition & 1 deletion admin/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ deploy_admin_post()

local pxlabel pxskip certs
case $host in
vocms034 | vocms0127 | vocms13[2345689] | vocms013[12345689] | vocms140 | vocms0140 | vocms16[01235] | vocms016[01235] | vocms030[67] | vocms0318 )
vocms0127 | vocms013[1245689] | vocms0140 | vocms016[01235] | vocms030[67] | vocms0318 )
pxlabel=cmsweb_backends ;;
* )
pxlabel=devvm_$(echo $host | tr - _) ;;
Expand Down
2 changes: 1 addition & 1 deletion base/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ deploy_base_sw()

deploy_base_post()
{
case $host in vocms13[89] | vocms140 | vocms013[89] | vocms0140 ) disable ;; * ) enable ;; esac
case $host in vocms013[89] | vocms0140 ) disable ;; * ) enable ;; esac
(mkcrontab; sysboot) | crontab -
}
2 changes: 1 addition & 1 deletion bigcouch/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ deploy_bigcouch_post()

(mkcrontab
case $host in
vocms34 | vocms13[2689] | vocms16[13] | vocms140 | vocms034 | vocms0128 | vocms013[2689] | vocms016[135] | vocms0140 | vocms0306 | vocms0307 | vocms0318 )
vocms013[2689] | vocms016[135] | vocms0140 | vocms0306 | vocms0307 | vocms0318 )
disable ;;
* )
enable
Expand Down
2 changes: 1 addition & 1 deletion couchdb/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ deploy_couchdb_post()
case $host in
vocms0127 ) tohost=vocms0127 hour=1;;
vocms0132 ) tohost=vocms0131 hour=1;;
vocms0133 | vocms0131 ) tohost=vocms0132 hour=2;;
vocms0131 ) tohost=vocms0132 hour=2;;
vocms0140 ) tohost=vocms0131 hour=3;;
vocms0306 | vocms0318 ) tohost=vocms0140 hour=4;;
vocms0307 ) tohost=vocms0140 hour=5;;
Expand Down
2 changes: 1 addition & 1 deletion crabcache/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ deploy_crabcache_sw()

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

local cmd_u="$root/current/config/crabcache/manage clean 3"
cmd_u="sudo -H -u _crabcache bashs -l -c \"${cmd_u}\""
Expand Down
2 changes: 1 addition & 1 deletion crabserver/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ deploy_crabserver_sw()

deploy_crabserver_post()
{
case $host in vocms13[89] | vocms140 | vocms0128 | vocms013[89] | vocms0140 | vocms030[67] | vocms0318 ) disable ;; * ) enable ;; esac
case $host in vocms013[89] | vocms0140 | vocms030[67] | vocms0318 ) disable ;; * ) enable ;; esac

(mkcrontab; sysboot) | crontab -
}
Expand Down
2 changes: 1 addition & 1 deletion das/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ deploy_das_sw()

deploy_das_post()
{
case $host in vocms34 | vocms13[2689] | vocms16[13] | vocms034 | vocms013[689] | vocms016[135] ) disable ;; * ) enable ;; esac
case $host in vocms013[689] | vocms016[135] ) disable ;; * ) enable ;; esac
(mkcrontab; sysboot) | crontab -
# clean-up
local das_stage=$root/state/das/stagingarea
Expand Down
4 changes: 2 additions & 2 deletions dbs/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ deploy_dbs_sw()

deploy_dbs_post()
{
case $host in vocms13[89] | vocms140 | vocms0128 | vocms013[89] | vocms0140 | vocms030[67] | vocms0318 ) disable ;; * ) enable ;; esac
case $host in vocms013[89] | vocms0140 | vocms030[67] | vocms0318 ) disable ;; * ) enable ;; esac

(mkcrontab
sysboot
case $host in
vocms13[89] | vocms140 | vocms0128 | vocms013[89] | vocms0140 | vocms030[67] | vocms0318 )
vocms013[89] | vocms0140 | vocms030[67] | vocms0318 )
;;
* )
local cmd="$project_config/manage setinstances 'I did read documentation'"
Expand Down
4 changes: 2 additions & 2 deletions dbsmigration/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ deploy_dbsmigration_sw()

deploy_dbsmigration_post()
{
case $host in vocms13[89] | vocms140 | vocms0128 | vocms013[89] | vocms0140 | vocms030[67] | vocms0318 ) disable ;; * ) enable ;; esac
case $host in vocms013[89] | vocms0140 | vocms030[67] | vocms0318 ) disable ;; * ) enable ;; esac

(mkcrontab
sysboot
case $host in
vocms13[89] | vocms140 | vocms0128 | vocms013[89] | vocms0140 | vocms030[67] | vocms0318 )
vocms013[89] | vocms0140 | vocms030[67] | vocms0318 )
;;
* )
local cmd="$project_config/manage setinstances 'I did read documentation'"
Expand Down
2 changes: 1 addition & 1 deletion dbsweb/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ deploy_dbsweb_sw()

deploy_dbsweb_post()
{
case $host in vocms13[89] | vocms140 | vocms013[89] | vocms0140 ) disable ;; * ) enable ;; esac
case $host in vocms013[89] | vocms0140 | vocms030[67] | vocms0318 ) disable ;; * ) enable ;; esac
(mkcrontab; sysboot) | crontab -
}
2 changes: 1 addition & 1 deletion dmwmbld/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ deploy_dmwmbld_post()
) | crontab -

case $host:$root in
vocms106:/build/dmwmbld/srv | vocms22:/build/dmwmbld/srv | vocms0106:/build/dmwmbld/srv | vocms022:/build/dmwmbld/srv )
vocms0106:/build/dmwmbld/srv | vocms022:/build/dmwmbld/srv )
klist -s # must have afs kerberos token
(acrontab -l | { fgrep -v -e " $host $project_config/" -e "$host ssh macms07" || true; }
echo "*/10 * * * * $host $project_config/dmwmbld_task updateweb"
Expand Down
2 changes: 1 addition & 1 deletion dmwmmon/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ deploy_dmwmmon_sw()
deploy_dmwmmon_post()
{
case $host in
vocms13[89] | vocms140 | vocms0128 | vocms013[89] | vocms0140 | vocms030[67] | vocms0318 )
vocms013[89] | vocms0140 | vocms030[67] | vocms0318 )
disable
opts="" ;;
* )
Expand Down
4 changes: 2 additions & 2 deletions dqmgui/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ deploy_dqmgui_sw()
deploy_dqmgui_post()
{
case $host in
vocms34 | vocms13[26] | vocms140 | vocms16[135] | vocms034 | vocms0128 | vocms013[26] | vocms0140 | vocms016[135] | vocms030[67] | vocms0318 )
vocms013[26] | vocms0140 | vocms016[135] | vocms030[67] | vocms0318 )
disable
;;
* )
Expand All @@ -72,7 +72,7 @@ deploy_dqmgui_post()
}) | crontab -

case $host:$root in
vocms13[389]:/data/srv | vocms013[1389]:/data/srv | broen* )
vocms13[89]:/data/srv | vocms013[189]:/data/srv | broen* )
klist -s # must have afs kerberos token
(acrontab -l | { egrep -v -e " $host.*$project_config/" || true; }

Expand Down
2 changes: 1 addition & 1 deletion filemover/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ deploy_filemover_post()
{
(mkcrontab
case $host in
vocms34 | vocms13[2689] | vocms16[13] | vocms034 | vocms013[2689] | vocms016[13])
vocms013[2689] | vocms016[135])
disable ;;
* )
enable
Expand Down
2 changes: 1 addition & 1 deletion gitweb/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ deploy_gitweb_sw()

deploy_gitweb_post()
{
case $host in vocms13[89] | vocms140 | vocms0128 | vocms013[89] | vocms0140 | vocms030[67] | vocms0318 ) disable;; * ) enable;; esac
case $host in vocms013[89] | vocms0140 | vocms030[67] | vocms0318 ) disable;; * ) enable;; esac

rm -fr $PWD/{htdocs,etc,var}
(set -e
Expand Down
2 changes: 1 addition & 1 deletion mongodb/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ deploy_mongodb_sw()

deploy_mongodb_post()
{
case $host in vocms34 | vocms13[2689] | vocms16[13] | vocms034 | vocms013[689] | vocms016[135] ) disable ;; * ) enable ;; esac
case $host in vocms013[689] | vocms016[135] ) disable ;; * ) enable ;; esac
(mkcrontab; sysboot) | crontab -
}
3 changes: 1 addition & 2 deletions overview/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ deploy_overview_sw()

deploy_overview_post()
{
case $host in vocms34 | vocms13[3689] | vocms140 | vocms161 | vocms034 | vocms013[13689] | vocms0128 | vocms0140 | vocms0161 | vocms030[67] | vocms0318 ) disable ;; * ) enable ;;
esac
case $host in vocms013[1689] | vocms0140 | vocms016[15] | vocms030[67] | vocms0318 ) disable ;; * ) enable ;; esac
(mkcrontab; sysboot
cmd="$project_config/daily"
$nogroups || cmd="sudo -H -u _overview bashs -l -c '$cmd'"
Expand Down
2 changes: 1 addition & 1 deletion phedex/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ deploy_phedex_sw()
deploy_phedex_post()
{
case $host in
vocms13[89] | vocms140 | vocms0128 | vocms013[89] | vocms0140 | vocms030[67] | vocms0318 )
vocms013[89] | vocms0140 | vocms030[67] | vocms0318 )
disable
opts="" ;;
* )
Expand Down
6 changes: 3 additions & 3 deletions reqmgr/ReqMgrConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
COUCH = "https://%s/couchdb" % HOST
ADD_MONITOR_FLAG = False

if re.match(r"^vocms0?(?:34|128|13[689]|140|16[135]|30[67]|318)\.cern\.ch$", HOST):
if re.match(r"^vocms0(?:13[689]|140|16[135]|30[67]|318)\.cern\.ch$", HOST):
COUCH = "https://cmsweb.cern.ch/couchdb"
elif re.match(r"^vocms0?(?:13[123])\.cern\.ch$", HOST):
elif re.match(r"^vocms0(?:13[12])\.cern\.ch$", HOST):
COUCH = "https://cmsweb-testbed.cern.ch/couchdb"
elif re.match(r"^vocms0?127\.cern\.ch$", HOST):
elif re.match(r"^vocms0127\.cern\.ch$", HOST):
COUCH = "https://cmsweb-dev.cern.ch/couchdb"

config = ReqMgrConfig.reqMgrConfig(installation=INSTALL,
Expand Down
2 changes: 1 addition & 1 deletion reqmgr/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ deploy_reqmgr_sw()

deploy_reqmgr_post()
{
case $host in vocms13[89] | vocms013[89] ) disable ;; * ) enable ;; esac
case $host in vocms013[89] ) disable ;; * ) enable ;; esac

case $variant in
offsite )
Expand Down
2 changes: 1 addition & 1 deletion reqmgr2/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ deploy_reqmgr2_sw()

deploy_reqmgr2_post()
{
case $host in vocms13[89] | vocms013[89] ) disable;; * ) enable;; esac
case $host in vocms013[89] ) disable;; * ) enable;; esac

# ReqMgr2 specific couchdb stuff
# Tell couch to pick up reqmgr on the next restart
Expand Down
6 changes: 3 additions & 3 deletions sitedb/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ deploy_sitedb_sw()

deploy_sitedb_post()
{
case $host in vocms13[89] | vocms140 | vocms0128 | vocms013[89] | vocms0140 | vocms030[67] | vocms0318 ) disable ;; * ) enable ;; esac
case $host in vocms013[89] | vocms0140 | vocms030[67] | vocms0318 ) disable ;; * ) enable ;; esac
(mkcrontab
sysboot
# hack: set cronjob to restart sitedb due to bug on the ldap synchronization
case $host in
vocms34 | vocms13[2389] | vocms140 | vocms16[13] | vocms034 | vocms0128 | vocms013[123689] | vocms0140 | vocms016[35] | vocms030[67] | vocms0318 ) ;;
* )
vocms0161 | vocms0127 )
local cmd="$project_config/manage start 'I did read documentation'"
$nogroups || cmd="sudo -H -u _sitedb bashs -l -c \"${cmd}\""
echo "5 */6 * * * $cmd &> /dev/null" ;;
* ) ;;
esac) | crontab -
}

Expand Down
2 changes: 1 addition & 1 deletion system/deploy
Original file line number Diff line number Diff line change
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 vocms{0,}{306,307,318,34,12{7,8},13{1,2,3,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{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
2 changes: 1 addition & 1 deletion t0wmadatasvc/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ deploy_t0wmadatasvc_sw()

deploy_t0wmadatasvc_post()
{
case $host in vocms13[89] | vocms140 | vocms0128 | vocms013[89] | vocms0140 | vocms030[67] | vocms0318 ) disable ;; * ) enable ;; esac
case $host in vocms013[89] | vocms0140 | vocms030[67] | vocms0318 ) disable ;; * ) enable ;; esac
(mkcrontab; sysboot) | crontab -
}

Expand Down
2 changes: 1 addition & 1 deletion workqueue/monitoring.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ENABLE_IF='host not in ["vocms34","vocms132","vocms136","vocms138","vocms139","vocms161","vocms163","vocms034","vocms0128","vocms0306","vocms0318","vocms0132","vocms0136","vocms0138","vocms0139","vocms0161","vocms0163"]'
ENABLE_IF='host in ["vocms0140","vocms0131","vocms0127"]'

# 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 202be1a

Please sign in to comment.