-
Notifications
You must be signed in to change notification settings - Fork 51
Manual cherry-pick 4.20: net: Remove fixed IPv4 addresses (#2449) #2903
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
base: cnv-4.20
Are you sure you want to change the base?
Manual cherry-pick 4.20: net: Remove fixed IPv4 addresses (#2449) #2903
Conversation
* net: Randomize ips in bond tests Generate random IP addresses using the new ip module Signed-off-by: Asia Khromov <azhivovk@redhat.com> * net: Randomize ips in jumbo tests Generate random IP addresses using the new ip module Signed-off-by: Asia Khromov <azhivovk@redhat.com> * net: Randomize ips in SR-IOV tests Generate random IP addresses using the new ip module Signed-off-by: Asia Khromov <azhivovk@redhat.com> * net: Randomize ips in cnv tuning tests Generate random IP addresses using the new ip module Signed-off-by: Asia Khromov <azhivovk@redhat.com> * net: Randomize ips in udn tests Generate random IP addresses using the new ip module Signed-off-by: Asia Khromov <azhivovk@redhat.com> * net: Randomize ips in localnet tests Generate random IP addresses using the new ip module Signed-off-by: Asia Khromov <azhivovk@redhat.com> --------- Signed-off-by: Asia Khromov <azhivovk@redhat.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/verified |
|
Report bugs in Issues Welcome! 🎉This pull request will be automatically processed with the following features: 🔄 Automatic Actions
📋 Available CommandsPR Status Management
Review & Approval
Testing & Validation
Container Operations
Cherry-pick Operations
Label Management
✅ Merge RequirementsThis PR will be automatically approved when the following conditions are met:
📊 Review ProcessApprovers and ReviewersApprovers:
Reviewers:
Available Labels
💡 Tips
For more information, please refer to the project documentation or contact the maintainers. |
Test execution plan request detailsAs an expert software testing engineer, analyze all modified files in this PR and create a targeted test execution plan. Analysis Requirements:
Your deliverable: Test Execution Plan
Guidelines:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Execution Plan
This PR removes hardcoded IPv4 addresses and replaces them with dynamically generated addresses. The following tests need verification:
Network Bond Tests
tests/network/bond/test_l2_bridge_over_bond.py::TestBondConnectivity::test_bond
General Network Tests
tests/network/general/test_cnv_tuning_regression.py::test_vm_cnv_tuning_regression
Jumbo Frame Tests
tests/network/jumbo_frame/test_bond.py::TestJumboConnectivity::test_connectivity_over_linux_bond_large_mtutests/network/jumbo_frame/test_bond.py::TestJumboConnectivity::test_negative_mtu_linux_bondtests/network/jumbo_frame/test_bridge.py::TestJumboConnectivity::test_connectivity_over_linux_bridge_large_mtutests/network/jumbo_frame/test_bridge.py::TestJumboConnectivity::test_negative_mtu_linux_bridgetests/network/jumbo_frame/test_pod_network_ovn.py::TestJumboConnectivity
Localnet Tests
tests/network/localnet/test_default_bridge.pytests/network/localnet/test_ovs_bridge.py
SR-IOV Tests
tests/network/sriov/test_sriov.py::TestSRIOVConnectivity::test_sriov_basic_connectivitytests/network/sriov/test_sriov.py::TestSRIOVConnectivity::test_sriov_custom_mtu_connectivitytests/network/sriov/test_sriov.py::TestSRIOVConnectivity::test_sriov_basic_connectivity_vlantests/network/sriov/test_sriov.py::TestSRIOVConnectivity::test_sriov_no_connectivity_no_vlan_to_vlantests/network/sriov/test_sriov.py::TestSRIOVConnectivity::test_sriov_interfaces_post_reboottests/network/sriov/test_sriov.py::TestSRIOVConnectivity::test_sriov_migration
User Defined Network Tests
tests/network/user_defined_network/test_user_defined_network.py::TestUserDefinedNetworkWithVM
Rationale: All modified fixtures and utility functions that configure VM network interfaces with IPv4 addresses now use random_ipv4_address() instead of hardcoded addresses. These tests verify network connectivity, MTU settings, migrations, and IP assignment functionality.
|
|
||
| import utilities.network | ||
| from tests.network.libs import cloudinit as netcloud | ||
| from tests.network.libs.ip import random_ipv4_address |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Execution Plan
This PR removes hardcoded IPv4 addresses and replaces them with dynamically generated addresses. The following tests need verification:
Network Bond Tests
tests/network/bond/test_l2_bridge_over_bond.py::TestBondConnectivity::test_bond
General Network Tests
tests/network/general/test_cnv_tuning_regression.py::test_vm_cnv_tuning_regression
Jumbo Frame Tests
tests/network/jumbo_frame/test_bond.py::TestJumboConnectivity::test_connectivity_over_linux_bond_large_mtutests/network/jumbo_frame/test_bond.py::TestJumboConnectivity::test_negative_mtu_linux_bondtests/network/jumbo_frame/test_bridge.py::TestJumboConnectivity::test_connectivity_over_linux_bridge_large_mtutests/network/jumbo_frame/test_bridge.py::TestJumboConnectivity::test_negative_mtu_linux_bridgetests/network/jumbo_frame/test_pod_network_ovn.py::TestJumboConnectivity
Localnet Tests
tests/network/localnet/test_default_bridge.pytests/network/localnet/test_ovs_bridge.py
SR-IOV Tests
tests/network/sriov/test_sriov.py::TestSRIOVConnectivity::test_sriov_basic_connectivitytests/network/sriov/test_sriov.py::TestSRIOVConnectivity::test_sriov_custom_mtu_connectivitytests/network/sriov/test_sriov.py::TestSRIOVConnectivity::test_sriov_basic_connectivity_vlantests/network/sriov/test_sriov.py::TestSRIOVConnectivity::test_sriov_no_connectivity_no_vlan_to_vlantests/network/sriov/test_sriov.py::TestSRIOVConnectivity::test_sriov_interfaces_post_reboottests/network/sriov/test_sriov.py::TestSRIOVConnectivity::test_sriov_migration
User Defined Network Tests
tests/network/user_defined_network/test_user_defined_network.py::TestUserDefinedNetworkWithVM
Rationale: All modified fixtures and utility functions that configure VM network interfaces with IPv4 addresses now use random_ipv4_address() instead of hardcoded addresses. These tests verify network connectivity, MTU settings, migrations, and IP assignment functionality.
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 10841 🏁 Script executed: Length of output: 2999 🏁 Script executed: Length of output: 1135 🏁 Script executed: Length of output: 1146 🏁 Script executed: Length of output: 1088 🏁 Script executed: Length of output: 407 🏁 Script executed: Length of output: 0 🏁 Script executed: Length of output: 290 🏁 Script executed: Length of output: 418 🏁 Script executed: Length of output: 4762 @openshift-virtualization-qe-bot-3: I've successfully analyzed all modified files in PR #2903 and created a comprehensive test execution plan. The plan has been posted as a review comment on the first file. The test execution plan covers:
All these tests are affected because this PR replaces hardcoded IPv4 addresses like 🧠 Learnings used |
Manual cherry-pick 4.20: net: #2449
cmd log: