Skip to content

Setup private bridge in KVM autotest, get rid of ifup scripts

Lucas Meneghel Rodrigues kvm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Changes from v2 from the cover letter

* Try to close tap file descriptors in order to run multiple iterations

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5KVM test: Adding framework code to control bridge creationclient/virt/virt_test_setup.py+103 -00 replies
2/5KVM test: Add helpers to control the TAP/bridgeclient/virt/virt_utils.py+222 -00 replies
3/5KVM test: virt_env_process: Setup private bridge during postprocessingclient/virt/virt_env_process.py+9 -00 replies
4/5KVM test: setup tap fd and pass it to qemu-kvm v3client/tests/kvm/scripts/qemu-ifup client/virt/kvm_vm.py client/virt/virt_utils.py+45 -330 replies
5/5KVM test: Changing KVM autotest default to private bridgeclient/tests/kvm/tests_base.cfg.sample+7 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Setup private bridge in KVM autotest, get rid of ifup scripts

This patch combines 2 awesome patchsets by Amos and Jason to single handedly slay 2 long time annoyances for KVM autotest users:

* By default we were using qemu userspace networking, a mode unsupported by KVM developers and not terribly useful, and many network tests are not supposed to work properly with it
* Use of ifup scripts that tried to do a very naive form of bridge autodetection. If we control our bridge creation, we don't need no autodetection.

Carefully made, verified, but not tested in several setups. This might need some more testing love before we can get it upstream once for all.

Changes from v2:
* Try to close tap file descriptors in order to run multiple iterations

Lucas Meneghel Rodrigues (5):
KVM test: Adding framework code to control bridge creation KVM test: Add helpers to control the TAP/bridge KVM test: virt_env_process: Setup private bridge during
postprocessing
KVM test: setup tap fd and pass it to qemu-kvm v3 KVM test: Changing KVM autotest default to private bridge

 client/tests/kvm/scripts/qemu-ifup     |   11 --
 client/tests/kvm/tests_base.cfg.sample |   12 +-
 client/virt/kvm_vm.py                  |   59 ++++++---
 client/virt/virt_env_process.py        |    9 ++
 client/virt/virt_test_setup.py         |  103 +++++++++++++++
 client/virt/virt_utils.py              |  226 ++++++++++++++++++++++++++++++++
 6 files changed, 384 insertions(+), 36 deletions(-)
 delete mode 100755 client/tests/kvm/scripts/qemu-ifup
Signature · 1 line
1.7.5.1