From 1166412e3bc0d6822ab32f5b405c5ab7593d9883 Mon Sep 17 00:00:00 2001 From: David Vallee Delisle Date: Fri, 27 Nov 2020 22:35:03 -0500 Subject: [PATCH] [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 Change-Id: I808daf58b606c717ab1bbae7d3d869d5baa67352 --- tripleo_ansible/roles/tripleo_kernel/tasks/reboot.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tripleo_ansible/roles/tripleo_kernel/tasks/reboot.yaml b/tripleo_ansible/roles/tripleo_kernel/tasks/reboot.yaml index 26f6f22ba..1c82a6b6b 100644 --- a/tripleo_ansible/roles/tripleo_kernel/tasks/reboot.yaml +++ b/tripleo_ansible/roles/tripleo_kernel/tasks/reboot.yaml @@ -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 - name: Apply workaround for node reboot block: + - name: Update facts before attempting to disable interfaces + setup: - name: Find the ifcg files find: paths: /etc/sysconfig/network-scripts/