Ask Your Question
0

No valid host was found.

asked 2016-11-23 12:27:48 -0500

yan gravatar image

When I create a instance of provider, the nova conductor logfile report the error as below: ( File "/usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 104, in select_destinations dests = self.driver.select_destinations(ctxt, spec_obj)

File "/usr/lib/python2.7/dist-packages/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.)

I check with command : openstack compute service list, the result is ok as shown in example. but I found the table compute_nodes of database nova is empty, and I check the nova.conf many times, I can't find any erros. Thanks!

edit retag flag offensive close merge delete

Comments

system is Ubuntu 14 and mitaka

yan gravatar imageyan ( 2016-11-23 12:54:14 -0500 )edit

Please check nova-compute.log, nova-scheduler log, neutron server log. Share details.

Praveen N gravatar imagePraveen N ( 2016-11-24 04:34:13 -0500 )edit

I upload my schedule log ,can you help me check that, thanks!

yan gravatar imageyan ( 2016-11-28 08:53:17 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-11-26 16:21:32 -0500

yan gravatar image

Hi sir thank you so much, I follow your instruction and check scheduler log the error as bellow:

2016-11-26 14:46:17.142 7636 DEBUG oslo_service.periodic_task [req-8cb71bb4-f42d-470d-bdfa-93ca1d1197fe - - - - -] Running periodic task SchedulerManager._run_periodic_tasks run_periodic_tasks /usr/lib/python2.7/dist-packages/oslo_service/periodic_task.py:215 2016-11-26 14:47:12.890 7636 DEBUG oslo_service.periodic_task [req-8cb71bb4-f42d-470d-bdfa-93ca1d1197fe - - - - -] Running periodic task SchedulerManager._expire_reservations run_periodic_tasks /usr/lib/python2.7/dist-packages/oslo_service/periodic_task.py:215 2016-11-26 14:47:18.143 7636 DEBUG oslo_service.periodic_task [req-8cb71bb4-f42d-470d-bdfa-93ca1d1197fe - - - - -] Running periodic task SchedulerManager._run_periodic_tasks run_periodic_tasks /usr/lib/python2.7/dist-packages/oslo_service/periodic_task.py:215 2016-11-26 14:47:51.599 7636 DEBUG oslo_concurrency.lockutils [req-1b860b2e-dbb0-4ad9-9141-21c6a3625208 - - - - -] Lock "host_instance" acquired by "nova.scheduler.host_manager.sync_instance_info" :: waited 0.000s inner /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:273 2016-11-26 14:47:51.600 7636 INFO nova.scheduler.host_manager [req-1b860b2e-dbb0-4ad9-9141-21c6a3625208 - - - - -] Successfully synced instances from host 'SERVER-A8-C-U31'. 2016-11-26 14:47:51.601 7636 DEBUG oslo_concurrency.lockutils [req-1b860b2e-dbb0-4ad9-9141-21c6a3625208 - - - - -] Lock "host_instance" released by "nova.scheduler.host_manager.sync_instance_info" :: held 0.002s inner /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:285 2016-11-26 14:48:14.898 7636 DEBUG oslo_service.periodic_task [req-8cb71bb4-f42d-470d-bdfa-93ca1d1197fe - - - - -] Running periodic task SchedulerManager._expire_reservations run_periodic_tasks /usr/lib/python2.7/dist-packages/oslo_service/periodic_task.py:215 2016-11-26 14:48:18.141 7636 DEBUG oslo_service.periodic_task [req-8cb71bb4-f42d-470d-bdfa-93ca1d1197fe - - - - -] Running periodic task SchedulerManager._run_periodic_tasks run_periodic_tasks /usr/lib/python2.7/dist-packages/oslo_service/periodic_task.py:215 2016-11-26 14:49:14.896 7636 DEBUG oslo_service.periodic_task [req-8cb71bb4-f42d-470d-bdfa-93ca1d1197fe - - - - -] Running periodic task SchedulerManager._expire_reservations run_periodic_tasks /usr/lib/python2.7/dist-packages/oslo_service/periodic_task.py:215 2016-11-26 14:49:18.141 7636 DEBUG oslo_service.periodic_task [req-8cb71bb4-f42d-470d-bdfa-93ca1d1197fe - - - - -] Running periodic task SchedulerManager._run_periodic_tasks run_periodic_tasks /usr/lib/python2.7/dist-packages/oslo_service/periodic_task.py:215 so I really confused by this problem.no error report from compute nova.

edit flag offensive delete link more
0

answered 2016-11-23 18:46:49 -0500

The Nova scheduler determines which host to use for the instance. To do that, it first applies a number of filters that check things like CPU architecture, available RAM, available disk space etc. When you get No valid host was found, all your hosts are filtered out, for example if the instance requires more disk space than is available or no host has the correct CPU type.

To find out why the scheduler removes all your hosts, configure debug logging, restart the scheduler and launch the instance again. Then, check the scheduler log for filter messages.

See also http://docs.openstack.org/newton/conf....

edit flag offensive delete link more

Comments

I upload my schedule log ,can you help me check that, thanks!

yan gravatar imageyan ( 2016-11-28 08:52:56 -0500 )edit

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: 2016-11-23 12:27:48 -0500

Seen: 461 times

Last updated: Nov 26 '16