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 Declarative Networking e2e test #1523

Open
anmazzotti opened this issue Aug 1, 2024 · 1 comment
Open

Add Declarative Networking e2e test #1523

anmazzotti opened this issue Aug 1, 2024 · 1 comment

Comments

@anmazzotti
Copy link
Contributor

Docs:

This feature could use e2e testing.
As bare minimum, we can:

  1. Provision a new Machine using Declarative Networking
  2. Verify it got the desired IP assigned
  3. Reset the Machine (by deleting the MachineInventory for example)
  4. Verify it got the desired IP assigned (after reset)

There is no need to test k8s provisioning, as we expect nothing to change during or due to provisioning.

The test environment will require 2 IPAM CRDs and the InCluster IPAM provider:

kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/cluster-api/main/config/crd/bases/ipam.cluster.x-k8s.io_ipaddressclaims.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/cluster-api/main/config/crd/bases/ipam.cluster.x-k8s.io_ipaddresses.yaml
kubectl apply -f https://github.com/kubernetes-sigs/cluster-api-ipam-provider-in-cluster/releases/download/v0.1.0/ipam-components.yaml

Also note the OS image used need to have nmstatectl installed, so possibly this issue is a pre-requisite: #1519
Alternatively the nmstatectl can be simply installed from the released binaries: https://github.com/nmstate/nmstate/releases

@juadk juadk added this to Elemental Aug 1, 2024
@juadk juadk moved this to 🗳️ To Do in Elemental Aug 1, 2024
@anmazzotti
Copy link
Contributor Author

This could also be another pre-requisite: rancher/rancher#46385

We should not be installing these CRDs manually, as we expect them to be included in Rancher.
On that regard, we also don't know in which versions they will be included, 2.9.x only? 2.8.x too? 2.7.x maybe?

This could also influence the test.

@juadk juadk moved this from 🗳️ To Do to 🏃🏼‍♂️ In Progress in Elemental Aug 2, 2024
@juadk juadk self-assigned this Aug 2, 2024
@juadk juadk moved this from 🏃🏼‍♂️ In Progress to 🗳️ To Do in Elemental Aug 2, 2024
@juadk juadk moved this from 🗳️ To Do to 💡 Backlog in Elemental Aug 6, 2024
@juadk juadk moved this from 🏃🏼‍♂️ In Progress to 💡 Backlog in Elemental Oct 17, 2024
@juadk juadk removed their assignment Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 💡 Backlog
Development

No branches or pull requests

2 participants