VMware Cloud Community
svenvg93
Contributor
Contributor

error adding host in vCenter Server

I keep getting the following message when I add a host wants me to vCenter Server.

Call "Datacenter.QueryConnectionInfo" for object "ESX" on vCenter Server "VWS1" failed.


All servers are on. I can namely be approached separately.

Reply
0 Kudos
12 Replies
weinstein5
Immortal
Immortal

Something simple to check first are you able to ping the ESXi host either by IP address or host name? Are you able to connect tot he ESXi hosts directly with vSphere Client?

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
Reply
0 Kudos
svenvg93
Contributor
Contributor

Yes i can connect to THE vsphere client.

Reply
0 Kudos
vGuy
Expert
Expert

Is there a firewall between the hosts & the vCenter? If so, please ensure the ports required for vCenter-host communication are allowed. In general, below are some essentials ports required. It is also important to have a working DNS.

Port                                 Source                     Destination                 Purpose

TCP   80                             vCenter                   ESX   hosts                    Redirect   Web Browser to HTTPS Service (443)

TCP   443                           vCenter                     ESX   Hosts                    vSphere   Client to ESX/ESXi Host management   connection                                                                   

TCP/UDP 902                      vCenter                   ESX   hosts                     vSphere   Client to ESX/ESXi hosted VM   connectivity                                                                             

TCP   903                         vCenter                   ESX   hosts                     VM   Remote VM   Console                                                                                                       

TCP   5989                       vCenter                   ESX   hosts                     CIM   Client to CIM Secure Server

TCP   9084                        ESX   hosts                 vCenter                        ESX/i   hosts connect to the VUM webserver listening for updates

Reply
0 Kudos
svenvg93
Contributor
Contributor

no there is no firewall between. I have two esx hosts and add the second I get that message.

Something at THE host????

Reply
0 Kudos
nava_thulasi39

Hi,

Are you able to connect the host directly by the Vsphere client?

If yes, try restarting the vpxa agent in the host.

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
Reply
0 Kudos
vGuy
Expert
Expert

svenvg93 wrote:

no there is no firewall between. I have two esx hosts and add the second I get that message.

Something at THE host????

There is a kb article for the error, can you follow the steps mentioned and see if it helps:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=102767...

Reply
0 Kudos
svenvg93
Contributor
Contributor

the solution in the kb article doesn' t work.

I restart the vpxa agent. And get de same error.

Reply
0 Kudos
vGuy
Expert
Expert

I have also seen this issue occur if there is not enough memory for Service Console (on classic ESX) and also if there are errors on VMFS Datastores.

Can you also post the vpxd logs and the version of the ESX/i & vCenter server.

Reply
0 Kudos
som94
Enthusiast
Enthusiast

Hi svenvg93,

Some time all the problems not upto dated on KB . It will take time to update the new problems.

As You have already done all the troublshootig make sure you have assign

correct IP . message indicating that something worng with network setting .

for your information ahve added the link please check incase left any steps or worngly enter anything else.

http://www.vmadmin.co.uk/vmware/36-virtualcenter/113-vcaddesxhost.

"Life would be so much easier if we only had the source code"
Reply
0 Kudos
svenvg93
Contributor
Contributor

the esx has a good IP,DNS and Gateway.

I can connect the host directly with Vsphere client.

@Obiad i add the log files

Reply
0 Kudos
vGuy
Expert
Expert

A quick look at the logs show error, "Failed to discover version: vim.fault.HttpFault"

===================================

"2012-03-19T12:22:12.421+01:00 [03800 error 'HttpConnectionPool'] [ConnectComplete] Connect error A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
2012-03-19T12:22:12.608+01:00 [03796 error 'Default' opID=A957C690-0000005A] [HttpUtil::ExecuteRequest] Error in sending request - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
2012-03-19T12:22:13.029+01:00 [03708 verbose 'QsAdapter.HTTPService'] HTTP Response: Complete (processed 0 bytes)
2012-03-19T12:22:13.029+01:00 [03708 verbose 'QsAdapter.HTTPService'] User agent is 'VMware vim-java 1.0'
2012-03-19T12:22:13.060+01:00 [03796 error 'Default' opID=A957C690-0000005A] [VpxdHostAccess::Connect] Failed to discover version: vim.fault.HttpFault"
===================================

Upon googling the error, found this kb: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=101821...

Can you follow the steps mentioned in the article and see if it fixes the issue. I will also suggest to reboot the host to rule out defunct hostd process issue.

On a side note, I also noticed some DB errors, may not be directly related to the issue you're experiencing but worth checking later..

"2012-03-19T12:22:13.310+01:00 [03756 warning 'Default'] [VdbStatement] SQL execution took too long: INSERT INTO VPX_BINARY_DATA WITH (ROWLOCK) (ID, DATA_TYPE, BIN_DATA, CREATED_TIME, CHANGE_ID) VALUES (?, ?, ?, ?, ?)"

hth!

Reply
0 Kudos
svenvg93
Contributor
Contributor

i reinstall the vcenter server. Now i can add my 2 esx host.

thank you for u hulp.

Reply
0 Kudos