The 'ceph-radosgw' process does not get reloaded properly after logrotate rotates the RGW logs.

Solution In Progress - Updated -

Issue

  • Logrotate does not reload the 'ceph-radosgw' process after rotating the RGW logs.

  • This results in orphaned file handles which leads to lots of RGW log files created under /var/log/radosgw/.

  • Restarting the 'ceph-radosgw' process manually fails as well.

# service ceph-radosgw reload
Reloading ceph-radosgw configuration (via systemctl):  Job for ceph-radosgw.service failed. See 'systemctl status ceph-radosgw.service' and 'journalctl -xn' for details.
                                                           [FAILED]

# systemctl status ceph-radosgw
ceph-radosgw.service - LSB: radosgw RESTful rados gateway
   Loaded: loaded (/etc/rc.d/init.d/ceph-radosgw)
   Active: active (exited) (Result: exit-code) since Wed 2016-03-09 00:05:16 UTC; 5h 18min ago
  Process: 3789352 ExecStop=/etc/rc.d/init.d/ceph-radosgw stop (code=exited, status=0/SUCCESS)
  Process: 4092387 ExecReload=/etc/rc.d/init.d/ceph-radosgw reload (code=exited, status=1/FAILURE)
  Process: 3792409 ExecStart=/etc/rc.d/init.d/ceph-radosgw start (code=exited, status=0/SUCCESS)

Mar 09 03:31:16 <hostname> systemd[1]: Reloading LSB: radosgw RESTful rados gateway.
Mar 09 03:31:16 <hostname> ceph-radosgw[4001386]: Reloading ...
Mar 09 03:31:16 <hostname> ceph-radosgw[4001386]: [FAILED]
Mar 09 03:31:16 <hostname> systemd[1]: ceph-radosgw.service: control process exited, code=exited status=1
Mar 09 03:31:16 <hostname> systemd[1]: Reload failed for LSB: radosgw RESTful rados gateway.
Mar 09 05:21:33 <hostname> systemd[1]: Reloading LSB: radosgw RESTful rados gateway.
Mar 09 05:21:33 <hostname> ceph-radosgw[4092387]: Reloading ...
Mar 09 05:21:33 <hostname> ceph-radosgw[4092387]: [FAILED]
Mar 09 05:21:33 <hostname> systemd[1]: ceph-radosgw.service: control process exited, code=exited status=1
Mar 09 05:21:33 <hostname> systemd[1]: Reload failed for LSB: radosgw RESTful rados gateway.

Environment

  • Red Hat Ceph Storage 1.3.1

  • Red Hat Ceph Storage 1.3.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content