vmware-tanzu / tanzu-framework

Tanzu Framework provides a set of building blocks to build atop of the Tanzu platform and leverages Carvel packaging and plugins to provide users with a much stronger, more integrated experience than the loose coupling and stand-alone commands of the previous generation of tools.
Apache License 2.0
196 stars 193 forks source link

tanzu cluster upgrade to incompatible version changes label "tanzuKubernetesRelease" #2897

Open chrischdi opened 2 years ago

chrischdi commented 2 years ago

Bug description

After the failed upgrade it is not possible to upgrade using a compatible version. even tanzu cluster available-upgrades get <cluster-name> does not show a compatible version to upgrade to anymore.

Affected product area (please put an X in all that apply)

Expected behavior

CLI does not even start the upgrade (and does not change the label) when using an incompatible version to upgrade to.

Or at least reverts the label change for some failures (e.g. when upgrade did not even start).

Steps to reproduce the bug

Version (include the SHA if the version is not obvious)

TKG v1.5.4

ubuntu@ip-172-31-9-29:~$ tanzu version
version: v0.11.6
buildDate: 2022-05-20
sha: 90440e2b
ubuntu@ip-172-31-9-29:~$ k get providers -A
NAMESPACE                           NAME                    TYPE                     PROVIDER      VERSION   WATCH NAMESPACE
capa-system                         infrastructure-aws      InfrastructureProvider   aws           v1.2.0
capi-kubeadm-bootstrap-system       bootstrap-kubeadm       BootstrapProvider        kubeadm       v1.0.1
capi-kubeadm-control-plane-system   control-plane-kubeadm   ControlPlaneProvider     kubeadm       v1.0.1
capi-system                         cluster-api             CoreProvider             cluster-api   v1.0.1

Environment where the bug was observed (cloud, OS, etc)

AWS

Relevant Debug Output (Logs, manifests, etc)

ubuntu@ip-172-31-9-29:~$ tanzu cluster upgrade start-1-20
Upgrading workload cluster 'start-1-20' to kubernetes version 'v1.22.9+vmware.1'. Are you sure? [y/N]: y
Validating configuration...
updating additional components: 'addons-management/kapp-controller' ...
Verifying kubernetes version...
Error: kubernetes version verification failed: Upgrading Kubernetes from v1.20.14+vmware.1 to v1.22.9+vmware.1 is not supported
...
github-actions[bot] commented 2 years ago

Hey @chrischdi! Thanks for opening your first issue. We appreciate your contribution and welcome you to our community! We are glad to have you here and to have your input on Tanzu Framework.

vuil commented 2 years ago

@anujc25 can you PTAL, thanks.