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

Add Flatcar Container Linux sysext templates #4575

Merged

Conversation

sayanchowdhury
Copy link
Contributor

@sayanchowdhury sayanchowdhury commented Feb 16, 2024

What type of PR is this?
/kind feature

What this PR does / why we need it:

This PR adds a new cluster template for Flatcar based on systemd-sysexts. The advantages of the implementation is that the clusters can directly consume the vanilla Flatcar SIG images, instead of the Flatcar-K8S images built through image-builder.

The PR is currently in draft stage, as I'm looking into adding the tests for the PR but opening it for early comments.

cc @pothos

Special notes for your reviewer:

  • cherry-pick candidate

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

Add new flavor `flatcar-sysext` for Flatcar Container Linux cluster deployments.

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/feature Categorizes issue or PR as related to a new feature. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Feb 16, 2024
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 16, 2024
@k8s-ci-robot
Copy link
Contributor

Welcome @sayanchowdhury!

It looks like this is your first PR to kubernetes-sigs/cluster-api-provider-azure 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/cluster-api-provider-azure has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Feb 16, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @sayanchowdhury. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@sayanchowdhury sayanchowdhury force-pushed the sayan/sysext-implementation branch from 780e4cc to 5fbbe08 Compare March 7, 2024 12:15
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Mar 7, 2024
@sayanchowdhury sayanchowdhury changed the title [Draft] Add Flatcar Container Linux sysext templates Add Flatcar Container Linux sysext templates Mar 7, 2024
@sayanchowdhury sayanchowdhury marked this pull request as ready for review March 7, 2024 13:02
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 7, 2024
@k8s-ci-robot k8s-ci-robot requested review from mboersma and nojnhuh March 7, 2024 13:02
@mboersma
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 13, 2024
Copy link

codecov bot commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.79%. Comparing base (976f893) to head (3861b10).
Report is 44 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4575      +/-   ##
==========================================
+ Coverage   52.66%   52.79%   +0.13%     
==========================================
  Files         273      270       -3     
  Lines       29189    29043     -146     
==========================================
- Hits        15371    15332      -39     
+ Misses      13029    12920     -109     
- Partials      789      791       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mboersma mboersma self-assigned this Mar 14, 2024
@sayanchowdhury sayanchowdhury force-pushed the sayan/sysext-implementation branch from 5fbbe08 to 953f850 Compare March 15, 2024 08:07
@sayanchowdhury
Copy link
Contributor Author

/test pull-cluster-api-provider-azure-e2e-optional

@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 15, 2024
@sayanchowdhury sayanchowdhury force-pushed the sayan/sysext-implementation branch 2 times, most recently from 0709f3f to 2581dc8 Compare March 28, 2024 19:21
@k8s-triage-robot
Copy link

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

This bot triages 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 PR is closed

You can:

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

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

/lifecycle stale

Co-authored-by: Matt Boersma <[email protected]>
Signed-off-by: Sayan Chowdhury <[email protected]>
Signed-off-by: Mathieu Tortuyaux <[email protected]>
@tormath1 tormath1 force-pushed the sayan/sysext-implementation branch from ec5ae80 to 3861b10 Compare October 31, 2024 08:31
@t-lo
Copy link

t-lo commented Oct 31, 2024

we have another test scenario in our optional job, if we get flakes for this flatcar test, please file an issue and reach out to @t-lo and @sayanchowdhury and @tormath1 for triage and debugging.

Thank you for the contribution!

@jackfrancis While I do see OWNERS information in the repository would it maybe make sense to start a separate CODEOWNERS document to make it clear who to reach out to regarding individual sub-systems (Ignition / Flatcar support in the case at hand)? I believe this would be helpful for users and even for new contributors.

Copy link
Contributor

@mboersma mboersma left a comment

Choose a reason for hiding this comment

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

/lgtm
/retest
/assign @jackfrancis

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 31, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 0fe9ec5d3f4367f6efb4d3af14679c44e6ee6888

@jackfrancis
Copy link
Contributor

apiversion upgrade test seems to be complaining about 1.27.16, is there some CI version or image promotion housekeeping we need to do to get that test passing?

cc @mboersma

@mboersma
Copy link
Contributor

I didn't realize we needed v1.27.16 images for that test. I'll go populate those in the community gallery and I'll /retest.

@mboersma
Copy link
Contributor

/retest

@mboersma
Copy link
Contributor

/retest
v1.28.10 is in use too, populated now.

@jackfrancis
Copy link
Contributor

/approve

apiversion-upgrade is a non-optional test so if it passes we're g2g

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jackfrancis

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 Oct 31, 2024
@mboersma
Copy link
Contributor

It looks like the switch to community gallery images somehow broke the CAPI upgrade test:

{Machines should remain the same after the upgrade
Expected
    <bool>: false
to be true failed [FAILED] Machines should remain the same after the upgrade
Expected
    <bool>: false
to be true
In [It] at: /home/prow/go/pkg/mod/sigs.k8s.io/cluster-api/[email protected]/e2e/clusterctl_upgrade.go:650 @ 10/31/24 21:32:34.429
}

I'm having trouble seeing what's changed from reading the logs.

Sorry @sayanchowdhury, this doesn't have anything to do with your PR, we'll get it worked out ASAP.

@jackfrancis
Copy link
Contributor

@willie-yao worked on this test recently, he might be able to help

@willie-yao
Copy link
Contributor

Looking into it now. I remember seeing a similar error when implementing the test.

@willie-yao
Copy link
Contributor

@mboersma The only difference I see between the failed Machine and a passed test is that the Machines seem to be failing on Ubuntu 24.04. The Machines are 22.04 post-upgrade in a passed test.

@willie-yao
Copy link
Contributor

The test is also upgrading from 22.04 to 24.04 now in the failed test. It looks like the old Machine comes up, then gets replaced by one with Ubuntu 24.04. Do you know why this may be happening? @mboersma @jackfrancis

@nojnhuh
Copy link
Contributor

nojnhuh commented Oct 31, 2024

The new community gallery images are based on Ubuntu 24.04 while the old Marketplace images are based on 22.04.

I'm reasonably confident the failure isn't related to this PR, so I opened a new issue: #5229

@willie-yao
Copy link
Contributor

This PR looks good, should we just admin-merge it? @nojnhuh

@nojnhuh
Copy link
Contributor

nojnhuh commented Oct 31, 2024

This PR looks good, should we just admin-merge it? @nojnhuh

SGTM

/override pull-cluster-api-provider-azure-apiversion-upgrade

@k8s-ci-robot
Copy link
Contributor

@nojnhuh: Overrode contexts on behalf of nojnhuh: pull-cluster-api-provider-azure-apiversion-upgrade

In response to this:

This PR looks good, should we just admin-merge it? @nojnhuh

SGTM

/override pull-cluster-api-provider-azure-apiversion-upgrade

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.

@k8s-ci-robot
Copy link
Contributor

@sayanchowdhury: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-provider-azure-e2e-aks 3861b10 link unknown /test pull-cluster-api-provider-azure-e2e-aks
pull-cluster-api-provider-azure-apiversion-upgrade 3861b10 link unknown /test pull-cluster-api-provider-azure-apiversion-upgrade

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@nojnhuh nojnhuh merged commit 3d2c868 into kubernetes-sigs:main Nov 1, 2024
28 of 31 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.18 milestone Nov 1, 2024
@tormath1 tormath1 deleted the sayan/sysext-implementation branch November 12, 2024 13:05
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. kind/feature Categorizes issue or PR as related to a new feature. 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. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

9 participants