No valid host was found when creating new VM
Hi I spent 3 days trying to figure out "No valid host was found. There are not enough hosts available. " error and I am still not able to determine the root cause. I am running OpenStack Kilo on 3 Xen based VMs [controller, network, and compute node]. When I am trying to create a VM I get the following output in dashboard:
enter code here
Message No valid host was found. There are not enough hosts available.
Code 500
Details File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 671, in build_instances request_spec, filter_properties) File "/usr/lib/python2.7/site-packages/nova/scheduler/utils.py", line 337, in wrapped return func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 52, in select_destinations context, request_spec, filter_properties) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 37, in __run_method return getattr(self.instance, __name)(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/query.py", line 34, in select_destinations context, request_spec, filter_properties) File "/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py", line 120, in select_destinations request_spec=request_spec, filter_properties=filter_properties) File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 156, in call retry=self.retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 90, in _send timeout=timeout, retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 350, in send retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 341, in _send raise result
Created Oct. 5, 2015, 6:02 p.m.
My controller is able to see resources:
nova hypervisor-stats
+----------------------+-------+
| Property | Value |
+----------------------+-------+
| count | 1 |
| current_workload | 0 |
| disk_available_least | 48 |
| free_disk_gb | 48 |
| free_ram_mb | 15739 |
| local_gb | 49 |
| local_gb_used | 1 |
| memory_mb | 16763 |
| memory_mb_used | 1024 |
| running_vms | 1 |
| vcpus | 6 |
| vcpus_used | 1 |
+----------------------+-------+
This is what I am seeing in nova-scheduler:
2015-10-05 14:02:05.616 895 WARNING nova.scheduler.host_manager [req-c5339ab5-5f10-412f-9344-749d598b8286 aac6aad372f24298a4705fa3bff60bb2 3ef932af6f884db48dabfc82ba87b3d3 - - -] No compute service record found for host computenode01
2015-10-05 14:02:28.473 895 WARNING nova.scheduler.host_manager [req-c5339ab5-5f10-412f-9344-749d598b8286 aac6aad372f24298a4705fa3bff60bb2 3ef932af6f884db48dabfc82ba87b3d3 - - -] No compute service record found for host computenode01
2015-10-05 14:02:28.474 895 INFO nova.filters [req-c5339ab5-5f10-412f-9344-749d598b8286 aac6aad372f24298a4705fa3bff60bb2 3ef932af6f884db48dabfc82ba87b3d3 - - -] Filter RetryFilter returned 0 hosts
2015-10-05 14:03:33.316 895 INFO nova.scheduler.host_manager [req-1c916049-26b0-4add-8516-1c97173a9b05 - - - - -] The instance sync for host 'computenode02' did not match. Re-created its InstanceList.
2015-10-05 14:03:58.439 895 INFO nova.scheduler.host_manager [req-360ea999-d9a9-4869-b1b8-0452c016fb78 - - - - -] Successfully synced instances from host 'computenode01'.
2015-10-05 14:05:33.289 895 INFO nova.scheduler.host_manager [req-f3f749c7-30f7-4faf-b36c-0a31ce75694c - - - - -] Successfully synced instances from host 'computenode02'.
2015-10-05 14:05:58.809 895 INFO nova.scheduler.host_manager [req-928b7924-8c3c-4e53-a2d1-029070213a7a - - - - -] Successfully synced instances from host 'computenode01'.
2015-10-05 14:07:36.287 895 INFO nova.scheduler.host_manager [req-64e834ae-64a7-4eec-a2c8-d795d4d06b1b - - - - -] Successfully synced instances from host 'computenode02'.
2015-10-05 14:07:59.269 895 INFO nova.scheduler.host_manager [req-b566fb81-84e3-4c5c-8cb2-b61efd51d018 - - - - -] Successfully synced instances from host 'computenode01'.
2015-10-05 14:09:37.290 895 INFO nova.scheduler.host_manager [req-9c23b7d9-c5eb-4775-a2aa-b4fce76b62de - - - - -] Successfully synced instances from host 'computenode02'.
2015-10-05 14:09:59.645 895 INFO nova.scheduler ...
Comments
- About the guest host configuration Nested virtualization allows you to run a virtual machine (VM) inside another VM while still using hardware acceleration from the host. search devstack-with-nested-kvm
- About the KVM virtual machine configuration CPU needs to configure Copy host CPU configurat