Bug 237310
Summary: | Repeated erros from /usr/share/rhn/virtualization/poller.py | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | John Barton <jbarton> |
Component: | Virtualization | Assignee: | Pradeep Kilambi <pkilambi> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Brandon Perkins <bperkins> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 500 | CC: | cbolz, k.georgiou |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | sat500 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-06-26 02:09:39 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 232034 |
Description
John Barton
2007-04-20 18:57:27 UTC
prad, i think you have already looked at a similar bug, going to throw on must list and you can dup or move to appropriate tracker. fix committed we need to gracefully catch the exception raised my libvirt, if cannot step up a hypervisor connection. Committed revision 115436. Fails QA. Now I'm getting: Traceback (most recent call last): File "/usr/share/rhn/virtualization/poller.py", line 196, in ? domain_list = poll_hypervisor() File "/usr/share/rhn/virtualization/poller.py", line 69, in poll_hypervisor if not conn: UnboundLocalError: local variable 'conn' referenced before assignment fixed.. should make it into next iso.. Still Fails QA with rhn-virtualization-host-1.0.1-49. Looks like the same error: Traceback (most recent call last): File "/usr/share/rhn/virtualization/poller.py", line 196, in ? domain_list = poll_hypervisor() File "/usr/share/rhn/virtualization/poller.py", line 69, in poll_hypervisor if not conn: UnboundLocalError: local variable 'conn' referenced before assignment found the problem..it was a typo sorry :( fixed Sending virtualization/poller.py Transmitting file data . Committed revision 116285. Still Fails QA with rhn-virtualization-host-1.0.1-50. Slightly different error this time: Traceback (most recent call last): File "/usr/share/rhn/virtualization/poller.py", line 196, in ? domain_list = poll_hypervisor() File "/usr/share/rhn/virtualization/poller.py", line 70, in poll_hypervisor raise VirtualizationException, \ virtualization.errors.VirtualizationException: Failed to open connection to hypervisor. well thats because there is no lib-virt on that box and we raise an exception as follows if we cannot connect to hypervisor: try: conn = libvirt.open(None) except libvirt.libvirtError, lve: # virConnectOpen() failed conn = None if not conn: raise VirtualizationException, \ "Failed to open connection to hypervisor." This is a legitimate exception. oops i dint mean there is no libvirt.. i meant if it cannot open a connection to the hypervisor we cannot proceed further to get the domain lists k we decided to suppress the legitimate exception for poller to not spam the user. Now on a non-xen kernel poller should just pass on silently if its not able to create a connection to hyper visor. Verified. We're good on this case. Release Pending. Closed for Satellite 500 Release. |