Bug 1800699

Summary: [GSS] log rotation config causes tcmu-runner to terminate
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Cal Calhoun <ccalhoun>
Component: tcmu-runnerAssignee: Prasanna Kumar Kalever <prasanna.kalever>
Status: CLOSED ERRATA QA Contact: Vivek Das <vdas>
Severity: low Docs Contact:
Priority: medium    
Version: rhgs-3.4CC: arukumar, mmuench, nchilaka, pprakash, prasanna.kalever, puebele, rhs-bugs, rtalur, sabose, vdas, xiubli
Target Milestone: ---Keywords: ZStream
Target Release: OCS 3.11.z Batch Update 6   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: tcmu-runner-1.2.0-33.el7rhgs Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-17 04:31:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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