Skip to content

Conversation

ormergi
Copy link
Contributor

@ormergi ormergi commented Sep 29, 2025

Rebased on #30197 (first 3 commits)

This PR is a followup PR to #30010 #30197, adding tests to check MAC conflict detection:
create VM with Preconfigured MAC, assert MAC conflict are detected

RamLavi and others added 3 commits September 7, 2025 14:28
Validates that KubeVirt VMs with preconfigured MAC and IP addresses
maintain those addresses correctly before and after a vmi with duplicate
IP/MAC request is made, and that the vmi with the duplicate address get
the appropriate address conflict error event.

Co-authored-by: Miguel Duarte Barroso <[email protected]>
Signed-off-by: Ram Lavi <[email protected]>
The requested IPs for the primary UDN attachment are not in the VMI
spec, but in an annotation in the VMI. Hence, we need to fetch that
particular annotation, and set it in the duplicate VMI.

This was implemented using the builder pattern, since I suspect in the
future we will need to further customize the VMI spec / metadata; this
will make it simpler to extend the framework in the future.

Signed-off-by: Miguel Duarte Barroso <[email protected]>
This way we can ensure appropriate cases are caught in a generic way.
With it, we can safely expect to find IP conflicts when there are
duplicate IPs in the network.
In future commits, we will be able to catch MAC conflicts when there are
duplicate MACs in the network

Co-authored-by: Ram Lavi <[email protected]>
Signed-off-by: Miguel Duarte Barroso <[email protected]>
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 29, 2025
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 29, 2025
Copy link
Contributor

openshift-ci bot commented Sep 29, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ormergi ormergi changed the title ovn-k, virt, preconfigured udn addresses: Test MAC conflict detection CORENET-6373: ovn-k, virt, preconfigured udn addresses: Test MAC conflict detection Sep 29, 2025
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Sep 29, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Sep 29, 2025

@ormergi: This pull request references CORENET-6373 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target either version "4.21." or "openshift-4.21.", but it targets "openshift-4.20" instead.

In response to this:

Rebased on #30197 (first 3 commits)

This PR is a followup PR to #30010 #30197, adding tests to check MAC conflict detection:
create VM with Preconfigured MAC, assert MAC conflict are detected

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 openshift-eng/jira-lifecycle-plugin repository.

@ormergi
Copy link
Contributor Author

ormergi commented Sep 29, 2025

/tide refresh

@ormergi ormergi force-pushed the preconfigured-udn-addresses-e2e-mac-conflict-detection branch from d1b63ed to 77b39ed Compare September 29, 2025 15:08
@ormergi
Copy link
Contributor Author

ormergi commented Sep 29, 2025

/test e2e-metal-ipi-ovn-bgp-virt-dualstack-techpreview

@ormergi
Copy link
Contributor Author

ormergi commented Sep 29, 2025

/testwith openshift/origin/main/e2e-metal-ipi-ovn-bgp-virt-dualstack-techpreview openshift/ovn-kubernetes#2769

@ormergi ormergi force-pushed the preconfigured-udn-addresses-e2e-mac-conflict-detection branch from 77b39ed to 7076438 Compare September 30, 2025 08:38
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 30, 2025
@ormergi
Copy link
Contributor Author

ormergi commented Sep 30, 2025

/testwith openshift/origin/main/e2e-metal-ipi-ovn-bgp-virt-dualstack-techpreview openshift/ovn-kubernetes#2769

@ormergi
Copy link
Contributor Author

ormergi commented Sep 30, 2025

Previous job fail to start

@ormergi
Copy link
Contributor Author

ormergi commented Sep 30, 2025

/testwith openshift/origin/main/e2e-metal-ipi-ovn-bgp-virt-dualstack-techpreview openshift/ovn-kubernetes#2769

@ormergi ormergi force-pushed the preconfigured-udn-addresses-e2e-mac-conflict-detection branch from 7076438 to 94383a7 Compare October 1, 2025 09:01
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 1, 2025
Verify KubeVirt VMs with preconfigured MAC address retain a
requested MAC address before and after another VM is created
requesting the same MAC address.
And verify the other VM requesting the same MAC address get
the appropriate address conflict error event.

Signed-off-by: Or Mergi <[email protected]>
@ormergi ormergi force-pushed the preconfigured-udn-addresses-e2e-mac-conflict-detection branch from 94383a7 to c7dbb14 Compare October 1, 2025 09:03
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 1, 2025
@ormergi
Copy link
Contributor Author

ormergi commented Oct 1, 2025

/testwith openshift/origin/main/e2e-metal-ipi-ovn-bgp-virt-dualstack-techpreview openshift/ovn-kubernetes#2769

Copy link
Contributor

openshift-ci bot commented Oct 1, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ormergi
Once this PR has been reviewed and has the lgtm label, please assign jcaamano for approval. For more information see the 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

@ormergi
Copy link
Contributor Author

ormergi commented Oct 3, 2025

@maiqueb / @qinqon could you please have a look?

@ormergi ormergi marked this pull request as ready for review October 3, 2025 06:14
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 3, 2025
@openshift-ci openshift-ci bot requested review from miheer and pperiyasamy October 3, 2025 06:15
Copy link
Contributor

openshift-ci bot commented Oct 3, 2025

@ormergi: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-gcp-csi c7dbb14 link true /test e2e-gcp-csi
ci/prow/e2e-vsphere-ovn c7dbb14 link true /test e2e-vsphere-ovn
ci/prow/e2e-aws-ovn-single-node-serial c7dbb14 link false /test e2e-aws-ovn-single-node-serial
ci/prow/e2e-aws-csi c7dbb14 link true /test e2e-aws-csi
ci/prow/okd-scos-e2e-aws-ovn c7dbb14 link false /test okd-scos-e2e-aws-ovn

Full PR test history. Your PR dashboard.

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-sigs/prow repository. I understand the commands that are listed here.

@ormergi
Copy link
Contributor Author

ormergi commented Oct 5, 2025

/cc @maiqueb

@openshift-ci openshift-ci bot requested a review from maiqueb October 5, 2025 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants