New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ovs debug enhancements #2051
Ovs debug enhancements #2051
Conversation
|
Two generic comments additionally to the code comments:
|
|
Commits look fine to me (I far prefer things broken out, especially when it comes to bisecting - it's not like we are charged per commit :-) ). |
I think the style has been to use commits which are granular. I tried to keep changes grouped so that the most impactful are separate commits that can be reverted.
The stuff that was removed is added using commands that will actually work. For example, the ovs-dpctl commands aren't going to show hardware offload flows, or userspace dp flows. But ovs-appctl dpctl/show system@ovs-system and ovs-appctl dpctl/show netdev@ovs-netdev (which is discovered in dpctl/dump-dps command) will show all of that. None of the removed commands are lost - all are recorded, but with more information. And many of these commands have existed since release 2.6, so it's a many year backward compatibility. I'll ask another OvS contributor to review, though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi - I ran these changes on a system with ovs-dpdk running and compared to sos master. Few comments on them
Ensures that the get-mempool-info command will be present. Signed-off-by: Aaron Conole <aconole@redhat.com>
The bridge protocol support has been extended for some time, so ensure that we actually pull this protocol information if it is configured that way. Signed-off-by: Aaron Conole <aconole@redhat.com>
Pulls additional flow stats, features, forwarding information and mac layer information. Signed-off-by: Aaron Conole <aconole@redhat.com>
This includes flows, ct stats, frag stats, and conntrack information for all of the datapath types that are active. Additionally, pull the tunnel information for datapaths. Stop using 'ovs-dpctl' in favor of 'ovs-appctl dpctl/*' - for multiple reasons. The 'ovs-dpctl' command doesn't support the userspace datapath. 'ovs-dpctl' cannot pull all attribute types (including type=offloaded) in newer OVS versions. Also, the default attribute type is 'all' so adding type=offloaded is redundant. Signed-off-by: Aaron Conole <aconole@redhat.com>
Most instances of ovs-vsctl were run without a previous check. If the vswitchd is in a hung state, the command may never timeout. Ensure that most places are using the timeout option. Signed-off-by: Aaron Conole <aconole@redhat.com>
Sometimes the permissions or selinux attributes are modified in an unexpected way. Signed-off-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Aaron Conole <aconole@redhat.com>
The connectivity fault mgmt, qos and bond data can all be retrieved on a per-port basis. Signed-off-by: Aaron Conole <aconole@redhat.com>
It's possible that a deployment is using ovs-bonds rather than dpdk bond ports. In that case, it's required to pull the iface information as well. Signed-off-by: Aaron Conole <aconole@redhat.com>
|
I've rebased and pushed after addressing all comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignore the Travis build failure, some infrastructure issue.
Was checking if the
ovs-vsctl -t 5 get Open_vSwitch . other_config:dpdk-init
command really returns something that starts with
"true"
including the quote marks - per various example outputs it does seem so, i.e. the "suspicious" test in assignment of check_dpdk is correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One additional comment I thought of (should have put in last version)
|
ACK for this series |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack to the series.
These represent enhancements to the OvS debug plugin.
Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines
Closes: #ISSUENUMBERincluded in an independent line? -- no issues in the issue tracker being resolvedResolves: #PRNUMBERincluded in an independent line?