Module harvester_e2e_tests.integrations.test_0_storage_network
Functions
def cluster_network(request, api_client, unique_name)
def test_storage_network(api_client, cluster_network, vlan_id, unique_name, wait_timeout, setting_checker)
-
To cover test: - https://harvester.github.io/tests/manual/_incoming/1055_dedicated_storage_network/
Prerequisites
- All VMs should be halted
- All nodes should be selected in cluster network
Steps
- Create VM Network with the VLAN ID to get CIDR
- Delete the VM Network
- Create Storage Network with the cluster network, VLAN ID and IP Range(CIDR)
- Verify Storage Network be configured
Expected Result:
- Status of Storage Network should be
reason: Completed
andstatus:True
- Pods of Longhorn's instance manager should be
status.phase: Running
- And should have value
metadata.annotations: k8s.v1.cni.cncf.io/network-status
- And one of the value should contains
interface:lhnet1
- And the value of
ips
should be in the IP Range
- And the value of
- Status of Storage Network should be