vCenter with a proxy enabled environment gives a plug-in download error for VMware Cloud Provider Services Plugin.
VMware vCenter Server 8.x
As per vsphere_client_virgo.log:
2023-02-28T07:27:43.864Z] [ERROR] sdk-plugin-deployer-90 com.vmware.vise.plugin.download.PluginDownloadServiceImpl Downloading plugin package: com.vmware.cloud.provider.services.plugin:1.0.0.0 has failed. Cannot connect to host: https://<url>:443/v3/assets/bltc5655c2cd1d2c169/blt48e6ff2785ba1070/plugin.zip org.apache.http.conn.ConnectTimeoutException: Connect to <url>:443 [<url>] failed: connect timed out
Caused by: java.net.SocketTimeoutException: connect timed out
[2023-02-28T07:27:43.866Z] [WARN ] sdk-plugin-deployer-90 com.vmware.bifrost.bus.EventBusLowApiImpl Failed to send message. Cannot find channel: plugin-state-change-notification
[2023-02-28T07:27:43.867Z] [ERROR] sdk-plugin-deployer-90 com.vmware.vise.plugin.status.RemotePluginStatusServiceImpl DOWNLOAD_FAILED: Error downloading plugin package com.vmware.cloud.provider.services.plugin:1.0.0.0 from https://<url>:443/v3/assets/bltc5655c2cd1d2c169/blt48e6ff2785ba1070/plugin.zip. Reason: URL is unreachable. Make sure that the URL is reachable. com.vmware.vise.plugin.download.PluginDownloadException: org.apache.http.conn.ConnectTimeoutException: Connect to <url>:443 [<url>] failed: connect timed out
at com.vmware.vise.plugin.download.PluginDownloadServiceImpl.download(PluginDownloadServiceImpl.java:188)
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to <url>:443 [<url>] failed: connect timed out
[2023-02-28T07:27:43.867Z] [ERROR] sdk-plugin-deployer-90 com.vmware.vise.vim.extension.VcExtensionManager Downloading plugin package: 'com.vmware.cloud.provider.services.plugin:1.0.0.0' registered in vCenter: '<vcenter> (5539cc1e-fa47-4d14-921b-3eb7b87c6b91)' has failed. java.util.concurrent.CompletionException: com.vmware.vise.plugin.download.PluginDownloadException: org.apache.http.conn.ConnectTimeoutException: Connect to <url>:443 [<url>] failed: connect timed out
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1643)
at com.vmware.vise.util.concurrent.QueuingCachedThreadPool$2.call(QueuingCachedThreadPool.java:873)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.vmware.vise.util.concurrent.QueuingCachedThreadPool$QueueProcessor.run(QueuingCachedThreadPool.java:1271)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.vmware.vise.util.concurrent.WorkerThreadFactory$1.run(WorkerThreadFactory.java:64)
at java.lang.Thread.run(Thread.java:750)
Caused by: com.vmware.vise.plugin.download.PluginDownloadException: org.apache.http.conn.ConnectTimeoutException: Connect to <url>:443 [<url>] failed: connect timed out
To resolve this issue follow the steps below:
cp /etc/vmware/vsphere-ui/webclient.properties /var/tmp/webclient.properties
vi /etc/vmware/vsphere-ui/webclient.properties
proxyHost=<The proxy host ip>
proxyPort=<The port of the proxy>
service-control --restart vsphere-ui