Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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

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, exiting 2015-10-20 15:18:39.953 552 INFO nova.openstack.common.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative 2015-10-20 15:18:39.957 552 INFO nova.network.driver [-] Loading network driver 'nova.network.linux_net' 2015-10-20 15:18:39.966 552 INFO oslo.messaging._drivers.impl_rabbit [req-29010a2c-bf17-4bf0-8edb-f6ff916f814c ] Connecting to AMQP server on controller:5672 2015-10-20 15:18:40.018 552 INFO oslo.messaging._drivers.impl_rabbit [req-29010a2c-bf17-4bf0-8edb-f6ff916f814c ] Connected to AMQP server on controller:5672 2015-10-20 15:18:40.033 552 INFO oslo.messaging._drivers.impl_rabbit [req-29010a2c-bf17-4bf0-8edb-f6ff916f814c ] Connecting to AMQP server on controller:5672 2015-10-20 15:18:40.055 552 INFO oslo.messaging._drivers.impl_rabbit [req-29010a2c-bf17-4bf0-8edb-f6ff916f814c ] Connected to AMQP server on controller:5672 2015-10-20 15:18:40.140 552 AUDIT nova.service [-] Starting network node (version 2014.2.2-1.fc22) 2015-10-20 15:18:41.032 552 INFO oslo.messaging._drivers.impl_rabbit [-] Connecting to AMQP server on controller:5672 2015-10-20 15:18:41.048 552 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on controller:5672

Thanks for your support. Kevin