- Related issues: #2734 [FEATURE] VLAN enhancement upgrading
Category:
- Upgrade
Verification Steps
Test plan 1: harvester-mgmt vlan1
- Prepare a 3 nodes
v1.0.3Harvester cluster - Enable network on
harvester-mgmt - Create vlan id
1 - Create two VMs, one set to vlan 1 and another use harvester-mgmt
- Perform manual upgrade to
v1.1.0
Test plan 2: enps0 NIC with valid vlan
- Prepare a 3 nodes
v1.0.3Harvester cluster - Enable network on another NIC (eg.
enp129s0) - Create vlan id
91onenp129s0 - Create two VMs, one set to vlan 91 and another use harvester-mgmt
- Perform manual upgrade to
v1.1.0
Test plan 3: Bond mode using Harvester config file
- Edit the ipxe-example add two additional NICs in Vagrantfile
harvester_node.vm.network 'private_network', libvirt__network_name: 'harvester' harvester_node.vm.network 'private_network', libvirt__network_name: 'harvester' - Add the
harvester-vlannetwork in /ansible/roles/harvester/templates/config-create.yaml.j2install: mode: create networks: harvester-mgmt: interfaces: - name: {{ settings['harvester_network_config']['cluster'][0]['mgmt_interface'] }} # The management interface name method: dhcp bond0: interfaces: - name: {{ settings['harvester_network_config']['cluster'][0]['vagrant_interface'] }} method: dhcp harvester-vlan: interfaces: - name: ens7 - name: ens8 method: none - Prepare a 1 nodes
v1.0.3Harvester cluster using ipex-example - Check the
harvester-vlanlink device statusip -d l show dev harvester-vlan - Create several vlan based on
harvester-vlaninterface - Create a VM with
vlan 1network - The harvester-vlan config before upgrade
harvester-vlan: interfaces: - name: ens7 hwaddr: "" - name: ens8 hwaddr: "" method: none ip: "" subnetmask: "" gateway: "" defaultroute: false bondoptions: {} mtu: 0
Expected Results
- Can successfully upgrade to v1.1.0
- Check the network bridge
mgmt-brexistsip a - Check there is
vlan 1created on default cluster network (For Test plan1) - Check there is vlan with id created on related cluster network (For Test plan2)
- Check the cluster networks contains
mgmtandvlan(For Test plan3) - Check the yaml content of vlan1 (For Test plan1)
- Check the yaml content of available vlan
91(For Test plan2) - Check new network feature and UI work on v1.1.0
- Check new network feature and UI,
vlan1onmgmt,vlan91onvlan(For Test plan2)