Bug 768924

Summary: After restarting libvirtd service , virt-who loses reading some other guests info if shutdown one guest.
Product: Red Hat Enterprise Linux 5 Reporter: Hui Wang <huiwang>
Component: virt-whoAssignee: Radek Novacek <rnovacek>
Status: CLOSED CURRENTRELEASE QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 5.8CC: khong, ndai, ovasik
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-who-0.5-3.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-05 10:30:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Comment 1 Radek Novacek 2012-01-04 12:11:47 UTC
Can you retest this bug with virt-who-0.5-3.el5? Bug 769177 looks very similar and is fixed in that version.

Comment 2 Hui Wang 2012-01-05 10:17:40 UTC
(In reply to comment #1)
> Can you retest this bug with virt-who-0.5-3.el5? Bug 769177 looks very similar
> and is fixed in that version.

I retest the bug on rhel5.8-snapshot2.0(xen).
The result is pass.
Version:
virt-who-0.5-3.el5
python-rhsm-0.98.8-1.el5
subscription-manager-0.98.9-1.el5
subscription-manager-gnome-0.98.9-1.el5
subscription-manager-firstboot-0.98.9-1.el5
libvirt-0.8.2-24.el5
libvirt-0.8.2-24.el5
libvirt-python-0.8.2-24.el5

The step as following:

1. Install XEN,register to candlepin.
2. Install three guest on xen,and  run the guests 
3. Configure the virt-who.
    # vi /etc/sysconfig/virt-who
    VIRTWHO_BACKGROUND=1 (enable debugging)
    VIRTWHO_DEBUG=1 (run in background)     
4. Restart the virt-who service in terminal1 
    # service virt-who restart
# service virt-who restart 
5.Restart the libvirtd ,and then shoutdown one guest(rhel5-32)
6.Check the output info of terminal1
........................
EVENT: Domain rhel5.8(7) Started Booted
Virtual machine found: rhel5.8: 70f806e5-8862-f055-fc17-c0beeb8a937f
Virtual machine found: add: 96b2197c-9632-3b00-ca42-735c3fef8650
Virtual machine found: rhel5: adb6047d-72bf-adc7-2d42-28c0c5bf1184
Sending update to updateConsumer: ['70f806e5-8862-f055-fc17-c0beeb8a937f', '96b2197c-9632-3b00-ca42-735c3fef8650', 'adb6047d-72bf-adc7-2d42-28c0c5bf1184']
EVENT: Domain rhel5.8(-1) Stopped Shutdown
Virtual machine found: rhel5.8: 70f806e5-8862-f055-fc17-c0beeb8a937f
Virtual machine found: add: 96b2197c-9632-3b00-ca42-735c3fef8650
Virtual machine found: rhel5: adb6047d-72bf-adc7-2d42-28c0c5bf1184
Sending update to updateConsumer: ['70f806e5-8862-f055-fc17-c0beeb8a937f', '96b2197c-9632-3b00-ca42-735c3fef8650', 'adb6047d-72bf-adc7-2d42-28c0c5bf1184']
^^^^^^^^^^^^no guest's uuid losed

Comment 3 Radek Novacek 2012-01-05 10:30:12 UTC
Thank you, closing as CURRENTRELEASE.