From 451844ac678324ce6e76cf1f5a93fc4e5c582835 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Nasiadka?= <mnasiadka@gmail.com>
Date: Wed, 14 Apr 2021 15:04:46 +0200
Subject: [PATCH] mariadb: Deprecate wsrep-notify.sh

Change-Id: I14376dac46809f8bb466ec41f279be8d323d459d
---
 ansible/roles/mariadb/tasks/config.yml                    | 6 ++++++
 .../notes/deprecate-wsrep-notify-d21ab17425e5065c.yaml    | 8 ++++++++
 2 files changed, 14 insertions(+)
 create mode 100644 releasenotes/notes/deprecate-wsrep-notify-d21ab17425e5065c.yaml

diff --git a/ansible/roles/mariadb/tasks/config.yml b/ansible/roles/mariadb/tasks/config.yml
index 2e9ceb75f..ffe740386 100644
--- a/ansible/roles/mariadb/tasks/config.yml
+++ b/ansible/roles/mariadb/tasks/config.yml
@@ -82,6 +82,12 @@
   notify:
     - restart mariadb
 
+- name: Warn about deprecation
+  debug:
+    msg: >
+      wsrep-notify.sh script is deprecated and will be removed in Xena
+  when: not enable_mariadb_clustercheck | bool
+
 - name: Copying over wsrep-notify.sh
   template:
     src: "{{ role_path }}/templates/wsrep-notify.sh.j2"
diff --git a/releasenotes/notes/deprecate-wsrep-notify-d21ab17425e5065c.yaml b/releasenotes/notes/deprecate-wsrep-notify-d21ab17425e5065c.yaml
new file mode 100644
index 000000000..9217ca2cd
--- /dev/null
+++ b/releasenotes/notes/deprecate-wsrep-notify-d21ab17425e5065c.yaml
@@ -0,0 +1,8 @@
+---
+deprecations:
+  - |
+    The ``wsrep-notify.sh`` script used for disabling ``haproxy`` user when
+    node is not ready for accepting connections in deployments without
+    ``mariadb-clustercheck`` is deprecated and will be removed in Xena
+    release. It has been unreliable and the recommended (enabled by default)
+    approach is to deploy ``mariadb-clustercheck``.
-- 
GitLab