Bug 1583630 - RFE: Add AdminEmail field to /etc/retrace-server.conf for critical problem emails
Summary: RFE: Add AdminEmail field to /etc/retrace-server.conf for critical problem em...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: retrace-server
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: abrt
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-29 11:54 UTC by Dave Wysochanski
Modified: 2023-08-08 14:08 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-08 14:08:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.