Skip to content

Commit b2333f3

Browse files
author
Matt Pryor
authored
Changes to make the appliance work with the CaaS operator (#38)
* Update dependencies * Bump Terraform collection * Bump version of terraform collection * Make partitions available to openstack group * Allow the use of flavor IDs in partition definition * Add the community.mysql dependency back in * Fix errors with warn arg * Update submodule to use branch with fixes * Update node-exporter dependency after merge * Terraform changes merged * Slurm appliance changes merged
1 parent d06f415 commit b2333f3

File tree

5 files changed

+25
-13
lines changed

5 files changed

+25
-13
lines changed

group_vars/openhpc.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,4 @@ openhpc_cluster_name: "{{ cluster_name }}"
22

33
# Provision a single "standard" compute partition using the supplied
44
# node count and flavor
5-
openhpc_slurm_partitions:
6-
- name: "standard"
7-
count: "{{ compute_count }}"
8-
flavor_name: "{{ compute_flavor }}"
9-
default: "YES"
5+
openhpc_slurm_partitions: "{{ hostvars[groups['openstack'][0]]['openhpc_slurm_partitions'] }}"

group_vars/openstack.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ cluster_ssh_user: rocky
1919

2020
# Set the size of the state volume to metrics_db_maximum_size + 10
2121
state_volume_size: "{{ metrics_db_maximum_size + 10 }}"
22+
23+
# Provision a single "standard" compute partition using the supplied
24+
# node count and flavor
25+
openhpc_slurm_partitions:
26+
- name: "standard"
27+
count: "{{ compute_count }}"
28+
flavor: "{{ compute_flavor }}"
29+
default: "YES"

requirements.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ roles:
66
version: v0.20.0 # Allow multiple empty partitions by @sjpb in #156
77
name: stackhpc.openhpc
88
- src: https://github.com/stackhpc/ansible-node-exporter.git
9-
version: feature/no-install
9+
version: c9ec08364b91d4097168528699829e6c9c0d38b6 # stackhpc-fixes
1010
name: cloudalchemy.node_exporter
1111
- src: https://github.com/cloudalchemy/ansible-prometheus.git
1212
version: 4d2c8d742de39e50387e0aa6d5510b21c7451343 # need fix in preceeding commit for rocky
@@ -15,27 +15,31 @@ roles:
1515
version: 0.19.1
1616
- src: https://github.com/stackhpc/ansible-grafana.git
1717
name: cloudalchemy.grafana
18-
version: service-state
19-
# No versions available
18+
version: 27b57570400deda29dbe32ddcb07558f4e957e4e # service-state
2019
- src: https://github.com/OSC/ood-ansible.git
2120
name: osc.ood
2221
version: v2.0.8
2322

2423
collections:
2524
- name: containers.podman
25+
version: 1.10.2
2626
- name: community.grafana
27+
version: 1.5.4
2728
- name: https://github.com/stackhpc/ansible_collection_slurm_openstack_tools
2829
type: git
2930
version: v0.2.0
3031
- name: ansible.posix
32+
version: 1.5.4
3133
- name: ansible.netcommon
34+
version: 5.1.1
3235
- name: community.general
33-
version: 4.5.0 # https://github.com/ansible-collections/community.general/pull/4281
36+
version: 7.1.0
3437
- name: community.crypto
3538
version: 2.10.0
39+
- name: community.mysql
40+
version: 3.7.2
3641
- name: openstack.cloud
37-
version: 1.10.0
42+
version: 2.1.0
3843
- name: https://github.com/stackhpc/ansible-collection-terraform
3944
type: git
40-
version: dadf2e81b78cfd267821c568f92d3a8da6541a41
41-
45+
version: 1a8f5af0239de2bfedb37f51e20d973e05699b8a # main @ 20230627

roles/cluster_infra/templates/resources.tf.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,11 @@ resource "openstack_compute_instance_v2" "{{ partition.name }}" {
379379

380380
name = "{{ cluster_name }}-compute-{{ partition.name }}-${count.index}"
381381
image_id = "{{ cluster_previous_image | default(cluster_image) }}"
382+
{% if 'flavor_name' in partition %}
382383
flavor_name = "{{ partition.flavor_name }}"
384+
{% else %}
385+
flavor_id = "{{ partition.flavor }}"
386+
{% endif %}
383387

384388
network {
385389
port = openstack_networking_port_v2.{{ partition.name }}[count.index].id

0 commit comments

Comments
 (0)