tlu/doc/notes.md

39 lines
2.1 KiB
Markdown
Raw Permalink Normal View History

2021-11-06 09:14:28 +00:00
# Harvester 0.3.0
2021-11-06 09:18:54 +00:00
## KubeConfig doesn't work, not valid for kube-vip IP, only for some "random" IPs in flannel network.
This can happen when cluster is restarted, maybe if rancher pods are restarted, can be fixed with: `kubectl annotate secrets -n cattle-system tls-rancher-internal listener.cattle.io/cn-<kube-vip>=<kube-vip>`
`<kube-vip> = cluster IP address`
2021-11-06 09:14:28 +00:00
`kubectl annotate secrets -n cattle-system tls-rancher-internal listener.cattle.io/cn-172.18.0.20=172.18.0.20`
2021-11-06 09:18:54 +00:00
2021-10-25 10:23:04 +00:00
https://github.com/harvester/harvester/issues/1475
2021-11-06 09:18:54 +00:00
## Need to boot with no nomodeset on harvester 0.3.0 nodes
https://docs.harvesterhci.io/v0.3/troubleshooting/os/#how-to-permanently-edit-kernel-parameters
```
2021-10-27 12:27:48 +00:00
mount -o remount,rw $(blkid -L COS_STATE) /run/initramfs/cos-state
vim /run/initramfs/cos-state/grub2/grub.cfg
2021-11-06 09:18:54 +00:00
```
2021-10-25 10:23:04 +00:00
2021-11-18 12:59:40 +00:00
## Rancher server is logging error syncing nodename
The rancher server is logging the following for every node, repeatedly
```
2021/11/10 08:40:57 [ERROR] error syncing 'node2': handler machine-worker-label: machines.cluster.x-k8s.io "custom-9cebcaf1ae85" not found, requeuing
```
tag all nodes in the harvester cluster as worker nodes
```
kubectl label node node1 node-role.kubernetes.io/worker=true
```
2021-11-09 11:02:55 +00:00
# podman
Proplem:
```
ERRO[0000] Error adding network: failed to allocate for range 0: 10.88.0.46 has been allocated to ce5ed278f7e2af02a39c6281cf87b23aabf93f7ac45426c6f57d32188558846d, duplicate allocation is not allowed
ERRO[0000] Error while adding pod to CNI network "podman": failed to allocate for range 0: 10.88.0.46 has been allocated to ce5ed278f7e2af02a39c6281cf87b23aabf93f7ac45426c6f57d32188558846d, duplicate allocation is not allowed
Error: unable to start container "ce5ed278f7e2af02a39c6281cf87b23aabf93f7ac45426c6f57d32188558846d": error configuring network namespace for container ce5ed278f7e2af02a39c6281cf87b23aabf93f7ac45426c6f57d32188558846d: failed to allocate for range 0: 10.88.0.46 has been allocated to ce5ed278f7e2af02a39c6281cf87b23aabf93f7ac45426c6f57d32188558846d, duplicate allocation is not allowed
```
remove the offending file in `/var/lib/cni/networks/podman` and restart container