Bug 1619201 - [Logs] Logging into an incorrectly named default log
Summary: [Logs] Logging into an incorrectly named default log
Keywords:
Status: CLOSED DUPLICATE of bug 1648348
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z4
: 13.0 (Queens)
Assignee: Michel Peterson
QA Contact: Tomas Jamrisko
URL:
Whiteboard: Logs
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-20 10:22 UTC by Tomas Jamrisko
Modified: 2018-11-22 07:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-22 07:56:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Tomas Jamrisko 2018-08-20 10:22:09 UTC
Description of problem:
Opendaylight logs into a file named karaf.log.1 isntead of karaf.log, as per documentation in https://bugzilla.redhat.com/show_bug.cgi?id=1597665


Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-8.0.2-45

How reproducible:
100%

Steps to Reproduce:
1. Deploy with odl
2. ls /var/log/containers/opendaylight


Actual results:
karaf.log.1

Expected results:
karaf.log

Comment 2 Janki 2018-08-28 09:17:53 UTC
This is a bit similar to https://bugzilla.redhat.com/show_bug.cgi?id=1609333.

Comment 4 Michel Peterson 2018-11-22 07:56:14 UTC
Hello, Tomas

I did a deployment with `log4j2.appender.rolling.policies.size.size = 1MB` and I can corroborate that this fixed in both master and stable branches:

MASTER
======

$ du -hs /var/log/containers/opendaylight/karaf/logs/*
896K    /var/log/containers/opendaylight/karaf/logs/karaf.log
1.1M    /var/log/containers/opendaylight/karaf/logs/karaf.log.1
1.1M    /var/log/containers/opendaylight/karaf/logs/karaf.log.2


STABLE/QUEENS
=============

$ du -hs /var/log/containers/opendaylight/karaf/logs/*
160K    /var/log/containers/opendaylight/karaf/logs/karaf.log
1.1M    /var/log/containers/opendaylight/karaf/logs/karaf.log.1


I'm pretty sure this fix came in with #1648348, so closing this one as a duplicate of that one.

*** This bug has been marked as a duplicate of bug 1648348 ***


Note You need to log in before you can comment on or make changes to this bug.