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:
After set "simplified_vim=false" in /etc/virt-who.d/xxx, it will fail to connect ESX as "certificate verify failed". it can't to use server provided wsdl file.
Version-Release number of selected component (if applicable):
Satellite-6.2.0-RHEL-7-20160518
virt-who-0.17-1.el7.noarch
subscription-manager-1.17.6-1.el7.x86_64
python-rhsm-1.17.2-1.el7.x86_64
How reproducible:
Always
Steps to Reproduce:
1. Register system to satellite
2. Configure virt-who run at esx mode and use server provided wsdl file
[root@hp-dl2x170g6-01 virt-who.d]# cat /etc/virt-who.d/esx
[test-esx1]
type=esx
server=10.73.2.95
username=Administrator
password=Welcome1!
owner=1ACME_Corporation
env=Library
simplified_vim=false
3. Restart virt-who and check virt-who's log
2016-05-24 21:35:06,626 [virtwho.test-esx1 DEBUG] Esx-1(23631):MainThread @esx.py:_prepare:127 - Log into ESX
2016-05-24 21:35:07,233 [virtwho.test-esx1 ERROR] Esx-1(23631):MainThread @esx.py:login:313 - Unable to connect to ESX
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/virtwho/virt/esx/esx.py", line 311, in login
self.client = suds.client.Client(wsdl, location="%s/sdk" % self.url, **kwargs)
File "/usr/lib/python2.7/site-packages/suds/client.py", line 112, in __init__
self.wsdl = reader.open(url)
File "/usr/lib/python2.7/site-packages/suds/reader.py", line 152, in open
d = self.fn(url, self.options)
File "/usr/lib/python2.7/site-packages/suds/wsdl.py", line 136, in __init__
d = reader.open(url)
File "/usr/lib/python2.7/site-packages/suds/reader.py", line 79, in open
d = self.download(url)
File "/usr/lib/python2.7/site-packages/suds/reader.py", line 95, in download
fp = self.options.transport.open(Request(url))
File "/usr/lib/python2.7/site-packages/virtwho/virt/esx/esx.py", line 86, in open
resp = self._session.get(request.url)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 476, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 464, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 431, in send
raise SSLError(e, request=request)
SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)
2016-05-24 21:35:07,233 [virtwho.test-esx1 ERROR] Esx-1(23631):MainThread @virt.py:run:374 - Virt backend 'test-esx1' fails with error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)
2016-05-24 21:35:07,233 [virtwho.test-esx1 INFO] Esx-1(23631):MainThread @virt.py:run:390 - Waiting 60 seconds before retrying backend 'test-esx1'
Actual results:
Failed to connect esx as "certificate verify failed"
Expected results:
It should get host/guest mapping info successfully after set "simplified_vim=false"
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.
https://rhn.redhat.com/errata/RHBA-2016-2387.html
Description of problem: After set "simplified_vim=false" in /etc/virt-who.d/xxx, it will fail to connect ESX as "certificate verify failed". it can't to use server provided wsdl file. Version-Release number of selected component (if applicable): Satellite-6.2.0-RHEL-7-20160518 virt-who-0.17-1.el7.noarch subscription-manager-1.17.6-1.el7.x86_64 python-rhsm-1.17.2-1.el7.x86_64 How reproducible: Always Steps to Reproduce: 1. Register system to satellite 2. Configure virt-who run at esx mode and use server provided wsdl file [root@hp-dl2x170g6-01 virt-who.d]# cat /etc/virt-who.d/esx [test-esx1] type=esx server=10.73.2.95 username=Administrator password=Welcome1! owner=1ACME_Corporation env=Library simplified_vim=false 3. Restart virt-who and check virt-who's log 2016-05-24 21:35:06,626 [virtwho.test-esx1 DEBUG] Esx-1(23631):MainThread @esx.py:_prepare:127 - Log into ESX 2016-05-24 21:35:07,233 [virtwho.test-esx1 ERROR] Esx-1(23631):MainThread @esx.py:login:313 - Unable to connect to ESX Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/virtwho/virt/esx/esx.py", line 311, in login self.client = suds.client.Client(wsdl, location="%s/sdk" % self.url, **kwargs) File "/usr/lib/python2.7/site-packages/suds/client.py", line 112, in __init__ self.wsdl = reader.open(url) File "/usr/lib/python2.7/site-packages/suds/reader.py", line 152, in open d = self.fn(url, self.options) File "/usr/lib/python2.7/site-packages/suds/wsdl.py", line 136, in __init__ d = reader.open(url) File "/usr/lib/python2.7/site-packages/suds/reader.py", line 79, in open d = self.download(url) File "/usr/lib/python2.7/site-packages/suds/reader.py", line 95, in download fp = self.options.transport.open(Request(url)) File "/usr/lib/python2.7/site-packages/virtwho/virt/esx/esx.py", line 86, in open resp = self._session.get(request.url) File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 476, in get return self.request('GET', url, **kwargs) File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 464, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send r = adapter.send(request, **kwargs) File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 431, in send raise SSLError(e, request=request) SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765) 2016-05-24 21:35:07,233 [virtwho.test-esx1 ERROR] Esx-1(23631):MainThread @virt.py:run:374 - Virt backend 'test-esx1' fails with error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765) 2016-05-24 21:35:07,233 [virtwho.test-esx1 INFO] Esx-1(23631):MainThread @virt.py:run:390 - Waiting 60 seconds before retrying backend 'test-esx1' Actual results: Failed to connect esx as "certificate verify failed" Expected results: It should get host/guest mapping info successfully after set "simplified_vim=false" Additional info: