Bug 1800699 - [GSS] log rotation config causes tcmu-runner to terminate
Summary: [GSS] log rotation config causes tcmu-runner to terminate
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: tcmu-runner
Version: rhgs-3.4
Hardware: x86_64
OS: Linux
medium
low
Target Milestone: ---
: OCS 3.11.z Batch Update 6
Assignee: Prasanna Kumar Kalever
QA Contact: Vivek Das
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-07 17:53 UTC by Cal Calhoun
Modified: 2024-03-25 15:40 UTC (History)
11 users (show)

Fixed In Version: tcmu-runner-1.2.0-33.el7rhgs
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-17 04:31:42 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:5602 0 None None None 2020-12-17 04:32:12 UTC

Description Cal Calhoun 2020-02-07 17:53:55 UTC
Description of problem:

  When trying to implement log rotation for tcmu-runner logs, sending a HUP signal to tcmu-runner causes the service to terminate


Version-Release number of selected component (if applicable):

  OCS Independent Mode

  glusterfs-server-3.12.2-47.el7rhgs.x86_64
  vdsm-gluster-4.19.43-2.3.el7rhgs.noarch
  glusterfs-api-3.12.2-47.el7rhgs.x86_64
  glusterfs-libs-3.12.2-47.el7rhgs.x86_64
  glusterfs-fuse-3.12.2-47.el7rhgs.x86_64
  glusterfs-rdma-3.12.2-47.el7rhgs.x86_64
  gluster-nagios-common-0.2.4-1.el7rhgs.noarch
  python2-gluster-3.12.2-47.el7rhgs.x86_64
  glusterfs-3.12.2-47.el7rhgs.x86_64
  glusterfs-cli-3.12.2-47.el7rhgs.x86_64
  gluster-nagios-addons-0.2.10-2.el7rhgs.x86_64
  libvirt-daemon-driver-storage-gluster-4.5.0-10.el7_6.2.x86_64
  glusterfs-client-xlators-3.12.2-47.el7rhgs.x86_64
  gluster-block-0.2.1-31.el7rhgs.x86_64
  glusterfs-geo-replication-3.12.2-47.el7rhgs.x86_64


How reproducible:

  Every time


Steps to Reproduce:

  1. Implement the following logrotate config

     /etc/logrotate.d/tcmu-runner

     /var/log/tcmu-runner*.log {
       rotate 7
       size 10M
       compress
       missingok
       notifempty
       nodateext
       postrotate
         /usr/bin/killall -HUP tcmu-runner > /dev/null 2>&1 || true
       endscript
     }

  2. When the command /usr/bin/killall -HUP tcmu-runner > /dev/null 2>&1 || true is run manually for testing, both tcmu-runner and gluster-blockd services stop
 

Actual results:

  tcmu-runner and gluster-blockd services terminate


Expected results:

  tcmu-runner should respond properly to the HUP signal and allow the log to be rotated

Additional info:

Comment 10 errata-xmlrpc 2020-12-17 04:31:42 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 (OpenShift Container Storage 3.11.z bug fix update), 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-2020:5602


Note You need to log in before you can comment on or make changes to this bug.