Bug 1744555

Summary: [sos] Fix OVN plugins and add support for containerized environments
Product: Red Hat Enterprise Linux 7 Reporter: Daniel Alvarez Sanchez <dalvarez>
Component: sosAssignee: Pavel Moravec <pmoravec>
Status: CLOSED ERRATA QA Contact: Miroslav HradĂ­lek <mhradile>
Severity: urgent Docs Contact:
Priority: high    
Version: 7.0CC: agk, bmr, mhradile, plambri, pmoravec, sbradley
Target Milestone: rcKeywords: OtherQA, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sos-3.8-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1751578 (view as bug list) Environment:
Last Closed: 2020-03-31 20:04:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1751578    

Description Daniel Alvarez Sanchez 2019-08-22 12:21:02 UTC
This bug was initially created as a copy of Bug #1744553

I am copying this bug because: 



The OVN plugins (host and central) do not support containerized environments and all the sos_commands related to OVN are empty.

The patches that fix this problem are in the following PR:

https://github.com/sosreport/sos/pull/1767

Comment 2 Pavel Moravec 2019-08-22 15:06:34 UTC
Too late for 7.8, rescheduling for potential inclusion in 7.9;

devel_ack+ will be granted after PR will be approved (some changes/feedback pending and will appear)

Comment 3 Daniel Alvarez Sanchez 2019-08-23 09:35:27 UTC
The business justification for the 'urgent' severity is that right now when OSP customers running OVN (which is fully supported since OSP13) send a sosreport, we don't have any data to be able to help them and solve escalations/customer cases.

Comment 4 Pavel Moravec 2019-08-24 17:38:26 UTC
(In reply to Daniel Alvarez Sanchez from comment #3)
> The business justification for the 'urgent' severity is that right now when
> OSP customers running OVN (which is fully supported since OSP13) send a
> sosreport, we don't have any data to be able to help them and solve
> escalations/customer cases.

OK, but until the upstream PR is accepted (Jake had some strong push-backs I do support), we can hardly do anything in downstream.

As is, I assume this to appear in 7.9.

Comment 5 Daniel Alvarez Sanchez 2019-09-05 13:12:56 UTC
Thanks, we need it for 7.7.z and 7.8 if it's still possible. We're not getting any OVN data in customers sosreports and makes troubleshooting really hard and time consuming with a lot of back and forth

Comment 6 Daniel Alvarez Sanchez 2019-09-05 13:15:24 UTC
From a validation perspective, we can help verifying this BZ.

Comment 9 Pavel Moravec 2019-09-12 07:17:17 UTC
(In reply to Daniel Alvarez Sanchez from comment #6)
> From a validation perspective, we can help verifying this BZ.

Hello,
please verify this BZ against RHEL7.8 candidate package:

A yum repository for the build of sos-3.8-2.el7 (task 23466178) is available at:

http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.8/2.el7/

You can install the rpms locally by putting this .repo file in your /etc/yum.repos.d/ directory:

http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.8/2.el7/sos-3.8-2.el7.repo

RPMs and build logs can be found in the following locations:
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.8/2.el7/noarch/

The full list of available rpms is:
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.8/2.el7/noarch/sos-3.8-2.el7.src.rpm
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.8/2.el7/noarch/sos-3.8-2.el7.noarch.rpm

Build output will be available for the next 21 days.

Comment 10 Pavel Moravec 2019-09-12 07:18:25 UTC
Approving to 7.7.2 z-stream.

Comment 12 Daniel Alvarez Sanchez 2019-09-16 15:46:49 UTC
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.7 (Maipo)

[root@overcloud-controller-0 sos_commands]# rpm -qa | grep sos
sos-3.8-2.el7.noarch


Generated a sosreport on a 3 controllers 3 computes setup and verified that there's data from both OVN databases as well as the local OVS database info has been pulled.

[root@overcloud-controller-0 sos_commands]# grep -c  _uuid ovn_central/docker_exec_ovn-dbs-bundle-docker-0_ovn-sbctl_list_Chassis
6

[root@overcloud-controller-0 sos_commands]# cat ovn_central/docker_exec_ovn-dbs-bundle-docker-0_ovn-nbctl_list_Logical_Switch_Port
_uuid               : 2aa2c199-6ed4-4209-b226-d9f3aed939a0
addresses           : []
dhcpv4_options      : []
dhcpv6_options      : []
dynamic_addresses   : []
enabled             : []
external_ids        : {}
name                : "lsp1"
options             : {}
parent_name         : []
port_security       : []
tag                 : []
tag_request         : []
type                : ""
up                  : false
[root@overcloud-controller-0

[root@overcloud-controller-0 sos_commands]# grep -c ovn ovn_host/ovs-vsctl_list_Open_vSwitch
1

Comment 17 errata-xmlrpc 2020-03-31 20:04:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:1127