Revert "[vhost_reboot] Try to get the os code to work"

This reverts commit 899a127f7ae1ffbbe935d45f640b9ac50e8d499c.
This commit is contained in:
Stephen Smoogen 2020-01-15 21:53:42 +00:00 committed by Pierre-Yves Chibon
parent 2b4c012300
commit 7aedb805bb

View file

@ -47,17 +47,17 @@
- name: figure out which node to delegate os cordon to
set_fact:
os_delegate_via: os-master01
when: hostvars[inventory_hostname]['vmhost'] != hostvars['os-master01.phx2.fedoraproject.org']['vmhost']
when: hostvars[inventory_hostname].vmhost != hostvars['os-master01.phx2.fedoraproject.org'].vmhost
- name: figure out which node to delegate os cordon to
set_fact:
os_delegate_via: os-master02
when: hostvars[inventory_hostname]['vmhost'] != hostvars['os-master02.phx2.fedoraproject.org']['vmhost']
when: hostvars[inventory_hostname].vmhost != hostvars['os-master02.phx2.fedoraproject.org'].vmhost
- name: figure out which node to delegate os cordon to
set_fact:
os_delegate_via: os-master03
when: hostvars[inventory_hostname]['vmhost'] != hostvars['os-master03.phx2.fedoraproject.org']['vmhost']
when: hostvars[inventory_hostname].vmhost != hostvars['os-master03.phx2.fedoraproject.org'].vmhost
- name: drain OS node if necessary
command: oc adm drain {{inventory_hostname }} --ignore-daemonsets --delete-local-data
@ -129,17 +129,17 @@
- name: figure out which node to delegate os uncordon to
set_fact:
os_delegate_via: os-master01
when: hostvars[inventory_hostname]['vmhost'] != hostvars['os-master01.phx2.fedoraproject.org']['vmhost']
when: hostvars[inventory_hostname].vmhost != hostvars['os-master01.phx2.fedoraproject.org'].vmhost
- name: figure out which node to delegate os uncordon to
set_fact:
os_delegate_via: os-master02
when: hostvars[inventory_hostname]['vmhost'] != hostvars['os-master02.phx2.fedoraproject.org']['vmhost']
when: hostvars[inventory_hostname].vmhost != hostvars['os-master02.phx2.fedoraproject.org'].vmhost
- name: figure out which node to delegate os uncordon to
set_fact:
os_delegate_via: os-master03
when: hostvars[inventory_hostname]['vmhost'] != hostvars['os-master03.phx2.fedoraproject.org']['vmhost']
when: hostvars[inventory_hostname].vmhost != hostvars['os-master03.phx2.fedoraproject.org'].vmhost
- name: Add back to openshift
command: oc adm uncordon {{inventory_hostname}}