maas_remote_syslog_compress cron job generates pointless emails

Bug #1280654 reported by James Troup
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
maas (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

On Ubuntu 12.04 LTS, the maas_remote_syslog_compress cron job
generates pointless emails because it tries to recompress files that
are already compressed, e.g.:

| From: <email address hidden> (Cron Daemon)
| Subject: Cron <root@polong> find /var/log/maas/rsyslog -type f -mtime +2 -exec bzip2 '{}' \;
| To: <email address hidden>
| Date: Sat, 15 Feb 2014 04:30:02 +0000 (UTC) (13 hours, 55 minutes ago)
| Message-Id: <email address hidden>
|
| bzip2: Input file /var/log/maas/rsyslog/kelpie/2012/12/14/messages.bz2 already has .bz2 suffix.
| bzip2: Input file /var/log/maas/rsyslog/kelpie/2012/12/20/messages.bz2 already has .bz2 suffix.
| bzip2: Input file /var/log/maas/rsyslog/kelpie/2012/10/18/messages.bz2 already has .bz2 suffix.
| bzip2: Input file /var/log/maas/rsyslog/daitya/2013/04/19/messages.bz2 already has .bz2 suffix.
| bzip2: Input file /var/log/maas/rsyslog/daitya/2013/04/18/messages.bz2 already has .bz2 suffix.

ii maas-region-controller 1.2+bzr1373+dfsg-0ubuntu1~12.04.4 Ubuntu MAAS Server

Tags: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in maas (Ubuntu):
status: New → Confirmed
Revision history for this message
Jonas Bardino (jonas-bardino) wrote :

Simple patch to skip already bzip compressed logs in the cron job is attached here.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "skip already compressed logs" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.