-
Notifications
You must be signed in to change notification settings - Fork 5
Add a live migration test without peer-to-peer connection #43
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: main
Are you sure you want to change the base?
Conversation
|
Can you please elaborate a little about the missing why part? |
We have broken the migration when not using the As OpenStack Nova always uses the I would consider this a draft at this point |
|
Would it make sense to refactor our “static” tests—or at least parts of them—into a generated, matrix-style set of tests, e.g.:
we can briefly discuss this in today's sync |
I think that makes sense to some degree. But for this case, I think we might just say we only support p2p migration and drop the "legacy" migration support. Because it does not really makes sense to support a feature we do not use in the end. Further, I also plan to only support P2P migration when upstreaming the feature (not checked back if upstream is okay with that, but it is the plan for now). |
|
For the record: Must be rebased onto #41 |
pytest has built-in support for this. Example pseudo code generated by chatgpt: import pytest
# Define all dimensions of your test matrix
p2p_modes = ["p2p", "direct"]
plug_modes = ["no_plug", "device_hotplug"]
daemon_modes = ["libvirt-daemon-restart", "norestart"]
serial_modes = ["tcp-serial", "pty-serial"]
# Generate all combinations
from itertools import product
test_matrix = list(product(p2p_modes, plug_modes, daemon_modes, serial_modes))
@pytest.mark.parametrize("p2p_mode,plug_mode,daemon_mode,serial_mode", test_matrix)
def test_libvirt_matrix(p2p_mode, plug_mode, daemon_mode, serial_mode):
"""
Matrix-style libvirt test.
Each parameter combination is automatically run as a separate test case.
"""
# Example debug print
print(f"Running test with: {p2p_mode=}, {plug_mode=}, {daemon_mode=}, {serial_mode=}") |
This is really nice. When we refactor the tests some day, we definitively do it like this. |
No description provided.