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
httpd pod fails to start #18
Comments
Not sure if related, but I had some odd timing issues last night causing httpd to fail to come up while I was testing SAML, here's the fix for it #17. Might help. |
yes, i figured out why this is happening. the missing file is however, there is no guarantee that postStart commands will execute before the container entrypoint. |
One option we have (maybe ugly), but in addition to #17 since we now have a directive statement for httpd to start after initialize-httpd-auth, we can have that service wait for the /etc/container-environment file to be created. |
@abellotti If timing issues are encountered, another alternative is to use PreExecStart with a "sleep" call of a few seconds in the service unit file, https://www.freedesktop.org/software/systemd/man/systemd.service.html, this should give a fair chance for the post hook to finish performing the work, we have used this before on other unit files. |
@fbladilo sleep seems indeterministic unless we have a guaranteed sleep time. what about a script that waits for the file to be created, i.e. something like ExecStartPre=/usr/bin/waitfor-container-environment ? we can add that to any service unit requiring /etc/container-environment. |
@abellotti afaict #17 does not fix this issue. it simply returns a more useful error when the pod starts:
|
@ilackarms I'm able to deploy httpd after #17 without issues, I'll try a couple of more runs during the day... |
@ilackarms I tried a few times already but cannot reproduce after #17, I haven't researched too deeply yet but seems gone here, I want to be able to reproduce so I might just clean all images and projects on the cluster and give it another fresh run with latest possible. |
@ilackarms A few more attemtps this morning, using latest images, no luck to reproduce.
|
weird! I really can't tell why it happens on almost every run for me (without the hotfix from my PR)... |
@fbladilo @ilackarms @abellotti |
@bazulay If we go with |
@ilackarms I didn't refer to patch #17 , but about the general approach |
@bazulay We are going with a simpler approach using ExecStartPre and without path conditionals and additional units. |
my httpd pod is failing (never starts). contents of
journalctl -xe
inside the httpd containernote: this is a duplicate of ManageIQ/manageiq-pods#215; however as I'm unsure whether the issue resides in the container itself or its configuration via the
miq-template
, I've put it in both places.The text was updated successfully, but these errors were encountered: