Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
cmssam
Commits
630128ed
Commit
630128ed
authored
Feb 22, 2019
by
Andrea Sciaba
Browse files
Merge branch 'master' into qa
parents
7bfde71f
f13733be
Changes
2
Show whitespace changes
Inline
Side-by-side
SiteTests/testjob/tests/CE-cms-env
View file @
630128ed
...
@@ -38,14 +38,14 @@ function check_df {
...
@@ -38,14 +38,14 @@ function check_df {
function
check_quota
{
function
check_quota
{
dir
=
$1
dir
=
$1
fs
=
`
df
-kP
$dir
|
awk
'{if (NR==2) print $1}'
`
fs
=
`
df
-kP
$dir
|
awk
'{if (NR==2) print $1}'
`
myquotastr
=
`
quota 2>/dev/null |
awk
'{if (NR>2) {if (NF==1) {n=$1; getline; print n " " $2-$1} else {print $1 " " $3-$2}}}'
|grep
$fs
`
myquotastr
=
`
timeout
15
quota 2>/dev/null |
awk
'{if (NR>2) {if (NF==1) {n=$1; getline; print n " " $2-$1} else {print $1 " " $3-$2}}}'
|grep
$fs
`
if
[
$?
-eq
0
]
;
then
if
[
$?
-eq
0
]
;
then
# check only if there are any quotas, else ignore
# check only if there are any quotas, else ignore
myquota
=
`
echo
$myquotastr
|awk
'{print $2}'
`
myquota
=
`
echo
$myquotastr
|awk
'{print $2}'
`
let
"quotagb=
$myquota
/ (2 * 1000)"
let
"quotagb=
$myquota
/ (2 * 1000)"
echo
$quotagb
else
fi
echo
-1
echo
-1
fi
return
0
return
0
}
}
...
@@ -109,7 +109,6 @@ rm -rf $local_proxy_dir
...
@@ -109,7 +109,6 @@ rm -rf $local_proxy_dir
type
-t
voms-proxy-info
>
/dev/null
type
-t
voms-proxy-info
>
/dev/null
result
=
$?
result
=
$?
if
[
$result
-eq
0
]
;
then
if
[
$result
-eq
0
]
;
then
isvoms
=
1
echo
-n
"UserDN: "
echo
-n
"UserDN: "
voms-proxy-info
-identity
voms-proxy-info
-identity
l
=
`
voms-proxy-info
-timeleft
`
l
=
`
voms-proxy-info
-timeleft
`
...
@@ -117,13 +116,12 @@ if [ $result -eq 0 ] ; then
...
@@ -117,13 +116,12 @@ if [ $result -eq 0 ] ; then
fqan
=
`
voms-proxy-info
-fqan
`
fqan
=
`
voms-proxy-info
-fqan
`
echo
"FQAN:"
echo
"FQAN:"
echo
"
$fqan
"
echo
"
$fqan
"
if
[
$l
-lt
21600
]
;
then
echo
"WARNING: proxy shorther than 6 hours"
fi
else
else
isvoms
=
0
echo
"WARNING: voms-proxy-info not found"
echo
"WARNING: voms-proxy-info not found"
fi
fi
if
[
$isvoms
-eq
1
-a
$l
-lt
21600
]
;
then
echo
"WARNING: proxy shorther than 6 hours"
fi
# Test of the local worker node environment
# Test of the local worker node environment
echo
echo
...
...
nagios/grid-monitoring-probes-org.cms-etf.spec
View file @
630128ed
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
Summary: WLCG Compliant Probes from %{site}
Summary: WLCG Compliant Probes from %{site}
Name: nagios-plugins-wlcg-org.cms
Name: nagios-plugins-wlcg-org.cms
Version: 1.1.5
5
Version: 1.1.5
6
Release: 1%{?dist}
Release: 1%{?dist}
License: GPL
License: GPL
...
@@ -52,9 +52,11 @@ install --directory %{buildroot}/etc/cron.d
...
@@ -52,9 +52,11 @@ install --directory %{buildroot}/etc/cron.d
/etc/cron.d/cms_glexec
/etc/cron.d/cms_glexec
%changelog
%changelog
* Fri Feb 1 Andrea Sciaba <Andrea.Sciaba@cern.ch> 1.1.55-1.
* Fri Feb 22 2019 Andrea Sciaba <Andrea.Sciaba@cern.ch> 1.1.56-1.
* Improved timeout logic to xrootd-fallback
* Fri Feb 1 2019 Andrea Sciaba <Andrea.Sciaba@cern.ch> 1.1.55-1.
- Made xrootd fallback test critical
- Made xrootd fallback test critical
* Thu Dec 6 Andrea Sciaba <Andrea.Sciaba@cern.ch> 1.1.54-1.
* Thu Dec 6
2018
Andrea Sciaba <Andrea.Sciaba@cern.ch> 1.1.54-1.
- fixes in xrootd-fallback and moved CMSSW to CMSSW_9_2_6 in tests
- fixes in xrootd-fallback and moved CMSSW to CMSSW_9_2_6 in tests
* Tue Nov 6 2018 Andrea Sciaba <Andrea.Sciaba@cern.ch> 1.1.53-1.
* Tue Nov 6 2018 Andrea Sciaba <Andrea.Sciaba@cern.ch> 1.1.53-1.
- fixes in xrootd-fallback, remotestageout, mc and SRM tests
- fixes in xrootd-fallback, remotestageout, mc and SRM tests
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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