freeipa / freeipa-container

FreeIPA server in containers — images at https://quay.io/repository/freeipa/freeipa-server?tab=tags
https://quay.io/repository/freeipa/freeipa-server?tab=tags
Apache License 2.0
614 stars 259 forks source link

ipa-server-configure-first: add timeout to the host resolution #624

Closed djasa closed 1 month ago

djasa commented 2 months ago

podman run without --dns=127.0.0.1 but with --setup-dns or update-self-ip-address may lead to ipa-server-configure-first waiting for hostname resolution indefinitely and with no pointers in the logs what's wrong.

Let's set timeout for the hostname resolution and error out after reaching it.

djasa commented 2 months ago

I didn't test the code yet and the timeouts and correct behaviour upon hitting them is up to discussion.

I've hit this situation by running podman run [no --dns] <cont_opts> image exit-on-finished --setup-dns <i-s-i opts> and the container apparently not exitting after ipa-server-install successfully finished.

adelton commented 2 months ago

Hello, I struggle to find time to properly review and test this, to please bear with me.

adelton commented 1 month ago

Tested now via https://github.com/freeipa/freeipa-container/pull/630.

adelton commented 1 month ago

Thank you.