Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions docs/upgrade/v1-6-x-to-v1-7-x.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,3 +293,58 @@ Example:
To clear the message, restart the affected virtual machines at your next scheduled maintenance window.

Related issue: [#9751](https://github.com/harvester/harvester/issues/9751)

### 5. Upgrade may get stuck in PreparingRepo when node subnet overlaps with KubeVirt default masquerade CIDR

The upgrade process may become stuck in the `PreparingRepo` phase when the node network overlaps with KubeVirt’s default masquerade CIDR (`10.0.2.0/24`). In this situation, the upgrade repository VM (`upgrade-repo-hvst-xxxx`) is running but not reachable from other nodes.

This issue occurs because KubeVirt uses `10.0.2.0/24` as the default internal network for virtual machines when `VMNetworkCIDR` is not explicitly configured. If the Harvester nodes are also using this subnet, a routing conflict occurs between the VM guest network and the host network.
Comment thread
susesamu marked this conversation as resolved.
Comment thread
susesamu marked this conversation as resolved.

You may encounter the following symptoms:

```
$ kubectl -n harvester-system get vm
NAME AGE STATUS READY
upgrade-repo-hvst-xxxx XXm Running False
```

The readiness probe fails with timeout errors:

```
Readiness probe failed: Get "http://<pod-ip>:80/harvester-iso/harvester-release.yaml":
context deadline exceeded (Client.Timeout exceeded while awaiting headers)
```

To address the issue, perform the following steps:

1. Edit the upgrade repo VM and change the network interface from masquerade to bridge.

```
$ kubectl edit vm upgrade-repo-<upgrade-name> -n harvester-system
```
Comment thread
susesamu marked this conversation as resolved.

Locate the interfaces section:

```
interfaces:
- masquerade: {}
model: virtio
name: default
```

Change it to:

```
interfaces:
- bridge: {}
model: virtio
name: default
```

2. Restart the virtual machine:

```
$ virtctl stop upgrade-repo-<upgrade-name> -n harvester-system
$ virtctl start upgrade-repo-<upgrade-name> -n harvester-system
```