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

Enhancement in support bundle #1145

Merged
merged 1 commit into from
Sep 3, 2020
Merged

Conversation

wenyingd
Copy link
Contributor

  1. Add support to collect ovs/kubelet logs and host network info on Windows Node.
  2. Add support to dump OpenFlow ports desc.

Fixes #1144

@antrea-bot
Copy link
Collaborator

Thanks for your PR.
Unit tests and code linters are run automatically every time the PR is updated.
E2e, conformance and network policy tests can only be triggered by a member of the vmware-tanzu organization. Regular contributors to the project should join the org.

The following commands are available:

  • /test-e2e: to trigger e2e tests.
  • /skip-e2e: to skip e2e tests.
  • /test-conformance: to trigger conformance tests.
  • /skip-conformance: to skip conformance tests.
  • /test-whole-conformance: to trigger all conformance tests on linux.
  • /skip-whole-conformance: to skip all conformance tests on linux.
  • /test-networkpolicy: to trigger networkpolicy tests.
  • /skip-networkpolicy: to skip networkpolicy tests.
  • /test-windows-conformance: to trigger windows conformance tests.
  • /skip-windows-conformance: to skip windows conformance tests.
  • /test-windows-networkpolicy: to trigger windows networkpolicy tests.
  • /skip-windows-networkpolicy: to skip windows networkpolicy tests.
  • /test-hw-offload: to trigger ovs hardware offload test.
  • /skip-hw-offload: to skip ovs hardware offload test.
  • /test-all: to trigger all tests (except whole conformance).
  • /skip-all: to skip all tests (except whole conformance).

@lzhecheng
Copy link
Contributor

/test-all

@wenyingd wenyingd force-pushed the issue_1144 branch 2 times, most recently from e630342 to 00602a5 Compare August 27, 2020 06:29
@wenyingd wenyingd changed the title [WIP] Enhancement in support bundle Enhancement in support bundle Aug 27, 2020
@wenyingd
Copy link
Contributor Author

/test-all

weiqiangt
weiqiangt previously approved these changes Aug 27, 2020
Copy link
Contributor

@weiqiangt weiqiangt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nits, overall LGTM.

pkg/ovs/ovsctl/ofctl.go Outdated Show resolved Hide resolved
pkg/support/dump_windows.go Show resolved Hide resolved
if len(portItem) > 0 {
rawPortDescItems = append(rawPortDescItems, portItem)
}
portItem = make([]string, 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is portItem = nil better here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I will change.

for idx := range portsDesc {
portData[idx] = strings.Join(portsDesc[idx], "\n")
}
err = afero.WriteFile(d.fs, filepath.Join(basedir, "ovsports"), []byte(strings.Join(portData, "\n")), 0644)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to make a separate func for line 237 to 241?
Then you can do:
return d.writeFile("ovsports", portData)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense, I could try to change.

1. Add support to collect ovs/kubelet logs and host network info on Windows Node.
2. Add support to dump OpenFlow ports desc.
@wenyingd
Copy link
Contributor Author

wenyingd commented Sep 2, 2020

/test-all

@codecov-commenter
Copy link

Codecov Report

Merging #1145 into master will increase coverage by 0.06%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1145      +/-   ##
==========================================
+ Coverage   56.13%   56.19%   +0.06%     
==========================================
  Files         105      105              
  Lines       11528    11550      +22     
==========================================
+ Hits         6471     6491      +20     
- Misses       4489     4490       +1     
- Partials      568      569       +1     
Flag Coverage Δ
#integration-tests 47.30% <0.00%> (-0.21%) ⬇️
#unit-tests 41.67% <0.00%> (+0.21%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...kg/apiserver/registry/system/supportbundle/rest.go 10.71% <0.00%> (-0.06%) ⬇️
pkg/ovs/ovsctl/interface.go 0.00% <ø> (ø)
pkg/ovs/ovsctl/ofctl.go 38.55% <0.00%> (-12.24%) ⬇️
...g/agent/cniserver/interface_configuration_linux.go 33.45% <0.00%> (-1.06%) ⬇️
...ntroller/networkpolicy/networkpolicy_controller.go 73.43% <0.00%> (-0.56%) ⬇️
pkg/agent/controller/networkpolicy/priority.go 89.86% <0.00%> (+1.35%) ⬆️
pkg/agent/controller/networkpolicy/reconciler.go 72.22% <0.00%> (+4.29%) ⬆️
pkg/apiserver/certificate/certificate.go 79.01% <0.00%> (+6.17%) ⬆️

@wenyingd
Copy link
Contributor Author

wenyingd commented Sep 2, 2020

/test-networkpolicy

Copy link
Contributor

@jianjuns jianjuns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@weiqiangt weiqiangt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@wenyingd wenyingd merged commit 9f4ecf7 into antrea-io:master Sep 3, 2020
GraysonWu pushed a commit to GraysonWu/antrea that referenced this pull request Sep 22, 2020
1. Add support to collect ovs/kubelet logs and host network info on Windows Node.
2. Add support to dump OpenFlow ports desc.
@wenyingd wenyingd deleted the issue_1144 branch August 2, 2021 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement is needed for support bundle on Windows
7 participants