[kernel] Updating facts before disabling NICs

When we delete and recreate a stack multiple times, it can lead to
outdated facts and cause tripleo-kernel to disable nic1 when it
shouldn't. This happens when we have a bond/team on nic1 at some point
during the deployment.

Closes-Bug: #1906082

Signed-off-by: David Vallee Delisle <dvd@redhat.com>
Change-Id: I808daf58b606c717ab1bbae7d3d869d5baa67352
This commit is contained in:
David Vallee Delisle 2020-11-27 22:35:03 -05:00
parent ebda8c214a
commit 1166412e3b

View File

@ -27,6 +27,8 @@
# BOOTPROTO of all interface config files (except provisioning), will be set to "none" to avoid reboot failing to acquire IP on other networks # BOOTPROTO of all interface config files (except provisioning), will be set to "none" to avoid reboot failing to acquire IP on other networks
- name: Apply workaround for node reboot - name: Apply workaround for node reboot
block: block:
- name: Update facts before attempting to disable interfaces
setup:
- name: Find the ifcg files - name: Find the ifcg files
find: find:
paths: /etc/sysconfig/network-scripts/ paths: /etc/sysconfig/network-scripts/