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

Bug 1644479

Summary: [Undercloud] logrotate configuration for openstack-keystone doesn't contain copytruncate option
Product: Red Hat OpenStack Reporter: Jon Schlueter <jschluet>
Component: openstack-keystoneAssignee: Moises Guimaraes <moguimar>
Status: CLOSED ERRATA QA Contact: Pavan <pkesavar>
Severity: medium Docs Contact:
Priority: low    
Version: 14.0 (Rocky)CC: hrybacki, jschluet, knoha, nkinder, pkesavar, sclewis, srevivo
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-keystone-14.0.1-0.20181009131350.86cc778.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1618601 Environment:
Last Closed: 2019-01-11 11:54:26 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:
Bug Depends On: 1618601    
Bug Blocks:    

Description Jon Schlueter 2018-10-31 01:35:35 UTC
+++ This bug was initially created as a clone of Bug #1618601 +++

Description of problem:
logrotate configuration for openstack-keystone doesn't contain copytruncate option in undercloud.

~~~
# cat openstack-keystone 
/var/log/keystone/*.log {
    rotate 14
    size 10M
    missingok
    compress
}
~~~

It will cause the original file is not properly handled.

nova has copytruncate option in its conf file.
~~~
/var/log/nova/*.log {
    rotate 14
    size 10M
    missingok
    compress
    copytruncate
}
~~~

Version-Release number of selected component (if applicable):
openstack-keystone-13.0.1-1.el7ost.src.rpm

How reproducible:
Everytime

Steps to Reproduce:
1. Install Undercloud and run logrotate.
2.
3.

Actual results:
keystone's log is not written to the new file after logrotation.

Expected results:
copytruncate will solve the situation.

Additional info:

--- Additional comment from Jon Schlueter on 2018-10-16 22:03:37 EDT ---

proposed for rpm-master similar to other patches that have already been proposed for same topic.  It will need reviewed, merge and backported to rdo/queens-rdo branch as well

--- Additional comment from Keigo Noha on 2018-10-23 03:16:49 EDT ---

Hello Jon,

Thank you for your work on this bugzilla. Could you ping the gerrit for RDO to proceed this bugzilla forward?

--- Additional comment from Keigo Noha on 2018-10-28 21:48:41 EDT ---

Hello Jon,

In RDO, we havn't had an update for 1 week.
Could you ping them to move this bugzilla forward?

Best Regards,
Keigo Noha

--- Additional comment from Jon Schlueter on 2018-10-30 21:32:39 EDT ---

Harry,

Can you look into and chime in on the RDO Reviews please?

Comment 2 Harry Rybacki 2018-11-01 13:41:59 UTC
Fix in RDO[1] has merged. Moving to POST.

[1] - https://review.rdoproject.org/r/16995

Jon, is a manual backport/build needed or required here? /me ducks as he learns more of the RDO way

Comment 3 Harry Rybacki 2018-11-01 15:06:32 UTC
rpm-master != rocky. Submitted cherry-pick for rocky-rdo[2]

[2] - https://review.rdoproject.org/r/17208

Comment 15 errata-xmlrpc 2019-01-11 11:54:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:0045