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

Support EKSA bundles #895

Merged
merged 3 commits into from
May 16, 2024
Merged

Support EKSA bundles #895

merged 3 commits into from
May 16, 2024

Conversation

gthao313
Copy link
Member

@gthao313 gthao313 commented May 6, 2024

Issue number:
https://github.com/orgs/bottlerocket-os/projects/26/views/7?pane=issue&itemId=58742846

Description of changes:
During release testing, we have high chance to meet the error on creating vmware or metal clusters. This is because The bundle.yaml used to create mgmt cluster is inconsistent with the bundle.yaml used to create test clusters. To solve this issue, we can download the bundle.yaml which uses to create mgmt-clusters and pass it as argument to eks-a binary. Therefore, when creating test clusters, it would be overrode to use the downloaded mgmt cluster bundle.yaml.

❌ Validation failed    {"validation": "validate eksa release components exist on management cluster", "error": "EKSARelease.v1alp
ha1.anywhere.eks.amazonaws.com \"eksa-v0-19-6-dev-plus-build-1\" not found", "remediation": "ensure eksaVersion is in the correct format (vMajor.Minor.Patch) and matches
one of the available releases on the management cluster: kubectl get eksareleases -n eksa-system --kubeconfig /local/eksa-work/mgmt.kubeconfig"}

Testing done:

  • Test vmware variants
    Download bundle.yaml and create cluster
[2024-05-06T19:23:54Z INFO  bottlerocket_agents::clusters] Fetching EKS-A binary archive from 'https://cache.bottlerocket.aws/br-testing/eksctl-anywhere-linux-amd64.tar.gz/9c5452c30b62ac18723e012b8f3f0e0926264cab20c0d351f92ee753793b4e81715f90d4c0aaf060e17b9a9af271369156b49a1441c82d0f81c73fa31cbf7f09/eksctl-anywhere-linux-amd64.tar.gz'
[2024-05-06T19:23:54 INFO  bottlerocket_agents::clusters] Using EKS-A release manifest 'https://cache.bottlerocket.aws/br-testing/eksctl-anywhere-manifest.yaml'
[2024-05-06T19:23:54 INFO  bottlerocket_agents::clusters] Downloading EKS-A bundle manifest file from 'https://dev-release-assets.eks-anywhere.model-rocket.aws.dev/release-0.19/v0.19.6-dev-build.1/bundles.yaml'
 ✅ Validate cluster's eksaVersion matches EKS-A version
 
...

🎉 Cluster created!

Conformance Test

NAME                                       TYPE              STATE                   PASSED         FAILED         SKIPPED   BUILD ID         LAST UPDATE
 x86-64-vmware-k8s-129-conformance          Test              passed                     391              1            7019   f9e9591f         2024-05-06T21:15:25Z
                                                                                           6              0            7407
 x86-64-vmware-k8s-129                      Resource          running                                                         f9e9591f         2024-05-06T21:16:06Z
  • Test metal variants
    Download bundle.yaml and create cluster
[2024-05-06T21:49:52Z INFO  bottlerocket_agents::clusters] Fetching EKS-A binary archive from 'https://cache.bottlerocket.aws/br-testing/eksctl-anywhere-linux-amd64.tar.gz/9c5452c30b62ac18723e012b8f3f0e0926264cab20c0d351f92ee753793b4e81715f90d4c0aaf060e17b9a9af271369156b49a1441c82d0f81c73fa31cbf7f09/eksctl-anywhere-linux-amd64.tar.gz'
[2024-05-06T21:49:52Z INFO  bottlerocket_agents::clusters] Using EKS-A release manifest 'https://cache.bottlerocket.aws/br-testing/eksctl-anywhere-manifest.yaml'
[2024-05-06T21:49:52Z INFO  bottlerocket_agents::clusters] Downloading EKS-A bundle manifest file from 'https://dev-release-assets.eks-anywhere.model-rocket.aws.dev/release-0.19/v0.19.6-dev-build.1/bundles.yaml'
 ✅ Validate cluster's eksaVersion matches EKS-A version
 
...

🎉 Cluster created!

quick test

x86-64-metal-k8s-129-quick-quick                            Test                       passed                                           4                        0                     7065   f9e9591f                   2024-05-06T22:28:06Z

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@gthao313 gthao313 requested review from rpkelly, jpculp and webern May 6, 2024 22:29
@gthao313 gthao313 mentioned this pull request May 15, 2024
4 tasks
@gthao313 gthao313 merged commit 1a8e5aa into bottlerocket-os:develop May 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants