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

[Windows] Fix timeout value for EnableHostInterface #2081

Conversation

antoninbas
Copy link
Contributor

The second parameter to wait.PollImmediate (the timeout) is a
time.Duration value. When using 5 as the parameter value, it is
interpreted as 5ns, and not 5s. This means that EnableHostInterface
basically never does any retry.

The second parameter to wait.PollImmediate (the timeout) is a
time.Duration value. When using 5 as the parameter value, it is
interpreted as 5ns, and not 5s. This means that EnableHostInterface
basically never does any retry.
@antoninbas
Copy link
Contributor Author

See https://play.golang.org/p/7bw-WetmnjW for a live example

@antoninbas antoninbas requested review from tnqn and lzhecheng April 13, 2021 02:34
@antoninbas
Copy link
Contributor Author

Found this issue by looking at logs that @mmottaghi shared with me

Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

Good catch!

Copy link
Contributor

@lzhecheng lzhecheng left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM

@codecov-io
Copy link

Codecov Report

Merging #2081 (675e51e) into main (de29b10) will increase coverage by 13.59%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #2081       +/-   ##
===========================================
+ Coverage   41.35%   54.94%   +13.59%     
===========================================
  Files         131      270      +139     
  Lines       16434    20366     +3932     
===========================================
+ Hits         6797    11191     +4394     
+ Misses       9059     7977     -1082     
- Partials      578     1198      +620     
Flag Coverage Δ
kind-e2e-tests 40.26% <ø> (?)
unit-tests 41.37% <ø> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
pkg/apiserver/handlers/webhook/mutation_labels.go 24.71% <0.00%> (ø)
pkg/apis/controlplane/install/install.go 100.00% <0.00%> (ø)
pkg/controller/crdmirroring/crdhandler/tier.go 0.00% <0.00%> (ø)
...legacyclient/informers/externalversions/generic.go 0.00% <0.00%> (ø)
...ientset/versioned/typed/ops/v1alpha1/ops_client.go 52.17% <0.00%> (ø)
pkg/controller/egress/store/egressgroup.go 0.00% <0.00%> (ø)
pkg/support/dump_others.go 50.00% <0.00%> (ø)
pkg/ipfix/ipfix_intermediate.go 80.00% <0.00%> (ø)
pkg/agent/cniserver/ipam/ipam_delegator.go 48.83% <0.00%> (ø)
pkg/apis/controlplane/v1beta2/register.go 95.00% <0.00%> (ø)
... and 211 more

@antoninbas
Copy link
Contributor Author

/test-all

@antoninbas antoninbas merged commit b118f2d into antrea-io:main Apr 13, 2021
@antoninbas antoninbas deleted the fix-timeout-value-for-EnableHostInterface branch April 13, 2021 18:26
antoninbas added a commit to antoninbas/antrea that referenced this pull request Apr 29, 2021
The second parameter to wait.PollImmediate (the timeout) is a
time.Duration value. When using 5 as the parameter value, it is
interpreted as 5ns, and not 5s. This means that EnableHostInterface
basically never does any retry.
antoninbas added a commit that referenced this pull request Apr 30, 2021
The second parameter to wait.PollImmediate (the timeout) is a
time.Duration value. When using 5 as the parameter value, it is
interpreted as 5ns, and not 5s. This means that EnableHostInterface
basically never does any retry.
antoninbas added a commit to antoninbas/antrea that referenced this pull request Apr 30, 2021
The second parameter to wait.PollImmediate (the timeout) is a
time.Duration value. When using 5 as the parameter value, it is
interpreted as 5ns, and not 5s. This means that EnableHostInterface
basically never does any retry.
antoninbas added a commit to antoninbas/antrea that referenced this pull request Apr 30, 2021
The second parameter to wait.PollImmediate (the timeout) is a
time.Duration value. When using 5 as the parameter value, it is
interpreted as 5ns, and not 5s. This means that EnableHostInterface
basically never does any retry.
antoninbas added a commit that referenced this pull request Apr 30, 2021
The second parameter to wait.PollImmediate (the timeout) is a
time.Duration value. When using 5 as the parameter value, it is
interpreted as 5ns, and not 5s. This means that EnableHostInterface
basically never does any retry.
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.

5 participants