Skip to content

Commit d14d687

Browse files
committed
remove openhpc_slurm_configless
1 parent cc720b8 commit d14d687

File tree

5 files changed

+6
-17
lines changed

5 files changed

+6
-17
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ each list element:
4040

4141
`openhpc_slurmdbd_host`: Optional. Where to deploy slurmdbd if are using this role to deploy slurmdbd, otherwise where an existing slurmdbd is running. This should be the name of a host in your inventory. Set this to `none` to prevent the role from managing slurmdbd. Defaults to `openhpc_slurm_control_host`.
4242

43-
`openhpc_slurm_configless`: Optional, default false. If true then slurm's ["configless" mode](https://slurm.schedmd.com/configless_slurm.html) is used.
44-
4543
`openhpc_munge_key_b64`: Optional. A base-64 encoded munge key. If not provided then the one generated on package install is used, but the `openhpc_slurm_control_host` must be in the play.
4644

4745
`openhpc_login_only_nodes`: Optional. If using "configless" mode specify the name of an ansible group containing nodes which are login-only nodes (i.e. not also control nodes), if required. These nodes will run `slurmd` to contact the control node for config.

defaults/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ openhpc_default_config:
4343

4444
openhpc_config: {}
4545
openhpc_gres_template: gres.conf.j2
46-
openhpc_slurm_configless: "{{ 'enable_configless' in openhpc_config.get('SlurmctldParameters', []) }}"
4746

4847
openhpc_state_save_location: /var/spool/slurm
4948

tasks/pre.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
- name: Enable batch on configless login-only nodes
1+
- name: Enable batch on login-only nodes
2+
# TODO: why can't we remove this by just setting openhpc_enable.batch: true for appliance login nodes??
23
set_fact:
34
openhpc_enable: "{{ openhpc_enable | combine({'batch': true}) }}"
45
when:
5-
- openhpc_slurm_configless
66
- openhpc_login_only_nodes in group_names

tasks/runtime.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
owner: root
6464
group: root
6565
mode: 0644
66-
when: openhpc_enable.control | default(false) or not openhpc_slurm_configless | bool
66+
when: openhpc_enable.control | default(false)
6767
notify:
6868
- Restart slurmctld service
6969
register: ohpc_slurm_conf
@@ -76,7 +76,7 @@
7676
mode: "0600"
7777
owner: slurm
7878
group: slurm
79-
when: openhpc_enable.control | default(false) or not openhpc_slurm_configless | bool
79+
when: openhpc_enable.control | default(false)
8080
notify:
8181
- Restart slurmctld service
8282
register: ohpc_gres_conf
@@ -90,7 +90,7 @@
9090
mode: "0644" # perms/ownership based off src from ohpc package
9191
owner: root
9292
group: root
93-
when: openhpc_enable.control | default(false) or not openhpc_slurm_configless | bool
93+
when: openhpc_enable.control | default(false)
9494

9595
- name: Remove local tempfile for slurm.conf templating
9696
ansible.builtin.file:
@@ -132,10 +132,9 @@
132132
- name: Configure slurmd command line options
133133
vars:
134134
slurmd_options_configless: "--conf-server {{ openhpc_slurm_control_host_address | default(openhpc_slurm_control_host) }}"
135-
slurmd_options: ""
136135
lineinfile:
137136
path: /etc/sysconfig/slurmd
138-
line: "SLURMD_OPTIONS='{{ slurmd_options_configless if openhpc_slurm_configless | bool else slurmd_options }}'"
137+
line: "SLURMD_OPTIONS='{{ slurmd_options_configless }}'"
139138
regexp: "^SLURMD_OPTIONS="
140139
create: yes
141140
owner: root

templates/slurm.conf.j2

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,10 @@ ClusterName={{ openhpc_cluster_name }}
33
# PARAMETERS
44
{% for k, v in openhpc_default_config | combine(openhpc_config) | items %}
55
{% if v != "omit" %}{# allow removing items using setting key: null #}
6-
{% if k != 'SlurmctldParameters' %}{# handled separately due to openhpc_slurm_configless #}
76
{{ k }}={{ v | join(',') if (v is sequence and v is not string) else v }}
8-
{% endif %}
97
{% endif %}
108
{% endfor %}
119

12-
{% set slurmctldparameters = ((openhpc_config.get('SlurmctldParameters', []) + (['enable_configless'] if openhpc_slurm_configless | bool else [])) | unique) %}
13-
{% if slurmctldparameters | length > 0 %}
14-
SlurmctldParameters={{ slurmctldparameters | join(',') }}
15-
{% endif %}
16-
1710
# LOGIN-ONLY NODES
1811
# Define slurmd nodes not in partitions for login-only nodes in "configless" mode:
1912
{%if openhpc_login_only_nodes %}{% for node in groups[openhpc_login_only_nodes] %}

0 commit comments

Comments
 (0)