Skip to content

Commit 8113fbe

Browse files
authored
Merge pull request #635 from stackhpc/bugfix/wait-for-nfs-cloud-init
Compute-Init: wait for cloud-init before NFS mount
2 parents 0aec76c + 07cebd1 commit 8113fbe

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

ansible/roles/compute_init/files/compute-init.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@
6161
owner: slurm
6262
group: root
6363
mode: u=rX,g=rwX,o=
64-
64+
65+
- name: Wait for NFS to reachable (checks host network up)
66+
ansible.builtin.wait_for:
67+
port: 2049
68+
host: '{{ server_node_ip }}'
69+
timeout: 120
70+
6571
- name: Mount /mnt/cluster
6672
mount:
6773
path: /mnt/cluster
@@ -70,8 +76,6 @@
7076
opts: ro,sync
7177
state: mounted
7278
register: _mount_mnt_cluster
73-
ignore_errors: true
74-
# TODO: add some retries here?
7579

7680
- block:
7781
- name: Report skipping initialization if cannot mount nfs
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"cluster_image": {
3-
"RL8": "openhpc-RL8-250326-1048-3e132168",
4-
"RL9": "openhpc-RL9-250326-1049-3e132168"
3+
"RL8": "openhpc-RL8-250331-1627-cccd6c9c",
4+
"RL9": "openhpc-RL9-250331-1627-cccd6c9c"
55
}
66
}

0 commit comments

Comments
 (0)