Skip to content
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

Support bundle should include OVS groups #6066

Closed
tnqn opened this issue Mar 5, 2024 · 5 comments · Fixed by #6195
Closed

Support bundle should include OVS groups #6066

tnqn opened this issue Mar 5, 2024 · 5 comments · Fixed by #6195
Assignees
Labels
good first issue Good for newcomers kind/bug Categorizes issue or PR as related to a bug.

Comments

@tnqn
Copy link
Member

tnqn commented Mar 5, 2024

Describe the bug

The support bundle collected from antrea-agent includes OVS flows but not OVS groups, which made it hard to debug issues related to Services.

This is the current list of collected files:

-rw-r--r-- 1 root root   4038 Mar  5 03:56 address
-rw-r--r-- 1 root root    633 Mar  5 03:56 addressgroups
-rw-r--r-- 1 root root   2100 Mar  5 03:56 agentinfo
-rw-r--r-- 1 root root    750 Mar  5 03:56 appliedtogroups
-rw-r--r-- 1 root root  37052 Mar  5 03:56 flows
-rw-r--r-- 1 root root 244095 Mar  5 03:56 goroutinestacks
-rw-r--r-- 1 root root  22080 Mar  5 03:56 iptables
-rw-r--r-- 1 root root   2800 Mar  5 03:56 link
drwxr-xr-x 4 root root   4096 Mar  5 04:06 logs
-rw-r--r-- 1 root root    179 Mar  5 03:56 memberlist
-rw-r--r-- 1 root root 124323 Mar  5 03:56 memprofile
-rw-r--r-- 1 root root   1810 Mar  5 03:56 networkpolicies
-rw-r--r-- 1 root root   1092 Mar  5 03:56 ovsports
-rw-r--r-- 1 root root    256 Mar  5 03:56 route

This is some example flows using groups:

table=ServiceLB, n_packets=0, n_bytes=0, idle_age=65535, priority=200,tcp,reg4=0x10000/0x70000,nw_dst=10.96.0.10,tp_dst=53 actions=set_field:0x200/0x200->reg0,set_field:0x20000/0x70000->reg4,set_field:0x7->reg7,group:7
table=ServiceLB, n_packets=0, n_bytes=0, idle_age=65535, priority=200,tcp,reg4=0x10000/0x70000,nw_dst=10.96.0.10,tp_dst=9153 actions=set_field:0x200/0x200->reg0,set_field:0x20000/0x70000->reg4,set_field:0x8->reg7,group:8
table=ServiceLB, n_packets=0, n_bytes=0, idle_age=65535, priority=200,tcp,reg4=0x10000/0x70000,nw_dst=10.96.0.1,tp_dst=443 actions=set_field:0x200/0x200->reg0,set_field:0x20000/0x70000->reg4,set_field:0x9->reg7,group:9
table=ServiceLB, n_packets=0, n_bytes=0, idle_age=65535, priority=200,tcp,reg4=0x10000/0x70000,nw_dst=10.96.162.29,tp_dst=80 actions=set_field:0x200/0x200->reg0,set_field:0x30000/0x70000->reg4,set_field:0xa->reg7,group:10

To Reproduce

Use antctl supportbundle to collect support bundle and check the collected files.

Expected

The support bundle (both the bundle collected by antctl and the SupportBundleCollection CR) should include a file named "groups" dumping the OVS groups.

Actual behavior

Versions:

  • Antrea version (Docker image tag): 1.15 and before
@tnqn tnqn added good first issue Good for newcomers kind/bug Categorizes issue or PR as related to a bug. labels Mar 5, 2024
@Bharadwajshivam28
Copy link

Bharadwajshivam28 commented Mar 5, 2024

Hey @tnqn I want to take on this one can you please assign it to me.

Can you please share the file or where I can find the directory which returns the antctl supportbundle output like basically files related to this issue

@tnqn
Copy link
Member Author

tnqn commented Mar 6, 2024

@Bharadwajshivam28 thanks for working on it.
This function may be a good place to start:

func (r *supportBundleREST) collectAgent(ctx context.Context, since string) (*systemv1beta1.SupportBundle, error) {
dumper := newAgentDumper(defaultFS, defaultExecutor, r.ovsCtlClient, r.aq, r.npq, since, r.v4Enabled, r.v6Enabled)
return r.collect(
ctx,
dumper.DumpLog,
dumper.DumpHostNetworkInfo,
dumper.DumpFlows,
dumper.DumpNetworkPolicyResources,
dumper.DumpAgentInfo,
dumper.DumpHeapPprof,
dumper.DumpGoroutinePprof,
dumper.DumpOVSPorts,
dumper.DumpMemberlist,
)
}

@Bharadwajshivam28
Copy link

@Bharadwajshivam28 thanks for working on it. This function may be a good place to start:

func (r *supportBundleREST) collectAgent(ctx context.Context, since string) (*systemv1beta1.SupportBundle, error) {
dumper := newAgentDumper(defaultFS, defaultExecutor, r.ovsCtlClient, r.aq, r.npq, since, r.v4Enabled, r.v6Enabled)
return r.collect(
ctx,
dumper.DumpLog,
dumper.DumpHostNetworkInfo,
dumper.DumpFlows,
dumper.DumpNetworkPolicyResources,
dumper.DumpAgentInfo,
dumper.DumpHeapPprof,
dumper.DumpGoroutinePprof,
dumper.DumpOVSPorts,
dumper.DumpMemberlist,
)
}

Thanks for this @tnqn

@EraKin575
Copy link

@tnqn can I work on this issue if its not being worked on?

@tnqn
Copy link
Member Author

tnqn commented Apr 2, 2024

@EraKin575 thank you for offering to help. I'm not sure if it's still being actively worked on. But as there hasn't been any update for a long time, it's reasonable to have an ETA, after which it should be reassigned.

@Bharadwajshivam28 could you please send your patch if there is one before 6th April (1 month after the last update), or I would reassign it, thanks.

shikharish added a commit to shikharish/antrea that referenced this issue Apr 7, 2024
Fixes antrea-io#6066

Signed-off-by: Shikhar Soni <shikharish05@gmail.com>
antoninbas pushed a commit that referenced this issue Apr 9, 2024
Fixes #6066

Signed-off-by: Shikhar Soni <shikharish05@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants