Blame SOURCES/sos-bz2042966-ovn-proper-package-enablement.patch

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