ClientConnectionError: Unable to connect to server.

asked 2011-09-20 09:27:13 -0600

krishna-kumar2 gravatar image


We are trying to configure multiple compute nodes. The hypervisor we are using is VMware. There are two machines running: 1. Cloud controller (all the nova services are running. This server also has "glance" for image) : IP - 2. Compute node (nova-compute is installed - using nova-install -t compute) : IP -

We are able to launch multiple instances through single node. However when we try to launch using multi-node configuration, we are encountering an error. The instances are launched successfully on the blade addressed in /etc/nova/nova.conf file of Cloud controller but not on the blade mentioned in compute node. Following are the /etc/nova/nova.conf files

Cloud controller: --dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --logdir=/var/log/nova --state_path=/var/lib/nova --lock_path=/var/lock/nova --verbose --s3_host= --rabbit_host= --cc_host= --ec2_url= --fixed_range= --network_size=255 --FAKE_subdomain=ec2 --routing_source_ip= --verbose --sql_connection=mysql://root:wipro@123@ --connection_type=vmwareapi --vmwareapi_host_ip= --vmwareapi_host_username=arun --vmwareapi_host_password=wipro@123 --vmwareapi_wsdl_loc= --glance_api_servers= --image_service=nova.image.glance.GlanceImageService

compute node: --dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --logdir=/var/log/nova --state_path=/var/lib/nova --lock_path=/var/lock/nova --verbose --s3_host= --rabbit_host= --cc_host= --ec2_url= --sql_connection=mysql://root:wipro@123@ --connection_type=vmwareapi --vmwareapi_host_ip= --vmwareapi_host_username=root --vmwareapi_host_password=CISCOCOE@123 --vmwareapi_wsdl_loc= --glance_api_servers= --image_service=nova.image.glance.GlanceImageService

following is the output from /var/log/nova/nova-compute.log from "compute node": 2011-09-20 12:09:58,353 DEBUG suds.metrics [-] method 'RetrieveProperties' invoked: 551 (ms) from (pid=2427) invoke /usr/lib/pymodules/python2.7/suds/ 2011-09-20 12:09:58,354 DEBUG nova.virt.vmwareapi.vmware_images [-] Getting image size for the image 1 from (pid=2427) get_vmdk_size_and_properties /usr/lib/pymodules/python2.7/nova/virt/vmwareapi/ 2011-09-20 12:09:58,354 ERROR nova.compute.manager [FYF93F85H-DP8GUSOH9K arun openstack] Instance '65' failed to spawn. Is virtualization enabled in the BIOS? (nova.compute.manager): TRACE: Traceback (most recent call last): (nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/compute/", line 234, in run_instance (nova.compute.manager): TRACE: self.driver.spawn(instance_ref) (nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/", line 129, in spawn (nova.compute.manager): TRACE: self._vmops.spawn(instance) (nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/vmwareapi/", line 162, in spawn ... (more)

edit retag flag offensive close merge delete

6 answers

Sort by ยป oldest newest most voted

answered 2011-11-23 10:26:15 -0600

hi krishna, can you share me how you resolved this issue. i'm getting the same error.

edit flag offensive delete link more

answered 2011-09-22 10:14:06 -0600

krishna-kumar2 gravatar image

Very sorry. That was a copying mistake. Telnet to yields the same result. Thanks Sateesh for all the responses. We figured out the error and resolved it.

edit flag offensive delete link more

answered 2011-09-21 10:33:57 -0600

It looks like your glance server is accessible from compute node. Can you try telnet to glance ports (9292,9191)?

Hope your glance server is bound to address, this can be verified in glance configuration files Also, in case if you modify the configuration file nova.conf, make sure nova-compute service is restarted.

edit flag offensive delete link more

answered 2011-09-21 12:00:03 -0600

krishna-kumar2 gravatar image

Thanks for the reply. We were able to telnet to the glance ports (9191 and 9292) as below: root@krishna-VMachine:~/python# telnet 9292 Trying Connected to Escape character is '^]'.

root@krishna-VMachine:~/python# telnet 9191 Trying Connected to Escape character is '^]'.

Following are the entries in /etc/glance/glance.conf for ports: bind_host = bind_port = 9292 registry_host = registry_port = 9191

We restarted the nova services whenever we modified the nova.conf file.

Despite all this, the problem still persists. Kindly let us know if we are missing anything.

Thanks again.

edit flag offensive delete link more

answered 2011-09-21 12:29:58 -0600

I see that your glance services are running on -glance_api_servers= as per the flags specified in the above description, but you are trying telnet to If is the server with glance running, please upate the flags accordingly.

Hope that helps.

edit flag offensive delete link more

answered 2011-11-23 10:37:49 -0600

krishna-kumar2 gravatar image

Hi Lucky,

Try adding the following line in your compute node's /etc/nova/nova.conf file:


The IP mentioned above is our cloud controller where glance is also running. This line is needed because when we checked the code, openstack was looking for this tag to get the IP where glance is running.

Add this line and restart nova services in both Cloud controller and compute node. Let me know if this works.


edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-09-20 09:27:13 -0600

Seen: 145 times

Last updated: Nov 23 '11