Skip to content

Commit

Permalink
Merge pull request #614 from rajan-mis/nsd_sync
Browse files Browse the repository at this point in the history
NSD active logic check to compare inventory defined nsd with system e…
  • Loading branch information
rajan-mis authored Mar 18, 2022
2 parents 9612a0b + 45393cd commit 7fdce47
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions roles/core/cluster/tasks/storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,24 @@
- item.size > 1
with_items: "{{ scale_storage_stanzafile_new.results }}"

- name: storage | Wait for NSD configuration to be synced across cluster
wait_for:
timeout: 30
- block:
- debug:
msg: Wait for 60 second for NSD configuration to be synced across cluster. Please be patient...

- name: storage | Wait for NSD configuration to be synced across cluster
wait_for:
timeout: 60

- name: storage | wait-nsd-active
shell: /usr/lpp/mmfs/bin/mmlsnsd -a -Y | grep -v HEADER | cut -d ':' -f 8
register: scale_existig_nsd_list
until:
- ((scale_existig_nsd_list.stdout_lines) | length) >= (scale_storage_nsddefs | unique | length)
retries: 12
delay: 20
changed_when: false
when: scale_storage_nsddefs | length > 0
run_once: true

#
# Create new filesystems
Expand Down

0 comments on commit 7fdce47

Please sign in to comment.