Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1868716

Summary: [OVN] need to get OVN NB and SB DBs with oc must-gather
Product: OpenShift Container Platform Reporter: Tim Rozet <trozet>
Component: NetworkingAssignee: Andrew Stoycos <astoycos>
Networking sub component: ovn-kubernetes QA Contact: Ross Brattain <rbrattai>
Status: CLOSED NOTABUG Docs Contact:
Severity: high    
Priority: unspecified CC: bbennett
Version: 4.6Keywords: UpcomingSprint
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-21 12:30:38 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 Tim Rozet 2020-08-13 15:10:59 UTC
Description of problem:
We currently do not have the DBs in the must gather, which is pretty much required for debugging OVN issues. We need to include this when we pull the must gather.

Comment 1 Andrew Stoycos 2020-08-13 20:32:52 UTC
After some digging it seems that the functionality we're looking for has already been implemented here (https://github.com/openshift/must-gather/blob/master/collection-scripts/gather_network_logs).  Specifically we need to copy the OVN NB and OVN SB databases along with dumping the OVS ports as can be seen here (https://github.com/openshift/must-gather/blob/master/collection-scripts/gather_network_logs#L54) and here (https://github.com/openshift/must-gather/blob/master/collection-scripts/gather_network_logs#L67). 

However for some reason the collection scripts for OVN and networking in general are not called by the main gather script here (https://github.com/openshift/must-gather/blob/master/collection-scripts/gather#L40) I am currently building my own must gather image and making sure everything checks out on a cluster bot 4.6 OCP cluster before I make a PR for activating the extra collection scripts

Comment 2 Andrew Stoycos 2020-08-24 18:58:19 UTC
The following PR should remedy this https://github.com/openshift/must-gather/pull/169

Comment 5 Ross Brattain 2020-09-01 14:14:53 UTC
Verified on 4.6.0-0.nightly-2020-09-01-042030

-rw-r--r--. 1     80 Sep  1 09:59 o46g2c-qb28b-master-0.c.openshift-qe.internal_nbdb.gz
-rw-r--r--. 1     80 Sep  1 09:59 o46g2c-qb28b-master-0.c.openshift-qe.internal_sbdb.gz
-rw-r--r--. 1     80 Sep  1 09:59 o46g2c-qb28b-master-1.c.openshift-qe.internal_nbdb.gz
-rw-r--r--. 1     80 Sep  1 09:59 o46g2c-qb28b-master-2.c.openshift-qe.internal_sbdb.gz

[must-gather-ncrs4] OUT node_core_dumps/o46g2c-qb28b-master-0.c.openshift-qe.internal_core_dump
[must-gather-ncrs4] OUT node_core_dumps/o46g2c-qb28b-master-1.c.openshift-qe.internal_core_dump
[must-gather-ncrs4] OUT node_core_dumps/o46g2c-qb28b-master-2.c.openshift-qe.internal_core_dump
[must-gather-ncrs4] OUT node_core_dumps/o46g2c-qb28b-worker-a-pt9hm.c.openshift-qe.internal_core_dump
[must-gather-ncrs4] OUT node_core_dumps/o46g2c-qb28b-worker-b-bfln2.c.openshift-qe.internal_core_dump
[must-gather-ncrs4] OUT node_core_dumps/o46g2c-qb28b-worker-c-229j8.c.openshift-qe.internal_core_dump