Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Fixed some typos retrying failed oc debug commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmkraus committed Aug 2, 2021
1 parent 5544fe2 commit 2c902ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/playbooks/deploy.d/container-storage/local-storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
changed_when: false
retries: 10
delay: 1
until: cluster_drives is success
until: drive_id_lkp is success

- name: save storage node drive id paths
set_fact:
Expand Down
14 changes: 7 additions & 7 deletions app/playbooks/deploy.d/wipefs/wipe-host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,38 @@
ignore_errors: true
retries: 10
delay: 1
until: cluster_drives is success
until: vgs is success

- name: delete associated vgs
shell: "oc debug -n default node/{{ outer.host }} -- chroot /host vgremove --force --noudevsync '{{ item.stdout }}'"
changed_when: true
when: item.stdout != ""
loop: "{{ vgs.results }}"
register: vg_delete
retries: 10
delay: 1
until: cluster_drives is success
until: vg_delete is success

- name: remove pvs
shell: "oc debug -n default node/{{ outer.host }} -- chroot /host pvremove '/dev/{{ item }}'"
loop: "{{ outer.drives }}"
changed_when: true
ignore_errors: true
retries: 10
delay: 1
until: cluster_drives is success

- name: wipe filesystem
shell: "oc debug -n default node/{{ outer.host }} -- chroot /host wipefs -a '/dev/{{ item }}'"
loop: "{{ outer.drives }}"
changed_when: true
register: wipefs
retries: 10
delay: 1
until: cluster_drives is success
until: wipefs is success

- name: clear GPT and MBR structures
shell: "oc debug -n default node/{{ outer.host }} -- chroot /host sgdisk --zap-all '/dev/{{ item }}'"
loop: "{{ outer.drives }}"
changed_when: true
register: sgdisk
retries: 10
delay: 1
until: cluster_drives is success
until: sgdisk is success

0 comments on commit 2c902ef

Please sign in to comment.