techno-tim / k3s-ansible

The easiest way to bootstrap a self-hosted High Availability Kubernetes cluster. A fully automated HA k3s etcd install with kube-vip, MetalLB, and more. Build. Destroy. Repeat.
https://technotim.live/posts/k3s-etcd-ansible/
Apache License 2.0
2.41k stars 1.05k forks source link

Removing accidental tear-down step that is clearly a typo #117

Closed inadarei closed 2 years ago

inadarei commented 2 years ago

Proposed Changes

Found a suspicious task in setup/Ubuntu that removes linux-modules-extra-raspi immediately after adding it. Feels like a typo that accidentally copied what should be in teardown, into setup.

However, the consequences of this are severe, since Ubuntu k3s setup without linux-modules-extra-raspi is extremely unstable and thus the rest of the setup is compromised.

Indeed, when I run site.yml on RPIs with Ubuntu, the setup doesn't complete successfully. It eventually hangs. Which is what sent me on the quest to debug it, and I think this typo may be at least one of the culprits.

Checklist

sleiner commented 2 years ago

Thanks! That is indeed a typo.

the consequences of this are severe

As far as I see, this should not have any consequences, since the step is only executed if state == "absent", but the whole file is only used if state == "present". Still, this is obviously wrong and confusing and should be removed :-)

when I run site.yml on RPIs with Ubuntu, the setup doesn't complete successfully. It eventually hangs.

At what step does it hang?

timothystewart6 commented 2 years ago

Looks like there's a lint issue, otherwise GTG. Thank you!

timothystewart6 commented 2 years ago

@inadarei just waiting on the lint fix, then GTG!

timothystewart6 commented 2 years ago

Ignore the lint fixes, this was caused by pip requirements not being frozen. I fixed this in #119 and will merge it in after it merges

timothystewart6 commented 2 years ago

Thank you!