diff --git a/tests/network/l2_bridge/mixed_nodes/__init__.py b/tests/network/l2_bridge/mixed_nodes/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/network/l2_bridge/mixed_nodes/test_l2_bridge_connectivity_mixed_nodes.py b/tests/network/l2_bridge/mixed_nodes/test_l2_bridge_connectivity_mixed_nodes.py new file mode 100644 index 0000000000..4133c2f35b --- /dev/null +++ b/tests/network/l2_bridge/mixed_nodes/test_l2_bridge_connectivity_mixed_nodes.py @@ -0,0 +1,40 @@ +""" +Linux Bridge Connectivity After Live Migration Between RHCOS 9 and RHCOS 10 Worker Nodes + +STP: +https://github.com/RedHatQE/openshift-virtualization-tests-design-docs/blob/main/stps/sig-network/hotpluggable-nad-ref.md + +Markers: + - special_infra +""" + +import pytest + +__test__ = False + + +@pytest.mark.polarion("CNV-15949") +def test_linux_bridge_connectivity_preserved_during_server_migration_between_rhcos9_and_rhcos10(): + """ + Test that TCP connectivity is preserved when the server VM migrates + between RHCOS 9 and RHCOS 10 nodes. + + Preconditions: + - Linux bridge Network Attachment Definition created + - Server VM connected to a Linux bridge network, running on an RHCOS 9 worker node via node selector + - Client VM connected to a Linux bridge network, running on an RHCOS 9 worker node via node selector + - Active TCP connection established from the client VM to the server VM + + Steps: + 1. Update server VM node selector to target the RHCOS 10 node + 2. Live migrate the server VM + 3. Wait for migration to complete + 4. Verify TCP connectivity from the client VM to the server VM + 5. Update server VM node selector to target the RHCOS 9 node + 6. Live migrate the server VM + 7. Wait for migration to complete + 8. Verify TCP connectivity from the client VM to the server VM + + Expected: + - TCP connection from the client VM to the server VM succeeds after each migration + """ diff --git a/tests/network/l2_bridge/mixed_nodes/test_primary_network_connectivity_mixed_nodes.py b/tests/network/l2_bridge/mixed_nodes/test_primary_network_connectivity_mixed_nodes.py new file mode 100644 index 0000000000..1367851057 --- /dev/null +++ b/tests/network/l2_bridge/mixed_nodes/test_primary_network_connectivity_mixed_nodes.py @@ -0,0 +1,39 @@ +""" +Primary Network Connectivity After Live Migration Between RHCOS 9 and RHCOS 10 Worker Nodes + +STP: +https://github.com/RedHatQE/openshift-virtualization-tests-design-docs/blob/main/stps/sig-network/hotpluggable-nad-ref.md + +Markers: + - special_infra +""" + +import pytest + +__test__ = False + + +@pytest.mark.polarion("CNV-15950") +def test_primary_network_connectivity_preserved_during_server_migration_between_rhcos9_and_rhcos10(): + """ + Test that primary network connectivity is preserved when the server VM migrates + between RHCOS 9 and RHCOS 10 nodes. + + Preconditions: + - Server VM connected to the primary network, running on an RHCOS 9 worker node via node selector + - Client VM connected to the primary network, running on an RHCOS 9 worker node via node selector + - Ping from the client VM to the server VM succeeds + + Steps: + 1. Update server VM node selector to match the RHCOS 10 node + 2. Live migrate the server VM + 3. Wait for migration to complete + 4. Ping the server VM from the client VM + 5. Update server VM node selector to match the RHCOS 9 node + 6. Live migrate the server VM + 7. Wait for migration to complete + 8. Ping the server VM from the client VM + + Expected: + - Ping succeeds after each migration + """ diff --git a/tests/network/localnet/mixed_nodes/__init__.py b/tests/network/localnet/mixed_nodes/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/network/localnet/mixed_nodes/test_localnet_connectivity_mixed_nodes.py b/tests/network/localnet/mixed_nodes/test_localnet_connectivity_mixed_nodes.py new file mode 100644 index 0000000000..058159be2b --- /dev/null +++ b/tests/network/localnet/mixed_nodes/test_localnet_connectivity_mixed_nodes.py @@ -0,0 +1,40 @@ +""" +Localnet Connectivity After Live Migration Between RHCOS 9 and RHCOS 10 Worker Nodes + +STP: +https://github.com/RedHatQE/openshift-virtualization-tests-design-docs/blob/main/stps/sig-network/hotpluggable-nad-ref.md + +Markers: + - special_infra +""" + +import pytest + +__test__ = False + + +@pytest.mark.polarion("CNV-15951") +def test_localnet_connectivity_preserved_during_server_migration_between_rhcos9_and_rhcos10(): + """ + Test that TCP connectivity is preserved when the server VM migrates + between RHCOS 9 and RHCOS 10 nodes. + + Preconditions: + - Localnet Network Attachment Definition created + - Server VM connected to a localnet network, running on an RHCOS 9 worker node via node selector + - Client VM connected to a localnet network, running on an RHCOS 9 worker node via node selector + - Active TCP connection established from the client VM to the server VM + + Steps: + 1. Update server VM node selector to target the RHCOS 10 node + 2. Live migrate the server VM + 3. Wait for migration to complete + 4. Verify TCP connectivity from the client VM to the server VM + 5. Update server VM node selector to target the RHCOS 9 node + 6. Live migrate the server VM + 7. Wait for migration to complete + 8. Verify TCP connectivity from the client VM to the server VM + + Expected: + - TCP connection from the client VM to the server VM succeeds after each migration + """ diff --git a/tests/network/user_defined_network/mixed_nodes/__init__.py b/tests/network/user_defined_network/mixed_nodes/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/network/user_defined_network/mixed_nodes/test_udn_connectivity_mixed_nodes.py b/tests/network/user_defined_network/mixed_nodes/test_udn_connectivity_mixed_nodes.py new file mode 100644 index 0000000000..e6499943ef --- /dev/null +++ b/tests/network/user_defined_network/mixed_nodes/test_udn_connectivity_mixed_nodes.py @@ -0,0 +1,40 @@ +""" +Primary UDN Connectivity After Live Migration Between RHCOS 9 and RHCOS 10 Worker Nodes + +STP: +https://github.com/RedHatQE/openshift-virtualization-tests-design-docs/blob/main/stps/sig-network/hotpluggable-nad-ref.md + +Markers: + - special_infra +""" + +import pytest + +__test__ = False + + +@pytest.mark.polarion("CNV-15952") +def test_udn_connectivity_preserved_during_server_migration_between_rhcos9_and_rhcos10(): + """ + Test that TCP connectivity is preserved when the server VM migrates + between RHCOS 9 and RHCOS 10 nodes. + + Preconditions: + - Primary User Defined Network created + - Server VM connected to a primary User Defined Network, running on an RHCOS 9 worker node via node selector + - Client VM connected to a primary User Defined Network, running on an RHCOS 9 worker node via node selector + - Active TCP connection established from the client VM to the server VM + + Steps: + 1. Update server VM node selector to target the RHCOS 10 node + 2. Live migrate the server VM + 3. Wait for migration to complete + 4. Verify TCP connectivity from the client VM to the server VM + 5. Update server VM node selector to target the RHCOS 9 node + 6. Live migrate the server VM + 7. Wait for migration to complete + 8. Verify TCP connectivity from the client VM to the server VM + + Expected: + - TCP connection from the client VM to the server VM succeeds after each migration + """