Bug #2023

Backup config: duplicate notification

Added by Giacomo Sanchietti about 8 years ago. Updated almost 8 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-backup-data
Target version:v6.4-beta2
Security class: Resolution:
Affected version:v6.4-beta1 NEEDINFO:No

Description

When the backup fails, the system will send two notification mails: one to root@localhost and one to admin@localhost.

Avoid notification to root@localhost and group all information on a single mail.
If possible, also add backup status in mail subject.

Associated revisions

Revision ef810ad9
Added by Giacomo Sanchietti about 8 years ago

backup-data-duplicity, backup-data: avoid duplicated notifications. Refs #2023

Revision 1be8ffc1
Added by Giacomo Sanchietti about 8 years ago

Backup.pm: avoid duplicated notifications. Refs #2023

Revision ce3b3aa0
Added by Giacomo Sanchietti about 8 years ago

Backup.pm: remove perl warning. Refs #2023

Revision d73cd388
Added by Giacomo Sanchietti about 8 years ago

backup-data: add more information on notification. Refs #2023

Revision 58b91f8f
Added by Giacomo Sanchietti about 8 years ago

BackupData.pm: remove notify_to default value. Refs #2023

Revision 815159db
Added by Giacomo Sanchietti about 8 years ago

Backup.pm: send notification only when notify_to has a value. Refs #2023

Revision 54049e0b
Added by Giacomo Sanchietti about 8 years ago

spec: spec: Release 1.0.2 Refs #2024 #2023 #2022

Revision 447432cf
Added by Giacomo Sanchietti about 8 years ago

spec: update to 1.0.2. Refs #2023 #2024

History

#1 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

Bug confirmed.

#2 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#3 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 70

Implementation tested on dev machine.

#4 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 70 to 80
Packages ready in testing repository:
  • nethserver-backup-data-1.0.2
  • nethserver-backup-config-1.0.2

#5 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from ON_QA to ON_DEV
  • % Done changed from 80 to 30

#6 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 70

Added last-log extract into notification.

#7 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 70 to 80

Package in nethserver-testing repo: nethserver-backup-data-1.0.3

To test:
  • yum --enablerepo=nethserver-testing update nethserver-backup-data
  • Enable notification and execute backup-data
  • Check last-backup.log is reported inside notification

#8 Updated by Alessio Fattorini about 8 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee changed from Giacomo Sanchietti to Alessio Fattorini
  • % Done changed from 80 to 100

[root@muflone ~]# rpm -q nethserver-backup-data
nethserver-backup-data-1.0.1-1.ns6.noarch

Two notifications on "mutt -f /var/spool/mail/admin"

   1     Jul 01 Backup          (  10) Backup report
   2 N   Jul 01 Backup          (  10) Backup report

Update package

# rpm -q  nethserver-backup-data
nethserver-backup-data-1.0.2-1.ns6.noarch

Backup executed

Only one mail, sended to admin@


   1     Jul 01 Backup          (  10) Backup report
   2     Jul 01 Backup          (  10) Backup report
   3     Jul 01 Backup          (  13) Backup report: ERROR

last-backup.log reported correctly inside notification


Date: Mon,  1 Jul 2013 10:02:02 +0000 (GMT)
From: Backup <admin@muflone.nethesis.it>
To: admin@localhost.nethesis.it
Subject: Backup report: ERROR

===== Report for data backup =====

Backup started at 2013-07-01 10:02:01
Pre backup scripts status: ERROR

Extract from log file /var/log/backup-data.log:

2013-07-01 10:02:01 - START - Backup data started
2013-07-01 10:02:02 - ERROR - Error while mounting alessio.nethesis.it:public : mount error: could not
+resolve address for alessio.nethesis.it: Unknown error
2013-07-01 10:02:02 - ERROR - Event pre-backup-data failed - 1

#9 Updated by Davide Principi about 8 years ago

  • Assignee deleted (Alessio Fattorini)

#10 Updated by Davide Principi about 8 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

Moved to nethserver-updates repository

#11 Updated by Davide Principi almost 8 years ago

  • Affected version changed from v6.4-beta2 to v6.4-beta1

Also available in: Atom PDF