Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.

Bug 1821904

Summary: [Debugging] Add statistics for OVN entities
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Mark Michelson <mmichels>
Component: OVNAssignee: OVN Team <ovnteam>
Status: CLOSED WONTFIX QA Contact: Jianlin Shi <jishi>
Severity: high Docs Contact:
Priority: high    
Version: FDP 20.CCC: ctrautma, dceara, rkhan
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
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: 2023-07-28 16:44: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:
Bug Depends On:    
Bug Blocks: 2032562, 2123176    

Description Mark Michelson 2020-04-07 19:32:34 UTC
OVN is configured as a collection of logical switches and routers connected together. These logical entities get compiled into logical flows and then later into hypervisor-specific OpenFlow flows. By the time that it is deployed, the original logical entities are far removed from what the actual network traffic hits.

An administrator can currently look at individual flows to determine where traffic is going, but it's difficult to tie these back to the logical entities that were originally created.

For this task, we want to be able to have centralized query-able statistics for OVN logical entities. For instance, knowing how many packets a certain switch/router has seen, how many packets were dropped by a certain switch/router, how many packets are going over specific routes, etc.

Comment 1 Dumitru Ceara 2022-08-31 13:29:49 UTC
Another, maybe a bit indirect, way of getting statistics for given entities is to use IPFIX and allow the CMS to define different observation ids for different entities.

Something similar was requested a while back upstream:
https://mail.openvswitch.org/pipermail/ovs-dev/2016-September/323660.html

And Adrian's series to add drop counters is also related as it adds an OVN "sample" action:
https://www.mail-archive.com/ovs-dev@openvswitch.org/msg66608.html
https://patchwork.ozlabs.org/project/ovn/list/?series=304578&state=*

Comment 2 Mark Michelson 2023-07-28 16:44:38 UTC
I am closing this issue. There is a new effort underway between the OVN team and Prometheus team to get data exported. The new effort supersedes this old issue.