Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
If set the parameter VIRTWHO_ESX_SERVER started with "https://", virt-who can work fine in ESX mode.
But if set this parameter without "https://", virt-who cannot work.
Version-Release number of selected component (if applicable):
virt-who-0.8-4.el6.noarch
How reproducible:
100%
Steps to Reproduce:
1. Set the ESX parameters in file /etc/sysconfig/virt-who to make virt-who working in ESX mode:
VIRTWHO_DEBUG=1
VIRTWHO_ESX=1
VIRTWHO_ESX_OWNER=ACME_Corporation
VIRTWHO_ESX_ENV=env1
VIRTWHO_ESX_SERVER=10.66.xx.xx
VIRTWHO_ESX_USERNAME=<username>
VIRTWHO_ESX_PASSWORD=<password>
2. Restart service virt-who
# service virt-who restart
Stopping virt-who: [ OK ]
Starting virt-who: [ OK ]
3. check the log file:
# tail -f /var/log/rhsm/rhsm.log
2012-10-25 16:41:13,004 [WARNING] @virt-who.py:462 - Listening for events is not available in VDSM, ESX, RHEV-M or Hyper-V mode
2012-10-25 16:41:13,047 [DEBUG] @virt-who.py:475 - Virt-who is running in esx mode
2012-10-25 16:41:13,048 [DEBUG] @virt-who.py:482 - Starting infinite loop with 3600 seconds interval and event handling
2012-10-25 16:41:13,048 [ERROR] @virt-who.py:170 - Unable to create connection:
Traceback (most recent call last):
File "/usr/share/virt-who/virt-who.py", line 167, in _send
self.checkConnections()
File "/usr/share/virt-who/virt-who.py", line 146, in checkConnections
self.initVirt()
File "/usr/share/virt-who/virt-who.py", line 106, in initVirt
self.virt = VSphere(self.logger, self.options.server, self.options.username, self.options.password)
File "/usr/share/virt-who/vsphere.py", line 117, 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 136, in __init__
d = reader.open(url)
File "/usr/lib/python2.6/site-packages/suds/reader.py", line 79, in open
d = self.download(url)
File "/usr/lib/python2.6/site-packages/suds/reader.py", line 95, in download
fp = self.options.transport.open(Request(url))
File "/usr/lib/python2.6/site-packages/suds/transport/https.py", line 60, in open
return HttpTransport.open(self, request)
File "/usr/lib/python2.6/site-packages/suds/transport/http.py", line 62, in open
return self.u2open(u2request)
File "/usr/lib/python2.6/site-packages/suds/transport/http.py", line 118, in u2open
return url.open(u2request, timeout=tm)
File "/usr/lib64/python2.6/urllib2.py", line 383, in open
protocol = req.get_type()
File "/usr/lib64/python2.6/urllib2.py", line 244, in get_type
raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: 10.66.79.73/sdk/vimService.wsdl
2012-10-25 16:41:13,050 [ERROR] @virt-who.py:173 - Unable to recover, retry in 60 seconds.
^^^^^ There's error log, and virt-who cannot work
4. Set the parameter VIRTWHO_ESX_SERVER started with "https://":
VIRTWHO_ESX_SERVER=https://10.66.xx.xx
5. Restart service virt-who
# service virt-who restart
Stopping virt-who: [ OK ]
Starting virt-who: [ OK ]
6. Check the log file:
# tail -f /var/log/rhsm/rhsm.log
2012-10-25 16:48:35,353 [WARNING] @virt-who.py:462 - Listening for events is not available in VDSM, ESX, RHEV-M or Hyper-V mode
2012-10-25 16:48:39,043 [DEBUG] @virt-who.py:475 - Virt-who is running in esx mode
2012-10-25 16:48:39,044 [DEBUG] @virt-who.py:482 - Starting infinite loop with 3600 seconds interval and event handling
2012-10-25 16:48:39,277 [DEBUG] @subscriptionmanager.py:89 - Sending update in hosts-to-guests mapping: {}
^^^^^ no more errors and virt-who starts to sending host/guest associations
Actual results:
As list.
Expected results:
virt-who can work whenever "https://" is added to parameter VIRTWHO_ESX_SERVER or not.
Additional info:
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHBA-2013-0374.html
Description of problem: If set the parameter VIRTWHO_ESX_SERVER started with "https://", virt-who can work fine in ESX mode. But if set this parameter without "https://", virt-who cannot work. Version-Release number of selected component (if applicable): virt-who-0.8-4.el6.noarch How reproducible: 100% Steps to Reproduce: 1. Set the ESX parameters in file /etc/sysconfig/virt-who to make virt-who working in ESX mode: VIRTWHO_DEBUG=1 VIRTWHO_ESX=1 VIRTWHO_ESX_OWNER=ACME_Corporation VIRTWHO_ESX_ENV=env1 VIRTWHO_ESX_SERVER=10.66.xx.xx VIRTWHO_ESX_USERNAME=<username> VIRTWHO_ESX_PASSWORD=<password> 2. Restart service virt-who # service virt-who restart Stopping virt-who: [ OK ] Starting virt-who: [ OK ] 3. check the log file: # tail -f /var/log/rhsm/rhsm.log 2012-10-25 16:41:13,004 [WARNING] @virt-who.py:462 - Listening for events is not available in VDSM, ESX, RHEV-M or Hyper-V mode 2012-10-25 16:41:13,047 [DEBUG] @virt-who.py:475 - Virt-who is running in esx mode 2012-10-25 16:41:13,048 [DEBUG] @virt-who.py:482 - Starting infinite loop with 3600 seconds interval and event handling 2012-10-25 16:41:13,048 [ERROR] @virt-who.py:170 - Unable to create connection: Traceback (most recent call last): File "/usr/share/virt-who/virt-who.py", line 167, in _send self.checkConnections() File "/usr/share/virt-who/virt-who.py", line 146, in checkConnections self.initVirt() File "/usr/share/virt-who/virt-who.py", line 106, in initVirt self.virt = VSphere(self.logger, self.options.server, self.options.username, self.options.password) File "/usr/share/virt-who/vsphere.py", line 117, 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 136, in __init__ d = reader.open(url) File "/usr/lib/python2.6/site-packages/suds/reader.py", line 79, in open d = self.download(url) File "/usr/lib/python2.6/site-packages/suds/reader.py", line 95, in download fp = self.options.transport.open(Request(url)) File "/usr/lib/python2.6/site-packages/suds/transport/https.py", line 60, in open return HttpTransport.open(self, request) File "/usr/lib/python2.6/site-packages/suds/transport/http.py", line 62, in open return self.u2open(u2request) File "/usr/lib/python2.6/site-packages/suds/transport/http.py", line 118, in u2open return url.open(u2request, timeout=tm) File "/usr/lib64/python2.6/urllib2.py", line 383, in open protocol = req.get_type() File "/usr/lib64/python2.6/urllib2.py", line 244, in get_type raise ValueError, "unknown url type: %s" % self.__original ValueError: unknown url type: 10.66.79.73/sdk/vimService.wsdl 2012-10-25 16:41:13,050 [ERROR] @virt-who.py:173 - Unable to recover, retry in 60 seconds. ^^^^^ There's error log, and virt-who cannot work 4. Set the parameter VIRTWHO_ESX_SERVER started with "https://": VIRTWHO_ESX_SERVER=https://10.66.xx.xx 5. Restart service virt-who # service virt-who restart Stopping virt-who: [ OK ] Starting virt-who: [ OK ] 6. Check the log file: # tail -f /var/log/rhsm/rhsm.log 2012-10-25 16:48:35,353 [WARNING] @virt-who.py:462 - Listening for events is not available in VDSM, ESX, RHEV-M or Hyper-V mode 2012-10-25 16:48:39,043 [DEBUG] @virt-who.py:475 - Virt-who is running in esx mode 2012-10-25 16:48:39,044 [DEBUG] @virt-who.py:482 - Starting infinite loop with 3600 seconds interval and event handling 2012-10-25 16:48:39,277 [DEBUG] @subscriptionmanager.py:89 - Sending update in hosts-to-guests mapping: {} ^^^^^ no more errors and virt-who starts to sending host/guest associations Actual results: As list. Expected results: virt-who can work whenever "https://" is added to parameter VIRTWHO_ESX_SERVER or not. Additional info: