Closed martinpitt closed 2 years ago
This doesn't yet work on k8s, the DNS name isn't available immediately:
File "/usr/local/bin/multiplexer.py", line 139, in handle_session_new
addr = socket.gethostbyname(session_hostname)
socket.gaierror: [Errno -2] Name or service not known
So this needs a retry loop.
I tested this with k8s now, and it works fine. I like this failure mode a lot more now!
@jelly : I filed the podman bug and for now I'll stop trying to work around this. For k8s this is still a positive change IMHO, so I cleaned up the commit messages and am re-asking for review. Sorry for the back and forth!
With this,
make check
succeeds for me 4 out of 5 times. Before, it failed 3 out of 4 times. I still get the occasional loooooong timeout onsocket.gethostbyname()
, but it's so much better now.