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

asked 2016-09-04 09:59:15 -0500

Yuji gravatar image

updated 2016-09-05 00:46:48 -0500

sunnyarora gravatar image

this is my /var/log/nova/nova-conductor.log:

2016-09-04 22:20:16.775 11514 INFO nova.service [-] Starting conductor node (version 13.1.0-1.el7)
2016-09-04 22:24:25.974 11510 WARNING nova.scheduler.utils [req-3b1cd184-426b-4345-b0f4-904c6a891ea0 ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] 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 150, in inner
    return func(*args, **kwargs)

  File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 104, in select_destinations
    dests = self.driver.select_destinations(ctxt, spec_obj)

  File "/usr/lib/python2.7/site-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.

2016-09-04 22:24:25.975 11510 WARNING nova.scheduler.utils [req-3b1cd184-426b-4345-b0f4-904c6a891ea0 ca82e5b1f25a447fa930da3f967bd468 b11e9d4379f641bfac833c7ec1d07ecd - - -] [instance: e2ae1198-7275-47ce-98dd-32d781bb7382] Setting instance to ERROR state.

and that is my /var/log/nova/nova-scheduler.log:

2016-09-04 22:44:20.801 11562 INFO nova.scheduler.host_manager [req-a6fe2d89-13e8-43b3-ba66-43b646483c27 - - - - -] Successfully synced instances from host 'compute1'.
2016-09-04 22:44:35.772 11562 INFO nova.scheduler.host_manager [req-b65e3555-c03d-4d57-8f15-5b918ef9bd46 - - - - -] Successfully synced instances from host 'compute2'.
2016-09-04 22:46:23.810 11562 INFO nova.scheduler.host_manager [req-be52ff65-b4fb-4c21-9963-02b8c481bc2f - - - - -] Successfully synced instances from host 'compute1'.
2016-09-04 22:46:39.440 11562 INFO nova.scheduler.host_manager [req-a02933dd-b993-49bc-a15a-b93edbc2a4cc - - - - -] Successfully synced instances from host 'compute2'.
2016-09-04 22:48:23.808 11562 INFO nova.scheduler.host_manager [req-ebf59fd3-e53c-4e44-b230-a4be16375548 - - - - -] Successfully synced instances from host 'compute1'.
2016-09-04 22:48:41.451 11562 INFO nova.scheduler.host_manager [req-ad5b58b7-603a-4845-91e3-9c1da18eba51 - - - - -] Successfully synced instances from host 'compute2'.
2016-09-04 22:50:28.803 11562 INFO nova.scheduler.host_manager [req-03f98b33-d20b-4d78-afde-7555eb321591 - - - - -] Successfully synced instances from host 'compute1'.
2016-09-04 22:50:43.443 11562 INFO nova.scheduler.host_manager [req-215f9f4b-61e2-4bad-8ce3-ba51bf57e3c5 - - - - -] Successfully synced instances from host 'compute2'.

-

nova service-list:
+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary           | Host       | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| 1  | nova-conductor   | controller | internal | enabled | up    | 2016-09-04T14:53:11.000000 | -               |
| 3  | nova-scheduler   | controller | internal | enabled | up    | 2016-09-04T14:53:08.000000 | -               |
| 4  | nova-consoleauth | controller | internal | enabled | up    | 2016-09-04T14:53:11.000000 | -               |
| 16 | nova-compute     | compute1   | zone1    | enabled | up    | 2016-09-04T14:53:04.000000 | -               |
| 17 | nova-compute     | compute2   | zone2    | enabled | up    | 2016-09-04T14:53:12.000000 | -               |
+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+

[root@controller ~]#  neutron agent-list
+----------------------+--------------------+------------+-------------------+-------+----------------+------------------------+
| id                   | agent_type         | host       | availability_zone | alive | admin_state_up | binary                 |
+----------------------+--------------------+------------+-------------------+-------+----------------+------------------------+
| 5b76221c-9b0d-457e-  | Linux bridge agent | controller |                   | :-)   | True           | neutron-linuxbridge-   |
| 974d-ddca228feb36    |                    |            |                   |       |                | agent                  |
| 6518485c-d910-46f3   | L3 agent           | controller | nova              | :-)   | True           | neutron-l3-agent       |
| -b67a-78dc00601433   |                    |            |                   |       |                |                        |
| 89d79bc7-c7a5-40f1-8 | Linux bridge agent | compute1   |                   | :-)   | True           | neutron-linuxbridge-   |
| ac0-f648fc39872f     |                    |            |                   |       |                | agent                  |
| c02049ba-129c-4548-8 | Linux bridge agent | compute2   |                   | :-)   | True           | neutron-linuxbridge-   |
| d32-fd3ca2900731     |                    |            |                   |       |                | agent                  |
| cfef2c97-ee09-4c64-a | DHCP agent         | controller | nova              | :-)   | True           | neutron-dhcp-agent     |
| 042-7f1673ee85df     |                    |            |                   |       |                |                        |
| d6e0d782-8a80-411b-a | Metadata agent     | controller |                   | :-)   | True           | neutron-metadata-agent |
| 098-70becdaaa69e     |                    |            |                   |       |                |                        |
+----------------------+--------------------+------------+-------------------+-------+----------------+------------------------+

cat /var/log/nova/nova-compute.log

2016-09-04 23:43:46.585 9017 ERROR nova.compute.manager [req-20e25c15-cc8d-412a-b516-cb9e0c045a6f - - - - -] No compute node record for host compute1
2016-09-04 23:43:46.590 9017 INFO nova.compute.resource_tracker [req-20e25c15-cc8d-412a-b516-cb9e0c045a6f - - - - -] Auditing locally available compute resources for node compute1
2016-09-04 23:43:46.858 9017 ERROR nova.compute.manager [req-20e25c15-cc8d-412a-b516-cb9e0c045a6f - - - - -] Error updating resources for node compute1.
2016-09-04 23:43:46.858 9017 ERROR nova.compute.manager Traceback (most recent call last):
2016-09-04 23:43:46.858 9017 ERROR nova.compute.manager   File "/usr ...
(more)
edit retag flag offensive close merge delete

Comments

1

Coud you please provide the output of the following from the nova Database.

select host_ip  from compute_nodes;
Bipin gravatar imageBipin ( 2016-09-05 01:06:24 -0500 )edit

you are right,i find there were nothing,i have solved my problem ,there have some configuration wrong in my nova.conf ,thanks

Yuji gravatar imageYuji ( 2016-09-05 01:36:02 -0500 )edit

How did u solve the issue? i am alos facing the same issue

pall gravatar imagepall ( 2016-09-16 08:14:44 -0500 )edit

Also having this issue. Please report back. Easy to ask questions when u need it. :-)

frippe75 gravatar imagefrippe75 ( 2018-11-22 23:22:23 -0500 )edit