Skip to content

Compute-Init: wait for cloud-init before NFS mount #635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions ansible/roles/compute_init/files/compute-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@
owner: slurm
group: root
mode: u=rX,g=rwX,o=


- name: Wait for NFS to reachable (checks host network up)
ansible.builtin.wait_for:
port: 2049
host: '{{ server_node_ip }}'
timeout: 120

- name: Mount /mnt/cluster
mount:
path: /mnt/cluster
Expand All @@ -70,8 +76,6 @@
opts: ro,sync
state: mounted
register: _mount_mnt_cluster
ignore_errors: true
# TODO: add some retries here?

- block:
- name: Report skipping initialization if cannot mount nfs
Expand Down
4 changes: 2 additions & 2 deletions environments/.stackhpc/tofu/cluster_image.auto.tfvars.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"cluster_image": {
"RL8": "openhpc-RL8-250326-1048-3e132168",
"RL9": "openhpc-RL9-250326-1049-3e132168"
"RL8": "openhpc-RL8-250331-1627-cccd6c9c",
"RL9": "openhpc-RL9-250331-1627-cccd6c9c"
}
}