Ask Your Question
0

ComputeHostNotFound: Compute host compute could not be found

asked 2016-06-20 18:47:23 -0600

beinghuman gravatar image

updated 2016-06-20 19:29:03 -0600

Hi Everyone, I have followed the following tutorial to install Openstack Liberty on 2 VM's as guided in the tutorial. http://docs.openstack.org/liberty/ins...

I was able to install all the services without any errors and finally when i tried to launch an instance i was getting an error "No valid host was found. There are not enough hosts available" After doing some digging i could see Nova-compute service is down on the controller.

+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+ | Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |

+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+ | 1 | nova-cert | controller | internal | enabled | up | 2016-06-20T23:14:01.000000 | - |

| 2 | nova-consoleauth | controller | internal | enabled | up | 2016-06-20T23:14:06.000000 | - |

| 3 | nova-scheduler | controller | internal | enabled | up | 2016-06-20T23:14:01.000000 | - |

| 4 | nova-conductor | controller | internal | enabled | up | 2016-06-20T23:14:07.000000 | - |

| 5 | nova-compute | compute | nova | enabled | down | - | - | +----+------------------+------------+----------+---------+-------+----------------------------+-----------------+

Further looking into the logs i am seeing the following on compute host nova logs,

2016-06-20 16:18:45.494 1718 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/objects/compute_node.py", line 425, in get_all_by_host

2016-06-20 16:18:45.494 1718 TRACE nova.openstack.common.threadgroup raise exception.ComputeHostNotFound(host=host)

2016-06-20 16:18:45.494 1718 TRACE nova.openstack.common.threadgroup

2016-06-20 16:18:45.494 1718 TRACE nova.openstack.common.threadgroup ComputeHostNotFound: Compute host compute could not be found.

While on the controller RabbitMQ is showing the below logs,

=INFO REPORT==== 20-Jun-2016::16:18:44 === accepting AMQP connection <0.2979.2> (10.173.251.5:40524 -> 10.173.251.6:5672)

=INFO REPORT==== 20-Jun-2016::16:18:44 === accepting AMQP connection <0.2994.2> (10.173.251.5:40525 -> 10.173.251.6:5672)

=INFO REPORT==== 20-Jun-2016::16:18:45 === closing AMQP connection <0.2994.2> (10.173.251.5:40525 -> 10.173.251.6:5672)

=WARNING REPORT==== 20-Jun-2016::16:18:45 === closing AMQP connection <0.2979.2> (10.173.251.5:40524 -> 10.173.251.6:5672): connection_closed_abruptly

Nova config on the controller looks like this, [DEFAULT]

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

force_dhcp_release=True

libvirt_use_virtio_for_bridges=True

verbose=True

ec2_private_dns_show_ip=True

api_paste_config=/etc/nova/api-paste.ini

enabled_apis=ec2,osapi_compute,metadata

rpc_backend = rabbit

my_ip = 10.173.251.6

auth_strategy = keystone

network_api_class = nova.network.neutronv2.api.API

security_group_api = neutron

linuxnet_interface_driver = nova.network.linux_net.NeutronLinuxBridgeInterfaceDriver

firewall_driver = nova.virt.firewall.NoopFirewallDriver

enabled_apis=osapi_compute,metadata

[database]

connection = mysql+pymysql://nova:qwe123@controller/nova

[glance]

host = controller

[keystone_authtoken]

auth_uri = http://controller:5000

auth_url = http://controller:35357

auth_plugin = password

project_domain_id = default

user_domain_id = default

project_name = service

username = nova

password = qwe123

[neutron]

url = http://controller:9696

auth_url = http://controller:35357

auth_plugin = password

project_domain_id = default

user_domain_id = default

region_name = RegionOne

project_name = service

username = neutron

password = qwe123

service_metadata_proxy = True

metadata_proxy_shared_secret = secret

[oslo_messaging_rabbit]

rabbit_host = controller

rabbit_userid = openstack

rabbit_password = qwe123

[vnc] vncserver_listen = $my_ip

vncserver_proxyclient_address = $my_ip

While on the Compute its configured as follows,

[DEFAULT]

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

force_dhcp_release=True

iscsi_helper=tgtadm

libvirt_use_virtio_for_bridges ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-06-20 19:43:26 -0600

Asvin gravatar image

Hello

The issue looks like either: 1) you did not replace controller IP with actual IP address

or

2) Most of the time, its related to rabbitmq check connection status of rabbitmq

or

3)

check libvirtd is running on the compute node

edit flag offensive delete link more

Comments

Hi Asvin. thanks for your reply. I tried that but didnt help :( Eventually i reinstalled from scratch and it worked this time without any errors. Its strange since i am using same config. I am just glad its working now. thanks for your help :)

beinghuman gravatar imagebeinghuman ( 2016-06-27 17:37:17 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2016-06-20 18:47:23 -0600

Seen: 2,599 times

Last updated: Jun 20 '16