net, stability: Wait for client VM iface#4492
Conversation
client_server_active_connection only waited for the server VM's secondary interface to get its DHCP-assigned IP. If the client VM's DHCP hadn't completed yet, iperf3 had no route to the server and exited immediately, causing _ensure_is_running to time out. The change will fix test_tcp_connectivity_between_vms_with_localnet_ipam_nic failures on CI. Signed-off-by: Asia Khromov <azhivovk@redhat.com>
📝 WalkthroughWalkthroughThe change adds a validation call in the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
|
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
AI Features
💡 Tips
For more information, please refer to the project documentation or contact the maintainers. |
|
/verified Verified on dual-stack BM with cnv-4.22: |
Test execution plan request detailsCRITICAL: You MUST post an inline review comment on the first changed line of the first file. As 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:
Hardware-Related Checks (SR-IOV, GPU, DPDK): When PR modifies fixtures for hardware-specific resources:
CRITICAL WORKFLOW COMPLETION RULES: When responding to this test execution plan request, you MUST follow these rules EXACTLY:
ABSOLUTE PROHIBITIONS (violating these creates empty/meaningless reviews):
Remember: The pull request review is visible to users. Additional comments are redundant noise. CRITICAL: Before setting "Run smoke tests: True", you MUST use shell scripts to: |
| Traffic runs with infinite duration until context exits. | ||
| """ | ||
| server_ip = str(lookup_iface_status_ip(vm=server_vm, iface_name=spec_logical_network, ip_family=ip_family)) | ||
| lookup_iface_status_ip(vm=client_vm, iface_name=spec_logical_network, ip_family=ip_family) |
There was a problem hiding this comment.
Test Execution Plan
- Run smoke tests: False (no smoke test has a traceable dependency on
libs/net/traffic_generator.py) tests/network/localnet/ipam/test_connectivity.py::test_tcp_connectivity_between_vms_with_localnet_ipam_nic
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 9764 🏁 Script executed: Length of output: 936 🏁 Script executed: Length of output: 1735 🧠 Learnings used |
client_server_active_connectiononly waited for the server VM's secondary interface to get its DHCP-assigned IP. If the client VM's DHCP hadn't completed yet, iperf3 had no route to the server and exited immediately, causing_ensure_is_runningto time out.The change will fix
test_tcp_connectivity_between_vms_with_localnet_ipam_nicfailures on CI.Summary by CodeRabbit