Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ComputeHostNotFound: Compute host compute could not be found

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/install-guide-ubuntu/launch-instance.html

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=True

connection_type=libvirt

root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf

verbose=True

ec2_private_dns_show_ip=True

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

volumes_path=/var/lib/nova/volumes

enabled_apis=ec2,osapi_compute,metadata

rpc_backend = rabbit

auth_strategy = keystone

my_ip = 10.173.251.5

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

[oslo_messaging_rabbit]

rabbit_host = controller

rabbit_userid = openstack

rabbit_password = qwe123

[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

[glance]

host = controller

[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

[oslo_concurrency]

lock_path = /var/lib/nova/tmp

[vnc]

enabled = True

vncserver_listen = 0.0.0.0

vncserver_proxyclient_address = $my_ip

novncproxy_base_url = http://10.173.251.6:6080/vnc_auto.html

I am unable to launch any instance because of the compute node down as the nova-scheduler cant find any active compute nodes. Can someone please help here. Many thanks!

ComputeHostNotFound: Compute host compute could not be found

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/install-guide-ubuntu/launch-instance.html

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] [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=True

connection_type=libvirt

root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf

verbose=True

ec2_private_dns_show_ip=True

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

volumes_path=/var/lib/nova/volumes

enabled_apis=ec2,osapi_compute,metadata

rpc_backend = rabbit

auth_strategy = keystone

my_ip = 10.173.251.5

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

[oslo_messaging_rabbit]

rabbit_host = controller

rabbit_userid = openstack

rabbit_password = qwe123

[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

[glance]

host = controller

[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

[oslo_concurrency]

lock_path = /var/lib/nova/tmp

[vnc]

enabled = True

vncserver_listen = 0.0.0.0

vncserver_proxyclient_address = $my_ip

novncproxy_base_url = http://10.173.251.6:6080/vnc_auto.html

I am unable to launch any instance because of the compute node down as the nova-scheduler cant find any active compute nodes. Can someone please help here. Many thanks!