[lxc-users] nova-lxd - Error 500 No valid host was found. There are not enough hosts available.

Frank Kloeker eumel at arcor.de
Tue Jul 19 20:17:52 UTC 2016


Hi,

I tried to install DevStack with nova-lxd followed instruction on 
https://github.com/openstack/nova-lxd.
But I've got an error:

2016-07-19 18:56:51.659 ESC[01;33mWARNING nova.scheduler.utils 
[ESC[01;36mreq-9d28fffc-241f-4139-b4b9-c88759bd8ed7 ESC[00;36mdemo
demoESC[01;33m] ESC[01;35mESC[01;33mFailed to 
compute_task_build_instances: No valid host was found. There are not 
enough hosts available.
Traceback (most recent call last):

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

   File "/opt/stack/nova/nova/scheduler/manager.py", line 104, in 
select_destinations
     dests = self.driver.select_destinations(ctxt, spec_obj)

   File "/opt/stack/nova/nova/scheduler/filter_scheduler.py", line 74, in 
select_destinations
     raise exception.NoValidHost(reason=reason)

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

and:

n-sch.log.2016-07-19-172700:2016-07-19 18:56:51.638 DEBUG 
nova.scheduler.filters.disk_filter 
[req-9d28fffc-241f-4139-b4b9-c88759bd8ed7 demo demo] (lxd3, lxd3) ram: 
31691MB disk: 0MB io_ops: 0 instances: 0 does not have 1024 MB usable 
disk space before overcommit, it only has 0 MB. from (pid=25728) 
host_passes /opt/stack/nova/nova/scheduler/filters/disk_filter.py:53


Ubuntu-16.04
Kernel 4.4.0-21-generic
LXD 2.0.3-0ubuntu1~ubuntu16.04.2 with ZFS backend is running

/etc/nova/nova.conf:
compute_driver = lxd.LXDDriver

/etc/nova/rootwrap.d/lxd.filters:
# nova-rootwrap filters for compute nodes running flex
# This file should be owned by (and only-writable by) the root user

[Filters]
zfs: CommandFilter, zfs, root


$ nova hypervisor-show lxd3
+---------------------------+------------------------------------------+
| Property                  | Value                                    |
+---------------------------+------------------------------------------+
| cpu_info_arch             | x86_64                                   |
| cpu_info_features         | fpu vme de pse tsc msr pae mce cx8 apic  |
|                           | sep mtrr pge mca cmov pat pse36 clflush  |
|                           | mmx fxsr sse sse2 ss syscall nx pdpe1gb  |
|                           | rdtscp lm constant_tsc rep_good nopl     |
|                           | eagerfpu pni pclmulqdq vmx ssse3 cx16    |
|                           | pcid sse4_1 sse4_2 x2apic popcnt         |
|                           | tsc_deadline_timer aes xsave avx f16c    |
|                           | rdrand hypervisor lahf_lm tpr_shadow     |
|                           | vnmi flexpriority ept vpid fsgsbase smep |
|                           | erms xsaveopt                            |
| cpu_info_model            | Intel Xeon E312xx (Sandy Bridge)         |
| cpu_info_topology_cores   | 1                                        |
| cpu_info_topology_sockets | 8                                        |
| cpu_info_topology_threads | 1                                        |
| cpu_info_vendor           | GenuineIntel                             |
| current_workload          | 0                                        |
| disk_available_least      | None                                     |
| free_disk_gb              | 0                                        |
| free_ram_mb               | 31691                                    |
| host_ip                   | 10.12.251.41                             |
| hypervisor_hostname       | lxd3                                     |
| hypervisor_type           | lxd                                      |
| hypervisor_version        | 11                                       |
| id                        | 1                                        |
| local_gb                  | 0                                        |
| local_gb_used             | 0                                        |
| memory_mb                 | 32203                                    |
| memory_mb_used            | 512                                      |
| running_vms               | 0                                        |
| service_disabled_reason   | None                                     |
| service_host              | lxd3                                     |
| service_id                | 10                                       |
| state                     | up                                       |
| status                    | enabled                                  |
| vcpus                     | 8                                        |
| vcpus_used                | 0                                        |
+---------------------------+------------------------------------------+

As you can see, no local storage is available in nova-compute. I tried 
libvirt with KVM and it works as expected. Seems there is no connection 
between ZFS and nova-compute on the same host. I didn't found any 
information in /var/log/lxd/lxd.log
DevStack is used on master branch with latest commit 
72ed1a171ca94e0076ce99e3af63b14d88349833.

Any ideas?

kind regards

Frank



More information about the lxc-users mailing list