-
Notifications
You must be signed in to change notification settings - Fork 431
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
K8s v1.22.0, VM image not available when using CAPZ #1614
Comments
@mboersma can you please take a look? It's trying to use the 18.04 image for 1.22, it should be using 20.04 (we only published 20.04 starting at 1.22). |
We have a unit test for this too so not sure what's going on: |
I was able to repro, it's unclear why we're not running into this in #1588 |
/assign |
This seems to work fine following the CAPZ I wonder if there's something different when |
I think the problem is that the change to prefer Ubuntu 20.04 for newer Kubernetes versions merged into master but isn't part of a CAPZ release yet. See #1508. So @Jont828 we sent you on an impossible mission here--apologies! Two ways we can fix this:
Or maybe both? Let me know what you think. |
@mboersma we should do both. Someone could still use 1.22 with 0.5.1 and get this issue. |
I backfilled the 18.04 images: % az vm image list --publisher cncf-upstream --offer capi --all -o table --query "[?version=='2021.08.17']"
Publisher Offer Sku Version Urn
------------- ------- --------------------------- ---------- ---------------------------------------------------------
cncf-upstream capi k8s-1dot19dot14-ubuntu-1804 2021.08.17 cncf-upstream:capi:k8s-1dot19dot14-ubuntu-1804:2021.08.17
cncf-upstream capi k8s-1dot20dot10-ubuntu-1804 2021.08.17 cncf-upstream:capi:k8s-1dot20dot10-ubuntu-1804:2021.08.17
cncf-upstream capi k8s-1dot21dot4-ubuntu-1804 2021.08.17 cncf-upstream:capi:k8s-1dot21dot4-ubuntu-1804:2021.08.17
cncf-upstream capi k8s-1dot22dot0-ubuntu-1804 2021.08.17 cncf-upstream:capi:k8s-1dot22dot0-ubuntu-1804:2021.08.17 I think we should continue to publish 18.04 as well as 20.04 versions for a few more months. I think once we've done a CAPZ v0.5.2 release which includes #1508, we can close this. |
Waiting for #1624 to merge so I can use it to release v0.5.2 |
I'm closing this, since CAPZ v0.5.2 has been released with the code changes to prefer Ubuntu 20.04, and the 18.04 images have been backfilled. |
/kind bug
What steps did you take and what happened:
The documentation in the CAPZ quickstart refers to K8s version 1.22.0 in the following command.
However, when the cluster is built using the quick start yaml file, it produces the following error in the logs
What did you expect to happen:
Expected the tutorial commands build the VM.
Environment:
kubectl version
):/etc/os-release
): Arch LinuxThe text was updated successfully, but these errors were encountered: