Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CE9F6187C8 for ; Sun, 13 Dec 2015 12:25:47 +0000 (UTC) Received: (qmail 16279 invoked by uid 500); 13 Dec 2015 12:25:47 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 16233 invoked by uid 500); 13 Dec 2015 12:25:47 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 16215 invoked by uid 500); 13 Dec 2015 12:25:47 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 16212 invoked by uid 99); 13 Dec 2015 12:25:47 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Dec 2015 12:25:47 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9C18F2C1F56 for ; Sun, 13 Dec 2015 12:25:46 +0000 (UTC) Date: Sun, 13 Dec 2015 12:25:46 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9155) Log rotate of cloud.log doesn't work properly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15054934#comment-15054934 ] ASF GitHub Bot commented on CLOUDSTACK-9155: -------------------------------------------- Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/1235#issuecomment-164253411 @remibergsma agree and let's not close the jira ticket on merging as this obviously needs tlc. > Log rotate of cloud.log doesn't work properly > --------------------------------------------- > > Key: CLOUDSTACK-9155 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9155 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Virtual Router > Affects Versions: 4.6.0, 4.7.0, 4.6.1 > Reporter: Remi Bergsma > Assignee: Remi Bergsma > Priority: Critical > Fix For: 4.7.0, 4.6.2 > > > Many processes log into the cloud.log file. When log rotate is called, many of them keep logging to the old inode and fill up the disk like that. > These have cloud.log open: > ``` > root@r-1023-VM:~# lsof| grep cloud | awk {'print $1'} | sort -u > apache2 > conntrack > keepalive > logger > passwd_se > _plutoloa > _plutorun > python > xl2tpd > ``` > Current log rotate config: > ``` > /var/log/cloud.log { > rotate 4 > daily > size 10M > missingok > notifempty > compress > delaycompress > } > ``` > After log rotate this happens: > ``` > root@r-996-VM:/etc# lsof | grep cloud.log.1 > _plutorun 767 root 3w REG 202,10 26054919 71 /var/log/cloud.log.1 > logger 768 root 3w REG 202,10 26054919 71 /var/log/cloud.log.1 > _plutorun 772 root 3w REG 202,10 26054919 71 /var/log/cloud.log.1 > _plutoloa 773 root 3w REG 202,10 26054919 71 /var/log/cloud.log.1 > xl2tpd 843 root 3w REG 202,10 26054919 71 /var/log/cloud.log.1 > python 854 root 3w REG 202,10 26054919 71 /var/log/cloud.log.1 > passwd_se 860 root 1w REG 202,10 26054919 71 /var/log/cloud.log.1 > passwd_se 860 root 2w REG 202,10 26054919 71 /var/log/cloud.log.1 > passwd_se 860 root 3w REG 202,10 26054919 71 /var/log/cloud.log.1 > python 863 root 3w REG 202,10 26054919 71 /var/log/cloud.log.1 > passwd_se 869 root 1w REG 202,10 26054919 71 /var/log/cloud.log.1 > passwd_se 869 root 2w REG 202,10 26054919 71 /var/log/cloud.log.1 > passwd_se 869 root 3w REG 202,10 26054919 71 /var/log/cloud.log.1 > python 871 root 3w REG 202,10 26054919 71 /var/log/cloud.log.1 > ``` -- This message was sent by Atlassian JIRA (v6.3.4#6332)