Bug 820934

Summary: virt-who report an Exception error in ESX mode.
Product: Red Hat Enterprise Linux 6 Reporter: yqiao <yqiao>
Component: virt-whoAssignee: Radek Novacek <rnovacek>
Status: CLOSED NOTABUG QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.3CC: dyasny, huiwang, 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-05-11 13:10:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description yqiao 2012-05-11 11:22:39 UTC
Description of problem:
virt-who reports error info  when it is starting in ESX mode : Exception: imported schema (urn:reflect) at (https://10.66.7.33/sdk/reflect-messagetypes.xsd), failed

version-Release number of selected component (if appliable):

virt-who-0.6-2.el6.noarch
python-rhsm-0.99.10-1.el6.noarch
subscription-manager-gnome-0.99.17-1.el6.x86_64
subscription-manager-0.99.17-1.el6.x86_64
subscription-manager-firstboot-0.99.17-1.el6.x86_64
katello-headpin-all-0.1.145-1.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-glue-candlepin-0.1.307-1.el6.noarch
katello-selinux-0.1.10-1.el6.noarch
katello-cli-headpin-0.1.16-1.el6.noarch
katello-common-0.1.307-1.el6.noarch
katello-configure-0.1.107-1.el6.noarch
katello-certs-tools-1.0.6-1.el6.noarch
katello-cli-common-0.1.107-1.el6.noarch
katello-headpin-0.1.145-1.el6.noarch
candlepin-0.5.26-1.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-glue-candlepin-0.1.307-1.el6.noarch
candlepin-tomcat6-0.5.26-1.el6.noarch
thumbslug-0.0.21-1.el6.noarch

How reproducible:
always

Steps to Reproduce:

1. prepared one rhel5.8-snapshot2.0 host, and register to SAM:
#subscription-namager register –org=org1 --environment=org1-env1
--username=$username --password=$password

2.Deployed the env of ESX as following:
Vcenter server IP : 10.66.7.33
Vsphere client Ip : 10.66.13.217
ESX IP: 10.66.5.247
Installed some Guests on ESX

3.Set the /etc/sysconfig/virt-who on rhel5.8-snapshot2.0 host (or on one of the
guests that is installed on ESX).

#vim /etc/sysconfig/virt-who
VIRTWHO_BACKGROUND=1
VIRTWHO_DEBUG=1
VIRTWHO_ESX=1
VIRTWHO_ESX_OWNER=org1
VIRTWHO_ESX_ENV=org1-env1
VIRTWHO_ESX_SERVER=10.66.7.33
VIRTWHO_ESX_USERNAME=Administrator
VIRTWHO_ESX_PASSWORD=123qweP

4.Start the virt-who service
[root@localhost ~]# service virt-who restart
Stopping virt-who:                                         [  OK  ]
Starting virt-who: Listening for events is not available in VDSM or ESX mode
Virt-who is running in esx mode
Starting infinite loop with 3600 seconds interval and event handling
                                                           [  OK  ]
[root@localhost ~]# No handlers could be found for logger "suds.xsd.sxbasic"
imported schema (urn:reflect) at (https://10.66.7.33/sdk/reflect-messagetypes.xsd), failed
Traceback (most recent call last):
  File "/usr/share/virt-who/virt-who.py", line 130, in _send
    self.checkConnections()
  File "/usr/share/virt-who/virt-who.py", line 110, in checkConnections
    self.initVirt()
  File "/usr/share/virt-who/virt-who.py", line 70, in initVirt
    self.virt = VSphere(self.logger, self.options.esx_server, self.options.esx_username, self.options.esx_password)
  File "/usr/share/virt-who/vsphere.py", line 94, in __init__
    self.client = suds.client.Client("%s/sdk/vimService.wsdl" % url)
  File "/usr/lib/python2.6/site-packages/suds/client.py", line 112, in __init__
    self.wsdl = reader.open(url)
  File "/usr/lib/python2.6/site-packages/suds/reader.py", line 152, in open
    d = self.fn(url, self.options)
  File "/usr/lib/python2.6/site-packages/suds/wsdl.py", line 157, in __init__
    self.open_imports()
  File "/usr/lib/python2.6/site-packages/suds/wsdl.py", line 202, in open_imports
    imp.load(self)
  File "/usr/lib/python2.6/site-packages/suds/wsdl.py", line 314, in load
    d = Definitions(url, options)
  File "/usr/lib/python2.6/site-packages/suds/wsdl.py", line 159, in __init__
    self.build_schema()
  File "/usr/lib/python2.6/site-packages/suds/wsdl.py", line 220, in build_schema
    self.schema = container.load(self.options)
  File "/usr/lib/python2.6/site-packages/suds/xsd/schema.py", line 93, in load
    child.open_imports(options)
  File "/usr/lib/python2.6/site-packages/suds/xsd/schema.py", line 305, in open_imports
    imported = imp.open(options)
  File "/usr/lib/python2.6/site-packages/suds/xsd/sxbasic.py", line 542, in open
    result = self.download(options)
  File "/usr/lib/python2.6/site-packages/suds/xsd/sxbasic.py", line 567, in download
    raise Exception(msg)
Exception: imported schema (urn:reflect) at (https://10.66.7.33/sdk/reflect-messagetypes.xsd), failed
Unexcepted error occurs, trying to recover
imported schema (urn:reflect) at (https://10.66.7.33/sdk/reflect-messagetypes.xsd), failed
Traceback (most recent call last):
  File "/usr/share/virt-who/virt-who.py", line 130, in _send
    self.checkConnections()
  File "/usr/share/virt-who/virt-who.py", line 110, in checkConnections
    self.initVirt()
  File "/usr/share/virt-who/virt-who.py", line 70, in initVirt
    self.virt = VSphere(self.logger, self.options.esx_server, self.options.esx_username, self.options.esx_password)
  File "/usr/share/virt-who/vsphere.py", line 94, in __init__
    self.client = suds.client.Client("%s/sdk/vimService.wsdl" % url)
  File "/usr/lib/python2.6/site-packages/suds/client.py", line 112, in __init__
    self.wsdl = reader.open(url)
  File "/usr/lib/python2.6/site-packages/suds/reader.py", line 152, in open
    d = self.fn(url, self.options)
  File "/usr/lib/python2.6/site-packages/suds/wsdl.py", line 157, in __init__
    self.open_imports()
  File "/usr/lib/python2.6/site-packages/suds/wsdl.py", line 202, in open_imports
    imp.load(self)
  File "/usr/lib/python2.6/site-packages/suds/wsdl.py", line 314, in load
    d = Definitions(url, options)
  File "/usr/lib/python2.6/site-packages/suds/wsdl.py", line 159, in __init__
    self.build_schema()
  File "/usr/lib/python2.6/site-packages/suds/wsdl.py", line 220, in build_schema
    self.schema = container.load(self.options)
  File "/usr/lib/python2.6/site-packages/suds/xsd/schema.py", line 93, in load
    child.open_imports(options)
  File "/usr/lib/python2.6/site-packages/suds/xsd/schema.py", line 305, in open_imports
    imported = imp.open(options)
  File "/usr/lib/python2.6/site-packages/suds/xsd/sxbasic.py", line 542, in open
    result = self.download(options)
  File "/usr/lib/python2.6/site-packages/suds/xsd/sxbasic.py", line 567, in download
    raise Exception(msg)
Exception: imported schema (urn:reflect) at (https://10.66.7.33/sdk/reflect-messagetypes.xsd), failed
Unable to recover, retry in 60 seconds.

Actual results:
Virt-who reports error infos when it is starting in ESX mode.

Expected results:
Virt-who can report guest uuid infos in ESX mode.