Bug 861563 - Sometimes stop virt-who failed via command "service virt-who restart" in ESX mode
Summary: Sometimes stop virt-who failed via command "service virt-who restart" in ESX ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: virt-who
Version: 5.9
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Radek Novacek
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-29 07:57 UTC by lzhuang
Modified: 2016-12-01 00:31 UTC (History)
10 users (show)

Fixed In Version: virt-who-0.7-9.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-08 07:36:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0072 0 normal SHIPPED_LIVE virt-who bug fix and enhancement update 2013-01-07 15:27:17 UTC

Description lzhuang 2012-09-29 07:57:12 UTC
Description of problem:
If running command "service virt-who restart" many times, and the interval is very short, stop virt-who service will fail, but start the service successfully, and there will be many virt-who processes running. 

Version-Release number of selected component (if applicable):
subscription-manager-gui-1.0.20-1.el5
subscription-manager-1.0.20-1.el5
subscription-manager-firstboot-1.0.20-1.el5
python-rhsm-1.0.9-1.el5
virt-who-0.7-8.el5

How reproducible:
100%

Steps to Reproduce:
1. restart virt-who service many times with short interval of each operation:
[root@rhel59 ~]# service virt-who restart
Stopping virt-who:                                         [  OK  ]
Starting virt-who:                                         [  OK  ]
[root@rhel59 ~]# service virt-who restart
Stopping virt-who:                                         [FAILED]
Starting virt-who:                                         [  OK  ]
[root@rhel59 ~]# service virt-who restart
Stopping virt-who:                                         [FAILED]
Starting virt-who:                                         [  OK  ]
[root@rhel59 ~]# service virt-who restart
Stopping virt-who:                                         [FAILED]
Starting virt-who:                                         [  OK  ]
[root@rhel59 ~]# service virt-who restart
Stopping virt-who:                                         [FAILED]
Starting virt-who:                                         [  OK  ]
2. check the virt-who process:
[root@rhel59 ~]# ps -ef|grep virt-who
root     21128     1 67 03:52 ?        00:00:06 /usr/bin/python /usr/share/virt-who/virt-who.py
root     21144     1 47 03:52 ?        00:00:03 /usr/bin/python /usr/share/virt-who/virt-who.py
root     21160     1 38 03:52 ?        00:00:02 /usr/bin/python /usr/share/virt-who/virt-who.py
root     21176     1 45 03:52 ?        00:00:02 /usr/bin/python /usr/share/virt-who/virt-who.py
root     21192     1 27 03:52 ?        00:00:01 /usr/bin/python /usr/share/virt-who/virt-who.py
root     21196 20194  0 03:52 pts/3    00:00:00 grep virt-who

  
Actual results:
1. Stop virt-who service will fail, but start the service succeed
2. There are many virt-who processes running

Expected results:
If failed to stop virt-who service, it should not start a new one, and there should be only 1 process running in the system.


Additional info:

Comment 1 RHEL Program Management 2012-09-29 08:08:23 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 3 Radek Novacek 2012-10-04 10:30:58 UTC
This bug has been fixed in virt-who-0.7-9.el5.

Comment 5 lzhuang 2012-10-08 02:15:44 UTC
This bug has been verified, and the result is PASS.

Verifying version:
[root@rhel59 ~]# rpm -qa|grep virt-who
virt-who-0.7-9.el5

Steps and results:
1. restart virt-who service, and it will succeed every time:
[root@rhel59 ~]# service virt-who restart
Stopping virt-who:                                         [  OK  ]
Starting virt-who:                                         [  OK  ]
[root@rhel59 ~]# service virt-who restart
Stopping virt-who:                                         [  OK  ]
Starting virt-who:                                         [  OK  ]
[root@rhel59 ~]# service virt-who restart
Stopping virt-who:                                         [  OK  ]
Starting virt-who:                                         [  OK  ]
[root@rhel59 ~]# service virt-who restart
Stopping virt-who:                                         [  OK  ]
Starting virt-who:                                         [  OK  ]
2. check process of virt-who running in system, there's only 1 virt-who process running:
[root@rhel59 ~]# ps -ef|grep virt-who
root     12890     1 95 22:04 ?        00:00:04 /usr/bin/python /usr/share/virt-who/virt-who.py
root     12893 12680  0 22:04 pts/1    00:00:00 grep virt-who

Comment 6 Hui Wang 2012-10-08 02:20:10 UTC
Moving to Verified according comment5

Comment 8 errata-xmlrpc 2013-01-08 07:36:32 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/RHBA-2013-0072.html


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