Bug 1583630

Summary: RFE: Add AdminEmail field to /etc/retrace-server.conf for critical problem emails
Product: [Fedora] Fedora EPEL Reporter: Dave Wysochanski <dwysocha>
Component: retrace-serverAssignee: abrt <abrt-devel-list>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: abrt-devel-list, dwysocha, jakub, michal.toman, mmarusak, msuchy, stalexan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-08 14:08:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dave Wysochanski 2018-05-29 11:54:47 UTC
Description of problem:
I realized after we added the bugzilla refresh RFE that we probably can re-use the bugzilla email as a retrace-admin email.  So this RFE is two fold:


1. Add a retrace-server.conf parameter to configure an email address for critical problems in retrace-server that may not be noticed by an admin


2. Add a notification if bugzilla login fails in the bugzilla refresh feature.

+++ b/src/retrace-server-bugzilla-refresh
@@ -0,0 +1,60 @@
...
+
+        if bz_user and bz_password:
+            bzapi.login(bz_user, bz_password)
+
+        if bzapi.logged_in:
+            log.write("Successfuly logged in as {0}.\n".format(bz_user))
+        else:
+            log.write("Not logged in. Continue as anonymous user.\n")  <---------- EMAIL ADMIN

This is a critical error since it may end up that someone changes the password or bugzilla fails for some reason and as a result, vmcores associated with bugzillas may get cleaned up incorrectly.


Version-Release number of selected component (if applicable):
upstream 71c67f2e9180e1b49467c8c9dfbfd15de8ddcda9

How reproducible:
easy

Steps to Reproduce:
1. misconfigure password for bugzilla account
2. run retrace-server-bugzilla-refresh

Actual results:
A log message is written to bugzilla_refresh.log but this won't be visible to admins.


Expected results:
Admin should get easily notified of critical problems (not log spam just serious issues).


Additional info:
There may be another answer to monitoring for failures by monitoring various retrace-server log files, so maybe this feature is overkill but not sure.

Comment 1 Dave Wysochanski 2023-08-08 14:08:50 UTC
Closing this WONTFIX due to lack of bandwidth and unclear upstream project status going forward.