Skip to content

Commit a9d48cd

Browse files
authored
Updating from Rocky8 plain images to Rocky9 (#5736)
2 parents 35da25e + 04643e4 commit a9d48cd

3 files changed

Lines changed: 18 additions & 11 deletions

File tree

community/examples/hpc-build-slurm-image.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ vars:
2424
zone: us-central1-a
2525

2626
image_build_machine_type: n2d-standard-16
27-
build_from_image_family: hpc-rocky-linux-8
27+
# Rocky 8: hpc-rocky-linux-8
28+
# Rocky 9: hpc-rocky-linux-9
29+
build_from_image_family: hpc-rocky-linux-9
2830
build_from_image_project: cloud-hpc-image-public
2931
build_from_git_ref: 6.12.1
3032
built_image_family: my-custom-slurm
@@ -49,15 +51,17 @@ deployment_groups:
4951
content: |
5052
#!/bin/bash
5153
set -e -o pipefail
52-
# Slurm build on Rocky8 will upgrade to python3.12 as part of build
53-
dnf install -y python3.12 python3.12-pip
54-
alternatives --set python3 /usr/bin/python3.12
55-
python3 -m pip install pip --upgrade
56-
python3 -m pip install ansible==8.7.0
57-
python3 -m pip install selinux
54+
# Slurm build will install and set python3.12 as the default python3
55+
dnf install -y python3.12 python3.12-pip perl-ExtUtils-MakeMaker perl-devel
56+
python3.12 -m pip install pip --upgrade
57+
python3.12 -m pip install ansible==8.7.0
5858
export PATH=/usr/local/bin:$PATH
5959
ansible --version
60-
ansible-galaxy role install googlecloudplatform.google_cloud_ops_agents
60+
n=0
61+
until [ "$n" -ge 3 ] || ansible-galaxy role install googlecloudplatform.google_cloud_ops_agents; do
62+
((n=n+1))
63+
sleep 5
64+
done
6165
- type: data
6266
destination: /var/tmp/slurm_vars.json
6367
content: |
@@ -67,7 +71,8 @@ deployment_groups:
6771
"nvidia_version": "latest",
6872
"install_ompi": true,
6973
"install_lustre": false,
70-
"install_gcsfuse": true
74+
"install_gcsfuse": true,
75+
"monitoring_agent": "cloud-ops"
7176
}
7277
- type: shell
7378
destination: install_slurm.sh

community/examples/hpc-slurm6-apptainer.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ deployment_groups:
6363
settings:
6464
source_image_project_id: [schedmd-slurm-public]
6565
# see latest in https://github.com/GoogleCloudPlatform/slurm-gcp/blob/master/docs/images.md#published-image-family
66-
source_image_family: slurm-gcp-6-12-hpc-rocky-linux-8
66+
# Rocky 8: slurm-gcp-6-12-hpc-rocky-linux-8
67+
# Rocky 9: slurm-gcp-6-12-hpc-rocky-linux-9
68+
source_image_family: slurm-gcp-6-12-hpc-rocky-linux-9
6769
# You can find size of source image by using following command
6870
# gcloud compute images describe-from-family <source_image_family> --project schedmd-slurm-public
6971
disk_size: $(vars.disk_size)

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ For this example the following is needed in the selected region:
878878
### [hpc-build-slurm-image.yaml] ![community-badge] ![experimental-badge]
879879

880880
This blueprint demonstrates how to use Cluster Toolkit to build a Slurm image on top
881-
of an existing image, `hpc-rocky-linux-8` in the case of this example.
881+
of an existing image, `hpc-rocky-linux-9` in the case of this example.
882882

883883
The blueprint contains 3 groups:
884884

0 commit comments

Comments
 (0)