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

[WIP] ✨ E2E for IPAM support #1667

Closed
wants to merge 1 commit into from

Conversation

tylerschultz
Copy link
Contributor

@tylerschultz tylerschultz commented Oct 25, 2022

What this PR does / why we need it:

This PR adds an E2E test for IPAM support. The test asserts that VMs are assigned IP addresses from an IPAM provider pool.

This PR is based on a branch from another PR, which needs to merge first.
#1666

This PR makes no attempt to integrate the e2e test into this repo's CI.

The test adds and requires the following variables:
- NODE_IPAM_POOL_SUBNET
- NODE_IPAM_POOL_GATEWAY
- NODE_IPAM_POOL_START
- NODE_IPAM_POOL_END
- NODE_IPAM_NAMESERVER

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:
Do not merge this PR before merging #1666.

This PR requires a new release CAPI. main of CAPI contains changes required for testing IPAM, specifically the --ipam-provider flag on clusterctl. This functionality was added in this PR: kubernetes-sigs/cluster-api#7288 (this PR may now be released?) main of CAPI has recently switched to Ginkgo v2, requiring CAPV switch too, due to the many test utilities pulled in from CAPI.

In it's current from, this PR depends on the telekom CAPI IPAM Provider In Cluster project.

Loose ends:

  • vsphere-dev.yaml contains NODE_IPAM_* configurations specific to our environment. How can this be generified?
  • CI configuration:
    • each run will need a block of IPs that it can use to test IPAM

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 25, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign vincepri for approval by writing /assign @vincepri in a comment. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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 cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 25, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @tylerschultz. 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.

@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Oct 25, 2022
@christianang
Copy link
Contributor

christianang commented Oct 25, 2022

There is now a release of the in cluster ipam provider we can use: https://github.com/telekom/cluster-api-ipam-provider-in-cluster/releases/tag/v0.1.0-alpha.1

From previous conversations during office hours we will want to wait for cluster-api to make a release with the --ipam flag in clusterctl that we can depend on in this PR.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 3, 2022
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 3, 2022
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 11, 2022
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 14, 2022
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 18, 2022
@srm09
Copy link
Contributor

srm09 commented Nov 29, 2022

Waiting for the CAPI 1.3.0 to be released which should be sometime this week, post which we can update the CAPI version in main and get on with this PR

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 1, 2022
@schrej
Copy link
Member

schrej commented Jan 2, 2023

Friendly reminder that 1.3.0 (actually .1) is released now, which contains the required support for IPAM providers :)

@tylerschultz
Copy link
Contributor Author

Hi @schrej,
Thanks for the reminder. Sorry for the delay - holidays/vacation time, other priorities, etc.
We're coordinating a little behind the scenes with @srm09 to get the infra details sorted.
This is still on our radar, and we intend to follow through.

@srm09
Copy link
Contributor

srm09 commented Jan 11, 2023

The PR to update CAPV testing infra to use CAPI 1.3.0 was merged yesterday. We will need some more work to be done on the infra side to make this run. Namely create a pool to be used by this IPAM test.

- converted to ginkgo/v2
- added the following e2e config fields for ipam e2e test:
  - NODE_IPAM_POOL_SUBNET
  - NODE_IPAM_POOL_GATEWAY
  - NODE_IPAM_POOL_START
  - NODE_IPAM_POOL_END
  - NODE_IPAM_NAMESERVER

Co-authored-by: Aidan Obley <[email protected]>
Co-authored-by: Christian Ang <[email protected]>
Co-authored-by: Tyler Schultz <[email protected]>
Co-authored-by: Edwin Xie <[email protected]>
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jan 13, 2023
@christianang
Copy link
Contributor

We rebased the PR on main. Let us know if you want/or we can help with anything in setting up CI, but for now I'll assume you have that covered.

@tylerschultz tylerschultz changed the title [WIP] ✨ E2E for IPAM support & switch to Ginkgo v2 [WIP] ✨ E2E for IPAM support Jan 18, 2023
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 7, 2023
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

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.

@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

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 6, 2023
@sbueringer
Copy link
Member

@tylerschultz Can you get us to speed what the current state of this PR is? Thank you!

@adobley
Copy link
Contributor

adobley commented Jul 21, 2023

@srm09 Do you know if a pool was created to run these tests against? That should be the last piece we were waiting on.

@randomvariable
Copy link
Member

@srm09 is working on a doc, we need a mechanism to pool IPPools themselves so we can have concurrent testing, but we may need to wait a bit until maintainers have a better overview of the test infrastructure. Hoping to make progress in next 2 weeks.

@chrischdi
Copy link
Member

We need to take a look in some future to outline a plan and work on this.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active 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 rotten
  • Close this PR with /close
  • Offer to help out with Issue Triage

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

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 19, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and 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:

  • Reopen this PR with /reopen
  • Mark this PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

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

/close

@k8s-ci-robot
Copy link
Contributor

@k8s-triage-robot: Closed this PR.

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and 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:

  • Reopen this PR with /reopen
  • Mark this PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

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

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants