Skip to content
Snippets Groups Projects
Commit 6fc253ab authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

fix slurm prolog error

Former-commit-id: 328b8fc2
parent a5ac5f7a
No related branches found
No related tags found
No related merge requests found
...@@ -14,32 +14,38 @@ ...@@ -14,32 +14,38 @@
- name: Create a parent account - name: Create a parent account
command: ./sacctmgr -i add account parentAccount cluster=m3 Description="Test parent account" Organization="Monash" command: ./sacctmgr -i add account parentAccount cluster=m3 Description="Test parent account" Organization="Monash"
args: args:
chdir: '/opt/slurm-19.05.4/bin' chdir: '/opt/slurm-latest/bin'
become: true become: true
register: result register: result
failed_when: result.rc != 0 and result.stdout != " Nothing new added." failed_when: result.rc != 0 and result.stdout != " Nothing new added."
- name: Create a project associated with a given parent - 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: args:
chdir: '/opt/slurm-19.05.4/bin' chdir: '/opt/slurm-latest/bin'
become: true become: true
register: result register: result
failed_when: result.rc != 0 and result.stdout != " Nothing new added." failed_when: result.rc != 0 and result.stdout != " Nothing new added."
- name: Create a user and associate them with a project - 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: args:
chdir: '/opt/slurm-19.05.4/bin' chdir: '/opt/slurm-latest/bin'
become: true become: true
register: result register: result
failed_when: result.rc != 0 and result.stdout != " Nothing new added." failed_when: result.rc != 0 and result.stdout != " Nothing new added."
- hosts: ComputeNodes - hosts: LoginNodes
gather_facts: false gather_facts: false
tasks: 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 command: ./srun --ntasks=1 --partition=batch hostname
args: args:
chdir: '/opt/slurm-19.05.4/bin/' chdir: '/opt/slurm-latest/bin'
become: true become: true
become_user: hpctest become_user: hpctest
...@@ -119,8 +119,8 @@ JobCompType=jobcomp/none ...@@ -119,8 +119,8 @@ JobCompType=jobcomp/none
Prolog={{ slurmjob.prolog }} Prolog={{ slurmjob.prolog }}
Epilog={{ slurmjob.epilog }} Epilog={{ slurmjob.epilog }}
{% else %} {% else %}
Prolog={{ slurm_dir }}/bin/slurm.prolog Prolog=/opt/slurm/etc/slurm.prolog
Epilog={{ slurm_dir }}/bin/slurm.epilog Epilog=/opt/slurm/etc/slurm.epilog
{% endif %} {% endif %}
# #
# ACCOUNTING # ACCOUNTING
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment