Open
Description
openedon Apr 5, 2024
Summary
v0.17.5 can no longer connect to a single host node. v0.17.4 works fine.
Details
I just installed v0.17.5 and created a new config using k0sctl init
and modified the hosts section to be a single host that pointed to a VM on my local machine. The apply command kept hanging up when I tried to apply the config.
nick:~/code/homelab: k0sctl apply -c homelab.yaml -d
DEBU[0000] Loaded configuration:
apiVersion: k0sctl.k0sproject.io/v1beta1
kind: Cluster
metadata:
name: homelab-cluster
spec:
hosts:
- ssh:
address: 10.252.198.229
user: ubuntu
port: 22
keyPath: id_rsa
role: single
k0s:
version: v1.28.7+k0s.0
versionChannel: stable
dynamicConfig: false
config: {}
⠀⣿⣿⡇⠀⠀⢀⣴⣾⣿⠟⠁⢸⣿⣿⣿⣿⣿⣿⣿⡿⠛⠁⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀█████████ █████████ ███
⠀⣿⣿⡇⣠⣶⣿⡿⠋⠀⠀⠀⢸⣿⡇⠀⠀⠀⣠⠀⠀⢀⣠⡆⢸⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀███ ███ ███
⠀⣿⣿⣿⣿⣟⠋⠀⠀⠀⠀⠀⢸⣿⡇⠀⢰⣾⣿⠀⠀⣿⣿⡇⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀███ ███ ███
⠀⣿⣿⡏⠻⣿⣷⣤⡀⠀⠀⠀⠸⠛⠁⠀⠸⠋⠁⠀⠀⣿⣿⡇⠈⠉⠉⠉⠉⠉⠉⠉⠉⢹⣿⣿⠀███ ███ ███
⠀⣿⣿⡇⠀⠀⠙⢿⣿⣦⣀⠀⠀⠀⣠⣶⣶⣶⣶⣶⣶⣿⣿⡇⢰⣶⣶⣶⣶⣶⣶⣶⣶⣾⣿⣿⠀█████████ ███ ██████████
k0sctl v0.17.5 Copyright 2023, k0sctl authors.
Anonymized telemetry of usage will be sent to the authors.
By continuing to use k0sctl you agree to these terms:
https://k0sproject.io/licenses/eula
DEBU[0000] Preparing phase 'Set k0s version'
DEBU[0000] Preparing phase 'Connect to hosts'
INFO[0000] ==> Running phase: Connect to hosts
DEBU[0000] [ssh] 10.252.198.229:22: HashKnownHosts is set to "yes", will hash newly added keys
DEBU[0000] using SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
DEBU[0000] [ssh] 10.252.198.229:22: using all keys (2) from ssh agent because a keypath was not explicitly given
DEBU[0000] [ssh] 10.252.198.229:22: using an unencrypted private key from id_rsa
DEBU[0000] [SSH] 10.252.198.229: failed to connect: ssh dial: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
DEBU[0005] retrying, attempt 1 - last error: not connected: client connect: ssh dial: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
DEBU[0005] [ssh] 10.252.198.229:22: HashKnownHosts is set to "yes", will hash newly added keys
DEBU[0005] using SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
DEBU[0005] [ssh] 10.252.198.229:22: using all keys (2) from ssh agent because a keypath was not explicitly given
DEBU[0005] [SSH] 10.252.198.229: failed to connect: ssh dial: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
I reverted my k0sctl version to v0.17.4 and it worked fine.
nick:~/code/homelab: k0sctl apply -c homelab.yaml
⠀⣿⣿⡇⠀⠀⢀⣴⣾⣿⠟⠁⢸⣿⣿⣿⣿⣿⣿⣿⡿⠛⠁⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀█████████ █████████ ███
⠀⣿⣿⡇⣠⣶⣿⡿⠋⠀⠀⠀⢸⣿⡇⠀⠀⠀⣠⠀⠀⢀⣠⡆⢸⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀███ ███ ███
⠀⣿⣿⣿⣿⣟⠋⠀⠀⠀⠀⠀⢸⣿⡇⠀⢰⣾⣿⠀⠀⣿⣿⡇⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀███ ███ ███
⠀⣿⣿⡏⠻⣿⣷⣤⡀⠀⠀⠀⠸⠛⠁⠀⠸⠋⠁⠀⠀⣿⣿⡇⠈⠉⠉⠉⠉⠉⠉⠉⠉⢹⣿⣿⠀███ ███ ███
⠀⣿⣿⡇⠀⠀⠙⢿⣿⣦⣀⠀⠀⠀⣠⣶⣶⣶⣶⣶⣶⣿⣿⡇⢰⣶⣶⣶⣶⣶⣶⣶⣶⣾⣿⣿⠀█████████ ███ ██████████
k0sctl v0.17.4 Copyright 2023, k0sctl authors.
Anonymized telemetry of usage will be sent to the authors.
By continuing to use k0sctl you agree to these terms:
https://k0sproject.io/licenses/eula
INFO ==> Running phase: Connect to hosts
INFO [ssh] 10.252.198.229:22: connected
INFO ==> Running phase: Detect host operating systems
INFO [ssh] 10.252.198.229:22: is running Ubuntu 22.04.4 LTS
INFO ==> Running phase: Acquire exclusive host lock
INFO ==> Running phase: Prepare hosts
INFO ==> Running phase: Gather host facts
INFO [ssh] 10.252.198.229:22: using homelab as hostname
INFO [ssh] 10.252.198.229:22: discovered ens3 as private interface
INFO ==> Running phase: Validate hosts
INFO ==> Running phase: Gather k0s facts
INFO [ssh] 10.252.198.229:22: found existing configuration
INFO [ssh] 10.252.198.229:22: is running k0s single version v1.28.7+k0s.0
INFO ==> Running phase: Validate facts
INFO [ssh] 10.252.198.229:22: validating configuration
INFO ==> Running phase: Release exclusive host lock
INFO ==> Running phase: Disconnect from hosts
INFO ==> Finished in 2s
INFO k0s cluster version v1.28.7+k0s.0 is now installed
INFO Tip: To access the cluster you can now fetch the admin kubeconfig using:
INFO k0sctl kubeconfig
A new version v0.17.5 of k0sctl is available: https://github.com/k0sproject/k0sctl/releases/tag/v0.17.5
Environment
Host: Pop OS
VM manager: multipass
VM distro: Ubuntu 22.04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels