radosgw doesn't start a new log on SIGHUP

Bug #1465749 reported by Sergii Golovatiuk
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
High
MOS Ceph
5.1.x
Invalid
High
MOS Maintenance
6.0.x
Invalid
High
MOS Maintenance
6.1.x
Invalid
High
MOS Maintenance
7.0.x
Invalid
High
MOS Ceph

Bug Description

Hi,

radosgw service doesn't produce a new log after logrotation. After investigation I found that SIGHUP doesn't work proplerly. The issue is present on CentOS (Ubuntu is not affected). Here is a way how to reproduce

root@node-1:~# lsof -p `pgrep radosgw` | grep ceph-client.radosgw.gateway.log
radosgw 19420 root 3w REG 252,0 45554 146958 /var/log/radosgw/ceph-client.radosgw.gateway.log

As you can see file is present. Ok. let's delete it. that's what usually logrotate does

root@node-1:~# lsof -p `pgrep radosgw` | grep ceph-client.radosgw.gateway.log
radosgw 19420 root 3w REG 252,0 120611 146958 /var/log/radosgw/ceph-client.radosgw.gateway.log (deleted)

file has been marked as deleted. Ok. let's send a SIGHUP
root@node-1:~# lsof -p `pgrep radosgw` | grep ceph-client.radosgw.gateway.log

as we can see radosgw didn't start writing logs to a new file

Changed in fuel:
importance: Undecided → High
assignee: nobody → MOS Linux (mos-linux)
milestone: none → 6.1
Revision history for this message
Aleksander Mogylchenko (amogylchenko) wrote :

radosgw works from root user in Ubuntu, while it uses apache under CentOS - which has no rights to write to /var/log/radosgw folder.

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

You can find logs in /var/log/syslog folder.

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

btw, not sure why it is High and assigned to 6.1 - location of logs is a minor issue.

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

/var/log/syslog *file*, not a folder - that was a typo.

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

It's High because failure to rotate logs means eventually /var/log will run out of disk space. But I agree that it's not Critical and so shouldn't be targeted for 6.1, 6.1-updates at best.

Revision history for this message
Kostiantyn Danylov (kdanylov) wrote :

Dmitry, radosgw would stop writting logs at all, as I understand from investigation. So we would lost a logs, not fill up drive

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

If one sets user to root:
[root@node-4 radosgw]# grep user /etc/ceph/ceph.conf
user = root

Everything works fine:
root@node-4 radosgw]# lsof -p 32179 | grep log
radosgw 32179 root cwd DIR 253,1 4096 385044 /var/log/radosgw
radosgw 32179 root 3w REG 253,1 5680 384892 /var/log/radosgw/ceph-client.radosgw.gateway.log
[root@node-4 radosgw]# lsof -p 32179 | grep radosgw.gateway.log
radosgw 32179 root 3w REG 253,1 6665 384892 /var/log/radosgw/ceph-client.radosgw.gateway.log
[root@node-4 radosgw]# rm -rf /var/log/radosgw/ceph-client.radosgw.gateway.log
[root@node-4 radosgw]# kill -HUP 32179
[root@node-4 radosgw]# lsof -p 32179 | grep radosgw.gateway.log
radosgw 32179 root 3w REG 253,1 394 384892 /var/log/radosgw/ceph-client.radosgw.gateway.log

Changed in fuel:
status: New → Invalid
assignee: MOS Linux (mos-linux) → Sergii Golovatiuk (sgolovatiuk)
Revision history for this message
Aleksander Mogylchenko (amogylchenko) wrote :

This issue is different from https://bugs.launchpad.net/fuel/+bug/1465708, please do not mix them.

Changed in fuel:
status: Invalid → Confirmed
Revision history for this message
Dmitry Borodaenko (angdraug) wrote :

Good point. Not writing any logs is almost as bad as filling up the logs partition so that no services can write any logs, but still not a release blocker.

Revision history for this message
Baboune (seyvet) wrote :

I confirm that writing no logs is the behavior we have observed in our environment as well.

tags: added: customer-found
no longer affects: fuel/6.0.x
no longer affects: fuel/5.1.x
no longer affects: fuel/5.0.x
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/205045

Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Pawel Stefanski (pejotes)
status: Confirmed → In Progress
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to packages/centos6/ceph (master)

Fix proposed to branch: master
Change author: Pawel Stefanski <email address hidden>
Review: https://review.fuel-infra.org/9832

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

Change abandoned by Pawel Stefanski <email address hidden> on branch: master
Review: https://review.fuel-infra.org/9832
Reason: wrong branch

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

Fix proposed to branch: master
Change author: Pawel Stefanski <email address hidden>
Review: https://review.fuel-infra.org/9843

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

Change abandoned by Pawel Stefanski <email address hidden> on branch: master
Review: https://review.fuel-infra.org/9843
Reason: wrong branch

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

Fix proposed to branch: master
Change author: Pawel Stefanski <email address hidden>
Review: https://review.fuel-infra.org/9844

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: Pawel Stefanski <email address hidden>
Review: https://review.fuel-infra.org/9845

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

Change abandoned by Pawel Stefanski <email address hidden> on branch: master
Review: https://review.fuel-infra.org/9844
Reason: wrong branch

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (master)

Change abandoned by Pawel Stefanski (<email address hidden>) on branch: master
Review: https://review.openstack.org/205045
Reason: Addressed in package patch.

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

Change restored by Mateusz Matuszkowiak <email address hidden> on branch: master
Review: https://review.fuel-infra.org/9844

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

Change abandoned by Mateusz Matuszkowiak <email address hidden> on branch: 7.0
Review: https://review.fuel-infra.org/9845

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

Change abandoned by Mateusz Matuszkowiak <email address hidden> on branch: master
Review: https://review.fuel-infra.org/9844

tags: added: known-issue
Revision history for this message
Aleksandr Didenko (adidenko) wrote :

All the patches related to this bug are abandoned. So I'm changing status to Confirmed

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

We should not workaround SIGHUP processing issues with puppet, moved to MOS Ceph team

Revision history for this message
Alyona Kiseleva (akiselyova) wrote :

Aleksander Mogylchenko have already posted the right reason: apache user, who run radosgw in CentOS, have no rights to create file in /var/log folder.

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.