Caused by: com.vmware.vsphere.client.spbm.impl.PbmServiceUnableToConnectException: java.util.concurrent.ExecutionException: com.vmware.vim.vmomi.client.exception.Inval idSslCertificateException: Invalid SSL certificate (HTTP 526 status code)

无法连接到Profile-Driven Storage Service

虚拟机磁盘无法编辑,无法在 vSphere Client 中编辑虚拟磁盘配置,因为选项在 vCenter Server 7.0 中呈灰色显示。

  • 无法在 vSphere 客户端的虚拟机设置中编辑虚拟机的磁盘

  • 没有显示警报,但虚拟机配置向导中的选项呈灰色,如下所示:

  • /var/log/vmware/vsphere-ui/logs/vsphere_client_virgo.log contains the following entries:

    [2021-09-20T16:09:26.596+02:00] [WARN ] data-service-pool-673        70007704 100209 200011 com.vmware.vsan.client.util.VsanInventoryHelper                   No vSAN datastore found for VM ManagedObjectReference: type = VirtualMachine, value = vm-69082, serverGuid = 1692746b-6d70-44be-b585-738e1bc486b1
    [2021-09-20T16:09:28.805+02:00] [ERROR] data-service-pool-786        70007709 100209 200011 c.v.v.c.spbm.impl.VmProfileAssignmentPropertyProviderAdapter      Failed to retrieve VmStorageRollupComplianceResult:  com.vmware.vsphere.client.spbm.impl.PbmServiceUnableToConnectException: java.util.concurrent.ExecutionException: com.vmware.vim.vmomi.client.exception.InvalidSslCertificateException: Invalid SSL certificate (HTTP 526 status code)
            at com.vmware.vsphere.client.spbm.impl.PbmServiceImpl.getServiceInstanceContent(PbmServiceImpl.java:89)
            at com.vmware.vsphere.client.spbm.impl.PbmServiceImpl.getComplianceManager(PbmServiceImpl.java:120)
            [...]
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
            at java.lang.Thread.run(Thread.java:748)
    Caused by: java.util.concurrent.ExecutionException: com.vmware.vim.vmomi.client.exception.InvalidSslCertificateException: Invalid SSL certificate (HTTP 526 status code)
            at com.vmware.vim.vmomi.core.impl.BlockingFuture.get(BlockingFuture.java:81)
            at com.vmware.vsphere.client.spbm.impl.PbmServiceImpl.getServiceInstanceContent(PbmServiceImpl.java:87)
            ... 17 common frames omitted
    Caused by: com.vmware.vim.vmomi.client.exception.InvalidSslCertificateException: Invalid SSL certificate (HTTP 526 status code)
    [...]
    [2021-09-20T16:09:28.813+02:00] [ERROR] data-service-pool-688        70007710 100209 200011 c.v.v.client.spbm.impl.VmReplicationGroupPropertyProviderAdapter  Failed to invoke ReplicationManager.queryReplicationGroups()! com.vmware.vsphere.client.spbm.impl.PbmServiceUnableToConnectException: java.util.concurrent.ExecutionException: com.vmware.vim.vmomi.client.exception.InvalidSslCertificateException: Invalid SSL certificate (HTTP 526 status code)
            at com.vmware.vsphere.client.spbm.impl.PbmServiceImpl.getServiceInstanceContent(PbmServiceImpl.java:89)
            at com.vmware.vsphere.client.spbm.impl.PbmServiceImpl.getReplicationManager(PbmServiceImpl.java:111)
            [...]

      该问题是由 vCenter Server 查找服务中的 SSL 信任不匹配引起的。

        

注意:在采取任何步骤之前,请确保拥有 vCenter Server 的最新备份。

要解决此问题,请使用附件工具带有选项 -t(或 --trustfix)修复
使用该工具修复后,使用以下命令重新启动 vCenter 服务:

# 然后再

service-control --stop --all && service-control --start --all

完美解决!

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐