Skip to content

Prevent upgrades of managed topologies while previous upgrade is not yet completed #6651

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

Closed
ykakarap opened this issue Jun 15, 2022 · 7 comments
Assignees
Labels
area/clusterclass Issues or PRs related to clusterclass area/runtime-sdk Issues or PRs related to Runtime SDK kind/bug Categorizes issue or PR as related to a bug. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@ykakarap
Copy link
Contributor

What steps did you take and what happened:
If the topology version is upgraded to v2 while the cluster is in the middle of upgrading from v0 to v1 the control plane will eventually pick up v2 after upgrading to v1 before the Machine Deployments have been upgraded to v1.

This will lead to machine deployments being eventually upgraded from v0 to v2, skipping v1 entirely.

What did you expect to happen:

The upgrade of v1 should be completely done before the cluster starts upgrading to v2.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Cluster-api version: main
  • Minikube/KIND version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):

/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]

/area topology

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. area/topology labels Jun 15, 2022
@ykakarap
Copy link
Contributor Author

/assign

@fabriziopandini fabriziopandini changed the title Version upgrade of managed topologies should be sequential Prevent upgrades of managed topologies while previous upgrade is not yet completed Jun 15, 2022
@sbueringer sbueringer added the area/runtime-sdk Issues or PRs related to Runtime SDK label Jul 5, 2022
@fabriziopandini fabriziopandini added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed triage/accepted Indicates an issue or PR is ready to be actively worked on. labels Jul 29, 2022
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 27, 2022
@ykakarap
Copy link
Contributor Author

ykakarap commented Nov 1, 2022

/lifecycle frozen

@k8s-ci-robot k8s-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 1, 2022
@fabriziopandini
Copy link
Member

I kind of have the impression that we should avoid to lock down the process too much unless we have strong reasons to do so, but at the same time it makes sense to enforce we are respecting version skew rules (which is also tracked in #7011). Let's consider if to scope down and dedup

@fabriziopandini
Copy link
Member

(doing some cleanup on old issues without updates)
/close
unfortunately, no one is picking up the task. the thread will remain available for future reference

@k8s-ci-robot
Copy link
Contributor

@fabriziopandini: Closing this issue.

In response to this:

(doing some cleanup on old issues without updates)
/close
unfortunately, no one is picking up the task. the thread will remain available for future reference

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sbueringer
Copy link
Member

Just wanted to add that now I think the current behavior is actually a feature. Basically you can trigger another upgrade and don't have to wait for the previous one being finished.

This is useful to avoid redundant rollouts and also allows bumping to higher patch versions if there was something wrong with the previous one which might have made it impossible to upgrade a Machine.

@killianmuldoon killianmuldoon added the area/clusterclass Issues or PRs related to clusterclass label May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/clusterclass Issues or PRs related to clusterclass area/runtime-sdk Issues or PRs related to Runtime SDK kind/bug Categorizes issue or PR as related to a bug. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants