xetys / hetzner-kube

A CLI tool for provisioning kubernetes clusters on Hetzner Cloud
Apache License 2.0
746 stars 116 forks source link

Fix hwe 1804 kernel #340

Open wethinkagile opened 3 years ago

wethinkagile commented 3 years ago

The HWE Kernel Patch is missing in https://github.com/xetys/hetzner-kube/pull/339 and therefore not working for me.

I incorporated the lessons from the cloud-config workaround mentioned in https://github.com/xetys/hetzner-kube/issues/329#issuecomment-651561356 into the source code of my latest fix.

So with my fix, you can just do a minimal: hetzner-kube cluster create --name <name> --ssh-key <key> to successfully provision your cluster incl. wg VPN Networking.

xetys commented 3 years ago

is this still relevant with #341 being merged?

wethinkagile commented 3 years ago

Did not test #341 yet, so I leave the decision up to you.

robjuz commented 3 years ago

@xetys the problem still exists on the master branch

./hetzner-kube-0.5.1-linux-amd64 cluster create --datacenters=fsn1-dc14 -n=k8s -k=<>
2021/01/21 21:55:51 Creating new cluster

NAME:k8s
MASTERS: 1
WORKERS: 1
ETCD NODES: 0
HA: false
ISOLATED ETCD: false
2021/01/21 21:55:51 creating server 'k8s-master-01'...
  --- [======================================] 100%
2021/01/21 21:55:56 Created node 'k8s-master-01' with IP 168.119.49.238
2021/01/21 21:55:56 creating server 'k8s-worker-01'...
  --- [======================================] 100%
2021/01/21 21:56:01 Created node 'k8s-worker-01' with IP 188.34.167.157
2021/01/21 21:56:01 sleep for 10s...
k8s-master-01        : prepare packages                   15.4% [>-------------]
k8s-worker-01        : prepare packages                   23.5% [=>------------]
run failed
command:add-apt-repository ppa:wireguard/wireguard -y
stdout:Cannot add PPA: 'ppa:~wireguard/ubuntu/wireguard'.
The team named '~wireguard' has no PPA named 'ubuntu/wireguard'
Please choose from the following available PPAs:

err:Process exited with status 1run failed
command:add-apt-repository ppa:wireguard/wireguard -y
stdout:Cannot add PPA: 'ppa:~wireguard/ubuntu/wireguard'.
The team named '~wireguard' has no PPA named 'ubuntu/wireguard'
Please choose from the following available PPAs:

err:Process exited with status 1run failed
command:add-apt-repository ppa:wireguard/wireguard -y
stdout:Cannot add PPA: 'ppa:~wireguard/ubuntu/wireguard'.
The team named '~wireguard' has no PPA named 'ubuntu/wireguard'
Please choose from the following available PPAs:

err:Process exited with status 12021/01/21 21:58:52 run failed
command:add-apt-repository ppa:wireguard/wireguard -y
stdout:Cannot add PPA: 'ppa:~wireguard/ubuntu/wireguard'.
The team named '~wireguard' has no PPA named 'ubuntu/wireguard'
Please choose from the following available PPAs:

err:Process exited with status 1
tmemenga commented 3 years ago

hi @robjuz , it looks like you are using the release 0.5.1, which does not contain the fix from #341. For now you would need to build it by yourself as there is no current release available.

robjuz commented 3 years ago

Hi @tmemenga . Thank you for pointing me in the right direction. I pulled the latest changes, but forgot to build and install and was wandering, why it's not working :P

So I confirm, there is no problem on master.

sneerin commented 3 years ago

I have a different issue: hetzner-kube cluster add-worker --worker-server-type cpx51 --datacenters nbg1-dc3 -n 1 --name my-dev-cluster


  --- [======================================] 100%
2021/01/27 18:40:32 Created node 'flowai-dev-cluster-worker-19' with IP <my IP>
2021/01/27 18:40:32 sleep for 30s...
flowai-dev-cluster-worker-19: install packages (1)
flowai-dev-cluster-worker-19: waiting for cloud-init completion (2)
flowai-dev-cluster-worker-19: installing transport tools (3)
flowai-dev-cluster-worker-19: prepare packages (4)
flowai-dev-cluster-worker-19: updating packages (5)
flowai-dev-cluster-worker-19: installing packages (6)
flowai-dev-cluster-worker-19: set environment variables (7)
flowai-dev-cluster-worker-19: packages installed (8)
flowai-dev-cluster-worker-19: disabling swap (9)
flowai-dev-cluster-worker-19: packages installed (10)
flowai-dev-cluster-worker-09: configure wireguard (1)
flowai-dev-cluster-worker-19: configure wireguard (11)
flowai-dev-cluster-worker-16: configure wireguard (1)
flowai-dev-cluster-worker-04: configure wireguard (1)
flowai-dev-cluster-worker-11: configure wireguard (1)
flowai-dev-cluster-worker-01: configure wireguard (1)
flowai-dev-cluster-worker-10: configure wireguard (1)
flowai-dev-cluster-worker-15: configure wireguard (1)
flowai-dev-cluster-worker-02: configure wireguard (1)
flowai-dev-cluster-master-01: configure wireguard (1)
flowai-dev-cluster-worker-05: configure wireguard (1)
flowai-dev-cluster-worker-03: configure wireguard (1)
flowai-dev-cluster-worker-18: configure wireguard (1)
flowai-dev-cluster-worker-08: configure wireguard (1)
flowai-dev-cluster-worker-14: configure wireguard (1)
flowai-dev-cluster-worker-17: configure wireguard (1)
flowai-dev-cluster-worker-06: configure wireguard (1)
flowai-dev-cluster-worker-07: configure wireguard (1)
flowai-dev-cluster-worker-13: configure wireguard (1)
flowai-dev-cluster-worker-12: configure wireguard (1)
flowai-dev-cluster-worker-17: wireguard configured (2)
2021/01/27 18:44:46 run failed
command:systemctl enable wg-quick@wg0 && systemctl restart wg-quick@wg0 && systemctl enable overlay-route.service && systemctl restart overlay-route.service
stdout:Failed to enable unit: Unit file wg-quick@wg0.service does not exist.

err:Process exited with status 1 ```
wethinkagile commented 3 years ago

@sneerin does that service file exist? cat /etc/systemd/system/wg-quick@wg0.service

wethinkagile commented 3 years ago

@tmemenga says master has no problems anymore, so we could close this PR @xetys.