Closed invidian closed 1 year ago
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
Looks like this problem also prevents being able to use Ubuntu 22.04 as a base VM. Doesn't look like the env var can be used as a workaround in that situation (at least it didn't work for me).
Although the error is somewhat different so I may be mistaken that it's the same problem:
ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
we successfully implemented a workaround in our environment by directly setting
"existing_ansible_ssh_args": "-o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa"
What steps did you take and what happened:
Right now, if one builds the CAPI images with OpenSSH version 8.8+ on the host system, the environment variable below is required to make provisioning work. This is because OpenSSH starting from version 8.8 has disabled
ssh-rsa
algorithm from default configuration and this is what Ansible plugin for Packer still generates.What did you expect to happen:
Builds to work on modern systems out of the box.
Anything else you would like to add:
I suggest we commit those arguments as default ones until upstream issue is not resolved.
As an alternative, we could try disabling Ansible provisioner proxy, bypassing local keys generation completely. I don't know what side effects that creates though.
Environment:
Project (Image Builder for Cluster API, kube-deploy/imagebuilder, konfigadm): Image Builder for Cluster API
Additional info for Image Builder for Cluster API related issues:
/etc/os-release
, orcmd /c ver
): Arch Linux/kind bug [One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]
CC @kopiczko