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
fc26e7a2
Commit
fc26e7a2
authored
Aug 26, 2019
by
Edita Kizinevic
Browse files
Continue with another proxy if FindProxyForURL is not find
parent
b39e8405
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteTests/FroNtier/tests/CE-cms-squid
View file @
fc26e7a2
...
...
@@ -2,7 +2,7 @@
shopt
-s
expand_aliases
SCRIPT_REVISION
=
"2019-0
4-1
6, Dave Dykstra and Edita Kizinevic"
SCRIPT_REVISION
=
"2019-0
8-2
6, Dave Dykstra and Edita Kizinevic"
# Source the CMS environment
if
[
-n
"
$OSG_GRID
"
]
;
then
...
...
@@ -122,16 +122,16 @@ check_proxies() {
done
;;
*
"(proxyconfigurl="
*
)
if
[
"
$FindProxyForURL
"
==
false
]
;
then
echo
"Converting
$proxy
proxyconfigurl to proxyurl started:"
`
date
`
if
[
"
$found_proxyconfig
"
==
false
]
;
then
proxy_config_url
=
$proxy
echo
"Converting
$proxy_config_url
proxyconfigurl to proxyurl started:"
`
date
`
echo
echo
'select 1 from dual'
|
FRONTIER_LOG_LEVEL
=
debug
FRONTIER_SERVER
=
"
$proxy
(serverurl=http://cmsfrontier.cern.ch:8000/FrontierProd)(failovertoserver=no)"
fn-req
>
$debug_output
echo
'select 1 from dual'
|
FRONTIER_LOG_LEVEL
=
debug
FRONTIER_SERVER
=
"
$proxy
(serverurl=http://cmsfrontier.cern.ch:8000/FrontierProd)(failovertoserver=no)"
fn-req
>
$debug_output
2>&1
if
grep
-q
"FindProxyForURL"
$debug_output
;
then
FindProxyForURL
=
true
found_proxyconfig
=
true
PROXYLIST
=
"
`
sed
-n
'/returned "PROXY/{s/.*returned "//;s/PROXY /(proxyurl=/g;s/;/)/g;s/"/)/;p;q}'
$debug_output
`
"
check_proxies
"
$PROXYLIST
"
fi
PROXYLIST
=
"
`
sed
-n
'/returned "PROXY/{s/.*returned "//;s/PROXY /(proxyurl=/g;s/;/)/g;s/"/)/;p;q}'
$debug_output
`
"
proxy_config_url
=
$proxy
check_proxies
"
$PROXYLIST
"
echo
"Converting
$proxy_config_url
proxyconfigurl to proxyurl ended:"
`
date
`
echo
fi
...
...
@@ -151,7 +151,7 @@ debug_output="debug_output.txt"
output
=
"output.txt"
ever_failed
=
false
ever_succeeded
=
false
FindProxyForURL
=
false
found_proxyconfig
=
false
found_proxy
=
false
check_proxies
"
$FNCONNECT
"
...
...
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