CPI 'info' method responded with error: CmdError{"type":"Unknown","message":"Content-Type is not supported: text/html","ok_to_retry":false}It is most likely an issue at vCenter's end.
Run the following from Ops manager ubuntu@opsmanager:~$ curl -vvv https://<vCenter_Host>/rest -k * Trying 10.123.45.67... * Connected to ABC.piv.test.com (10.123.45.67) port 443 (#0) * found 149 certificates in /etc/ssl/certs/ca-certificates.crt * found 600 certificates in /etc/ssl/certs * ALPN, offering http/1.1 * SSL connection using TLS1.2 / ECDHE_RSA_AES_256_GCM_SHA384 * server certificate verification SKIPPED * server certificate status verification SKIPPED * common name: abc.piv.test.com(matched) * server certificate expiration date OK * server certificate activation date OK * certificate public key: RSA * certificate version: #3 * subject: C=US,ST=NewYork,L=NewYork,O=Pivotal\, Inc.,OU=Pivotal\, Inc.,CN=abc.piv.test.com * start date: Tue, 16 Oct 2018 19:28:52 GMT * expire date: Sun, 03 Jan 2021 19:28:52 GMT * issuer: O=Pivotal Inc.,CN=Pivotal General Purpose Issuing CA 3 * compression: NULL * ALPN, server did not agree to a protocol > GET /rest HTTP/1.1 > Host: ABC.piv.test.com > User-Agent: curl/7.47.0 > Accept: */* > < HTTP/1.1 503 Service Unavailable (Failed to connect to endpoint: [N7Vmacore4Http16LocalServiceSpecE:0x00007fbba402d700] _serverNamespace = /rest action = Allow _port = 12346) < Date: Tue, 31 Mar 2020 18:26:00 GMT < Connection: close < Content-Type: text/html < Content-Length: 200 < * Closing connection 0 <HTML><BODY><H1>503 Service Unavailable (Failed to connect to endpoint: [test4Http16LocalServiceSpecE:0x00007fbba402d700] _serverNamespace = /rest action = Allow _port = 12346)</H1></B
The output of ubuntu@opsmanager:~$ curl -vvv https://<vCenter_Host>/rest -k should be "200 OK".
The above output returning a "503 Service Unavailable" is indicative of issues with vCenter. In our particular example, after checking the services status on the vCenter appliance it was found that the vmware-vapi-endpoint service was stopped. Please work with your vCenter team to resolve this issue.
ubuntu@opsmanager:~$ curl -vvv https://TEST.piv.remote.com/rest -k * Trying 10.250.32.21... * Connected to TEST.piv.remote.com (10.123.45.67) port 443 (#0) * found 149 certificates in /etc/ssl/certs/ca-certificates.crt * found 600 certificates in /etc/ssl/certs * ALPN, offering http/1.1 * SSL connection using TLS1.2 / ECDHE_RSA_AES_256_GCM_SHA384 * server certificate verification SKIPPED * server certificate status verification SKIPPED * common name: test.piv.remote.com (matched) * server certificate expiration date OK * server certificate activation date OK * certificate public key: RSA * certificate version: #3 * subject: C=US,ST=NY,L=NY,O=Pivotal\, Inc.,OU=pivotal,CN=test.piv.remote.com * start date: Tue, 16 Oct 2018 19:28:52 GMT * expire date: Sun, 03 Jan 2021 19:28:52 GMT * issuer: O=PIVOTAL Inc.,CN=PIVOTAL General Purpose Issuing CA 3 * compression: NULL * ALPN, server did not agree to a protocol > GET /rest HTTP/1.1 > Host: TEST.piv.remote.com > User-Agent: curl/7.47.0 > Accept: */* > < HTTP/1.1 200 OK < Date: Tue, 31 Mar 2020 18:24:58 GMT < Content-Type: application/json < Transfer-Encoding: chunked < * Connection #0 to host TEST.piv.remote.com left intact {"value":{"components":{"metadata":{"method":"GET","href":"https://TEST.piv.remote.com /rest/com/vmware/vapi/metadata/metamodel/service/operation/id:com.vmware.vapi.rest.navigation.component/id:list"},"method":"GET","href":"https://test.piv.remote.com/rest/com/vmware/vapi/rest/navigation/component"},"resources":{"metadata":{"method":"GET","href":""},"method":"GET","href":"https:..../