From a6c97d7284c7de437ebfc9f8ee289244f29e65d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= <radoslaw.piliszek@gmail.com>
Date: Tue, 18 Feb 2020 21:17:58 +0100
Subject: [PATCH] Deprecate deployment of MongoDB

Per http://eavesdrop.openstack.org/meetings/kolla/2020/kolla.2020-02-12-15.01.txt

Deprecates support for deploying MongoDB. In Victoria support for
deploying MongoDB will be removed from Kolla Ansible. Note CentOS 8
already lost support for MongoDB due to decisions made upstream.

This affects Panko as it will no longer be possible to get automatic
deployment of MongoDB database for it. However, the default, SQL,
backend is and will be supported via MariaDB.

MongoDB lost its position in OpenStack environment after
controversial relicensing under their custom SSPL (Server Side
Public License) which did not pass OSI (Open Source Initiative)
validation.

Change-Id: I09f77d275dfd2c8f9ae97a47c8ab1136a8de880f
---
 .../notes/deprecate-mongodb-94590c00eb29e788.yaml | 15 +++++++++++++++
 ansible/roles/mongodb/tasks/main.yml              |  6 ++++++
 2 files changed, 21 insertions(+)
 create mode 100644 ansible/releasenotes/notes/deprecate-mongodb-94590c00eb29e788.yaml

diff --git a/ansible/releasenotes/notes/deprecate-mongodb-94590c00eb29e788.yaml b/ansible/releasenotes/notes/deprecate-mongodb-94590c00eb29e788.yaml
new file mode 100644
index 0000000000..da0e746c6c
--- /dev/null
+++ b/ansible/releasenotes/notes/deprecate-mongodb-94590c00eb29e788.yaml
@@ -0,0 +1,15 @@
+---
+deprecations:
+  - |
+    Deprecates support for deploying MongoDB. In Victoria support for
+    deploying MongoDB will be removed from Kolla Ansible. Note CentOS 8
+    already lost support for MongoDB due to decisions made upstream.
+
+    This affects Panko as it will no longer be possible to get automatic
+    deployment of MongoDB database for it. However, the default, SQL,
+    backend is and will be supported via MariaDB.
+
+    MongoDB lost its position in OpenStack environment after
+    controversial relicensing under their custom SSPL (Server Side
+    Public License) which did not pass OSI (Open Source Initiative)
+    validation.
diff --git a/ansible/roles/mongodb/tasks/main.yml b/ansible/roles/mongodb/tasks/main.yml
index bc5d1e6257..a33a2c355b 100644
--- a/ansible/roles/mongodb/tasks/main.yml
+++ b/ansible/roles/mongodb/tasks/main.yml
@@ -1,2 +1,8 @@
 ---
+- name: Warn about deprecation
+  debug:
+    msg: >
+      MongoDB deployment role is deprecated in Ussuri and will be removed in
+      Victoria. Please read release notes for more background.
+
 - include_tasks: "{{ kolla_action }}.yml"