Blame SOURCES/sos-bz1638638-openstack-relax-enabling-plugins.patch

fce3c4
From 9b3d0b7d8732f53dbbd5e02182a9b0a0e1d6d249 Mon Sep 17 00:00:00 2001
fce3c4
From: Pavel Moravec <pmoravec@redhat.com>
fce3c4
Date: Fri, 31 Aug 2018 17:19:32 +0200
fce3c4
Subject: [PATCH 1/2] [openstack_nova] remove too restrictive check_enabled
fce3c4
fce3c4
Enable the plugin just based on package presence.
fce3c4
fce3c4
Resolves: #1411
fce3c4
fce3c4
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
fce3c4
---
fce3c4
 sos/plugins/openstack_nova.py | 8 --------
fce3c4
 1 file changed, 8 deletions(-)
fce3c4
fce3c4
diff --git a/sos/plugins/openstack_nova.py b/sos/plugins/openstack_nova.py
fce3c4
index b041a59a..77c3b49a 100644
fce3c4
--- a/sos/plugins/openstack_nova.py
fce3c4
+++ b/sos/plugins/openstack_nova.py
fce3c4
@@ -200,10 +200,6 @@ class DebianNova(OpenStackNova, DebianPlugin, UbuntuPlugin):
fce3c4
         'python-novnc'
fce3c4
     )
fce3c4
 
fce3c4
-    def check_enabled(self):
fce3c4
-        self.nova = self.is_installed("nova-common")
fce3c4
-        return self.nova
fce3c4
-
fce3c4
     def setup(self):
fce3c4
         super(DebianNova, self).setup()
fce3c4
         self.add_copy_spec([
fce3c4
@@ -233,10 +229,6 @@ class RedHatNova(OpenStackNova, RedHatPlugin):
fce3c4
         'novnc'
fce3c4
     )
fce3c4
 
fce3c4
-    def check_enabled(self):
fce3c4
-        self.nova = self.is_installed("openstack-nova-common")
fce3c4
-        return self.nova
fce3c4
-
fce3c4
     def setup(self):
fce3c4
         super(RedHatNova, self).setup()
fce3c4
         self.add_copy_spec([
fce3c4
-- 
fce3c4
2.17.1
fce3c4
fce3c4
fce3c4
From f8ee9c4b87c6c3b8aa2bda3425f0e53499515363 Mon Sep 17 00:00:00 2001
fce3c4
From: Pavel Moravec <pmoravec@redhat.com>
fce3c4
Date: Fri, 31 Aug 2018 20:04:47 +0200
fce3c4
Subject: [PATCH 2/2] [openstack_*] relax enabling of OSP RedHat plugins
fce3c4
fce3c4
Allow automatic enabling of OSP packages also on containerized
fce3c4
environment.
fce3c4
fce3c4
Relevant to: #1411
fce3c4
fce3c4
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
fce3c4
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
fce3c4
---
fce3c4
 sos/plugins/openstack_aodh.py       |  8 +-------
fce3c4
 sos/plugins/openstack_ceilometer.py | 10 +---------
fce3c4
 sos/plugins/openstack_cinder.py     | 12 +-----------
fce3c4
 sos/plugins/openstack_glance.py     |  5 +----
fce3c4
 sos/plugins/openstack_heat.py       | 10 +---------
fce3c4
 sos/plugins/openstack_horizon.py    |  5 +----
fce3c4
 sos/plugins/openstack_instack.py    | 14 +-------------
fce3c4
 sos/plugins/openstack_ironic.py     |  6 +-----
fce3c4
 sos/plugins/openstack_keystone.py   |  7 +------
fce3c4
 sos/plugins/openstack_manila.py     |  9 +--------
fce3c4
 sos/plugins/openstack_neutron.py    | 21 +--------------------
fce3c4
 sos/plugins/openstack_nova.py       | 18 +-----------------
fce3c4
 sos/plugins/openstack_octavia.py    | 13 +++++++++++--
fce3c4
 sos/plugins/openstack_sahara.py     |  7 +------
fce3c4
 sos/plugins/openstack_swift.py      | 10 +---------
fce3c4
 sos/plugins/openstack_trove.py      |  2 +-
fce3c4
 16 files changed, 26 insertions(+), 131 deletions(-)
fce3c4
fce3c4
diff --git a/sos/plugins/openstack_aodh.py b/sos/plugins/openstack_aodh.py
fce3c4
index 9fcdf932..2c9057a6 100644
fce3c4
--- a/sos/plugins/openstack_aodh.py
fce3c4
+++ b/sos/plugins/openstack_aodh.py
fce3c4
@@ -18,13 +18,7 @@ class OpenStackAodh(Plugin, RedHatPlugin):
fce3c4
     plugin_name = "openstack_aodh"
fce3c4
     profiles = ('openstack', 'openstack_controller')
fce3c4
 
fce3c4
-    packages = (
fce3c4
-        'openstack-aodh-api',
fce3c4
-        'openstack-aodh-listener',
fce3c4
-        'openstack-aodh-notifier',
fce3c4
-        'openstack-aodh-evaluator,'
fce3c4
-        'openstack-aodh-common'
fce3c4
-    )
fce3c4
+    packages = ('openstack-selinux',)
fce3c4
 
fce3c4
     requires_root = False
fce3c4
 
fce3c4
diff --git a/sos/plugins/openstack_ceilometer.py b/sos/plugins/openstack_ceilometer.py
fce3c4
index 3bdd74c8..bb89fa68 100644
fce3c4
--- a/sos/plugins/openstack_ceilometer.py
fce3c4
+++ b/sos/plugins/openstack_ceilometer.py
fce3c4
@@ -86,15 +86,7 @@ class DebianCeilometer(OpenStackCeilometer, DebianPlugin,
fce3c4
 
fce3c4
 class RedHatCeilometer(OpenStackCeilometer, RedHatPlugin):
fce3c4
 
fce3c4
-    packages = (
fce3c4
-        'openstack-ceilometer',
fce3c4
-        'openstack-ceilometer-api',
fce3c4
-        'openstack-ceilometer-central',
fce3c4
-        'openstack-ceilometer-collector',
fce3c4
-        'openstack-ceilometer-common',
fce3c4
-        'openstack-ceilometer-compute',
fce3c4
-        'python-ceilometerclient'
fce3c4
-    )
fce3c4
+    packages = ('openstack-selinux',)
fce3c4
 
fce3c4
     def setup(self):
fce3c4
         super(RedHatCeilometer, self).setup()
fce3c4
diff --git a/sos/plugins/openstack_cinder.py b/sos/plugins/openstack_cinder.py
fce3c4
index f097fd5b..4fa753c4 100644
fce3c4
--- a/sos/plugins/openstack_cinder.py
fce3c4
+++ b/sos/plugins/openstack_cinder.py
fce3c4
@@ -130,10 +130,6 @@ class DebianCinder(OpenStackCinder, DebianPlugin, UbuntuPlugin):
fce3c4
         'python-cinderclient'
fce3c4
     )
fce3c4
 
fce3c4
-    def check_enabled(self):
fce3c4
-        self.cinder = self.is_installed("cinder-common")
fce3c4
-        return self.cinder
fce3c4
-
fce3c4
     def setup(self):
fce3c4
         super(DebianCinder, self).setup()
fce3c4
 
fce3c4
@@ -141,13 +137,7 @@ class DebianCinder(OpenStackCinder, DebianPlugin, UbuntuPlugin):
fce3c4
 class RedHatCinder(OpenStackCinder, RedHatPlugin):
fce3c4
 
fce3c4
     cinder = False
fce3c4
-    packages = ('openstack-cinder',
fce3c4
-                'python-cinder',
fce3c4
-                'python-cinderclient')
fce3c4
-
fce3c4
-    def check_enabled(self):
fce3c4
-        self.cinder = self.is_installed("openstack-cinder")
fce3c4
-        return self.cinder
fce3c4
+    packages = ('openstack-selinux',)
fce3c4
 
fce3c4
     def setup(self):
fce3c4
         super(RedHatCinder, self).setup()
fce3c4
diff --git a/sos/plugins/openstack_glance.py b/sos/plugins/openstack_glance.py
fce3c4
index fa68dd8e..bfb5f9fe 100644
fce3c4
--- a/sos/plugins/openstack_glance.py
fce3c4
+++ b/sos/plugins/openstack_glance.py
fce3c4
@@ -130,9 +130,6 @@ class DebianGlance(OpenStackGlance, DebianPlugin, UbuntuPlugin):
fce3c4
 
fce3c4
 class RedHatGlance(OpenStackGlance, RedHatPlugin):
fce3c4
 
fce3c4
-    packages = (
fce3c4
-        'openstack-glance',
fce3c4
-        'python-glanceclient'
fce3c4
-    )
fce3c4
+    packages = ('openstack-selinux',)
fce3c4
 
fce3c4
 # vim: set et ts=4 sw=4 :
fce3c4
diff --git a/sos/plugins/openstack_heat.py b/sos/plugins/openstack_heat.py
fce3c4
index 26f3f511..1dab72d0 100644
fce3c4
--- a/sos/plugins/openstack_heat.py
fce3c4
+++ b/sos/plugins/openstack_heat.py
fce3c4
@@ -152,14 +152,6 @@ class DebianHeat(OpenStackHeat, DebianPlugin, UbuntuPlugin):
fce3c4
 
fce3c4
 class RedHatHeat(OpenStackHeat, RedHatPlugin):
fce3c4
 
fce3c4
-    packages = (
fce3c4
-        'openstack-heat-api',
fce3c4
-        'openstack-heat-api-cfn',
fce3c4
-        'openstack-heat-api-cloudwatch',
fce3c4
-        'openstack-heat-cli',
fce3c4
-        'openstack-heat-common',
fce3c4
-        'openstack-heat-engine',
fce3c4
-        'python-heatclient'
fce3c4
-    )
fce3c4
+    packages = ('openstack-selinux',)
fce3c4
 
fce3c4
 # vim: set et ts=4 sw=4 :
fce3c4
diff --git a/sos/plugins/openstack_horizon.py b/sos/plugins/openstack_horizon.py
fce3c4
index 677a7c28..4299d8db 100644
fce3c4
--- a/sos/plugins/openstack_horizon.py
fce3c4
+++ b/sos/plugins/openstack_horizon.py
fce3c4
@@ -103,10 +103,7 @@ class UbuntuHorizon(OpenStackHorizon, UbuntuPlugin):
fce3c4
 
fce3c4
 class RedHatHorizon(OpenStackHorizon, RedHatPlugin):
fce3c4
 
fce3c4
-    packages = (
fce3c4
-        'python-django-horizon',
fce3c4
-        'openstack-dashboard'
fce3c4
-    )
fce3c4
+    packages = ('openstack-selinux',)
fce3c4
 
fce3c4
     def setup(self):
fce3c4
         super(RedHatHorizon, self).setup()
fce3c4
diff --git a/sos/plugins/openstack_instack.py b/sos/plugins/openstack_instack.py
fce3c4
index cf90003e..37a75e02 100644
fce3c4
--- a/sos/plugins/openstack_instack.py
fce3c4
+++ b/sos/plugins/openstack_instack.py
fce3c4
@@ -125,19 +125,7 @@ class OpenStackInstack(Plugin):
fce3c4
 
fce3c4
 class RedHatRDOManager(OpenStackInstack, RedHatPlugin):
fce3c4
 
fce3c4
-    packages = [
fce3c4
-        'instack',
fce3c4
-        'instack-undercloud',
fce3c4
-        'openstack-tripleo',
fce3c4
-        'openstack-tripleo-common',
fce3c4
-        'openstack-tripleo-heat-templates',
fce3c4
-        'openstack-tripleo-image-elements',
fce3c4
-        'openstack-tripleo-puppet-elements',
fce3c4
-        'openstack-tripleo-ui',
fce3c4
-        'openstack-tripleo-validations',
fce3c4
-        'puppet-tripleo',
fce3c4
-        'python-tripleoclient'
fce3c4
-    ]
fce3c4
+    packages = ('openstack-selinux',)
fce3c4
 
fce3c4
     def setup(self):
fce3c4
         super(RedHatRDOManager, self).setup()
fce3c4
diff --git a/sos/plugins/openstack_ironic.py b/sos/plugins/openstack_ironic.py
fce3c4
index b4cdee6d..84055b67 100644
fce3c4
--- a/sos/plugins/openstack_ironic.py
fce3c4
+++ b/sos/plugins/openstack_ironic.py
fce3c4
@@ -118,11 +118,7 @@ class DebianIronic(OpenStackIronic, DebianPlugin, UbuntuPlugin):
fce3c4
 
fce3c4
 class RedHatIronic(OpenStackIronic, RedHatPlugin):
fce3c4
 
fce3c4
-    packages = [
fce3c4
-        'openstack-ironic-api',
fce3c4
-        'openstack-ironic-common',
fce3c4
-        'openstack-ironic-conductor',
fce3c4
-    ]
fce3c4
+    packages = ('openstack-selinux',)
fce3c4
 
fce3c4
     discoverd_packages = [
fce3c4
         'openstack-ironic-discoverd',
fce3c4
diff --git a/sos/plugins/openstack_keystone.py b/sos/plugins/openstack_keystone.py
fce3c4
index a6b1360f..76e4b380 100644
fce3c4
--- a/sos/plugins/openstack_keystone.py
fce3c4
+++ b/sos/plugins/openstack_keystone.py
fce3c4
@@ -118,12 +118,7 @@ class DebianKeystone(OpenStackKeystone, DebianPlugin, UbuntuPlugin):
fce3c4
 
fce3c4
 class RedHatKeystone(OpenStackKeystone, RedHatPlugin):
fce3c4
 
fce3c4
-    packages = (
fce3c4
-        'openstack-keystone',
fce3c4
-        'python-keystone',
fce3c4
-        'python-django-openstack-auth',
fce3c4
-        'python-keystoneclient'
fce3c4
-    )
fce3c4
+    packages = ('openstack-selinux',)
fce3c4
 
fce3c4
     def setup(self):
fce3c4
         super(RedHatKeystone, self).setup()
fce3c4
diff --git a/sos/plugins/openstack_manila.py b/sos/plugins/openstack_manila.py
fce3c4
index ef926cda..e6409d00 100644
fce3c4
--- a/sos/plugins/openstack_manila.py
fce3c4
+++ b/sos/plugins/openstack_manila.py
fce3c4
@@ -85,14 +85,7 @@ class DebianManila(OpenStackManila, DebianPlugin, UbuntuPlugin):
fce3c4
 class RedHatManila(OpenStackManila, RedHatPlugin):
fce3c4
     """OpenStackManila related information for Red Hat distributions."""
fce3c4
 
fce3c4
-    packages = (
fce3c4
-        'puppet-manila',
fce3c4
-        'openstack-manila',
fce3c4
-        'openstack-manila-share',
fce3c4
-        'python-manila',
fce3c4
-        'python-manilaclient',
fce3c4
-        'python-manila-tests'
fce3c4
-    )
fce3c4
+    packages = ('openstack-selinux',)
fce3c4
 
fce3c4
     def setup(self):
fce3c4
         super(RedHatManila, self).setup()
fce3c4
diff --git a/sos/plugins/openstack_neutron.py b/sos/plugins/openstack_neutron.py
fce3c4
index a5134c9f..9ae741f3 100644
fce3c4
--- a/sos/plugins/openstack_neutron.py
fce3c4
+++ b/sos/plugins/openstack_neutron.py
fce3c4
@@ -120,26 +120,7 @@ class DebianNeutron(OpenStackNeutron, DebianPlugin, UbuntuPlugin):
fce3c4
 
fce3c4
 class RedHatNeutron(OpenStackNeutron, RedHatPlugin):
fce3c4
 
fce3c4
-    packages = [
fce3c4
-        'openstack-neutron',
fce3c4
-        'openstack-neutron-linuxbridge'
fce3c4
-        'openstack-neutron-metaplugin',
fce3c4
-        'openstack-neutron-openvswitch',
fce3c4
-        'openstack-neutron-bigswitch',
fce3c4
-        'openstack-neutron-brocade',
fce3c4
-        'openstack-neutron-cisco',
fce3c4
-        'openstack-neutron-hyperv',
fce3c4
-        'openstack-neutron-midonet',
fce3c4
-        'openstack-neutron-nec'
fce3c4
-        'openstack-neutron-nicira',
fce3c4
-        'openstack-neutron-plumgrid',
fce3c4
-        'openstack-neutron-ryu',
fce3c4
-        'python-neutron',
fce3c4
-        'python-neutronclient'
fce3c4
-    ]
fce3c4
-
fce3c4
-    def check_enabled(self):
fce3c4
-        return self.is_installed("openstack-neutron")
fce3c4
+    packages = ('openstack-selinux',)
fce3c4
 
fce3c4
     def setup(self):
fce3c4
         super(RedHatNeutron, self).setup()
fce3c4
diff --git a/sos/plugins/openstack_nova.py b/sos/plugins/openstack_nova.py
fce3c4
index 77c3b49a..4fde7565 100644
fce3c4
--- a/sos/plugins/openstack_nova.py
fce3c4
+++ b/sos/plugins/openstack_nova.py
fce3c4
@@ -211,23 +211,7 @@ class DebianNova(OpenStackNova, DebianPlugin, UbuntuPlugin):
fce3c4
 class RedHatNova(OpenStackNova, RedHatPlugin):
fce3c4
 
fce3c4
     nova = False
fce3c4
-    packages = (
fce3c4
-        'openstack-nova-common',
fce3c4
-        'openstack-nova-network',
fce3c4
-        'openstack-nova-conductor',
fce3c4
-        'openstack-nova-conductor',
fce3c4
-        'openstack-nova-scheduler',
fce3c4
-        'openstack-nova-console',
fce3c4
-        'openstack-nova-novncproxy',
fce3c4
-        'openstack-nova-compute',
fce3c4
-        'openstack-nova-api',
fce3c4
-        'openstack-nova-cert',
fce3c4
-        'openstack-nova-cells',
fce3c4
-        'openstack-nova-objectstore',
fce3c4
-        'python-nova',
fce3c4
-        'python-novaclient',
fce3c4
-        'novnc'
fce3c4
-    )
fce3c4
+    packages = ('openstack-selinux',)
fce3c4
 
fce3c4
     def setup(self):
fce3c4
         super(RedHatNova, self).setup()
fce3c4
diff --git a/sos/plugins/openstack_octavia.py b/sos/plugins/openstack_octavia.py
fce3c4
index 46a943a5..86a91dc1 100644
fce3c4
--- a/sos/plugins/openstack_octavia.py
fce3c4
+++ b/sos/plugins/openstack_octavia.py
fce3c4
@@ -9,12 +9,11 @@
fce3c4
 from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
fce3c4
 
fce3c4
 
fce3c4
-class OpenStackOctavia(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
fce3c4
+class OpenStackOctavia(Plugin):
fce3c4
     """Openstack Octavia"""
fce3c4
 
fce3c4
     plugin_name = "openstack_octavia"
fce3c4
     profiles = ('openstack', 'openstack_controller')
fce3c4
-    packages = ('openstack-octavia-common',)
fce3c4
 
fce3c4
     var_puppet_gen = "/var/lib/config-data/puppet-generated/octavia"
fce3c4
 
fce3c4
@@ -101,4 +100,14 @@ class OpenStackOctavia(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
fce3c4
             regexp, r"\1*********"
fce3c4
         )
fce3c4
 
fce3c4
+
fce3c4
+class DebianOctavia(OpenStackOctavia, DebianPlugin, UbuntuPlugin):
fce3c4
+
fce3c4
+    packages = ('openstack-octavia-common',)
fce3c4
+
fce3c4
+
fce3c4
+class RedHatOctavia(OpenStackOctavia, RedHatPlugin):
fce3c4
+
fce3c4
+    packages = ('openstack-selinux',)
fce3c4
+
fce3c4
 # vim: set et ts=4 sw=4 :
fce3c4
diff --git a/sos/plugins/openstack_sahara.py b/sos/plugins/openstack_sahara.py
fce3c4
index cdb4b02d..83661b0f 100644
fce3c4
--- a/sos/plugins/openstack_sahara.py
fce3c4
+++ b/sos/plugins/openstack_sahara.py
fce3c4
@@ -86,12 +86,7 @@ class DebianSahara(OpenStackSahara, DebianPlugin, UbuntuPlugin):
fce3c4
 class RedHatSahara(OpenStackSahara, RedHatPlugin):
fce3c4
     """OpenStack sahara related information for Red Hat distributions."""
fce3c4
 
fce3c4
-    packages = (
fce3c4
-        'openstack-sahara',
fce3c4
-        'openstack-sahara-api',
fce3c4
-        'openstack-sahara-engine',
fce3c4
-        'python-saharaclient'
fce3c4
-    )
fce3c4
+    packages = ('openstack-selinux',)
fce3c4
 
fce3c4
     def setup(self):
fce3c4
         super(RedHatSahara, self).setup()
fce3c4
diff --git a/sos/plugins/openstack_swift.py b/sos/plugins/openstack_swift.py
fce3c4
index fdf101a9..6637bfa5 100644
fce3c4
--- a/sos/plugins/openstack_swift.py
fce3c4
+++ b/sos/plugins/openstack_swift.py
fce3c4
@@ -91,14 +91,6 @@ class DebianSwift(OpenStackSwift, DebianPlugin, UbuntuPlugin):
fce3c4
 
fce3c4
 class RedHatSwift(OpenStackSwift, RedHatPlugin):
fce3c4
 
fce3c4
-    packages = (
fce3c4
-        'openstack-swift',
fce3c4
-        'openstack-swift-account',
fce3c4
-        'openstack-swift-container',
fce3c4
-        'openstack-swift-object',
fce3c4
-        'openstack-swift-proxy',
fce3c4
-        'swift',
fce3c4
-        'python-swiftclient'
fce3c4
-    )
fce3c4
+    packages = ('openstack-selinux',)
fce3c4
 
fce3c4
 # vim: set et ts=4 sw=4 :
fce3c4
diff --git a/sos/plugins/openstack_trove.py b/sos/plugins/openstack_trove.py
fce3c4
index 6ec8aff8..699ae43d 100644
fce3c4
--- a/sos/plugins/openstack_trove.py
fce3c4
+++ b/sos/plugins/openstack_trove.py
fce3c4
@@ -83,7 +83,7 @@ class DebianTrove(OpenStackTrove, DebianPlugin, UbuntuPlugin):
fce3c4
 
fce3c4
 class RedHatTrove(OpenStackTrove, RedHatPlugin):
fce3c4
 
fce3c4
-    packages = ['openstack-trove']
fce3c4
+    packages = ('openstack-selinux',)
fce3c4
 
fce3c4
     def setup(self):
fce3c4
         super(RedHatTrove, self).setup()
fce3c4
-- 
fce3c4
2.17.1
fce3c4