Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
631698cf
Commit
631698cf
authored
3 years ago
by
Andreas Hamacher
Browse files
Options
Downloads
Patches
Plain Diff
changing test and email in template
parent
dd20b043
No related branches found
No related tags found
1 merge request
!460
Upcoming maintenance
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/slurm-start/templates/glusterfsheltest.sh.j2
+4
-7
4 additions, 7 deletions
roles/slurm-start/templates/glusterfsheltest.sh.j2
with
4 additions
and
7 deletions
roles/slurm-start/templates/glusterfsheltest.sh.j2
+
4
−
7
View file @
631698cf
#!/bin/bash
exitCode
=[[
"3"
==
`
gluster volume heal gv info |
grep
-c
"Number of entries: 0"
`
]]
healinfo
=
`
gluster volume heal gv info |
grep
-c
"Number of entries: 0"
`
HEADER
=
"glusterfs preventing start of slurmctld on
`
hostname
`
"
MAILTO
=
"{{ EMAIL_DEST }}"
echo
$exitCode
if
[
$exitCode
-eq
0
]
MAILTO
={{
admin_email
}}
if
[
$healinfo
!=
"4"
]
then
EmailBody
=
"glusterfs preventing start of slurmctld on
`
hostname
`
on
`
date
`
\n
check via gluster volume heal gv info"
echo
-e
"
$EmailBody
"
| mail
-s
"
$HEADER
"
"
$MAILTO
"
fi
return
$exitCode
\ No newline at end of file
[[
$healinfo
==
"3"
]]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment