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 baseimage for windows 1809 to support AKS #5361

Merged
merged 1 commit into from
Sep 15, 2022

Conversation

Transmitt0r
Copy link
Contributor

@Transmitt0r Transmitt0r commented Aug 24, 2022

Changes

Add nanoserver:1809 to combined baseimage, bause aks windows nodepools use the akswindows2019 SKU with the 1809 Kernel. This allows AKS users to run tekton tasks on windows nodepools.

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs included if any changes are user facing
  • Has Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including
    functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

NONE

@tekton-robot tekton-robot added the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label Aug 24, 2022
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 24, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: Transmitt0r / name: Lukas Grotz (ca40288)

@tekton-robot tekton-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 24, 2022
@tekton-robot
Copy link
Collaborator

Hi @Transmitt0r. Thanks for your PR.

I'm waiting for a tektoncd 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.

@Transmitt0r
Copy link
Contributor Author

/kind feature

@tekton-robot tekton-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 24, 2022
Prior to this example it was not possible to easily use tekton
on AKS with a windows nodepool.

Adding nanoserver:1809 with OS Version 10.0.17763.3287 allows
nodes running windows 1809 to be used for task execution.
@imjasonh
Copy link
Member

This fails when I run it myself using combine:

$ go run ./vendor/github.com/tektoncd/plumbing/cmd/combine/main.go \
        distroless.dev/static \
        mcr.microsoft.com/windows/nanoserver:1809 \
        mcr.microsoft.com/windows/nanoserver:ltsc2019 \
        mcr.microsoft.com/windows/nanoserver:ltsc2022 \
        gcr.io/jason-chainguard/combined
...
2022/08/24 09:51:35 --- mcr.microsoft.com/windows/nanoserver:1809 ---
2022/08/24 09:51:35 found platform {Architecture:amd64 OS:windows OSVersion:10.0.17763.3287 OSFeatures:[] Variant: Features:[]}
2022/08/24 09:51:35 --- mcr.microsoft.com/windows/nanoserver:ltsc2022 ---
2022/08/24 09:51:35 found platform {Architecture:amd64 OS:windows OSVersion:10.0.20348.887 OSFeatures:[] Variant: Features:[]}
2022/08/24 09:51:36 --- mcr.microsoft.com/windows/nanoserver:ltsc2019 ---
2022/08/24 09:51:36 adding manifests from src "mcr.microsoft.com/windows/nanoserver:ltsc2019": conflicting platform {Architecture:amd64 OS:windows OSVersion:10.0.17763.3287 OSFeatures:[] Variant: Features:[]}
exit status 1

This error indicates that the nanoserver:ltsc2019 image provides the same platform, including OS version, as nanoserver:1809, and the tool refuses to produce a manifest with two identical platforms.

Can you elaborate on how :1809 and :ltsc2019 are different, and why :1809 is also needed? It's possible that :ltsc2019 should be removed in favor of :1809, as it was only recently added in #5333

@imjasonh
Copy link
Member

In fact, it looks like the manifests for :1809 and :ltsc2019 are identical, using crane.

diff <(crane manifest mcr.microsoft.com/windows/nanoserver:1809) <(crane manifest mcr.microsoft.com/windows/nanoserver:ltsc2019)

Are these just two tags for the same underlying image?

@abayer
Copy link
Contributor

abayer commented Aug 24, 2022

/ok-to-test

@tekton-robot tekton-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 Aug 24, 2022
@Transmitt0r
Copy link
Contributor Author

Actually I'm not that sure now that you say it. Is the change with ltsc2019 in the v0.39.0 release? I saw #5333 and thought that was already in the release but I can't see the entry in the manifest.

@imjasonh
Copy link
Member

Actually I'm not that sure now that you say it. Is the change with ltsc2019 in the v0.39.0 release? I saw #5333 and thought that was already in the release but I can't see the entry in the manifest.

It looks like the change in #5333 might not have been applied to the release pipeline before v0.39.0 was cut and the pipeline run. I'll check with release managers to see if that's the case.

@vdemeester
Copy link
Member

/approve

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

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

@tekton-robot tekton-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. 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 Sep 15, 2022
@abayer
Copy link
Contributor

abayer commented Sep 15, 2022

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 15, 2022
@tekton-robot tekton-robot merged commit 99ab40c into tektoncd:main Sep 15, 2022
@imjasonh
Copy link
Member

FWIW this change isn't actually necessary, and should cause combine to fail since mcr.microsoft.com/windows/nanoserver:1809 and mcr.microsoft.com/windows/nanoserver:ltsc2019 are identical, and both provide the same platform:

{
        "architecture": "amd64",
        "os": "windows",
        "os.version": "10.0.17763.3406"
}

Sorry for not closing this earlier. If this causes combine to fail during nightly tests, we should revert this.

@abayer
Copy link
Contributor

abayer commented Sep 15, 2022

Well, bugger. Failed for me locally too - let's revert now.

@tekton-robot tekton-robot added release-note-none Denotes a PR that doesnt merit a release note. and removed release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Sep 15, 2022
@abayer
Copy link
Contributor

abayer commented Sep 15, 2022

#5502 reverts this.

@Transmitt0r
Copy link
Contributor Author

Ok thanks, 2019 LTSC works fine on aks Windows nodes too btw 🎉

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. kind/feature Categorizes issue or PR as related to a new feature. lgtm 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-none Denotes a PR that doesnt merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants