Skip to content
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

Patch feature flags directly into cloud-init code since newer versions do not load feature_overrides.py anymore #1546

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

AndiDog
Copy link
Contributor

@AndiDog AndiDog commented Aug 27, 2024

Change description

This ports the workaround #406 to newer versions of cloud-init which removed the feature flag support and instead prefer monkeypatching.

Without this change, the ERROR_ON_USER_DATA_FAILURE = False flag doesn't get used by cloud-init, resulting in errors loading the user data:

RuntimeError: [Errno 2] No such file or directory: '/etc/secret-userdata.txt' 

Such errors mean that a Kubernetes node running this image wouldn't join the cluster (or a cluster cannot even be created if it's the first control plane node). I was able to create a working Ubuntu 24.04 + Kubernetes 1.25.16 cluster again after this fix. I copied the block for RHEL 9 as well, but didn't test it myself. RHEL 8, which is EOL, was left out.

Related issues

…s do not load `feature_overrides.py` anymore
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 27, 2024
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Aug 27, 2024
Copy link
Member

@AverageMarcus AverageMarcus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/ok-to-test
/assign @drew-viles

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Aug 27, 2024
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 27, 2024
@drew-viles
Copy link
Contributor

Seems sensible to me!!

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: drew-viles

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 27, 2024
@k8s-ci-robot k8s-ci-robot merged commit d86abac into kubernetes-sigs:main Aug 27, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants