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

e2e, persistent-ip: Unify primary,secondary tests (primary UDNs use managedTap) #75

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

RamLavi
Copy link
Contributor

@RamLavi RamLavi commented Nov 21, 2024

What this PR does / why we need it:
Currently in the e2e persistent-ips the method of retrieving the IPs from the VM differs between primary and secondary UDN VMs. The reason for the difference is that primary UDN VMs did not support publishing the IPs via VMI.status.

Due to improvements in kubevirt/kubevirt the interface on vmi.status (kubevirt/kubevirt#13018) the vmi interface is now published on the vmi.status - also for primary UDN VMs.

Changing the primary UDN e2e function that retrieves the IPs to use the vmi.status allows us to simplify the e2e by unifying the function that retrieves the VMI IPs.

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:
This PR relies on #73

Release note:

NONE

oshoval and others added 3 commits November 17, 2024 09:26
Due to improvements in kubevirt/kubevirt the interface on vmi.status [0]
the vmi interface is now published on the vmi.status. This allows
retrieving the IPs of the primary UDN interface via the vmi.status.
Changing the primary UDN e2e function that retrieves the IPs to use the
vmi.status.

[0] kubevirt/kubevirt#13018

Signed-off-by: Ram Lavi <[email protected]>
Now that both secondary/primary UDNs get the IPs from the vmi.status, it
possible to remove the ipsFrom helper function, and instead use the
interface name as a parameter of the test.
Doing so unifies and simplifies the e2e tests for both secondary and primary UDNs.

Signed-off-by: Ram Lavi <[email protected]>
@kubevirt-bot kubevirt-bot added the dco-signoff: yes Indicates the PR's author has DCO signed all their commits. label Nov 21, 2024
@kubevirt-bot
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 qinqon for approval. 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

@RamLavi RamLavi changed the title e2e, persistent-ip: Unify primary,secondary tests e2e, persistent-ip: Unify primary,secondary tests (primary UDNs as managedTap) Nov 21, 2024
@RamLavi RamLavi changed the title e2e, persistent-ip: Unify primary,secondary tests (primary UDNs as managedTap) e2e, persistent-ip: Unify primary,secondary tests (primary UDNs use managedTap) Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants