Bug 706847 - [vdsm][Init-script] vdsmd's System v init script (stop) does not stop all vdsm processes.
Summary: [vdsm][Init-script] vdsmd's System v init script (stop) does not stop all vds...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.1
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Erez Shinan
QA Contact: Kiril Nesenko
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-23 08:41 UTC by David Naori
Modified: 2014-07-11 00:07 UTC (History)
11 users (show)

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


Attachments (Terms of Use)


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-23 08:41:33 UTC
Description of problem:
Sometimes when stopping vdsmd- not all processes are being killed and still bounded to 54321 socket.

[root@camel-vdsb storage]# /etc/init.d/vdsmd stop
Shutting down vdsm daemon: 
vdsm watchdog stop                                         [  OK  ]
vdsm stop                                                  [  OK  ]


[root@camel-vdsb storage]# ps aux | grep vdsm
vdsm      4535  0.0  0.0 1451148 26212 ?       S<   11:18   0:00 /usr/bin/python /usr/share/vdsm//vdsm
vdsm      4538  0.0  0.0 1526928 28264 ?       S<   11:18   0:00 /usr/bin/python /usr/share/vdsm//vdsm


[root@camel-vdsb storage]# lsof -i -Pn |grep 54321
vdsm       4535    vdsm    7u  IPv4 1843887      0t0  TCP 10.35.116.2:54321 (LISTEN)
vdsm       4535    vdsm   24u  IPv4 1845174      0t0  TCP 10.35.116.2:54321->10.35.77.4:51782 (CLOSE_WAIT)
vdsm       4538    vdsm    7u  IPv4 1843887      0t0  TCP 10.35.116.2:54321 (LISTEN)
vdsm       4538    vdsm   24u  IPv4 1845174      0t0  TCP 10.35.116.2:54321->10.35.77.4:51782 (CLOSE_WAIT)

therefore its impossible to start vdsmd:
vdsm: port 54321 already bound                             [FAILED]

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

How reproducible:
50%

Steps to Reproduce:
1./etc/init.d/vdsmd stop
2./etc/init.d/vdsmd restart (repeat till you hit it)

Comment 2 Dan Kenigsberg 2011-05-30 14:35:27 UTC
commit 7fd0047733bbb4303e41ccb002d96d1c7bb63cca (HEAD, dk/cloexec2)
Author: Dan Kenigsberg <danken>
Date:   Mon Jan 31 18:08:34 2011 +0200

    BZ#706847 close xmlrpc socket on exec
    
    Change-Id: I15bdd80a15c55db62fba7218306788f040397415


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

Comment 5 Kiril Nesenko 2011-06-09 13:10:39 UTC
/etc/init.d/vdsmd restart was executed 200 times successfully.  
Verified
ic122
vdsm-4.9-73.el6.x86_64

Comment 6 errata-xmlrpc 2011-12-06 07:19:04 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.