add timeout to drain step
register: result_node_schedulable
until: result_node_schedulable|succeeded
+# Attempt to drain nodes for 2 hours before giving up. Continue with upgrade if drain fails after that long
- name: Drain Node (when specified)
command: /usr/bin/oadm drain "{{ node_dns_name }}" --force --delete-local-data --ignore-daemonsets
delegate_to: "{{ osns_cluster_master }}"
- retries: 10
- delay: 5
register: result_drain
- until: result_drain|succeeded
when: osns_drain is defined
+ async: 7200
+ poll: 60
+ ignore_errors: True
