Closed Bug 1223471 Opened 9 years ago Closed 9 years ago

SUMO: change email backend in settings_local.py

Categories

(Infrastructure & Operations Graveyard :: WebOps: Other, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mythmon, Assigned: cliang)

References

(Blocks 1 open bug)

Details

(Whiteboard: [kanban:https://webops.kanbanize.com/ctrl_board/2/2135] )

To help with debugging email problems on Sumo, we're adding a bunch of logging. To do this, we'll need to change our email backend. In kitsune/settings_local.py there is something like EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend Please change this to EMAIL_LOGGING_REAL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' To be clear: This is just changing the name of the variable form EMAIL_BACKEND to EMAIL_LOGGING_REAL_BACKEND. This change can't go into effect until we merge and deploy the code in https://github.com/mozilla/kitsune/pull/2708. I'll update this bug when we can make these changes.
SUMO isn't hosted in community, so moving this out of that. Setting needinfo? :mythmon since we can't proceed until you say so.
Component: WebOps: Community Platform → WebOps: Other
Flags: needinfo?(mcooper)
Sorry. I cloned an old Sumo settings bug for this, which is why it had the wrong component. Thanks for the needs info. I'll clear it when this is ready to go.
Blocks: 1204515
Flags: needinfo?(mcooper)
Whiteboard: [kanban:https://webops.kanbanize.com/ctrl_board/2/2135]
The related pull request has been deployed to the Sumo servers, so we can start this work now. Can we do this first on stage, and then let it sit for a bit to make sure nothing explodes before moving on to prod? I'd really hate to break email on prod.
Assignee: server-ops-webops → cliang
* Added syslog invocation (include webapp::support::syslog) to SUMO web servers. * Settings change pushed to stage; apache and celery processes restarted.
I tested this. There was one small problem, which required a code change. After that, stage worked fine. I sent an email to myself with Sumo's PM system, and there were logs coming out. The code change that is needed is in a PR here: https://github.com/mozilla/kitsune/pull/2731. After that land and gets deployed to prod, we can make the settings change there too.
The code change is on prod. The settings change can happen on prod now.
* Settings change pushed to production; apache and celery processes restarted. I've confirmed that email logging entries now appear in the log (/var/log/local7.sumo.log).
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.