Ask Your Question
0

Kilo: error creating instance "no valid host was found"

asked 2015-10-20 09:21:31 -0500

Kevin Bratek gravatar image

Hello, i'm running Fedora 22 and try to install Openstack-Kilo following the docs: http://docs.openstack.org/kilo/install-guide/install/yum/content/index.html (http://docs.openstack.org/kilo/instal...)

After I try to start an instance (tiny) I get the error, that no valid host was found.

The controller node supports hardware acceleration for virtual machines. In /etc/nova/nova.conf I also tested to comment out "virt_type=qemu" and also tested it with kvm. No result.

My compute node runs on a virtual machine having 2GB RAM (Baremetal has 4GB),, 2 CPUs , and 20GB Disc-space.

I already got Keystone and Glance running and my nova network seems to be ok, too.

Running: "nova service-list" I get the result I should get. +----+------------------+------------------+----------+---------+-------+----------------------------+-----------------+

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

| 1 | nova-consoleauth | controller.local | internal | enabled | up | 2015-10-20T13:55:05.000000 | - |

| 2 | nova-conductor | controller.local | internal | enabled | up | 2015-10-20T13:55:05.000000 | - |

| 3 | nova-cert | controller.local | internal | enabled | up | 2015-10-20T13:55:05.000000 | - |

| 4 | nova-scheduler | controller.local | internal | enabled | up | 2015-10-20T13:55:05.000000 | - |

| 5 | nova-compute | compute1.local | nova | enabled | up | 2015-10-20T13:55:06.000000 | - |

| 6 | nova-network | compute1.local | internal | enabled | up | 2015-10-20T13:55:06.000000 | - | +----+------------------+------------------+----------+---------+-------+----------------------------+-----------------+

All Openstack-Services are up, as well as the rabbitmq-server.

LOGS: ==> /var/log/nova/nova-scheduler.log <== 2015-10-20 15:43:23.716 5562 INFO nova.filters [req-d9687407-cac9-4e06-ad9f-150556b4a091 dfc50be8006046e3ab65518f66bec5d2 530d7c96bb954607a0cbf819faf8d796 - - -] Filter RetryFilter returned 0 hosts

==> /var/log/nova/nova-conductor.log <== 2015-10-20 15:43:23.727 5599 WARNING nova.scheduler.utils [req-d9687407-cac9-4e06-ad9f-150556b4a091 dfc50be8006046e3ab65518f66bec5d2 530d7c96bb954607a0cbf819faf8d796 - - -] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available. Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 142, in inner return func(args, *kwargs)

File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 86, in select_destinations filter_properties)

File "/usr/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py", line 80, in select_destinations raise exception.NoValidHost(reason=reason)

NoValidHost: No valid host was found. There are not enough hosts available.

2015-10-20 15:43:23.729 5599 WARNING nova.scheduler.utils [req-d9687407-cac9-4e06-ad9f-150556b4a091 dfc50be8006046e3ab65518f66bec5d2 530d7c96bb954607a0cbf819faf8d796 - - -] [instance: 39b0e11e-ee3a-4bd7-92fb-45f3b75c632b] Setting instance to ERROR state.

==> /var/log/rabbitmq/rabbit@controller.log <==

=INFO REPORT==== 20-Oct-2015::15:43:23 === accepting AMQP connection <0.7161.0> (127.0.0.1:49506 -> 127.0.0.1:5672)

==> /var/log/nova/nova-compute.log <== 2015-10-20 15:40:54.740 551 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources 2015-10-20 15:40:54.841 551 AUDIT nova.compute.resource_tracker [-] Total physical ram (MB): 2001, total allocated virtual ram (MB): 512 2015-10-20 15:40:54.842 551 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 17 2015-10-20 15:40:54.843 551 AUDIT nova.compute.resource_tracker [-] Total usable vcpus: 2, total allocated vcpus: 0 2015-10-20 15:40:54.843 551 AUDIT nova.compute.resource_tracker [-] PCI stats: [] 2015-10-20 15:40:54.876 551 WARNING nova.compute.resource_tracker [-] No service record for host compute1.local

==> /var/log/nova/nova-network.log <== 2015-10-20 14:59:09.085 553 INFO nova.openstack.common.service [-] Caught SIGTERM ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-10-30 19:30:53 -0500

MIB gravatar image

Hi,

/var/log/nova/nova-scheduler.log <== 2015-10-20 15:43:23.716 5562 INFO nova.filters [req-d9687407-cac9-4e06-ad9f-150556b4a091 dfc50be8006046e3ab65518f66bec5d2 530d7c96bb954607a0cbf819faf8d796 - - -] Filter RetryFilter returned 0 hosts

Nova scheduler is unable to select appropriate host, reason couldn't be just nova issue sometime even if neutron is not config properly you may get this issue.

Check your neutron logs as-well.

edit flag offensive delete link more

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

1 follower

Stats

Asked: 2015-10-20 09:21:31 -0500

Seen: 460 times

Last updated: Oct 30 '15