From 3e7b01ad829e0c14396045cf147e719ad0a89ed2 Mon Sep 17 00:00:00 2001
From: Maksim Malchuk <maksim.malchuk@gmail.com>
Date: Fri, 20 May 2022 01:04:20 +0300
Subject: [PATCH] Fix forgotten hacluster regexp for image build

The 'overcloud container image build' command didn't build all the
hacluster images when hacluster is enabled.

TrivialFix

Change-Id: I9150e32579421e46782518948188e1363918fb39
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
---
 ansible/group_vars/all/kolla                                 | 2 ++
 .../notes/hacluster-build-issue-2a8023e0cd80235a.yaml        | 5 +++++
 2 files changed, 7 insertions(+)
 create mode 100644 releasenotes/notes/hacluster-build-issue-2a8023e0cd80235a.yaml

diff --git a/ansible/group_vars/all/kolla b/ansible/group_vars/all/kolla
index d6f6725e..efd540f9 100644
--- a/ansible/group_vars/all/kolla
+++ b/ansible/group_vars/all/kolla
@@ -155,6 +155,8 @@ overcloud_container_image_regex_map:
     enabled: "{{ kolla_enable_gnocchi | bool }}"
   - regex: ^grafana
     enabled: "{{ kolla_enable_grafana | bool }}"
+  - regex: ^hacluster
+    enabled: "{{ kolla_enable_hacluster | bool }}"
   - regex: ^haproxy$
     enabled: "{{ kolla_enable_haproxy | bool }}"
   - regex: ^heat
diff --git a/releasenotes/notes/hacluster-build-issue-2a8023e0cd80235a.yaml b/releasenotes/notes/hacluster-build-issue-2a8023e0cd80235a.yaml
new file mode 100644
index 00000000..ca80fdc0
--- /dev/null
+++ b/releasenotes/notes/hacluster-build-issue-2a8023e0cd80235a.yaml
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    Fixes an issue where hacluster images are not built when the service is
+    enabled.
-- 
GitLab