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

Merged
merged 2 commits into from
Dec 17, 2024

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

@kubevirt-bot kubevirt-bot added the dco-signoff: yes Indicates the PR's author has DCO signed all their commits. label Nov 21, 2024
@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
@kubevirt-bot kubevirt-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 16, 2024
@RamLavi RamLavi force-pushed the unify-primary-secondary-tests branch from fef420c to 222f8f1 Compare December 17, 2024 14:45
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]>
@RamLavi RamLavi force-pushed the unify-primary-secondary-tests branch from 222f8f1 to 2bd3439 Compare December 17, 2024 15:21
@kubevirt-bot kubevirt-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 17, 2024
Copy link
Collaborator

@qinqon qinqon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 17, 2024
@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qinqon

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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 17, 2024
@kubevirt-bot kubevirt-bot merged commit 1c98348 into kubevirt:main Dec 17, 2024
4 checks passed
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. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants