Skip to content

fix: don't wait on sibling profiles when the cluster is being deleted - #1978

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:calico
Sep 17, 2026
Merged

gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:calico

Conversation

@gianlucam76

Copy link
Copy Markdown
Member

allMatchingProfilesProcessed serializes Helm chart hand-off between sibling ClusterProfile/Profiles targeting the same cluster. Before a ClusterSummary uninstalls a chart it no longer references, it waits for every other matching profile to finish registering. In case one of them is about to take over management of that same release there will be an upgrade instead of uninstall-then-reinstall.

That wait assumed there was always something to eventually finish. When the underlying cluster itself is being deleted, every ClusterSummary targeting it starts undeploying at roughly the same time. There is no other profile that could "take over" a cluster that's going away. This caused a ClusterSummary delete process to wait till cluster is gone without removing the helm chart.

This surfaced with SveltosCluster.Spec.CleanupGracePeriod, which keeps a deleting cluster present for a while instead of vanishing instantly, long enough for two sibling ClusterSummarys undeploying in parallel to actually hit this wait. It was always a latent bug; instant cluster deletion just never exposed it before.

This PR also advances calico version used in fv to v3.32.0

allMatchingProfilesProcessed serializes Helm chart hand-off between sibling ClusterProfile/Profiles
targeting the same cluster. Before a ClusterSummary uninstalls a chart it no longer references, it
waits for every other matching profile to finish registering. In case one of them is about to take
over management of that same release there will be an upgrade instead of uninstall-then-reinstall.

That wait assumed there was always something to eventually finish. When the underlying cluster itself
is being deleted, every ClusterSummary targeting it starts undeploying at roughly the same time.
There is no other profile that could "take over" a cluster that's going away. This caused a ClusterSummary
delete process to wait till cluster is gone without removing the helm chart.

This surfaced with SveltosCluster.Spec.CleanupGracePeriod, which keeps a deleting cluster present for a while
instead of vanishing instantly, long enough for two sibling ClusterSummarys undeploying in parallel to actually
hit this wait. It was always a latent bug; instant cluster deletion just never exposed it before.

This PR also advances calico version used in fv to v3.32.0
@gianlucam76
gianlucam76 merged commit 7172ed8 into projectsveltos:main Sep 17, 2026
21 of 22 checks passed
@gianlucam76
gianlucam76 deleted the calico branch September 17, 2026 08:57
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.

1 participant