|
|
b939f5 |
From c26ab810bf4b55516a477d96d551f51f0087156c Mon Sep 17 00:00:00 2001
|
|
|
b939f5 |
From: Martin Schuppert <mschuppert@redhat.com>
|
|
|
b939f5 |
Date: Tue, 2 May 2017 11:56:50 +0200
|
|
|
b939f5 |
Subject: [PATCH] [openstack_*] fix issue with --verify option
|
|
|
b939f5 |
|
|
|
b939f5 |
If --verify option got specified, the package list was not handled
|
|
|
b939f5 |
properly and resulted in trace.
|
|
|
b939f5 |
|
|
|
b939f5 |
Resolves: #1000.
|
|
|
b939f5 |
|
|
|
b939f5 |
Signed-off-by: Martin Schuppert <mschuppe@redhat.com>
|
|
|
b939f5 |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
b939f5 |
---
|
|
|
b939f5 |
sos/plugins/openstack_ceilometer.py | 2 +-
|
|
|
b939f5 |
sos/plugins/openstack_cinder.py | 2 +-
|
|
|
b939f5 |
sos/plugins/openstack_glance.py | 2 +-
|
|
|
b939f5 |
sos/plugins/openstack_heat.py | 2 +-
|
|
|
b939f5 |
sos/plugins/openstack_horizon.py | 2 +-
|
|
|
b939f5 |
sos/plugins/openstack_instack.py | 2 +-
|
|
|
b939f5 |
sos/plugins/openstack_ironic.py | 2 +-
|
|
|
b939f5 |
sos/plugins/openstack_keystone.py | 2 +-
|
|
|
b939f5 |
sos/plugins/openstack_neutron.py | 2 +-
|
|
|
b939f5 |
sos/plugins/openstack_nova.py | 2 +-
|
|
|
b939f5 |
sos/plugins/openstack_sahara.py | 2 +-
|
|
|
b939f5 |
sos/plugins/openstack_swift.py | 2 +-
|
|
|
b939f5 |
sos/plugins/openstack_trove.py | 2 +-
|
|
|
b939f5 |
13 files changed, 13 insertions(+), 13 deletions(-)
|
|
|
b939f5 |
|
|
|
b939f5 |
diff --git a/sos/plugins/openstack_ceilometer.py b/sos/plugins/openstack_ceilometer.py
|
|
|
b939f5 |
index 94b73b6..571723c 100644
|
|
|
b939f5 |
--- a/sos/plugins/openstack_ceilometer.py
|
|
|
b939f5 |
+++ b/sos/plugins/openstack_ceilometer.py
|
|
|
b939f5 |
@@ -38,7 +38,7 @@ class OpenStackCeilometer(Plugin):
|
|
|
b939f5 |
sizelimit=self.limit)
|
|
|
b939f5 |
self.add_copy_spec("/etc/ceilometer/")
|
|
|
b939f5 |
if self.get_option("verify"):
|
|
|
b939f5 |
- self.add_cmd_output("rpm -V %s" % ' '.join(packages))
|
|
|
b939f5 |
+ self.add_cmd_output("rpm -V %s" % ' '.join(self.packages))
|
|
|
b939f5 |
|
|
|
b939f5 |
def postproc(self):
|
|
|
b939f5 |
protect_keys = [
|
|
|
b939f5 |
diff --git a/sos/plugins/openstack_cinder.py b/sos/plugins/openstack_cinder.py
|
|
|
b939f5 |
index 157f23d..a46dd56 100644
|
|
|
b939f5 |
--- a/sos/plugins/openstack_cinder.py
|
|
|
b939f5 |
+++ b/sos/plugins/openstack_cinder.py
|
|
|
b939f5 |
@@ -45,7 +45,7 @@ class OpenStackCinder(Plugin):
|
|
|
b939f5 |
self.add_copy_spec("/var/log/cinder/*.log", sizelimit=self.limit)
|
|
|
b939f5 |
|
|
|
b939f5 |
if self.get_option("verify"):
|
|
|
b939f5 |
- self.add_cmd_output("rpm -V %s" % ' '.join(packages))
|
|
|
b939f5 |
+ self.add_cmd_output("rpm -V %s" % ' '.join(self.packages))
|
|
|
b939f5 |
|
|
|
b939f5 |
def postproc(self):
|
|
|
b939f5 |
protect_keys = [
|
|
|
b939f5 |
diff --git a/sos/plugins/openstack_glance.py b/sos/plugins/openstack_glance.py
|
|
|
b939f5 |
index e18be9c..0db5025 100644
|
|
|
b939f5 |
--- a/sos/plugins/openstack_glance.py
|
|
|
b939f5 |
+++ b/sos/plugins/openstack_glance.py
|
|
|
b939f5 |
@@ -45,7 +45,7 @@ class OpenStackGlance(Plugin):
|
|
|
b939f5 |
self.add_copy_spec("/etc/glance/")
|
|
|
b939f5 |
|
|
|
b939f5 |
if self.get_option("verify"):
|
|
|
b939f5 |
- self.add_cmd_output("rpm -V %s" % ' '.join(packages))
|
|
|
b939f5 |
+ self.add_cmd_output("rpm -V %s" % ' '.join(self.packages))
|
|
|
b939f5 |
|
|
|
b939f5 |
vars = [p in os.environ for p in [
|
|
|
b939f5 |
'OS_USERNAME', 'OS_PASSWORD', 'OS_TENANT_NAME']]
|
|
|
b939f5 |
diff --git a/sos/plugins/openstack_heat.py b/sos/plugins/openstack_heat.py
|
|
|
b939f5 |
index c002bbd..3638aa3 100644
|
|
|
b939f5 |
--- a/sos/plugins/openstack_heat.py
|
|
|
b939f5 |
+++ b/sos/plugins/openstack_heat.py
|
|
|
b939f5 |
@@ -52,7 +52,7 @@ class OpenStackHeat(Plugin):
|
|
|
b939f5 |
self.add_copy_spec("/etc/heat/")
|
|
|
b939f5 |
|
|
|
b939f5 |
if self.get_option("verify"):
|
|
|
b939f5 |
- self.add_cmd_output("rpm -V %s" % ' '.join(packages))
|
|
|
b939f5 |
+ self.add_cmd_output("rpm -V %s" % ' '.join(self.packages))
|
|
|
b939f5 |
|
|
|
b939f5 |
def postproc(self):
|
|
|
b939f5 |
protect_keys = [
|
|
|
b939f5 |
diff --git a/sos/plugins/openstack_horizon.py b/sos/plugins/openstack_horizon.py
|
|
|
b939f5 |
index 25a9916..88ed910 100644
|
|
|
b939f5 |
--- a/sos/plugins/openstack_horizon.py
|
|
|
b939f5 |
+++ b/sos/plugins/openstack_horizon.py
|
|
|
b939f5 |
@@ -40,7 +40,7 @@ class OpenStackHorizon(Plugin):
|
|
|
b939f5 |
self.add_forbidden_path("*.py[co]")
|
|
|
b939f5 |
|
|
|
b939f5 |
if self.get_option("verify"):
|
|
|
b939f5 |
- self.add_cmd_output("rpm -V %s" % ' '.join(packages))
|
|
|
b939f5 |
+ self.add_cmd_output("rpm -V %s" % ' '.join(self.packages))
|
|
|
b939f5 |
|
|
|
b939f5 |
def postproc(self):
|
|
|
b939f5 |
protect_keys = [
|
|
|
b939f5 |
diff --git a/sos/plugins/openstack_instack.py b/sos/plugins/openstack_instack.py
|
|
|
b939f5 |
index 30acecf..3cbc008 100644
|
|
|
b939f5 |
--- a/sos/plugins/openstack_instack.py
|
|
|
b939f5 |
+++ b/sos/plugins/openstack_instack.py
|
|
|
b939f5 |
@@ -30,7 +30,7 @@ class OpenStackInstack(Plugin):
|
|
|
b939f5 |
self.add_copy_spec("/home/stack/instackenv.json")
|
|
|
b939f5 |
self.add_copy_spec("/home/stack/undercloud.conf")
|
|
|
b939f5 |
if self.get_option("verify"):
|
|
|
b939f5 |
- self.add_cmd_output("rpm -V %s" % ' '.join(packages))
|
|
|
b939f5 |
+ self.add_cmd_output("rpm -V %s" % ' '.join(self.packages))
|
|
|
b939f5 |
|
|
|
b939f5 |
self.limit = self.get_option("log_size")
|
|
|
b939f5 |
if self.get_option("all_logs"):
|
|
|
b939f5 |
diff --git a/sos/plugins/openstack_ironic.py b/sos/plugins/openstack_ironic.py
|
|
|
b939f5 |
index 760ca43..6a75124 100644
|
|
|
b939f5 |
--- a/sos/plugins/openstack_ironic.py
|
|
|
b939f5 |
+++ b/sos/plugins/openstack_ironic.py
|
|
|
b939f5 |
@@ -38,7 +38,7 @@ class OpenStackIronic(Plugin):
|
|
|
b939f5 |
self.add_cmd_output('ls -laRt /var/lib/ironic/')
|
|
|
b939f5 |
|
|
|
b939f5 |
if self.get_option("verify"):
|
|
|
b939f5 |
- self.add_cmd_output("rpm -V %s" % ' '.join(packages))
|
|
|
b939f5 |
+ self.add_cmd_output("rpm -V %s" % ' '.join(self.packages))
|
|
|
b939f5 |
|
|
|
b939f5 |
vars = [p in os.environ for p in [
|
|
|
b939f5 |
'OS_USERNAME', 'OS_PASSWORD', 'OS_TENANT_NAME']]
|
|
|
b939f5 |
diff --git a/sos/plugins/openstack_keystone.py b/sos/plugins/openstack_keystone.py
|
|
|
b939f5 |
index ce177fb..e7cda2f 100644
|
|
|
b939f5 |
--- a/sos/plugins/openstack_keystone.py
|
|
|
b939f5 |
+++ b/sos/plugins/openstack_keystone.py
|
|
|
b939f5 |
@@ -42,7 +42,7 @@ class OpenStackKeystone(Plugin):
|
|
|
b939f5 |
self.add_copy_spec("/var/log/keystone/*.log", sizelimit=self.limit)
|
|
|
b939f5 |
|
|
|
b939f5 |
if self.get_option("verify"):
|
|
|
b939f5 |
- self.add_cmd_output("rpm -V %s" % ' '.join(packages))
|
|
|
b939f5 |
+ self.add_cmd_output("rpm -V %s" % ' '.join(self.packages))
|
|
|
b939f5 |
|
|
|
b939f5 |
vars = [p in os.environ for p in [
|
|
|
b939f5 |
'OS_USERNAME', 'OS_PASSWORD', 'OS_TENANT_NAME']]
|
|
|
b939f5 |
diff --git a/sos/plugins/openstack_neutron.py b/sos/plugins/openstack_neutron.py
|
|
|
b939f5 |
index 590194c..8cf7357 100644
|
|
|
b939f5 |
--- a/sos/plugins/openstack_neutron.py
|
|
|
b939f5 |
+++ b/sos/plugins/openstack_neutron.py
|
|
|
b939f5 |
@@ -36,7 +36,7 @@ class OpenStackNeutron(Plugin):
|
|
|
b939f5 |
self.add_copy_spec("/etc/neutron/")
|
|
|
b939f5 |
self.add_copy_spec("/var/lib/neutron/")
|
|
|
b939f5 |
if self.get_option("verify"):
|
|
|
b939f5 |
- self.add_cmd_output("rpm -V %s" % ' '.join(packages))
|
|
|
b939f5 |
+ self.add_cmd_output("rpm -V %s" % ' '.join(self.packages))
|
|
|
b939f5 |
|
|
|
b939f5 |
vars = [p in os.environ for p in [
|
|
|
b939f5 |
'OS_USERNAME', 'OS_PASSWORD', 'OS_TENANT_NAME']]
|
|
|
b939f5 |
diff --git a/sos/plugins/openstack_nova.py b/sos/plugins/openstack_nova.py
|
|
|
b939f5 |
index 8e0a19a..14bdfbd 100644
|
|
|
b939f5 |
--- a/sos/plugins/openstack_nova.py
|
|
|
b939f5 |
+++ b/sos/plugins/openstack_nova.py
|
|
|
b939f5 |
@@ -70,7 +70,7 @@ class OpenStackNova(Plugin):
|
|
|
b939f5 |
self.add_copy_spec("/etc/nova/")
|
|
|
b939f5 |
|
|
|
b939f5 |
if self.get_option("verify"):
|
|
|
b939f5 |
- self.add_cmd_output("rpm -V %s" % ' '.join(packages))
|
|
|
b939f5 |
+ self.add_cmd_output("rpm -V %s" % ' '.join(self.packages))
|
|
|
b939f5 |
|
|
|
b939f5 |
def postproc(self):
|
|
|
b939f5 |
protect_keys = [
|
|
|
b939f5 |
diff --git a/sos/plugins/openstack_sahara.py b/sos/plugins/openstack_sahara.py
|
|
|
b939f5 |
index 5a2a5c3..cbc5bd9 100644
|
|
|
b939f5 |
--- a/sos/plugins/openstack_sahara.py
|
|
|
b939f5 |
+++ b/sos/plugins/openstack_sahara.py
|
|
|
b939f5 |
@@ -37,7 +37,7 @@ class OpenStackSahara(Plugin):
|
|
|
b939f5 |
self.add_copy_spec("/var/log/sahara/*.log", sizelimit=self.limit)
|
|
|
b939f5 |
|
|
|
b939f5 |
if self.get_option("verify"):
|
|
|
b939f5 |
- self.add_cmd_output("rpm -V %s" % ' '.join(packages))
|
|
|
b939f5 |
+ self.add_cmd_output("rpm -V %s" % ' '.join(self.packages))
|
|
|
b939f5 |
|
|
|
b939f5 |
def postproc(self):
|
|
|
b939f5 |
protect_keys = [
|
|
|
b939f5 |
diff --git a/sos/plugins/openstack_swift.py b/sos/plugins/openstack_swift.py
|
|
|
b939f5 |
index 1ac3509..6edc056 100644
|
|
|
b939f5 |
--- a/sos/plugins/openstack_swift.py
|
|
|
b939f5 |
+++ b/sos/plugins/openstack_swift.py
|
|
|
b939f5 |
@@ -38,7 +38,7 @@ class OpenStackSwift(Plugin):
|
|
|
b939f5 |
self.add_copy_spec("/etc/swift/")
|
|
|
b939f5 |
|
|
|
b939f5 |
if self.get_option("verify"):
|
|
|
b939f5 |
- self.add_cmd_output("rpm -V %s" % ' '.join(packages))
|
|
|
b939f5 |
+ self.add_cmd_output("rpm -V %s" % ' '.join(self.packages))
|
|
|
b939f5 |
|
|
|
b939f5 |
def postproc(self):
|
|
|
b939f5 |
protect_keys = [
|
|
|
b939f5 |
diff --git a/sos/plugins/openstack_trove.py b/sos/plugins/openstack_trove.py
|
|
|
b939f5 |
index e8306e5..539cbb3 100644
|
|
|
b939f5 |
--- a/sos/plugins/openstack_trove.py
|
|
|
b939f5 |
+++ b/sos/plugins/openstack_trove.py
|
|
|
b939f5 |
@@ -37,7 +37,7 @@ class OpenStackTrove(Plugin):
|
|
|
b939f5 |
self.add_copy_spec('/etc/trove/')
|
|
|
b939f5 |
|
|
|
b939f5 |
if self.get_option("verify"):
|
|
|
b939f5 |
- self.add_cmd_output("rpm -V %s" % ' '.join(packages))
|
|
|
b939f5 |
+ self.add_cmd_output("rpm -V %s" % ' '.join(self.packages))
|
|
|
b939f5 |
|
|
|
b939f5 |
def postproc(self):
|
|
|
b939f5 |
|
|
|
b939f5 |
--
|
|
|
b939f5 |
2.7.4
|
|
|
b939f5 |
|
|
|
b939f5 |
From 02b95e468211406989fd488e649f99bf9e9dfc1c Mon Sep 17 00:00:00 2001
|
|
|
b939f5 |
From: Martin Schuppert <mschuppert@redhat.com>
|
|
|
b939f5 |
Date: Tue, 2 May 2017 12:14:47 +0200
|
|
|
b939f5 |
Subject: [PATCH] [openstack_instack] extended packages list
|
|
|
b939f5 |
|
|
|
b939f5 |
Extended packages list to verify triplo packages if --verify is
|
|
|
b939f5 |
specified.
|
|
|
b939f5 |
|
|
|
b939f5 |
Resolves: #1001.
|
|
|
b939f5 |
|
|
|
b939f5 |
Signed-off-by: Martin Schuppert <mschuppe@redhat.com>
|
|
|
b939f5 |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
b939f5 |
---
|
|
|
b939f5 |
sos/plugins/openstack_instack.py | 9 +++++++++
|
|
|
b939f5 |
1 file changed, 9 insertions(+)
|
|
|
b939f5 |
|
|
|
b939f5 |
diff --git a/sos/plugins/openstack_instack.py b/sos/plugins/openstack_instack.py
|
|
|
b939f5 |
index 3cbc008..bd836ba 100644
|
|
|
b939f5 |
--- a/sos/plugins/openstack_instack.py
|
|
|
b939f5 |
+++ b/sos/plugins/openstack_instack.py
|
|
|
b939f5 |
@@ -114,6 +114,15 @@ class RedHatRDOManager(OpenStackInstack, RedHatPlugin):
|
|
|
b939f5 |
packages = [
|
|
|
b939f5 |
'instack',
|
|
|
b939f5 |
'instack-undercloud',
|
|
|
b939f5 |
+ 'openstack-tripleo',
|
|
|
b939f5 |
+ 'openstack-tripleo-common',
|
|
|
b939f5 |
+ 'openstack-tripleo-heat-templates',
|
|
|
b939f5 |
+ 'openstack-tripleo-image-elements',
|
|
|
b939f5 |
+ 'openstack-tripleo-puppet-elements',
|
|
|
b939f5 |
+ 'openstack-tripleo-ui',
|
|
|
b939f5 |
+ 'openstack-tripleo-validations',
|
|
|
b939f5 |
+ 'puppet-tripleo',
|
|
|
b939f5 |
+ 'python-tripleoclient'
|
|
|
b939f5 |
]
|
|
|
b939f5 |
|
|
|
b939f5 |
def setup(self):
|
|
|
b939f5 |
--
|
|
|
b939f5 |
2.7.4
|
|
|
b939f5 |
|