Pre-check error while patching vCenter Server to 8.0 U2a:
2023
-
10
-16T10:
07
:
24
.375Z INFO eam.lib.eam-upgrade-prechecks Verifying (
'IP/FQDN'
,
8080
).
2023
-
10
-16T10:
07
:
24
.906Z WARNING eam.lib.eam-upgrade-prechecks The (
'IP/FQDN'
,
8080
) is not trusted.
Traceback (most recent call last):
File
"/tmp/vmware-upgrade-temp-dir9Hsu3kuBng/tmpDa2KRuY8Zc/payload/component-scripts/eam/lib/trust-verifier.py"
, line
287
, in _verifyServer
do_handshake_on_connect=True
File
"/usr/lib/python3.5/ssl.py"
, line
385
, in wrap_socket
_context=self)
File
"/usr/lib/python3.5/ssl.py"
, line
760
, in __init__
self.do_handshake()
File
"/usr/lib/python3.5/ssl.py"
, line
996
, in do_handshake
self._sslobj.do_handshake()
File
"/usr/lib/python3.5/ssl.py"
, line
641
, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:
719
)
...
2023
-
10
-16T10:
07
:
25
.477Z INFO extensions The component script returned
'{'
srcPorts
': [], '
installArguments
': {}, '
coreRequirement
': {'
importEstimationTime
': 0, '
requiredSrcDiskSpace
': 0.0, '
requiredDstDiskSpace
': {}, '
exportEstimationTime
': 0}, '
dstPortSpecs
': [], '
userOptionSpecs
': [], '
extraArguments
': {}, '
requirementMismatchSpecs
': [{'
problemId
': None, '
resolution
': Please refer to https://kb.vmware.com/s/article/93526 to trust the URLs: https://<IP/FQDN>:8080/vm/vm.ovf., '
severity
': '
ERROR
', '
text
': Source ESX Agent Manager Configuration contains URLs that are not trusted by the System!, '
description
': None}]}'
2023
-
10
-13T20:
15
:
22
.385Z eam:CollectRequirements INFO eam.lib.eam-upgrade-prechecks Verifying (
'IP/FQDN'
,8080
).
2023
-
10
-13T20:
15
:
22
.872Z eam:CollectRequirements WARNING eam.lib.eam-upgrade-prechecks The (
'IP/FQDN'
,
8080
) is not trusted.
Traceback (most recent call last):
File
"/storage/core/software-update/updates/8.0.2.00100/scripts/patches/payload/components-script/eam/lib/trust-verifier.py"
, line
284
, in _verifyServer
context.wrap_socket(
File
"/usr/lib/python3.10/ssl.py"
, line
512
, in wrap_socket
return
self.sslsocket_class._create(
File
"/usr/lib/python3.10/ssl.py"
, line
1070
, in _create
self.do_handshake()
File
"/usr/lib/python3.10/ssl.py"
, line
1341
, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:
997
)
2023
-
10
-13T20:
15
:
45
.482Z INFO vmware_b2b.patching.phases.discoverer Discovery completed. Result: [
...
"name"
:
"eam"
,
"patchScript"
:
"/storage/core/software-update/updates/8.0.2.00100/scripts/patches/payload/components-script/eam"
,
"requirementsResult"
: {
"mismatches"
: [
{
"description"
:
null
,
"problemId"
:
null
,
"relatedUserDataId"
:
null
,
"resolution"
: {
"args"
: [
"https://<IP/FQDN>:8080/vm/vm.ovf"
],
"id"
:
"eam.action.ensure.url.trusted"
,
"localized"
:
"Please refer to https://kb.vmware.com/s/article/93526 to trust the URLs: https://<IP/FQDN>:8080/vm/vm.ovf."
,
"translatable"
:
"Please refer to https://kb.vmware.com/s/article/93526 to trust the URLs: %(0)s."
},
"severity"
:
"error"
,
"text"
: {
"id"
:
"eam.url.not.trusted"
,
"localized"
:
"Source ESX Agent Manager Configuration contains URLs that are not trusted by the System!"
,
"translatable"
:
"Source ESX Agent Manager Configuration contains URLs that are not trusted by the System!"
}
}
}
Any of the following options can be used as a remediation of the problem. After execution of any of the options, the VC upgrade needs to be started again.
Option 1 (recommended): Configure a leaf SSL certificate that is to be trusted for a specific VIB or OVF URL
NOTE:
Option 2: Disable the SSL certificate verification for a specific VIB or OVF URL
Note: Using this option makes VIB and OVF URL download insecure.
NOTE:
Option 3: Change the file server SSL certificate
If the SSL certificate is invalid:
Option 4: Add a trusted root CA certificate to VECS
If the SSL certificate is issued by a CA,