Bug 1242507

Summary: RHEL7: backport ovs patches to capture logs and db
Product: Red Hat Enterprise Linux 7 Reporter: Flavio Leitner <fleitner>
Component: sosAssignee: Pavel Moravec <pmoravec>
Status: CLOSED ERRATA QA Contact: David Kutálek <dkutalek>
Severity: high Docs Contact:
Priority: high    
Version: 7.1CC: agk, bmr, dkutalek, gavin, isenfeld, lyarwood, plambri, sbradley
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sos-3.2-29.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1247630 (view as bug list) Environment:
Last Closed: 2015-11-19 12:18:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Flavio Leitner 2015-07-13 13:00:38 UTC
Description of problem:

Currently sos doesn't capture the logs which are fundamental to start troubleshooting an issue.  There is also a second patch that captures a dump of the database so we have a clear view of all the configuration details.

This bug requests to backport such upstream changes listed below:


commit 4a57c54216242acb009fdb107d52712decfdfc1e
Author: Bryn M. Reeves <bmr>
Date:   Mon Jul 6 17:31:44 2015 +0100

    [openvswitch] consolidate self.add_cmd_output() calls
    
    Signed-off-by: Bryn M. Reeves <bmr>

commit f92205495113a8403066e911baeb4f5ee59c2101
Author: Flavio Leitner <fbl>
Date:   Fri Jun 19 22:05:52 2015 -0300

    [openvswitch] dump and capture the database
    
    The database contains all the vswitch configuration and
    is essential to understand and replicate the environment.
    
    Signed-off-by: Flavio Leitner <fbl>

commit 21aff64a58a3e0f3fc5065b2e18ca3d489e16a51
Author: Flavio Leitner <fbl>
Date:   Fri Jun 19 21:55:56 2015 -0300

    [openvswitch] capture the logs
    
    Both ovs-vswitchd.log and ovsdb-server.log are useful
    for troubleshooting.
    
    Signed-off-by: Flavio Leitner <fbl>

Comment 1 Pavel Moravec 2015-07-13 13:10:24 UTC
RHEL7.2 devel deadline was last week, bouncing to 7.3. 

Backporting the three commits sounds trivial, devel_acking it.

Comment 2 Pavel Moravec 2015-07-28 20:10:29 UTC
After discussion with Lee, requesting to add it to 7.2.

Comment 3 Pavel Moravec 2015-07-29 06:31:03 UTC
For QE:

The fix should additionally collect:

- output of command "ovsdb-client dump"
- files /var/log/openvswitch/ovs-vswitchd.log and /var/log/openvswitch/ovsdb-server.log

on an OpenVSwitch system.

Comment 7 Pavel Moravec 2015-07-29 11:16:22 UTC
Lee detected also 775b2bbfb28701ec2e687f0ece68a4558cef8740 commit needs to be backported. That adds three ovs-* commands output for each OVS bridge on the host.

To QE:
this BZ should additionally collect (complete list follows):

1) output of command "ovsdb-client dump"

2) logfiles:
/var/log/openvswitch/ovs-vswitchd.log
/var/log/openvswitch/ovsdb-server.log

3) for each OVS bridge (from output of "ovs-vsctl list-br" command), three commands output to be collected:
ovs-ofctl show <br>
ovs-ofctl dump-flows <br>
ovs-appctl fdb/show <br>

Comment 10 errata-xmlrpc 2015-11-19 12:18:59 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://rhn.redhat.com/errata/RHBA-2015-2118.html