Centos,logrotate, radosgw: unrecognized service

Bug #1465708 reported by Stanislav Makar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
High
Aleksander Mogylchenko
6.1.x
Fix Committed
High
Aleksander Mogylchenko
7.0.x
Won't Fix
High
Aleksander Mogylchenko

Bug Description

radosgw: unrecognized service

Fuel 6.1
CentOS

It is due to the wrong postrotate action in the file /etc/logrotate.d/radosgw, especially service name for CentOS
Correct service name is ceph-radosgw

[root@node-4 ~]# rpm -qf /etc/logrotate.d/radosgw
ceph-0.80.9-0.mira1.x86_64

Impact: leads to filling the partition, since the inode is still around, and radosgw continues to write there.

Changed in fuel:
importance: Undecided → High
Stanislav Makar (smakar)
summary: - radosgw stops writing logs during logrotate
+ Centos,logrotate, radosgw: unrecognized service
description: updated
Changed in fuel:
importance: High → Critical
assignee: Stanislav Makar (smakar) → MOS Linux (mos-linux)
description: updated
description: updated
Revision history for this message
Aleksander Mogylchenko (amogylchenko) wrote :

Please provide clear steps to reproduce the problem, preferably a list of shell commands.

Revision history for this message
Stanislav Makar (smakar) wrote :

To catch it quickly
open the file /etc/logrotate.d/radosgw and look at postrotate action

 postrotate
        if which invoke-rc.d > /dev/null 2>&1 && [ -x `which invoke-rc.d` ]; then
            invoke-rc.d radosgw reload >/dev/null
        elif which service > /dev/null 2>&1 && [ -x `which service` ]; then
            service radosgw reload >/dev/null
        fi

as you see there is command

service radosgw reload >/dev/null

line 10

try to fire the command

service radosgw reload

and you will see: radosgw: unrecognized service

otherwise you have to hack file /etc/logrotate.d/radosgw to force logrotate do it earlier then tomorrow

Revision history for this message
Stanislav Makar (smakar) wrote :

https://<email address hidden>/msg17440.html

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to packages/centos6/ceph (6.1)

Fix proposed to branch: 6.1
Change author: Aleksandr Mogylchenko <email address hidden>
Review: https://review.fuel-infra.org/7906

Revision history for this message
Dmitry Borodaenko (angdraug) wrote :

Please clarify impact in the bug description. Does it cause log partition to fill up due to unrotated logs? As it is, I don't believe this fix belongs in 6.1, should be 6.1-updates at best.

description: updated
Revision history for this message
Baboune (seyvet) wrote :

This problem will affect any nodes running ceph-radosgw so any "controller" nodes, right?

Revision history for this message
Aleksander Mogylchenko (amogylchenko) wrote :

Yes, any CentOS node with ceph-radosgw is affected.

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to packages/centos6/ceph (6.1)

Reviewed: https://review.fuel-infra.org/7906
Submitter: Artem Silenkov <email address hidden>
Branch: 6.1

Commit: f5661ff5038c1b575e5e865e43eda91aa2de98d6
Author: Aleksandr Mogylchenko <email address hidden>
Date: Tue Jun 16 18:00:49 2015

Fix radosgw log rotation on CentOS

Closes-Bug: #1465708
Change-Id: Ie85f9c63e413dd9e6424814d9b5639bfa498d4f3

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to packages/centos6/ceph (7.0)

Fix proposed to branch: 7.0
Change author: Aleksandr Mogylchenko <email address hidden>
Review: https://review.fuel-infra.org/9317

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on packages/centos6/ceph (7.0)

Change abandoned by Aleksandr Mogylchenko <email address hidden> on branch: 7.0
Review: https://review.fuel-infra.org/9317
Reason: new package will be available anyway

Revision history for this message
Aleksander Mogylchenko (amogylchenko) wrote :

Since 7.0 will have new ceph, this bug does not make sense for that version.

Changed in fuel:
status: Confirmed → Won't Fix
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.