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

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