From bb9da9fb2428149b3f213268c7cfd6575edf787d Mon Sep 17 00:00:00 2001
From: Will Szumski <will@stackhpc.com>
Date: Thu, 10 Mar 2022 16:51:38 +0000
Subject: [PATCH] Only create patch links on overcloud hosts

These are only neccesary on network and compute nodes.

Co-authored-by: Mark Goddard <mark@stackhpc.com>

Change-Id: Id5af3969da63150e892201f7518f50a3da73e852
Story: 2009911
Task: 44740
---
 ansible/roles/network-redhat/tasks/main.yml                 | 1 +
 .../notes/patch-links-on-overcloud-e24dbc858d3399cc.yaml    | 6 ++++++
 2 files changed, 7 insertions(+)
 create mode 100644 releasenotes/notes/patch-links-on-overcloud-e24dbc858d3399cc.yaml

diff --git a/ansible/roles/network-redhat/tasks/main.yml b/ansible/roles/network-redhat/tasks/main.yml
index 27aa92d7..2ff5b5c8 100644
--- a/ansible/roles/network-redhat/tasks/main.yml
+++ b/ansible/roles/network-redhat/tasks/main.yml
@@ -46,3 +46,4 @@
     name: veth
   vars:
     veth_interfaces: "{{ network_interfaces | net_ovs_veths }}"
+  when: "'overcloud' in group_names"
diff --git a/releasenotes/notes/patch-links-on-overcloud-e24dbc858d3399cc.yaml b/releasenotes/notes/patch-links-on-overcloud-e24dbc858d3399cc.yaml
new file mode 100644
index 00000000..d5137eca
--- /dev/null
+++ b/releasenotes/notes/patch-links-on-overcloud-e24dbc858d3399cc.yaml
@@ -0,0 +1,6 @@
+---
+fixes:
+  - |
+    Fixes an issue where patch links could be erroneously created
+    on hosts not in the overcloud group. See `Story 2009911
+    <https://storyboard.openstack.org/#!/story/2009911>`__ for details.
-- 
GitLab