- Related issues: #3047 [BUG] migrate_harv_mgmt_to_mgmt_br.sh should remove ClusterNetwork resource
Category:
- Upgrade Harvester
Environment setup from v1.0.3 upgrade to v1.1.1
- Clone ipxe-example and switch to
v1.0
branch - Add three additional Network interface in
Vagrantfile
harvester_node.vm.network 'private_network', libvirt__network_name: 'harvester', mac: @settings['harvester_network_config']['cluster'][node_number]['mac'] harvester_node.vm.network 'private_network', libvirt__network_name: 'harvester' harvester_node.vm.network 'private_network', libvirt__network_name: 'harvester' harvester_node.vm.network 'private_network', libvirt__network_name: 'harvester'
- Edit the config-create.yaml.j2 and config-join.yaml.j2 in /ansible/role/harvester/template/
- Add the cluster_network and defaultPysicalNIC to
harvester-mgmt
cluster_networks: vlan: enable: true description: "some description about this cluster network" config: defaultPhysicalNIC: harvester-mgmt
- Bond multiple NICs on
harvester-mgmt
andharvester-vlan
networksnetworks: harvester-mgmt: interfaces: - name: {{ settings['harvester_network_config']['cluster'][0]['mgmt_interface'] }} # The management interface name - name: ens9 method: dhcp bond0: interfaces: - name: {{ settings['harvester_network_config']['cluster'][0]['vagrant_interface'] }} method: dhcp harvester-vlan: interfaces: - name: ens7 - name: ens8 method: none
Verification Steps
-
Provision previous version of Harvester cluster
-
For
VLAN 1
testing, enable network on settings, selectharvester-mgmt
-
Create a
vlan1
network with id1
on Networks page -
For other VLAN id testing, enable network on settings, select correct network interface e.g
enps0f1
-
Create a
vlan91
network with available id91
on Networks page (id number depends on your available network setting) -
Create images with different OS distribution
-
Create several virtual machines, set network to
management-network
or availablevlan
-
Create virtual machine on different target node
-
Setup NFS or S3 backup target in settings
-
Backup each virtual machines
-
Shutdown all virtual machines
-
Offline upgrade to target version, refer to https://docs.harvesterhci.io/v1.1/upgrade/automatic
Expected Results
- Can completely upgrade Harvester to specific version
- Cluster Network exists
- Can create Vlan 1 on mgmt and route correctly
- Can create other valid VLAN on specific NIC and route correctly
- Check the network connectivity of vlan and management network
- All pods are running correctly
- Check can display Monitoring Chart
- Prometheus dashboard
- VM metrics
- Can access dashboard by VIP
- Can use original password to login
- Can start VM in running status
- Image exists without corrupted
- Volume exists
- Virtual network exists
- Backup exists
- Setting value exists
- Can restore VM from backup
- Can create new VMs (test)