Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
cmssam
Commits
cf147247
Commit
cf147247
authored
Mar 23, 2020
by
Edita Kizinevic
Browse files
Skip failover check when running as a pilot
parent
8dd848d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteTests/FroNtier/tests/CE-cms-squid
View file @
cf147247
...
...
@@ -2,7 +2,7 @@
shopt
-s
expand_aliases
SCRIPT_REVISION
=
"2020-0
2
-2
4
, Dave Dykstra and Edita Kizinevic"
SCRIPT_REVISION
=
"2020-0
3
-2
0
, Dave Dykstra and Edita Kizinevic"
# Script does not use backupproxyurl if it is SAM test, but script uses backupproxyurl if it is pilot
includebackups
=
false
...
...
@@ -99,19 +99,21 @@ current=`pwd`
echo
"Current directory is:
${
current
}
"
echo
#
Get information from failover monitor
#
Script checks failover if it is SAM test, but script does not check failover if it is pilot
failover
=
false
if
[
!
-z
"
$site
"
]
;
then
site_summary_file
=
site_summary.txt
url
=
http://wlcg-squid-monitor.cern.ch/failover/failoverCMS/
$site_summary_file
wget
-q
-O
$site_summary_file
$url
if
[
-f
"
$site_summary_file
"
]
;
then
result
=
"
`
grep
-P
"
$site
[,
\t
]"
$site_summary_file
`
"
if
[
!
-z
"
$result
"
]
;
then
failover
=
true
if
!
$includebackups
;
then
if
[
!
-z
"
$site
"
]
;
then
site_summary_file
=
site_summary.txt
url
=
http://wlcg-squid-monitor.cern.ch/failover/failoverCMS/
$site_summary_file
wget
-q
-O
$site_summary_file
$url
if
[
-f
"
$site_summary_file
"
]
;
then
result
=
"
`
grep
-P
"
$site
[,
\t
]"
$site_summary_file
`
"
if
[
!
-z
"
$result
"
]
;
then
failover
=
true
fi
else
echo
"
$site_summary_file
file is not retrieved from
$url
"
fi
else
echo
"
$site_summary_file
file is not retrieved from
$url
"
fi
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment