-
Notifications
You must be signed in to change notification settings - Fork 108
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
can not send email from wmagent docker container #12159
Comments
@khurtado I am afraid I might have missed a possible solution for this. Can you please confirm if this is still being worked on? If it's resolved, then I would suggest to provide the PR in here and close it. Thanks |
@amaltaro I have a working solution that fixes exim4. The solution in short:
I will make a PR soon. EDIT: @amaltaro This works for me: |
I modified dmwm/CMSKubernetes#1566 to use the host-level mail agents (s-nail) running at CERN/FNAL, in order to avoid conflicts between mail agents at the host and docker levels. |
Impact of the bug
All of WMAgents
Describe the bug
The script https://github.com/dmwm/WMCore/blob/master/deploy/restartComponent.sh run from a cronjob inside the wmagent docker container fails to send emails.
How to reproduce it
log into a wmagent, change to cmst1 user, then you can use the command
mail
to send an email withs-nail
then start a shell inside a wmagent docker container: the comman
mail
points tomailutils
, but there is notExpected behavior
we should be able to send emails from inside the wmagent docker container
Additional context and error message
Possible solutions
We can properly install a mail client inside the wmagent docker container.
Alternatively, we can get rid of these emails and send the event to AMQ/opensearch and display them in a table in grafana. I would prefer this second option.
The text was updated successfully, but these errors were encountered: