Hide Forgot
Description of problem: After restarting libvirtd service, virt-who loses reading guests if delete one guest on Xen(PV). Version-Release number of selected component (if applicable): virt-who-0.5-2.el5 subscription-manager-0.98.8-1.el5 subscription-manager-firstboot-0.98.8-1.el5 subscription-manager-gnome-0.98.8-1.el5 python-rhsm-0.98.7-1.el5 libvirt-0.8.2-24.el5 libvirt-0.8.2-24.el5 libvirt-python-0.8.2-24.el5 How reproducible: always Steps to Reproduce: 1.Install XEN and register to candlepin. 2.Install three paravirtualized guests on xen and run the guests. 3.Configure 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. [root@localhost ~]# service virt-who restart Stopping virt-who: [ OK ] Starting virt-who: Virt-who is running in libvirt mode Starting infinite loop with 3600 seconds interval and event handling [ OK ] [root@localhost ~]# Unable to obtain status from server, UEPConnection is likely not usable: Traceback (most recent call last): File "/usr/lib64/python2.4/logging/__init__.py", line 731, in emit msg = self.format(record) File "/usr/lib64/python2.4/logging/__init__.py", line 617, in format return fmt.format(record) File "/usr/lib64/python2.4/logging/__init__.py", line 405, in format record.message = record.getMessage() File "/usr/lib64/python2.4/logging/__init__.py", line 272, in getMessage msg = str(self.msg) AttributeError: RemoteServerException instance has no attribute 'args' Traceback (most recent call last): File "/usr/lib64/python2.4/logging/handlers.py", line 71, in emit if self.shouldRollover(record): File "/usr/lib64/python2.4/logging/handlers.py", line 149, in shouldRollover msg = "%s\n" % self.format(record) File "/usr/lib64/python2.4/logging/__init__.py", line 617, in format return fmt.format(record) File "/usr/lib64/python2.4/logging/__init__.py", line 405, in format record.message = record.getMessage() File "/usr/lib64/python2.4/logging/__init__.py", line 272, in getMessage msg = str(self.msg) AttributeError: RemoteServerException instance has no attribute 'args' Virtual machine found: Domain-0: 00000000-0000-0000-0000-000000000000 Virtual machine found: rhel5: 80fa18cc-c480-013a-9dd8-d4af7aab0ab7 Virtual machine found: rhel5-1: 271627eb-a009-a64a-f747-c6a36834e8cf Virtual machine found: rhel5-2: c26c4c8d-90a5-ea2b-2c91-354b580f4a78 Sending update to updateConsumer: ['00000000-0000-0000-0000-000000000000', '271627eb-a009-a64a-f747-c6a36834e8cf', '80fa18cc-c480-013a-9dd8-d4af7aab0ab7', 'c26c4c8d-90a5-ea2b-2c91-354b580f4a78'] 5.Restart libvirtd service and virt-manager, then add another guest(rhel5-2). 6.Check the output info of terminal1. Actual results: EVENT: Domain rhel5-2(-1) Undefined R Virtual machine found: rhel5-2: c26c4c8d-90a5-ea2b-2c91-354b580f4a78 Sending update to updateConsumer: [] ^^^^^^^all guest infos are removed Expected results: Only uuid of the deleted guest should be removed.
sorry, step5: s/add another guest/delete one guest
I'm not able to reproduce this bug. Can you please run "virsh list --all" after libvirtd restart and then again after removing the guest and post the results here. Thank you.
(In reply to comment #2) > I'm not able to reproduce this bug. Can you please run "virsh list --all" after > libvirtd restart and then again after removing the guest and post the results > here. Thank you. The same problem occurs on hvm guests, testing on Xen(hvm): After restarting libvirtd: [root@localhost images]# virsh list --all Id Name State ---------------------------------- 0 Domain-0 running 28 rhel5-1 idle 34 rhel5-2 idle - rhel5-3 shut off After removing guest rhel5-3: [root@localhost images]# virsh list --all Id Name State ---------------------------------- 0 Domain-0 running 28 rhel5-1 idle 34 rhel5-2 idle
Verifying version: virt-who-0.5-3.el5 subscription-manager-0.98.9-1.el5 libvirt-0.8.2-24.el5 libvirt-python-0.8.2-24.el5 Steps to verify: The same as Comment 0. Actual result: EVENT: Domain delete2(-1) Undefined R Virtual machine found: delete: 4e8f7a0c-55a2-ac19-5d54-afdf84843cbb Virtual machine found: delete2: 1b6465a6-87ee-5cd1-28ed-d4590bcf70c0 Sending update to updateConsumer: ['4e8f7a0c-55a2-ac19-5d54-afdf84843cbb'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Send the right guestid
Great, I'll close this bug then.