Skip to content

Commit 4dded6c

Browse files
committed
Add known issue for IP address change upgrading to v1.7 when using DHCP
Related-to: harvester/harvester#9260 Signed-off-by: Tim Serong <[email protected]>
1 parent be8f2e8 commit 4dded6c

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

docs/upgrade/v1-6-x-to-v1-7-x.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ Clusters running v1.6.x can upgrade to v1.7.x directly because Harvester allows
1616

1717
For information about upgrading Harvester in air-gapped environments, see [Prepare an air-gapped upgrade](./automatic.md#prepare-an-air-gapped-upgrade).
1818

19+
:::info important
20+
If you are using DHCP to configure your host IP addresses, it's possible the IP addresses may change during upgrade, which will prevent the cluster from starting correctly. This requires manual intervention to remedy. For full details see [Host IP address may change during upgrade when using DHCP](#1-host-ip-address-may-change-during-upgrade-when-using-dhcp).
21+
22+
:::
23+
1924
### Update Harvester UI Extension on Rancher v2.13
2025

2126
You must use a compatible version (v1.7.x) of the Harvester UI Extension to import Harvester v1.7.x clusters on Rancher v2.13.
@@ -33,3 +38,48 @@ You must use a compatible version (v1.7.x) of the Harvester UI Extension to impo
3338
1. Allow some time for the extension to be updated, and then refresh the screen.
3439

3540
---
41+
42+
## Known Issues
43+
44+
### 1. Host IP address may change during upgrade when using DHCP
45+
46+
Harvester v1.7.x uses NetworkManager instead of Wicked as was used in earlier versions of Harvester. These two network stacks have different defaults for generating DHCP client IDs. This means that if you are using DHCP to configure your host IP addresses, after the operating system on each host is upgraded and the host rebooted, your DHCP server may return a different IP address for that host than it did before. If this happens, the host in question will be unable to join the cluster on startup because its IP address has changed.
47+
48+
This problem will not occur if your DHCP server is configured to allocate fixed IP addresses based on MAC address, as is done in [Harvester iPXE Examples](https://github.com/harvester/ipxe-examples). It will occur however if the DHCP server is allocating IP addresses based solely on DHCP client ID.
49+
50+
For single node Harvester deployments that have this issue, Harvester simply will not start after rebooting after the upgrade, because the IP address is changed. For multi node deployments you may find management nodes are stuck "Waiting Reboot". In both cases, to address this issue, perform the following steps _after_ the node is upgraded and its IP address has changed:
51+
52+
1. Log in to the affected node, either via `ssh` to its new IP address, or by using the console.
53+
1. Check for lease XML file in the `/var/lib/wicked` directory. It should be named similar to `/var/lib/wicked/lease-mgmt-br-dhcp-ipv4.xml`. If you are using a VLAN, the file name will include the VLAN ID, for example `/var/lib/wicked/lease-mgmt-br.2017-dhcp-ipv4.xml`
54+
1. View this file to find the DHCP client ID:
55+
```
56+
$ cat /var/lib/wicked/lease-mgmt-br-dhcp-ipv4.xml
57+
<lease>
58+
...
59+
<ipv4:dhcp>
60+
<client-id>ff:00:dd:c7:05:00:01:00:01:30:ae:a0:d3:52:54:00:dd:c7:05</client-id>
61+
...
62+
</ipv4:dhcp>
63+
</lease>
64+
```
65+
1. Edit the `/oem/91_networkmanager.yaml` file and add the DHCP client ID to the content of the appropriate NetworkManager connection profile inside that file. If you are not using a VLAN, use the `bridge-mgmt.nmconnection` section. If you are using a VLAN, use `vlan-mgmt.nmconnection`. In either case, add `dhcp-client-id=CLIENT_ID_FROM_WICKED_LEASE_FILE` below the `[ipv4]` line, for example:
66+
```
67+
$ cat /oem/91_networkmanager.yaml
68+
name: Harvester Network Configuration
69+
stages:
70+
initramfs:
71+
- files:
72+
...
73+
- path: /etc/NetworkManager/system-connections/bridge-mgmt.nmconnection
74+
...
75+
content: |
76+
...
77+
[ipv4]
78+
dhcp-client-id=ff:00:dd:c7:05:00:01:00:01:30:ae:a0:d3:52:54:00:dd:c7:05
79+
method=auto
80+
...
81+
82+
```
83+
1. Reboot the node. The DHCP server should now return the correct IP address.
84+
85+
Related issues: [#9260](https://github.com/harvester/harvester/issues/9260) and [#3418](https://github.com/harvester/harvester/issues/3418)

0 commit comments

Comments
 (0)