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
b43b7ddc
Commit
b43b7ddc
authored
Apr 16, 2019
by
Edita Kizinevic
Committed by
Andrea Sciaba
Apr 16, 2019
Browse files
Give a warn if some addresses fail but other work
parent
4513fdc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteTests/FroNtier/tests/CE-cms-squid
View file @
b43b7ddc
...
...
@@ -2,7 +2,7 @@
shopt
-s
expand_aliases
SCRIPT_REVISION
=
"2019-04-1
5
, Dave Dykstra and Edita Kizinevic"
SCRIPT_REVISION
=
"2019-04-1
6
, Dave Dykstra and Edita Kizinevic"
# Source the CMS environment
if
[
-n
"
$OSG_GRID
"
]
;
then
...
...
@@ -127,6 +127,7 @@ check_proxies() {
echo
'select 1 from dual'
|
FRONTIER_SERVER
=
"
$proxy_IP
(serverurl=http://cmsfrontier.cern.ch:8000/FrontierProd)(failovertoserver=no)"
fn-req
>
$output
if
grep
-q
" 1 NUMBER"
$output
;
then
echo
"
$proxy_IP
is OK"
ever_succeeded
=
true
else
echo
"
$proxy_IP
is FAILED:"
cat
$output
...
...
@@ -157,13 +158,17 @@ echo
# Check proxies
output
=
"output.txt"
ever_failed
=
false
ever_succeeded
=
false
check_proxies
"
$FNCONNECT
"
#Check test results
if
$ever_failed
;
then
if
[
"
$ever_failed
"
==
false
]
&&
[
"
$ever_succeeded
"
==
true
]
;
then
echo
"Proxy test is OK."
exit
$SAME_OK
elif
[
"
$ever_failed
"
==
true
]
&&
[
"
$ever_succeeded
"
==
true
]
;
then
echo
"At least one of proxies is FAILED."
exit
$SAME_WARNING
else
echo
"Proxy test is FAILED."
exit
$SAME_ERROR
else
echo
"Proxy test is OK"
exit
$SAME_OK
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