Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
Original file line number Diff line number Diff line change
@@ -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
"""
Original file line number Diff line number Diff line change
@@ -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
"""
Empty file.
Original file line number Diff line number Diff line change
@@ -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
"""
Empty file.
Original file line number Diff line number Diff line change
@@ -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
"""