-
Notifications
You must be signed in to change notification settings - Fork 403
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
Cloud-init fails for ubuntu 20.04 base AMI and Cloud-init version '23.3.1-0ubuntu1~20.04.1' #1333
Comments
we were able to downgrade the cloud-init to We are still not sure of the root cause and change in cloud-init that resulted in this issue. |
I was able to provide following override file to the image-builder and build AMI that can run CAPA cloud-init script successfully.
I built the image using following makefile target of image-builder We will have to now investigate what changes in |
Moving over some comments from slack so they're not lost in the sands of time:
|
For image-builder users who have hit this bug and are reading this issue: We believe the root cause to be in cloud-init, and would like to fix it there (see canonical/cloud-init#4572). We prefer to do this to the alternative, which is to "pin" an older, known-good cloud-init version in image-builder itself. For now, if you use image-builder to create an Ubuntu 20.04 AMI, please use the workaround described in #1333 (comment). |
@supershal and I found that the feature override mechanism used in #406 does not work in the recent versions of cloud-init in Ubuntu 20.04. This mechanism was removed from cloud-init in canonical/cloud-init#4228. Patching cloud-init is the officially documented mechanism now:
I guess modifying the cloud-init python module to set |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
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-sigs/prow repository. |
What steps did you take and what happened:
The latest cloud-init version
23.3.1-0ubuntu1~20.04.1
that is shipped with base AMI for Ubuntu 20.04 is unable to run boothook https://cloudinit.readthedocs.io/en/latest/explanation/format.html#cloud-boothook provided by CAPA, https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/0bf78b04b305a77aec37a68c107102231faa7a16/pkg/cloud/services/secretsmanager/secret_fetch_script.go#L20As a result the CAPA VMs are not initializing as expected.
Steps to reproduce:
Create CAPA cluster using the AMI created in step 1 using instructions at: https://cluster-api-aws.sigs.k8s.io/getting-started.html
Check logs at
/var/log/cloud-init-output.log
What did you expect to happen:
Cloud-init run successfully on the VM
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Log from cloud-init.
Environment:
Project (Image Builder for Cluster API:
Additional info for Image Builder for Cluster API related issues:
/etc/os-release
, orcmd /c ver
): ubuntu-20.04kubectl version
):/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]
The text was updated successfully, but these errors were encountered: