cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-10255) cloudstack-agent logrotate is broken
Date Wed, 24 Jan 2018 22:36:00 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16338356#comment-16338356
] 

ASF subversion and git services commented on CLOUDSTACK-10255:
--------------------------------------------------------------

Commit 22d6718fe3f83d6c3c47734669fe9cde3e6d1a88 in cloudstack's branch refs/heads/4.11 from
[~fmaximus]
[ https://gitbox.apache.org/repos/asf?p=cloudstack.git;h=22d6718 ]

CLOUDSTACK-10255: Fix agent logrotate (#2429)

Renamed cloudstack-agent.logrotate to cloudstack-agent.logrotate.in,
so Ant will run the filterchain while copying.
This made the ant run copy block of cloudstack-agent.logrotate unnecessary,
so this is removed.

> cloudstack-agent logrotate is broken
> ------------------------------------
>
>                 Key: CLOUDSTACK-10255
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10255
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: cloudstack-agent
>    Affects Versions: 4.10.0.0, 4.11.0.0, 4.9.3.0
>            Reporter: Frank Maximus
>            Assignee: Frank Maximus
>            Priority: Major
>
> In [PR#2094|https://github.com/apache/cloudstack/pull/2094] logrotate was updated to
refer to the new files, and an {{@AGENTLOG@}} ReplaceToken was used.
> The pom file of agent doesn't define {{cloudstack-agent.logrotate}} to be filtered though,
so the file ends up on the host, still containting the ReplaceToken.
> {noformat:title=KVM Host}You have new mail in /var/spool/mail/root
> [root@frank-acs-master ~]# mail
> Heirloom Mail version 12.5 7/5/10.  Type ? for help.
> "/var/spool/mail/root": 7 messages 7 new
> >N  1 Anacron               Thu Jan 18 15:36  17/727   "Anacron job 'cron.daily' on
frank-acs-master"
>  N  2 Anacron               Fri Jan 19 03:50  17/729   "Anacron job 'cron.daily' on frank-acs-master"
>  N  3 Anacron               Sat Jan 20 03:30  17/729   "Anacron job 'cron.daily' on frank-acs-master"
>  N  4 Anacron               Sun Jan 21 03:25  17/729   "Anacron job 'cron.daily' on frank-acs-master"
>  N  5 Anacron               Mon Jan 22 03:39  17/729   "Anacron job 'cron.daily' on frank-acs-master"
>  N  6 Anacron               Tue Jan 23 03:10  17/729   "Anacron job 'cron.daily' on frank-acs-master"
>  N  7 Anacron               Wed Jan 24 03:23  17/729   "Anacron job 'cron.daily' on frank-acs-master"
> & 7
> Message  7:
> From root@frank-acs-master.localdomain  Wed Jan 24 03:23:03 2018
> Return-Path: <root@frank-acs-master.localdomain>
> X-Original-To: root
> Delivered-To: root@frank-acs-master.localdomain
> From: Anacron <root@frank-acs-master.localdomain>
> To: root@frank-acs-master.localdomain
> Content-Type: text/plain; charset="UTF-8"
> Subject: Anacron job 'cron.daily' on frank-acs-master
> Date: Wed, 24 Jan 2018 03:23:03 +0000 (UTC)
> Status: R
> /etc/cron.daily/logrotate:
> error: cloudstack-agent:18 lines must begin with a keyword or a filename (possibly in
double quotes)
> & q
> [root@frank-acs-master ~]# cat /etc/logrotate.d/cloudstack-agent
> # Licensed to the Apache Software Foundation (ASF) under ..<snip>.. the License.
> @AGENTLOG@
> /var/log/cloudstack/agent/security_group.log
> {
>     copytruncate
>     daily
>     rotate 5
>     compress
>     missingok
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message