Skip to content

Commit

Permalink
harden reset to work in more cases (kubernetes-sigs#6781)
Browse files Browse the repository at this point in the history
reset playbook fails and does not continue cleanup after for
example a host reboot with kubelet stopped/disabled
  • Loading branch information
hafe authored and LuckySB committed Jan 16, 2021
1 parent d6b45b4 commit 8fb3d02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/reset/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,15 @@
warn: false
check_mode: no
register: mounted_dirs
failed_when: false
tags:
- mounts

- name: reset | unmount kubelet dirs # noqa 301
command: umount -f {{ item }}
with_items: "{{ mounted_dirs.stdout_lines }}"
register: umount_dir
when: mounted_dirs
retries: 4
until: umount_dir.rc == 0
delay: 5
Expand Down

0 comments on commit 8fb3d02

Please sign in to comment.