Upgrade Harvester with IPv6 DHCP

  • Related issues: #2962 [BUG] Host IP is inconsistent

Category:

  • Upgrade Harvester

Environment setup

  1. Open the virtual machine manager

  2. Open the Connection Details -> Virtual Networks

  3. Create a new virtual network workload

  4. Add the following XML content

    <network>
    <name>workload</name>
    <uuid>ac62e6bf-6869-41a9-a2b7-25c06c7601c9</uuid>
    <forward mode="nat">
        <nat>
        <port start="1024" end="65535"/>
        </nat>
    </forward>
    <bridge name="virbr5" stp="on" delay="0"/>
    <mac address="52:54:00:7b:ed:99"/>
    <domain name="workload"/>
    <ip address="192.168.101.1" netmask="255.255.255.0">
        <dhcp>
        <range start="192.168.101.128" end="192.168.101.254"/>
        </dhcp>
    </ip>
    <ip family="ipv6" address="fd7d:844d:3e17:f3ae::1" prefix="64">
        <dhcp>
        <range start="fd7d:844d:3e17:f3ae::100" end="fd7d:844d:3e17:f3ae::1ff"/>
        </dhcp>
    </ip>
    </network>
    
  5. Change the bridge name to a new one

    image

Verification Steps

  1. Create a VM and use the customized ipv6 virtual network. (workload)
  2. Doing an Harvester v1.0.3 ISO install with create new mode
  3. Select DHCP node ip and DHCP vip during the installation
  4. Create another VMs use the customized ipv6 virtual network
  5. Doing an Harvester v1.0.3 ISO install with join mode
  6. Select DHCP node ip and DHCP vip during the installation
  7. Offline upgrade to master release, refer to https://docs.harvesterhci.io/v1.1/upgrade/automatic
  8. Check host IP on Host page
  9. Check the ip allocated to node kubectl get nodes -o json | jq '.items[].status.addresses'

Expected Results

  1. Can completely upgrade from v1.0.3 to v1.1.0

  2. The Host IP should not display IPv6 information and no Host IP is inconsistent error image

  3. Access node machine, check the IP information

    harv103-master:~ # kubectl get nodes -o json | jq '.items[].status.addresses'
    [
      {
        "address": "192.168.101.162",
        "type": "InternalIP"
      },
      {
        "address": "harv103-master",
        "type": "Hostname"
      }
    ]
    
  4. Check the network connectivity of vlan and management network

  5. Can completely upgrade Harvester to specific version

  6. All pods are running correctly

  7. Check can display Monitoring Chart

    • Prometheus dashboard
    • VM metrics
  8. Can access dashboard by VIP

  9. Can use original password to login

  10. Can start VM in running status

  11. Image exists without corrupted

  12. Volume exists

  13. Virtual network exists

  14. Backup exists

  15. Setting value exists

  16. Can restore VM from backup

  17. Can create new VMs