8 Replies Latest reply on Apr 13, 2012 6:38 AM by SVE

    vCOPS 5 unable to connect to linked servers

    tomaddox Hot Shot

      Hi, everyone,


      I'm trying out vCOPS 5, and I would like to configure it to connect to the vCenter servers I have in linked mode. Unfortunately, I am receiving the very helpful and specific error:


      Unable to connect. Details: Connecting to VC at https://servername.domain/sdk failed.


      I have verified forward and reverse name resolution and that I can ping each of the VC servers from both of the vCOPS VMs, that the eval license is valid for multiple vCenters, and that there is no firewall blocking connectivity. I have no problem accessing these servers otherwise. Does anyone have any thoughts of how I might begin troubleshooting this issue?





        • 1. Re: vCOPS 5 unable to connect to linked servers
          pgoel Novice
          VMware Employees

          Did you check whether the Linked VC is responding when pinged using DNS name which is shown in the Linked VC list ?

          • 2. Re: vCOPS 5 unable to connect to linked servers
            critical3rr0r Enthusiast

            If you are using vCops 5.0 Enterprise try the following (I had similar issues):


            1. Make sure you setup DNS properly in your in IP Pool.

            2. If you are not using DNS in your IP pool simply use the New Registration button instead of the drop down box from Find Linked VCs. This could also be related to DNS issues in your IP Pool.




            This way your vcenter registers with IP address rather then FQDN.

            • 3. Re: vCOPS 5 unable to connect to linked servers
              tomaddox Hot Shot

              I have verified DNS resolution and that I can ping the remote hosts from the vCOPS VMs. The license has been applied, and data is being collected from our primary vCenter server correctly. VCOPS is correctly detecting the linked VCs, but it is not able to connect to either of them either by connecting as a linked mode VC or by entering a new registration. The connection does not work via hostname or IP address, indicating that the problem is not with name resolution.

              • 4. Re: vCOPS 5 unable to connect to linked servers
                IamTHEvilONE Champion

                When you attempt to use the "Find Linked vCenters", it assumes that the existing credentials are valid for each and every vCenter that is linked.  If the credentials (or service account) is not valid for registration (Admin role), then it will probably fail.


                Registering the Linked system directly is a good step to take, as was doing the ping/dig from the VMs directly.


                There are a couple logs in the UI VM, under /var/log/vmware/ which may help (admin.log primarily) which should log the registration process but also the ciq.log which can show some of the more detailed errors as the capacity feature attempts to connect to vCenter.


                Have you attempted different sets of credentials when attempting to connect to the seconday vCenters?  Also, how were these additional vCenters created? (as a clone from the first vCenter, or a fresh installation from scratch).  I have seen, once and a while, that the vCenter UUID is the same in two different installations which can cause registration failures.


                If the above doesn't help, I'd suggest getting a ticket going with Support.


                Best Regards,


                Jon Hemming

                • 5. Re: vCOPS 5 unable to connect to linked servers
                  tomaddox Hot Shot

                  Out of the gigantic stack trace in admin.log, I get the following error, which I think indicates the root cause:


                  Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.Validator
                  Exception: PKIX path validation failed: java.security.cert.CertPathValidatorExce
                  ption: timestamp check failed


                  And further down:


                  Caused by: java.security.cert.CertificateExpiredException: NotAfter: Tue Aug 09
                  16:29:10 PDT 2011


                  So, it looks like we have expired SSL certs. I'll start researching how to refresh or extend the SSL certs in vCenter, I guess.

                  • 6. Re: vCOPS 5 unable to connect to linked servers
                    SVE Novice

                    Did you find a solution for this issue?


                    I'm having a similar issue. I want to connect 2 vCenter servers to a vCOPS 5 appliance but one fails with the same error as you. The other vcenter is connected without problems. These 2 vCenter server aren't configured in linked mode. They have both the same default VMware certificate wich are both expired. So I'm not sure why it would fail because of the certificate on one server and not the other.

                    • 7. Re: vCOPS 5 unable to connect to linked servers
                      tomaddox Hot Shot

                      Basically, you have to refresh the SSL certs in VMware. I used openssl as outlined in http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009092.


                      That vCOPS does not throw a reasonable error and that the first suggestion by vCOPS itself and tech support is "redeploy the vApp" are tremendously annoying, because this cannot be an uncommon scenario for people who have upgraded from vCenter 2.5 or before.

                      • 8. Re: vCOPS 5 unable to connect to linked servers
                        SVE Novice

                        Replacing the certificates with valid (not expired) once did indeed solve the issue.