Project

General

Profile

Actions

action #165030

closed

(Cron Daemon) sending email about /opt/openqa-scripts/dump-psql

Added by livdywan 4 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Regressions/Crashes
Start date:
2024-08-07
Due date:
% Done:

0%

Estimated time:

Description

Observation

Following a conversation in Slack @nicksinger enabled emails for cron jobs. Now we're getting emails from (Cron Daemon) such as this:

removed '/var/lib/openqa/SQL-DUMPS/2024-07-28.dump'

Suggestions

  • Confirm why we are getting an email about removed database dumps DONE: because cron sends a mail for every script which generates anything on stdout - no matter the exit code of the script
  • Switch off notifications of such removals if they are expected

Related issues 1 (0 open1 closed)

Copied from openQA Infrastructure (public) - action #165027: (Cron Daemon) sending email about /usr/bin/dehydrated --cronResolvednicksinger

Actions
Actions #1

Updated by livdywan 4 months ago

  • Copied from action #165027: (Cron Daemon) sending email about /usr/bin/dehydrated --cron added
Actions #2

Updated by nicksinger 4 months ago

  • Description updated (diff)
Actions #3

Updated by livdywan 4 months ago

  • Description updated (diff)
Actions #4

Updated by nicksinger 4 months ago

  • Status changed from New to In Progress
  • Assignee set to nicksinger
Actions #5

Updated by nicksinger 4 months ago

  • Status changed from In Progress to Feedback
Actions #6

Updated by nicksinger 4 months ago

  • Status changed from Feedback to Resolved

Merged and deployed on o3 by:

su o3-openqa-scripts
cd /opt/openqa-scripts
git pull --set-upstream origin main

it should now only output anything if errors happen and not if the operation completed successfully.

Actions

Also available in: Atom PDF