Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Create Instance but got "no valid host"

Hi Guys,

I just installed the 2 nodes (controller and compute) by following the guide lines:
https://docs.openstack.org/ocata/install-guide-rdo/

After the installaton is done, I tried to create an instance but it shows me error as below :

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 866, in schedule_and_build_instances request_specs[0].to_legacy_filter_properties_dict()) File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 597, in _schedule_instances hosts = self.scheduler_client.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/utils.py", line 371, in wrapped return func(args, *kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 51, in select_destinations return selfFile "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 866, in schedule_and_build_instances request_specs[0].to_legacy_filter_properties_dict()) File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 597, in _schedule_instances hosts = self.scheduler_client.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/utils.py", line 371, in wrapped return func(args, *kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 51, in select_destinations return self.queryclient.select_destinations(context, spec_obj) 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 32, in select_destinations return self.scheduler_rpcapi.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py", line 129, in select_destinations return cctxt.call(ctxt, 'select_destinations', **msg_args) File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 169, in call retry=self.retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 97, in _send timeout=timeout, retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 458, in send retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 449, in _send raise result

When i check the nova-compute.log in my compute node, it seems the placement api is not responding.

2017-07-11 21:39:25.348 3541 WARNING nova.scheduler.client.report [req-fb1a5210-a4b1-4738-894d-f0f847bd7a08 - - - - -] Placement API service is not responding. 2017-07-11 21:39:25.350 3541 WARNING nova.scheduler.client.report [req-fb1a5210-a4b1-4738-894d-f0f847bd7a08 - - - - -] Placement API service is not responding. 2017-07-11 21:39:25.351 3541 WARNING nova.scheduler.client.report [req-fb1a5210-a4b1-4738-894d-f0f847bd7a08 - - - - -] Unable to refresh my resource provider record 2017-07-11 21:39:25.370 3541 WARNING nova.scheduler.client.report [req-fb1a5210-a4b1-4738-894d-f0f847bd7a08 - - - - -] Placement API service is not responding. 2017-07-11 21:39:25.407 3541 INFO nova.compute.resource_tracker [req-fb1a5210-a4b1-4738-894d-f0f847bd7a08 - - - - -] Final resource view: name=compute1 phys_ram=8191MB used_ram=512MB phys_disk=49GB used_disk=0GB total_vcpus=2 used_vcpus=0 pci_stats=[]

Can anyone advise how to handle this error message ? Tried few ways which found in internet but unable to solve the error.

Thank you very much in advance.

Create Instance but got "no valid host"

Hi Guys,

I just installed the 2 nodes (controller and compute) by following the guide lines:
https://docs.openstack.org/ocata/install-guide-rdo/

After the installaton is done, I tried to create an instance but it shows me error as below :

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

Code : 500

Details Details

File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 866, in schedule_and_build_instances request_specs[0].to_legacy_filter_properties_dict()) File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 597, in _schedule_instances hosts = self.scheduler_client.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/utils.py", line 371, in wrapped return func(args, *kwargs) func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 51, in select_destinations return selfFile "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 866, in schedule_and_build_instances request_specs[0].to_legacy_filter_properties_dict()) File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 597, in _schedule_instances hosts = self.scheduler_client.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/utils.py", line 371, in wrapped return func(args, *kwargs) func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 51, in select_destinations return self.queryclient.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 37, in __run_method return getattr(self.instance, __name)(args, *kwargs) __name)(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/query.py", line 32, in select_destinations return self.scheduler_rpcapi.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py", line 129, in select_destinations return cctxt.call(ctxt, 'select_destinations', **msg_args) File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 169, in call retry=self.retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 97, in _send timeout=timeout, retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 458, in send retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 449, in _send raise result

result

When i check the nova-compute.log in my compute node, it seems the placement api is not responding.

2017-07-11 21:39:25.348 3541 WARNING nova.scheduler.client.report [req-fb1a5210-a4b1-4738-894d-f0f847bd7a08 - - - - -] Placement API service is not responding.
2017-07-11 21:39:25.350 3541 WARNING nova.scheduler.client.report [req-fb1a5210-a4b1-4738-894d-f0f847bd7a08 - - - - -] Placement API service is not responding.
2017-07-11 21:39:25.351 3541 WARNING nova.scheduler.client.report [req-fb1a5210-a4b1-4738-894d-f0f847bd7a08 - - - - -] Unable to refresh my resource provider record
2017-07-11 21:39:25.370 3541 WARNING nova.scheduler.client.report [req-fb1a5210-a4b1-4738-894d-f0f847bd7a08 - - - - -] Placement API service is not responding.
2017-07-11 21:39:25.407 3541 INFO nova.compute.resource_tracker [req-fb1a5210-a4b1-4738-894d-f0f847bd7a08 - - - - -] Final resource view: name=compute1 phys_ram=8191MB used_ram=512MB phys_disk=49GB used_disk=0GB total_vcpus=2 used_vcpus=0 pci_stats=[]

pci_stats=[]

Can anyone advise how to handle this error message ? Tried few ways which found in internet but unable to solve the error.

Thank you very much in advance.