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

iface_bridge: make host interface configurable #6002

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

smitterl
Copy link
Contributor

On our test environment we must use not the first host interface. Make configurable but maintain default behavior if not configured.

@smitterl
Copy link
Contributor Author

# avocado run --vt-type libvirt --vt-omit-data-loss --vt-machine-type s390-virtio `cat /tmp/testcases` --vt-connect-uri qemu:///system --vt-extra-params "host_iface = enc2
remote_ip = 192.168.126.1"
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.
JOB ID     : db234dddcb5163e69a7ef2cf70744b93fe7ed7fa
JOB LOG    : /var/log/avocado/job-results/job-2024-11-19T13.06-db234dd/job.log
 (1/6) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.default.shared_physical_network: STARTED
 (1/6) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.default.shared_physical_network: PASS (91.07 s)
 (2/6) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.hotplug_iface.shared_physical_network: STARTED
 (2/6) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.hotplug_iface.shared_physical_network: PASS (70.46 s)
 (3/6) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.hotplug_device.shared_physical_network: STARTED
 (3/6) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.hotplug_device.shared_physical_network: PASS (101.12 s)
 (4/6) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.update_with_diff_type.shared_physical_network: STARTED
 (4/6) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.update_with_diff_type.shared_physical_network: PASS (70.57 s)
 (5/6) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.multiqueues.hotplug_device.shared_physical_network: STARTED
 (5/6) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.multiqueues.hotplug_device.shared_physical_network: PASS (72.22 s)
 (6/6) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.test_qos.hotplug_iface.shared_physical_network: STARTED
 (6/6) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.test_qos.hotplug_iface.shared_physical_network: PASS (70.98 s)
RESULTS    : PASS 6 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /var/log/avocado/job-results/job-2024-11-19T13.06-db234dd/results.html

@@ -113,7 +113,8 @@ def check_net_functions(guest_ip, ping_count, ping_timeout, guest_session, host_
filter_name = params.get("filter_name", "vdsm-no-mac-spoofing")
ping_count = params.get("ping_count", "5")
ping_timeout = float(params.get("ping_timeout", "10"))
iface_name = utils_net.get_net_if(state="UP")[0]
host_iface = params.get("host_iface")
iface_name = host_iface if host_iface else utils_net.get_net_if(state="UP")[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

We have updated this part to use default gateway instead of the first up iface.
Would you like to take a look?
e0d65ec

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

On our test environment we must use not the first host interface.
Make configurable but maintain default behavior if not configured.

Signed-off-by: Sebastian Mitterle <[email protected]>
@smitterl
Copy link
Contributor Author

JOB ID : a641729606ce65926266f60a466d0558d0cc7d61
JOB LOG : /var/log/avocado/job-results/job-2024-12-11T12.46-a641729/job.log
(1/1) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.default.shared_physical_network: STARTED
(1/1) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.default.shared_physical_network: PASS (89.16 s)
RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /var/log/avocado/job-results/job-2024-12-11T12.46-a641729/results.html
JOB TIME : 90.73 s

@smitterl
Copy link
Contributor Author

JOB ID     : 1cc5c09811eea2d2bc0d14410b288e73d725882e
JOB LOG    : /var/log/avocado/job-results/job-2024-12-11T12.55-1cc5c09/job.log
 (01/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.default.shared_physical_network: STARTED
 (01/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.default.shared_physical_network: PASS (88.37 s)
 (02/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.hotplug_iface.shared_physical_network: STARTED
 (02/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.hotplug_iface.shared_physical_network: PASS (69.35 s)
 (03/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.hotplug_device.shared_physical_network: STARTED
 (03/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.hotplug_device.shared_physical_network: PASS (70.36 s)
 (04/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.update_with_diff_type.shared_physical_network: STARTED
 (04/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.update_with_diff_type.shared_physical_network: PASS (99.89 s)
 (05/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.multiqueues.start.shared_physical_network: STARTED
 (05/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.multiqueues.start.shared_physical_network: PASS (44.18 s)
 (06/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.multiqueues.hotplug_device.shared_physical_network: STARTED
 (06/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.multiqueues.hotplug_device.shared_physical_network: PASS (70.88 s)
 (07/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.reconnect_tap.bridge_restart_libvirt.shared_physical_network: STARTED
 (07/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.reconnect_tap.bridge_restart_libvirt.shared_physical_network: PASS (60.42 s)
 (08/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.reconnect_tap.net.restart_libvirt.shared_physical_network: STARTED
 (08/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.reconnect_tap.net.restart_libvirt.shared_physical_network: PASS (60.77 s)
 (09/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.reconnect_tap.net.restart_net.shared_physical_network: STARTED
 (09/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.reconnect_tap.net.restart_net.shared_physical_network: PASS (44.91 s)
 (10/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.test_qos.start.shared_physical_network: STARTED
 (10/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.test_qos.start.shared_physical_network: PASS (44.32 s)
 (11/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.test_qos.hotplug_iface.shared_physical_network: STARTED
 (11/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.test_qos.hotplug_iface.shared_physical_network: PASS (70.05 s)
 (12/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.test_qos.network.shared_physical_network: STARTED
 (12/12) type_specific.io-github-autotest-libvirt.virtual_network.iface_bridge.test_qos.network.shared_physical_network: PASS (45.00 s)
RESULTS    : PASS 12 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /var/log/avocado/job-results/job-2024-12-11T12.55-1cc5c09/results.html
JOB TIME   : 778.91 s

@chloerh chloerh merged commit 5a18980 into autotest:master Dec 12, 2024
5 checks passed
TasmiyaNalatwad pushed a commit to TasmiyaNalatwad/tp-libvirt that referenced this pull request Dec 12, 2024
…ice persistent across Multiple Reboot of VM

1. Changes made to support ppc64 arch and perform pci PT of network devices
2. Perform ping to other server ip and check the device network connectivity
3. Added test to check the device avilabity after multiple reboots of guest is done

Merge pull request autotest#6002 from smitterl/iface_bridge

iface_bridge: make host interface configurable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants