cron.d/remote_syslog_compress should skip .bz2 files

Bug #919913 reported by Timo Aaltonen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Medium
Unassigned

Bug Description

The cronjob remote_syslog_compress spams root with emails like this:

Subject: Cron <root@foo> find /var/log/orchestra/ -type f -mtime +2 -exec bzip2 '{}' \;

bzip2: Input file /var/log/orchestra/rsyslog/2011/10/23/bar/cron.bz2 already has .bz2 suffix.
bzip2: Input file /var/log/orchestra/rsyslog/2011/10/23/bar/messages.bz2 already has .bz2 suffix.
bzip2: Input file /var/log/orchestra/rsyslog/2011/10/23/bar/maillog.bz2 already has .bz2 suffix.
.
.
.

so, in order to fix that, the find command should be:

find /var/log/orchestra/ -type f -mtime +2 \! -path '*bz2' -exec bzip2 '{}' \;

seems to do the trick here.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: orchestra (not installed)
ProcVersionSignature: Ubuntu 3.2.0-9.16-generic 3.2.1
Uname: Linux 3.2.0-9-generic x86_64
ApportVersion: 1.90-0ubuntu2
Architecture: amd64
Date: Sun Jan 22 08:47:45 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
 PATH=(custom, user)
 LANG=fi_FI.UTF-8
 SHELL=/bin/zsh
SourcePackage: orchestra
UpgradeStatus: Upgraded to precise on 2012-01-14 (7 days ago)

Related branches

Revision history for this message
Rick Spencer (rick-rickspencer3) wrote :

could you please take a look and see if this is someting you want to integrate?

Changed in orchestra (Ubuntu):
assignee: nobody → Canonical Server Team (canonical-server)
Marc Cluet (lynxman)
Changed in orchestra (Ubuntu):
status: New → Confirmed
assignee: Canonical Server Team (canonical-server) → Marc Cluet (lynxman)
Revision history for this message
Matt Dirba (5qxm) wrote :

maas-region-controller-min which provides /etc/cron.d/maas_remote_syslog_compress also has the same issue.

no longer affects: orchestra (Ubuntu)
Changed in maas:
milestone: none → 2.0.0
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi!

**This is an automated message**

We believe this is may no longer be an issue in the latest MAAS release. Due to the report date of this, we are currently marking it as Invalid. If you believe this bug report still valid against the latest release of MAAS, or if you are still interested in this, please re-open this bug report.

Thanks

Changed in maas:
status: Triaged → Invalid
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.