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

Bug 1618601

Summary: [Undercloud] logrotate configuration for openstack-keystone doesn't contain copytruncate option
Product: Red Hat OpenStack Reporter: Keigo Noha <knoha>
Component: openstack-keystoneAssignee: Moises Guimaraes <moguimar>
Status: CLOSED ERRATA QA Contact: Pavan <pkesavar>
Severity: medium Docs Contact:
Priority: low    
Version: 13.0 (Queens)CC: hrybacki, jschluet, mariel, moguimar, nkinder, srevivo
Target Milestone: zstreamKeywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-keystone-13.0.2-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1644479 (view as bug list) Environment:
Last Closed: 2019-01-16 17:56:28 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:    
Bug Blocks: 1644479    

Description Keigo Noha 2018-08-17 03:45:48 UTC
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:

Comment 1 Jon Schlueter 2018-10-17 02:03:37 UTC
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

Comment 2 Keigo Noha 2018-10-23 07:16:49 UTC
Hello Jon,

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

Comment 3 Keigo Noha 2018-10-29 01:48:41 UTC
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

Comment 4 Jon Schlueter 2018-10-31 01:32:39 UTC
Harry,

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

Comment 5 Harry Rybacki 2018-10-31 20:21:05 UTC
Our RDO folk is  out until Monday. I've pinged Alan for an assist and identified a second team member to start spooling up on midstream stuff.

Removing RDO tracker for this bug (queens) until we merge the first patch (rocky) and create as basckport for queens.

Comment 7 Keigo Noha 2018-11-22 00:36:33 UTC
Hello Moises,

In the RDO, we don't have any progress for more 2 weeks. Could you ask them to move it forward?

Best Regards,
Keigo Noha

Comment 8 Moises Guimaraes 2018-11-22 07:25:07 UTC
Hi Keigo,

The patches were merged yesterday in RDO and the automatic builds of CentOS packages is already complete:

http://cbs.centos.org/koji/packageinfo?packageID=187

The latest two versions stands for Rocky and Queens new releases of keystone:

openstack-keystone-14.0.1-2.el7
openstack-keystone-13.0.2-2.el7

Best Regards,
Moisés Guimarães

Comment 10 Keigo Noha 2018-11-28 01:17:49 UTC
Hello Moisés,

Thank you for your update and work on RDO.
Could you open an internal gerrit to merge the fix into RHOSP13 tree?

Best Regards,
Keigo Noha

Comment 11 Moises Guimaraes 2018-11-29 12:12:57 UTC
Hi Keigo,

The fix has been merged to rhos-13.0-rhel-7.

Best Regards,
Moisés Guimarães

Comment 24 errata-xmlrpc 2019-01-16 17:56:28 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/RHBA-2019:0090