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
- Use HDD disk with SMR type or slow I/O speed
n1-103:~ # smartctl -a /dev/sda smartctl 7.2 2021-09-14 r5237... === START OF INFORMATION SECTION === Model Family: Seagate BarraCuda 3.5 (SMR)
Verification Steps
- 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
- Apply the increase the job deadline workaround before clicking the upgrade button on dashboard
$ cat > /tmp/fix.yaml <<EOF spec: values: systemUpgradeJobActiveDeadlineSeconds: "3600" EOF $ kubectl patch managedcharts.management.cattle.io local-managed-system-upgrade-controller --namespace fleet-local --patch-file=/tmp/fix.yaml --type merge $ kubectl -n cattle-system rollout restart deploy/system-upgrade-controller
Expected Results
- Can completely upgrade Harvester to specific version
- All pods is 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
- 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