Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validating configuration hangs on IPv6 #282

Open
Tridie2000 opened this issue Oct 28, 2023 · 7 comments
Open

Validating configuration hangs on IPv6 #282

Tridie2000 opened this issue Oct 28, 2023 · 7 comments

Comments

@Tridie2000
Copy link

When I add an IPv6 address to the ssh_allowed_networks or api_allowed_networks blocks, the tool hangs at "Validating configuration..."

ssh_allowed_networks:
  - 0.0.0.0/0
  - ::/0

api_allowed_networks:
  - 0.0.0.0/0
  - ::/0

hetzner-k3s --version => 1.1.5
macOS => 14.0

@vitobotta
Copy link
Owner

I haven't done any testing with ipv6 unfortunately.

@vitobotta
Copy link
Owner

Hi @Tridie2000 - did you get it working eventually?

@dperetti
Copy link

Same issue for me.

@Tridie2000
Copy link
Author

No, I did not get it working with IPv6 addresses.

@jpetazzo
Copy link
Contributor

I noticed the same issue (when trying to provision a "pure IPV6" cluster). I'm going to try and investigate further.

@jpetazzo
Copy link
Contributor

jpetazzo commented Apr 28, 2024

As I started to debug the issue, I noticed that if I build from source, hetzner-k3s doesn't hang anymore at "Validating configuration...", at least on my test configuration,.

I checked by trying exactly the same cluster configuration, on the same machine, with the same SSH keys etc. (to make sure the problem wouldn't come from e.g. an SSH agent, like suggested in #320 ), and with the 1.1.5 release downloaded from GitHub, it hangs at "Validating configuration..." while with the version that I just built from main, it doesn't hang.

I suppose there could be two possible issues:

  • a bug in the older version of the code, that was fixed since then
  • a subtle difference in build environment

For what it's worth, I've built inside the dev container. I'm going to document how to run and build with the build containers if other folks want to try and see if that helps.

Edit: provisioning over IPv6 doesn't work; but for different reasons. I'll open a separate issue about it.

@vitobotta
Copy link
Owner

@jpetazzo in main I upgraded the ssh2 shard, so it's very likely that the new version addresses some issues with SSH. Nice to hear that you couldn't reproduce it with main. I will release v2.0.0 as soon as I have finished work in #348.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants