Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

cluster_bootstrap: Short requeue if CRD not found on remote cluster #3713

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

randomvariable
Copy link
Contributor

What this PR does / why we need it

Which issue(s) this PR fixes

Fixes #3698

Describe testing done for PR

Will be running /test install-vc7

Release note

Fix condition where management cluster creation may time out if kapp CRDs take longer to get installed.

Additional information

Special notes for your reviewer

@alfredthenarwhal
Copy link
Collaborator

Build failed! Build no: 2963

@codecov
Copy link

codecov bot commented Oct 19, 2022

Codecov Report

Merging #3713 (a92e21c) into main (b677cd8) will decrease coverage by 0.92%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #3713      +/-   ##
==========================================
- Coverage   46.23%   45.31%   -0.93%     
==========================================
  Files         400      425      +25     
  Lines       39620    41180    +1560     
==========================================
+ Hits        18319    18659     +340     
- Misses      19615    20814    +1199     
- Partials     1686     1707      +21     
Impacted Files Coverage Δ
addons/controllers/clusterbootstrap_controller.go 63.04% <0.00%> (-1.82%) ⬇️
cmd/cli/plugin/cluster/get_node_pools.go 10.52% <0.00%> (ø)
cmd/cli/plugin/cluster/main.go 0.00% <0.00%> (ø)
cmd/cli/plugin/cluster/upgrade.go 58.50% <0.00%> (ø)
cmd/cli/plugin/cluster/get.go 6.27% <0.00%> (ø)
cmd/cli/plugin/cluster/set_machinehealthcheck.go 23.33% <0.00%> (ø)
cmd/cli/plugin/cluster/machinehealthcheck.go 100.00% <0.00%> (ø)
cmd/cli/plugin/cluster/scale.go 17.85% <0.00%> (ø)
...md/cli/plugin/cluster/delete_machinehealthcheck.go 19.23% <0.00%> (ø)
... and 18 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

On clusters where kapp is taking a long time to get installed (slow
registries etc...), cluster_bootstrap controller may end up in
exponential backoff because some CRDs do not exist yet on the remote
cluster.

This change checks for this particular error, and requeues the cluster
for retry after 10s.

Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
@HanFa
Copy link
Contributor

HanFa commented Oct 20, 2022

/lgtm
/approve

@HanFa HanFa added the ok-to-merge PRs should be labelled with this before merging label Oct 20, 2022
@randomvariable
Copy link
Contributor Author

@vijaykatam can you take a look?

@randomvariable randomvariable merged commit a6760d3 into main Oct 25, 2022
@randomvariable randomvariable deleted the cluster-bootstrap-reconciliation branch October 25, 2022 15:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-not-required ok-to-merge PRs should be labelled with this before merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tanzu Addon Controller backoff exponentially and blocks cluster creation for over 10min
4 participants