radosgw logrotate script fails and conflicts with Fuel's logrotate

Bug #1781110 reported by Dmitry Sutyagin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Oleksiy Molchanov

Bug Description

Issue detected on MOS 9.2 with Ceph

Issue is similar to https://bugs.launchpad.net/fuel/+bug/1465749

Bundled radosgw logrotate.d script contains incorrect postrotate code "service ceph-radosgw reload" which fails and does not send sighup to radosgw. If this logrotate runs and rotates the log, radosgw will keep writing to rotated log. At the same time, Fuel's logrotate config also rotates radosgw log, so this issue only happens sometimes due to how fuel's logrotate and default logratate are scheduled.

A quick fix is to modify /etc/logrotate.d/radosgw and replace 'service ...' line with 'invoke-rc.d ...' line which can also be found 2 lines below inside "elif" clause.

Revision history for this message
Dmitry Sutyagin (dsutyagin) wrote :

Impact is that over time log accumulates and takes all available space in /var/log on all controllers, causing outage.

Changed in fuel:
assignee: MOS Maintenance (mos-maintenance) → Oleksiy Molchanov (omolchanov)
status: New → Confirmed
Changed in fuel:
importance: Undecided → Medium
Revision history for this message
Denis Meltsaykin (dmeltsaykin) wrote :
Changed in fuel:
status: Confirmed → Fix Committed
Revision history for this message
Dmitry (dtsapikov) wrote :

Verified on 9.2+mu7

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.