|
|
8f6d4d |
From 210b83e1d1164d29b1f6198675b8b596c4af8336 Mon Sep 17 00:00:00 2001
|
|
|
8f6d4d |
From: Daniel Alvarez Sanchez <dalvarez@redhat.com>
|
|
|
8f6d4d |
Date: Thu, 20 Jan 2022 12:58:44 +0100
|
|
|
8f6d4d |
Subject: [PATCH] [ovn_central] Account for Red Hat ovn package naming
|
|
|
8f6d4d |
|
|
|
8f6d4d |
Previous ovn packages were 'ovn2xxx' and now they have
|
|
|
8f6d4d |
been renamed to 'ovn-2xxx'. This causes sos tool to not
|
|
|
8f6d4d |
recognize that the packages are installed and it won't
|
|
|
8f6d4d |
collect the relevant data.
|
|
|
8f6d4d |
|
|
|
8f6d4d |
This patch is changing the match to be compatible
|
|
|
8f6d4d |
with the previous and newer naming conventions.
|
|
|
8f6d4d |
|
|
|
8f6d4d |
Signed-off-by: Daniel Alvarez Sanchez <dalvarez@redhat.com>
|
|
|
8f6d4d |
---
|
|
|
8f6d4d |
sos/report/plugins/ovn_central.py | 2 +-
|
|
|
8f6d4d |
sos/report/plugins/ovn_host.py | 2 +-
|
|
|
8f6d4d |
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
8f6d4d |
|
|
|
8f6d4d |
diff --git a/sos/report/plugins/ovn_central.py b/sos/report/plugins/ovn_central.py
|
|
|
8f6d4d |
index ddbf288da..0f947d4c5 100644
|
|
|
8f6d4d |
--- a/sos/report/plugins/ovn_central.py
|
|
|
8f6d4d |
+++ b/sos/report/plugins/ovn_central.py
|
|
|
8f6d4d |
@@ -147,7 +147,7 @@ def setup(self):
|
|
|
8f6d4d |
|
|
|
8f6d4d |
class RedHatOVNCentral(OVNCentral, RedHatPlugin):
|
|
|
8f6d4d |
|
|
|
8f6d4d |
- packages = ('openvswitch-ovn-central', 'ovn2.*-central', )
|
|
|
8f6d4d |
+ packages = ('openvswitch-ovn-central', 'ovn.*-central', )
|
|
|
8f6d4d |
ovn_sbdb_sock_path = '/var/run/openvswitch/ovnsb_db.ctl'
|
|
|
8f6d4d |
|
|
|
8f6d4d |
|
|
|
8f6d4d |
diff --git a/sos/report/plugins/ovn_host.py b/sos/report/plugins/ovn_host.py
|
|
|
8f6d4d |
index 78604a15a..25c38cccc 100644
|
|
|
8f6d4d |
--- a/sos/report/plugins/ovn_host.py
|
|
|
8f6d4d |
+++ b/sos/report/plugins/ovn_host.py
|
|
|
8f6d4d |
@@ -55,7 +55,7 @@ def check_enabled(self):
|
|
|
8f6d4d |
|
|
|
8f6d4d |
class RedHatOVNHost(OVNHost, RedHatPlugin):
|
|
|
8f6d4d |
|
|
|
8f6d4d |
- packages = ('openvswitch-ovn-host', 'ovn2.*-host', )
|
|
|
8f6d4d |
+ packages = ('openvswitch-ovn-host', 'ovn.*-host', )
|
|
|
8f6d4d |
|
|
|
8f6d4d |
|
|
|
8f6d4d |
class DebianOVNHost(OVNHost, DebianPlugin, UbuntuPlugin):
|