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

Reduce confusion caused by transient error encountered creating tiers #4414

Merged
merged 1 commit into from
Nov 29, 2022

Conversation

tnqn
Copy link
Member

@tnqn tnqn commented Nov 25, 2022

When Antrea is newly deployed to a cluster, antrea-controller will create some system tiers but may fail a few times because kube-apiserver couldn't call validating webhook served by antrea-controller itself successfully due to readiness probing delay. The related logs looked confusing as there were only failures and users don't know if they succeed finally.

To reduce confusion, the patch uses INFO for the creation failure and indicates explicitly it will retry, and adds a success log.

Signed-off-by: Quan Tian qtian@vmware.com

When Antrea is newly deployed to a cluster, antrea-controller will
create some system tiers but may fail a few times because kube-apiserver
couldn't call validating webhook served by antrea-controller itself
successfully due to readiness probing delay. The related logs looked
confusing as there were only failures and users don't know if they
succeed finally.

To reduce confusion, the patch uses INFO for the creation failure and
indicate explicitly it will retry, and adds a success log.

Signed-off-by: Quan Tian <qtian@vmware.com>
@tnqn tnqn added this to the Antrea v1.10 release milestone Nov 25, 2022
@codecov
Copy link

codecov bot commented Nov 25, 2022

Codecov Report

Merging #4414 (59a1e79) into main (b977b1d) will increase coverage by 0.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4414      +/-   ##
==========================================
+ Coverage   65.56%   65.68%   +0.11%     
==========================================
  Files         400      400              
  Lines       56847    56998     +151     
==========================================
+ Hits        37270    37437     +167     
+ Misses      16882    16878       -4     
+ Partials     2695     2683      -12     
Flag Coverage Δ
e2e-tests 38.63% <0.00%> (?)
integration-tests 34.64% <ø> (+0.13%) ⬆️
kind-e2e-tests 47.53% <50.00%> (-0.59%) ⬇️
unit-tests 49.85% <100.00%> (+0.05%) ⬆️
Impacted Files Coverage Δ
pkg/controller/networkpolicy/tier.go 53.84% <100.00%> (+3.84%) ⬆️
pkg/ipfix/ipfix_intermediate.go 0.00% <0.00%> (-90.91%) ⬇️
pkg/agent/cniserver/ipam/antrea_ipam.go 52.81% <0.00%> (-22.95%) ⬇️
pkg/agent/types/networkpolicy.go 87.50% <0.00%> (-7.10%) ⬇️
pkg/agent/controller/networkpolicy/packetin.go 72.97% <0.00%> (-4.06%) ⬇️
pkg/agent/cniserver/server.go 74.94% <0.00%> (-4.05%) ⬇️
...agent/flowexporter/connections/deny_connections.go 87.09% <0.00%> (-3.23%) ⬇️
pkg/agent/util/net_linux.go 30.29% <0.00%> (-1.66%) ⬇️
...ntroller/networkpolicy/networkpolicy_controller.go 72.14% <0.00%> (-1.21%) ⬇️
pkg/controller/ipam/antrea_ipam_controller.go 75.25% <0.00%> (-1.01%) ⬇️
... and 21 more

Copy link
Contributor

@Dyanngg Dyanngg left a comment

Choose a reason for hiding this comment

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

LGTM

@tnqn
Copy link
Member Author

tnqn commented Nov 29, 2022

/test-all

@tnqn tnqn merged commit 9818ad4 into antrea-io:main Nov 29, 2022
@tnqn tnqn deleted the fix-init-warning branch November 29, 2022 15:19
GraysonWu pushed a commit to GraysonWu/antrea that referenced this pull request Jan 27, 2023
…antrea-io#4414)

When Antrea is newly deployed to a cluster, antrea-controller will
create some system tiers but may fail a few times because kube-apiserver
couldn't call validating webhook served by antrea-controller itself
successfully due to readiness probing delay. The related logs looked
confusing as there were only failures and users don't know if they
succeed finally.

To reduce confusion, the patch uses INFO for the creation failure and
indicate explicitly it will retry, and adds a success log.

Signed-off-by: Quan Tian <qtian@vmware.com>
heanlan pushed a commit to heanlan/antrea that referenced this pull request Mar 29, 2023
…antrea-io#4414)

When Antrea is newly deployed to a cluster, antrea-controller will
create some system tiers but may fail a few times because kube-apiserver
couldn't call validating webhook served by antrea-controller itself
successfully due to readiness probing delay. The related logs looked
confusing as there were only failures and users don't know if they
succeed finally.

To reduce confusion, the patch uses INFO for the creation failure and
indicate explicitly it will retry, and adds a success log.

Signed-off-by: Quan Tian <qtian@vmware.com>
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.

2 participants