-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
kind-with-registry.sh breaks with podman #3729
Comments
This is a one-line fix that I'm happy to contribute. |
please do |
nevermind, let's wait for Ben |
Hmm, the other text output should be to stderr, is it not, or are we capturing both? |
Can you share more details about the script failure, the kind and podman versions, etc? I'm confused as to why this wouldn't already be working, we should only be capturing stdout and we should be logging to stderr. |
it seems there is no problem with the script #3731 (comment) should we close? |
@aojea It breaks consistently for me with podman, but I'll leave it to the maintainers to decide what to do about it. I now believe the issue is that the script tries to |
I think with more verbosity you'll get a more meaningful error |
let's insert It sounds like the kubectl call delays things enough that they're healthy again, but that shouldn't be happening and doesn't make much sense, maybe they're restarting? |
@BenTheElder I now suspect that the error is in my config file, but I can't see how. I can't reproduce the error using the script as provided. In any case, I've attached it along with the kind logs. I've also attached a diff of the changes I've made to the script (which should be inconsequential and are just for local debugging). |
They're not. |
the serial log has this messag
also I notice this is running in arm64, can this be a problem? is podman creating a VM? |
Yeah, this is running on macOS arm64. The standard podman machine VM is up and running (otherwise the script would have failed earlier). That VM is a Fedora CoreOS box that's provisioned with ssh keys by ignition. The fact that the ssh handshake is failing tells me that perhaps the correct private key is not being read. |
I'm not sure what we should do about this, this implementation detail in the podman setup is not something |
Agreed. I'm going to try and find a fix on the podman side. |
What should be cleaned up or changed:
The script
site/static/examples/kind-with-registry.sh
useskind get nodes
and then iterates over the raw output in order to rundocker exec
to update each node'shosts.toml
. The output when using podman looks something like this:This breaks because the script assumes no text in the output other than node names.
On the other hand,
achieves the desired result without breaking podman users.
Why is this needed:
It's common for podman users to alias docker to podman. This small change allows them to use the script without any fiddling.
The text was updated successfully, but these errors were encountered: