Category:
- Upgrade Harvester
Environment requirement
- Airgapped Network without internet connectivity
- 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 your available resource
Virtual Machine environment setup
- Clone ipxe-example https://github.com/harvester/ipxe-examples
- Switch to v1.0 or 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
- Edit the settings.yml, set
harvester_network_config.offline: true
- 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 VLAN network
- Setup the VLAN connectivity to your Router/Gateway device
- Disable internet connectivity on Router
- Provision a multi nodes Harvester cluster
Verification Steps
-
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
- 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