Bug 702275 - [vdsm] vdsm doesn't terminate on SIGTERM / sigusr1
Summary: [vdsm] vdsm doesn't terminate on SIGTERM / sigusr1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.1
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Federico Simoncelli
QA Contact: yeylon@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-05 09:09 UTC by David Naori
Modified: 2016-04-18 06:40 UTC (History)
13 users (show)

Fixed In Version: vdsm-4.9-65.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 07:17:34 UTC
Target Upstream Version:


Attachments (Terms of Use)
full log (5.26 MB, application/octet-stream)
2011-05-05 09:09 UTC, David Naori
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:1782 0 normal SHIPPED_LIVE new packages: vdsm 2011-12-06 11:55:51 UTC

Description David Naori 2011-05-05 09:09:19 UTC
Created attachment 497013 [details]
full log

Description of problem:
when spm-protect trying to fence vdsm with /bin/kill -USR1 PID, vdsm hangs forever.

MainThread::INFO::2011-05-05 11:57:54,000::dispatcher::94::Storage.Dispatcher.Protect::(run) Run and protect: prepareForShutdown, args: ()
.....

MainThread::ERROR::2011-05-05 11:57:58,152::vdsm::74::vds::(run) Traceback (most recent call last):
  File "/usr/share/vdsm//vdsm", line 72, in run
    serve_clients(log)
  File "/usr/share/vdsm//vdsm", line 41, in serve_clients
    cif.serve()
  File "/usr/share/vdsm/clientIF.py", line 283, in serve
    self.server.serve_forever()
  File "/usr/lib64/python2.6/SocketServer.py", line 224, in serve_forever
    r, w, e = select.select([self], [], [], poll_interval)
error: (4, 'Interrupted system call')
...

Version-Release number of selected component (if applicable):
vdsm-4.9-64.el6.x86_64


Steps to Reproduce:
1.kill -USR1 `cat /var/run/vdsm/vdsmd.pid`

Actual results:
vdsm hangs forever.

full vdsm.log attached.

Comment 1 Federico Simoncelli 2011-05-09 08:03:20 UTC
Notes about testing:
 - SIGTERM should stop vdsm
 - SIGUSR1 should stop just the SPM functionality

http://gerrit.usersys.redhat.com/373

commit e785a8c05b44fcffcb8fd23ad5029b0fb9c99963
Author: Federico Simoncelli <fsimonce>
Date:   Fri May 6 11:23:09 2011 +0100

    BZ#702275 VDSM must terminate on SIGTERM
    
    Change-Id: Id47895f0ea889e4d6ea5133666c1c41013f7091e
    Reviewed-on: http://gerrit.usersys.redhat.com/373
    Tested-by: Dan Kenigsberg <danken>
    Reviewed-by: Dan Kenigsberg <danken>

Comment 3 Tomas Dosek 2011-05-16 08:04:59 UTC
Verified - vdsm-4.9-65.el6.x86_64 - works as described in #1 by Federico Simoncelli - on SIGTERM the vdsm stops, on SIGUSR1 only SPM functionality stops.

Comment 4 errata-xmlrpc 2011-12-06 07:17:34 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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2011-1782.html


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