Skip to content

Commit dbaaa96

Browse files
authored
Merge branch 'main' into feat/compute-volume-type
2 parents f3013f0 + 66ca7fe commit dbaaa96

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
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

environments/common/inventory/groups

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@ compute
1717
# Login group to use for running mpi-based testing.
1818
login
1919

20+
[additional]
21+
# Additional nodes to include in "cluster" group
22+
# Automatically populated from OpenTofu variable additional_nodegroups
23+
2024
[cluster:children]
2125
# All nodes in the appliance - add e.g. service nodes not running Slurm here.
2226
openhpc
27+
additional
2328

2429
[builder]
2530
# Do not add hosts here manually - used as part of Packer image build pipeline. See packer/README.md.

environments/site/tofu/login.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module "login" {
4040
# not using openstack_compute_instance_v2.control.access_ip_v4 to avoid
4141
# updates to node metadata on deletion/recreation of the control node:
4242
control_address = openstack_networking_port_v2.control[var.cluster_networks[0].network].all_fixed_ips[0]
43-
security_group_ids = [for o in data.openstack_networking_secgroup_v2.login: o.id]
43+
security_group_ids = lookup(each.value, "security_group_ids", [for o in data.openstack_networking_secgroup_v2.login: o.id])
4444
baremetal_nodes = data.external.baremetal_nodes.result
4545

4646
# input dict validation:
@@ -63,5 +63,6 @@ module "login" {
6363
"ip_addresses",
6464
"gateway_ip",
6565
"nodename_template",
66+
"security_group_ids"
6667
]
6768
}

0 commit comments

Comments
 (0)