Category:
- Upgrade Harvester
Environment requirement
- Network environment has available VLAN id setup on DHCP server
- DHCP server has setup the IP range can allocate to above VLAN id
- Harvester node can route to DHCP server through VLAN id to retrieve IP address
- Network has at least two NICs
- Suggest not to use SMR type HDD disk
We can select VM or Bare machine network setup according to available resource
Virtual Machine environment setup
- Clone ipxe-example https://github.com/harvester/ipxe-examples
- Switch to main branch
- Edit Vagrantfile, add a new network interface of
pxe_server.vm.network
- Set the
pxe_server.vm.network
bond to correctlibvirt
network - Add two additional new network interface of
harvester_node.vm.network
- Use ipxe-example to provision a multi nodes Harvester cluster
- Run
varant ssh pxe_server
to access pxe server - Edit the
dhcpd.conf
, let pxe server can create a vlan and assign IP to it
Bare machine environment setup
- Ensure your switch router have setup available VLAN network
- Setup the VLAN connectivity to your Router/Gateway device
- Provision a multi nodes Harvester cluster
Verification Steps
- Open Cluster Networks/Configs
- Create a new cluster network
vlan
- Create a network config under cluster network
vlan
- Select which node to use this config
- Select NICs on the uplink page
- Open Networks page
- Create vlan
1
network onmgmt
cluster network - Create another vlan network on
vlan
cluster network in step 3 - 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
- Import Harvester into the Rancher cluster
- Add node after the upgrade
Expected Results
- Can completely upgrade Harvester to specific version
- All pods are running correctly
- Check that can display the 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
- Check the network connectivity of VLAN
- Can restore VM from backup
- Can import Harvester in Rancher
- Can add additional nodes to existing Harvester cluster
- Can create new vms