Skip to content

Commit 190f8ca

Browse files
authored
Merge pull request #192 from stackhpc/feat/only-configless
Only support configless mode
2 parents 294adfb + c19ef98 commit 190f8ca

File tree

20 files changed

+21
-109
lines changed

20 files changed

+21
-109
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ jobs:
5151
- test2
5252
- test3
5353
- test4
54-
- test5
5554
- test6
5655
- test8
5756
- test9

README.md

Lines changed: 3 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.
@@ -50,6 +48,9 @@ each list element:
5048

5149
### slurm.conf
5250

51+
Note this role always operates in Slurm's [configless mode](https://slurm.schedmd.com/configless_slurm.html)
52+
where the `slurm.conf` configuration file is only present on the control node.
53+
5354
`openhpc_nodegroups`: Optional, default `[]`. List of mappings, each defining a
5455
unique set of homogenous nodes:
5556
* `name`: Required. Name of node group.

defaults/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ openhpc_cgroup_default_config:
4949
openhpc_config: {}
5050
openhpc_cgroup_config: {}
5151
openhpc_gres_template: gres.conf.j2
52-
openhpc_slurm_configless: "{{ 'enable_configless' in openhpc_config.get('SlurmctldParameters', []) }}"
5352

5453
openhpc_state_save_location: /var/spool/slurm
5554

molecule/README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,23 @@ Test options in "Other" column flow down through table unless changed.
66

77
Test | # Partitions | Groups in partitions? | Other
88
--- | --- | --- | ---
9-
test1 | 1 | N | 2x compute node, sequential names (default test), config on all nodes
9+
test1 | 1 | N | 2x compute node, sequential names (default test)
1010
test1b | 1 | N | 1x compute node
1111
test1c | 1 | N | 2x compute nodes, nonsequential names
1212
test2 | 2 | N | 4x compute node, sequential names
1313
test3 | 1 | Y | 4x compute nodes in 2x groups, single partition
1414
test4 | 1 | N | 2x compute node, accounting enabled
15-
test5 | 1 | N | As for #1 but configless
16-
test6 | 1 | N | 0x compute nodes, configless
15+
test5 | - | - | [removed, now always configless]
16+
test6 | 1 | N | 0x compute nodes
1717
test7 | 1 | N | [removed, image build should just run install.yml task, this is not expected to work]
18-
test8 | 1 | N | 2x compute node, 2x login-only nodes, configless
18+
test8 | 1 | N | 2x compute node, 2x login-only nodes
1919
test9 | 1 | N | As test8 but uses `--limit=testohpc-control,testohpc-compute-0` and checks login nodes still end up in slurm.conf
20-
test10 | 1 | N | As for #5 but then tries to add an additional node
21-
test11 | 1 | N | As for #5 but then deletes a node (actually changes the partition due to molecule/ansible limitations)
22-
test12 | 1 | N | As for #5 but enabling job completion and testing `sacct -c`
23-
test13 | 1 | N | As for #5 but tests `openhpc_config` variable.
24-
test14 | 1 | N | [removed, extra_nodes removed]
25-
test15 | 1 | Y | As for #5 but also tests `partitions with different name but with the same NodeName`.
26-
20+
test10 | 1 | N | As for #1 but then tries to add an additional node
21+
test11 | 1 | N | As for #1 but then deletes a node (actually changes the partition due to molecule/ansible limitations)
22+
test12 | 1 | N | As for #1 but enabling job completion and testing `sacct -c`
23+
test13 | 1 | N | As for #1 but tests `openhpc_config` variable.
24+
test14 | - | - | [removed, extra_nodes removed]
25+
test15 | 1 | Y | As for #1 but also tests partitions with different name but with the same NodeName.
2726

2827
# Local Installation & Running
2928

molecule/test10/converge.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
openhpc_nodegroups:
1111
- name: "compute"
1212
openhpc_cluster_name: testohpc
13-
openhpc_slurm_configless: true
1413
tasks:
1514
- name: "Include ansible-role-openhpc"
1615
include_role:

molecule/test10/verify.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
openhpc_nodegroups:
3333
- name: "compute"
3434
openhpc_cluster_name: testohpc
35-
openhpc_slurm_configless: true
3635

3736
- name: Check modified cluster has 3x nodes
3837
hosts: testohpc_login

molecule/test11/converge.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@
1414
openhpc_nodegroups:
1515
- name: "compute_orig"
1616
openhpc_cluster_name: testohpc
17-
openhpc_slurm_configless: true

molecule/test11/verify.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
openhpc_nodegroups:
3030
- name: "compute_new"
3131
openhpc_cluster_name: testohpc
32-
openhpc_slurm_configless: true
3332

3433
- name: Check modified cluster has 1x nodes
3534
hosts: testohpc_login

molecule/test12/converge.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@
1414
openhpc_nodegroups:
1515
- name: "compute"
1616
openhpc_cluster_name: testohpc
17-
openhpc_slurm_configless: true
1817
openhpc_slurm_job_comp_type: jobcomp/filetxt

molecule/test13/converge.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
openhpc_nodegroups:
1111
- name: "compute"
1212
openhpc_cluster_name: testohpc
13-
openhpc_slurm_configless: true
1413
openhpc_login_only_nodes: 'testohpc_login'
1514
openhpc_config:
1615
FirstJobId: 13

0 commit comments

Comments
 (0)