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
6fc253ab
Commit
6fc253ab
authored
4 years ago
by
Andreas Hamacher
Browse files
Options
Downloads
Patches
Plain Diff
fix slurm prolog error
Former-commit-id:
328b8fc2
parent
a5ac5f7a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CICD/tests/slurm/srunHostname.yml
+14
-8
14 additions, 8 deletions
CICD/tests/slurm/srunHostname.yml
roles/calculateSlurmConf/templates/slurm.conf.j2
+2
-2
2 additions, 2 deletions
roles/calculateSlurmConf/templates/slurm.conf.j2
with
16 additions
and
10 deletions
CICD/tests/slurm/srunHostname.yml
+
14
−
8
View file @
6fc253ab
...
...
@@ -14,32 +14,38 @@
-
name
:
Create a parent account
command
:
./sacctmgr -i add account parentAccount cluster=m3 Description="Test parent account" Organization="Monash"
args
:
chdir
:
'
/opt/slurm-
19.05.4
/bin'
chdir
:
'
/opt/slurm-
latest
/bin'
become
:
true
register
:
result
failed_when
:
result.rc != 0 and result.stdout != " Nothing new added."
-
name
:
Create a project associated with a given parent
command
:
/opt/slurm-19.05.4/bin
/sacctmgr -i add account testProject parent=parentAccount cluster=m3 Organization="Monash"
command
:
.
/sacctmgr -i add account testProject parent=parentAccount cluster=m3 Organization="Monash"
args
:
chdir
:
'
/opt/slurm-
19.05.4
/bin'
chdir
:
'
/opt/slurm-
latest
/bin'
become
:
true
register
:
result
failed_when
:
result.rc != 0 and result.stdout != " Nothing new added."
-
name
:
Create a user and associate them with a project
command
:
/opt/slurm-19.05.4/bin
/sacctmgr -i create user hpctest cluster=m3 account=testProject
command
:
.
/sacctmgr -i create user hpctest cluster=m3 account=testProject
args
:
chdir
:
'
/opt/slurm-
19.05.4
/bin'
chdir
:
'
/opt/slurm-
latest
/bin'
become
:
true
register
:
result
failed_when
:
result.rc != 0 and result.stdout != " Nothing new added."
-
hosts
:
Compute
Nodes
-
hosts
:
Login
Nodes
gather_facts
:
false
tasks
:
-
name
:
-
name
:
make sure munge is running
service
:
name
:
munge
state
:
started
become
:
true
-
name
:
simple srun test
command
:
./srun --ntasks=1 --partition=batch hostname
args
:
chdir
:
'
/opt/slurm-
19.05.4
/bin
/
'
chdir
:
'
/opt/slurm-
latest
/bin'
become
:
true
become_user
:
hpctest
This diff is collapsed.
Click to expand it.
roles/calculateSlurmConf/templates/slurm.conf.j2
+
2
−
2
View file @
6fc253ab
...
...
@@ -119,8 +119,8 @@ JobCompType=jobcomp/none
Prolog={{ slurmjob.prolog }}
Epilog={{ slurmjob.epilog }}
{% else %}
Prolog=
{{ slurm_dir }}/bin
/slurm.prolog
Epilog=
{{ slurm_dir }}/bin
/slurm.epilog
Prolog=
/opt/slurm/etc
/slurm.prolog
Epilog=
/opt/slurm/etc
/slurm.epilog
{% endif %}
#
# ACCOUNTING
...
...
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