From febc13edfd4eef2df0ca2251364ec176d65a32b5 Mon Sep 17 00:00:00 2001
From: Christian Berendt <berendt@betacloud-solutions.de>
Date: Tue, 13 Sep 2016 09:35:19 +0200
Subject: [PATCH] Deprecate Fedora based Docker images

Change-Id: I84f01a93656ed9c9d828b4619753cb1bb806f74f
Partial-bug: #1616387
---
 doc/image-building.rst                                    | 5 +++++
 kolla/image/build.py                                      | 4 ++++
 releasenotes/notes/deprecate-fedora-97f8f963a410eb44.yaml | 6 ++++++
 3 files changed, 15 insertions(+)
 create mode 100644 releasenotes/notes/deprecate-fedora-97f8f963a410eb44.yaml

diff --git a/doc/image-building.rst b/doc/image-building.rst
index 6e15f84aa3..8794b120f5 100644
--- a/doc/image-building.rst
+++ b/doc/image-building.rst
@@ -50,6 +50,11 @@ There are following distros available for building images:
 - oraclelinux
 - ubuntu
 
+.. warning::
+
+   Fedora images are deprecated since Newton and will be removed
+   in the future.
+
 To push the image after building, add ``--push``::
 
     kolla-build --push
diff --git a/kolla/image/build.py b/kolla/image/build.py
index eee5b036b2..9da2fc0c4f 100644
--- a/kolla/image/build.py
+++ b/kolla/image/build.py
@@ -516,6 +516,10 @@ class KollaWorker(object):
                 '{} is unavailable for {}'.format(self.install_type, self.base)
             )
 
+        if self.base == 'fedora':
+            LOG.warning('Fedora images are deprecated since Newton and will '
+                        'be removed in the future')
+
         if self.install_type == 'binary':
             self.install_metatype = 'rdo'
         elif self.install_type == 'source':
diff --git a/releasenotes/notes/deprecate-fedora-97f8f963a410eb44.yaml b/releasenotes/notes/deprecate-fedora-97f8f963a410eb44.yaml
new file mode 100644
index 0000000000..797933d5ec
--- /dev/null
+++ b/releasenotes/notes/deprecate-fedora-97f8f963a410eb44.yaml
@@ -0,0 +1,6 @@
+---
+deprecations:
+  - Fedora based Docker images are deprecated as of the
+    Newton release and will be removed during the Ocata
+    cycle. Further details below the following URL
+    http://lists.openstack.org/pipermail/openstack-dev/2016-September/104011.html