| Summary: | virt-who has no event report when the guest was paused on Xen(PV & HVM) | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Hui Wang <huiwang> |
| Component: | virt-who | Assignee: | Radek Novacek <rnovacek> |
| Status: | CLOSED WONTFIX | QA Contact: | Entitlement Bugs <entitlement-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.8 | CC: | khong, ndai, ovasik |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-01-05 08:40:10 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Why should virt-who report paused states? Only list of existing virtual machines (state doesn't matter, it's not even sent) is important. Hi Radek, I agree with you that virt-who should not report paused states. The point mentioned in comment 0 is I guess that it would be better to have a pause EVENT reported in debug info when vm is paused. It doesn't mean to send paused states to entitlement server. pls see the lines below the Expected results in comment 0. Hope this clarifies you question above. Regards, Keqin This bug is in the debugging output only and doesn't affect function of the program. I'm closing it as WONTFIX for now. It might be fixed in some future release of virt-who. |
description: Pause one guest, the virt-who can't report the event on Xen(PV & HVM). Version-Release number of selected component (if applicable): 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 How reproducible: always Steps to Reproduce: 1.Install RHEL 5.8-snapshot-2.0(Xen) and register to candlepin. 2.Install some guests(PV & HVM) on the host,and keep the guests are running 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. # 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/share/virt-who/subscriptionmanager.py", line 60, in connect if not self.connection.ping()['result']: File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 411, in ping return self.conn.request_get("/status/") File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 267, in request_get return self._request("GET", method) File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 234, in _request self.validateResponse(result) File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 249, in validateResponse raise RemoteServerException(response['status']) RemoteServerException: <unprintable instance object> Virtual machine found: rhel5.8snaphsot2.0-server-32: ea898b80-5200-6ba1-6bb6-5dcd3ab07369 Virtual machine found: rhel4: 39b783f1-d199-0725-c4b1-50b14ca6dea3 Sending update to updateConsumer: ['39b783f1-d199-0725-c4b1-50b14ca6dea3', 'ea898b80-5200-6ba1-6bb6-5dcd3ab07369'] 5.Pause the guest(PV or HVM)) on the host 6.Check the output info of terminal1 # 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/share/virt-who/subscriptionmanager.py", line 60, in connect if not self.connection.ping()['result']: File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 411, in ping return self.conn.request_get("/status/") File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 267, in request_get return self._request("GET", method) File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 234, in _request self.validateResponse(result) File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 249, in validateResponse raise RemoteServerException(response['status']) RemoteServerException: <unprintable instance object> Virtual machine found: rhel5.8snaphsot2.0-server-32: ea898b80-5200-6ba1-6bb6-5dcd3ab07369 Virtual machine found: rhel4: 39b783f1-d199-0725-c4b1-50b14ca6dea3 Sending update to updateConsumer: ['39b783f1-d199-0725-c4b1-50b14ca6dea3', 'ea898b80-5200-6ba1-6bb6-5dcd3ab07369'] ^^^^^^^^^^No event report when the guest was paused Actual results: virt-who has no event report when the guest was paused. Expected results: when the guest was paused,virt-who will report the event like following: EVENT: Domain xxxx Suspended Paused Virtual machine found: rhel5.8snaphsot2.0-server-32: ea898b80-5200-6ba1-6bb6-5dcd3ab07369 Virtual machine found: rhel4: 39b783f1-d199-0725-c4b1-50b14ca6dea3 Sending update to updateConsumer: ['39b783f1-d199-0725-c4b1-50b14ca6dea3', 'ea898b80-5200-6ba1-6bb6-5dcd3ab07369']