Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1619201

Summary: [Logs] Logging into an incorrectly named default log
Product: Red Hat OpenStack Reporter: Tomas Jamrisko <tjamrisk>
Component: openstack-tripleo-heat-templatesAssignee: Michel Peterson <mpeterso>
Status: CLOSED DUPLICATE QA Contact: Tomas Jamrisko <tjamrisk>
Severity: high Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: aadam, mburns, mkolesni
Target Milestone: z4Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: Logs
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-22 07:56:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***