Skip to content

Commit 4c25181

Browse files
authored
don't set topology plugin if topology not enabled (#754)
1 parent b7bd7a9 commit 4c25181

File tree

1 file changed

+9
-4
lines changed
  • environments/common/inventory/group_vars/all

1 file changed

+9
-4
lines changed

environments/common/inventory/group_vars/all/openhpc.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,31 +51,36 @@ openhpc_state_save_location: "{{ appliances_state_dir + '/slurmctld' if applianc
5151
# NB: override in environments/site/inventory/group_vars/all/openhpc.yml, not here:
5252
openhpc_config_extra: {}
5353

54-
# default additional slurm.conf parameters for the appliance:
54+
# additional default slurm.conf parameters for the appliance:
5555
openhpc_config_default:
5656
TaskPlugin: task/cgroup,task/affinity
5757
ReturnToService: 2 # workaround for templating bug TODO: Remove once on stackhpc.openhpc v1.2.0
58-
TopologyPlugin: "topology/{{ 'tree' if (topology_nodes | length) > 0 else 'flat' }}"
5958

60-
# default additional slurm.conf parameters when "rebuild" enabled:
59+
# additional default slurm.conf parameters when "rebuild" enabled:
6160
openhpc_config_rebuild:
6261
RebootProgram: /opt/slurm-tools/bin/slurm-openstack-rebuild
6362
SlurmctldParameters:
6463
- reboot_from_controller
6564
ResumeTimeout: 300
6665

67-
# default additional slurm.conf parameters when "nhc" enabled:
66+
# additional default slurm.conf parameters when "nhc" enabled:
6867
openhpc_config_nhc:
6968
HealthCheckProgram: /usr/sbin/nhc
7069
HealthCheckInterval: 300
7170
HealthCheckNodeState: NONDRAINED_IDLE
7271

72+
# additional default slurm.conf parameters when "topology" enabled:
73+
openhpc_config_topology:
74+
TopologyPlugin: topology/tree
75+
7376
# indirection to allow automatic construction of slurm.conf parameters:
7477
openhpc_config_groups:
7578
- enabled: "{{ groups['rebuild'] | length > 0 }}"
7679
config: "{{ openhpc_config_rebuild }}"
7780
- enabled: "{{ groups['nhc'] | length > 0 }}"
7881
config: "{{ openhpc_config_nhc }}"
82+
- enabled: "{{ groups['topology'] | length > 0 }}"
83+
config: "{{ openhpc_config_topology }}"
7984
- enabled: true
8085
config: "{{ openhpc_config_extra }}"
8186

0 commit comments

Comments
 (0)