[Openstack] Error: No valid host was found. There are not enough hosts available

Irfan Sayed irfu.sayed at gmail.com
Thu May 12 05:03:16 UTC 2016


I executed following command on the scheduler log:
grep -E 'WARNING\b' /var/log/nova/nova-scheduler -C 5 -5

output is :
***********************************************************************************************************************

root at controller:/var/lib/nova/instances# grep -E 'WARNING\b'
/var/log/nova/nova-scheduler.log -C 5 -5
2016-05-12 09:59:32.528 1830 INFO nova.scheduler.host_manager
[req-fdf5483b-d88e-4d5c-85ea-110d0af9dd7a - - - - -] Successfully synced
instances from host 'compute'.
2016-05-12 10:01:32.530 1830 INFO nova.scheduler.host_manager
[req-f9cd3963-c178-4e29-8e85-2bc1b8fa01c4 - - - - -] Successfully synced
instances from host 'compute'.
2016-05-12 10:03:34.533 1830 INFO nova.scheduler.host_manager
[req-85be5c8a-417e-4730-a140-09444314e56b - - - - -] Successfully synced
instances from host 'compute'.
2016-05-12 10:05:37.538 1830 INFO nova.scheduler.host_manager
[req-f6f5d8f0-d028-472e-b3c1-0c6176f3367f - - - - -] Successfully synced
instances from host 'compute'.
2016-05-12 10:07:38.621 1830 INFO nova.scheduler.host_manager
[req-7522935a-b4ed-4725-8b53-0d8b853a5279 - - - - -] Successfully synced
instances from host 'compute'.
2016-05-12 10:08:00.512 1830 WARNING nova.scheduler.host_manager
[req-c7066830-5839-4653-9224-2ea410709aab 5c50e3803049470283f7a9d18e871096
28d5644376ba4d3bab3a30e09a0b28d1 - - -] *Host compute has more disk space
than database expected (172gb > 139gb)*
2016-05-12 10:08:00.515 1830 INFO nova.filters
[req-c7066830-5839-4653-9224-2ea410709aab 5c50e3803049470283f7a9d18e871096
28d5644376ba4d3bab3a30e09a0b28d1 - - -] *Filter ExactRamFilter returned 0
hosts*
2016-05-12 10:08:00.523 1830 INFO nova.filters
[req-c7066830-5839-4653-9224-2ea410709aab 5c50e3803049470283f7a9d18e871096
28d5644376ba4d3bab3a30e09a0b28d1 - - -] Filtering removed all hosts for the
request with reservation ID 'r-l0ytj64f' and instance ID
'1f64cf42-0457-47fe-9fa3-e658f8b71f53'. Filter results: ['RetryFilter:
(start: 3, end: 3)', 'AvailabilityZoneFilter: (start: 3, end: 3)',
'ComputeFilter: (start: 3, end: 3)', 'ComputeCapabilitiesFilter: (start: 3,
end: 3)', 'ImagePropertiesFilter: (start: 3, end: 3)', 'ExactRamFilter:
(start: 3, end: 0)']
2016-05-12 10:09:40.544 1830 INFO nova.scheduler.host_manager
[req-1a50965b-6bfb-47b0-9a62-5bdb6dc7cea4 - - - - -] Successfully synced
instances from host 'compute'.
2016-05-12 10:11:42.635 1830 INFO nova.scheduler.host_manager
[req-7bf38068-de1a-491a-b309-6ecab2e8653c - - - - -] Successfully synced
instances from host 'compute'.
2016-05-12 10:13:47.529 1830 INFO nova.scheduler.host_manager
[req-12e58821-92f9-4c12-81df-822527ef30df - - - - -] Successfully synced
instances from host 'compute'.

************************************************************************************************************************************************************
i have marked the warnings in bold. it seems that, there are some
inconsistencies between database and compute node disk space. and issue
related to ExactRAMFilter

Regards,

On Thu, May 12, 2016 at 9:17 AM, Irfan Sayed <irfu.sayed at gmail.com> wrote:

> thanks.
> No, i am not even able to create instance using tiny flavor as well.
> before integrating Ironic service , i was able to create instances and it
> was working fine. issues stared coming when ironic came into the picture.
> as i mentioned earlier, i have two compute nodes .. one for VMs and one
> for baremetal.
> now i dont know which compute host has the issue
>
> should i host the nova.conf file somewhere so that you can review ?
> Regards,
>
>
>
>
> On Thu, May 12, 2016 at 12:56 AM, Tong Li <litong01 at us.ibm.com> wrote:
>
>> try with a tiny image and see what you get. If you suspect that the
>> available RAM is the issue, use the tiny flavor to begin with and see what
>> happens. if tiny one is ok, you at least can remove some of the factors and
>> focus on your baremetal.
>>
>> Thanks.
>>
>> Tong Li
>> IBM Open Technology
>> Building 501/B205
>> litong01 at us.ibm.com
>>
>> [image: Inactive hide details for Irfan Sayed ---05/11/2016 02:53:34
>> PM---thanks. i observed that, instances_path option was not there]Irfan
>> Sayed ---05/11/2016 02:53:34 PM---thanks. i observed that, instances_path
>> option was not there in the nova.conf file
>>
>> From: Irfan Sayed <irfu.sayed at gmail.com>
>> To: Vikram Choudhary <vikschw at gmail.com>
>> Cc: "openstack at lists.openstack.org" <openstack at lists.openstack.org>
>> Date: 05/11/2016 02:53 PM
>> Subject: Re: [Openstack] Error: No valid host was found. There are not
>> enough hosts available
>> ------------------------------
>>
>>
>>
>> thanks.
>> i observed that, instances_path option was not there in the nova.conf
>> file , i added the same and restarted the service , still the issue persist
>> as per the log, ExactRamFilter filter has some issue
>> i have created one flavor called baremetal. so does that mean that , the
>> RAM which is assigned to the flavor show exactly match the RAM which is
>> there on the physical server ?
>> my baremetal physical server has near about 15 GB RAM, so the exactly
>> same RAM should be present in the baremetal flavor ?
>>
>> @vikram, i did not understand what you said, are these commands?
>>
>> Regards
>>
>>
>>
>> On Wed, May 11, 2016 at 6:58 PM, Vikram Choudhary <*vikschw at gmail.com*
>> <vikschw at gmail.com>> wrote:
>>
>>    Can you please check q-svc & q-agt logs and ensure no issues are
>>    observed..
>>
>>    On Wed, May 11, 2016 at 6:17 PM, Irfan Sayed <*irfu.sayed at gmail.com*
>>    <irfu.sayed at gmail.com>> wrote:
>>    in the nova.conf file i have commented out this and tried creating
>>    instances but still the issue.
>>
>>    #scheduler_use_baremetal_filters=True
>>    #scheduler_use_baremetal_filters=True
>>
>>    anything else i have to comment as well.?
>>    Regards,
>>
>>
>>
>>
>>    On Wed, May 11, 2016 at 5:49 PM, Chris Buccella <
>>    *chris.buccella at verilume.com* <chris.buccella at verilume.com>> wrote:
>>       > now i dont understand what is the meaning of "ExactRamFilter
>>        returned 0 hosts"
>>
>>
>>       *http://docs.openstack.org/developer/nova/api/nova.scheduler.filters.exact_ram_filter.html*
>>       <http://docs.openstack.org/developer/nova/api/nova.scheduler.filters.exact_ram_filter.html>
>>
>>       You could try dropping the filter from scheduler_default_filters
>>       in nova.conf
>>
>>
>>       -Chris
>>
>>       On Wed, May 11, 2016 at 12:11 AM, Irfan Sayed <
>>       *irfu.sayed at gmail.com* <irfu.sayed at gmail.com>> wrote:
>>       Hello,
>>       I am trying to integrate the Ironic service with other openstack
>>       services. I am using liberty release of openstack.
>>
>>       installed and configured the Ironic service.
>>       here is the setup:
>>
>>       1: all openstack services are deployed on VM
>>       2: controller is on one VM (along with other services) and compute
>>       is on another VM
>>       3: one bare metal machine / desktop is there which i want to
>>       provision using the ironic service.
>>       4: nova compute service which runs on compute node is serving
>>       hypervisor for VMs and another nova compute service which is running on
>>       controller is acting hypervisor for bare metal node ...
>>       5: so actually i have hybrid model of VMs and physical server for
>>       openstack private cloud.
>>       6: i am using pxe_wol driver to boot the node. using ironic
>>       service also i can boot the node.
>>
>>       so, this is the brief about the environment setup which i have as
>>       of now ...
>>       the issue is , when i am trying to launch the instance from
>>       horizon dashboard .. i am getting above error
>>
>>       in the scheduler log, here is the output.
>>
>>       2016-05-11 09:17:30.529 15559 INFO nova.filters
>>       [req-6c68100d-420f-43ad-878e-7819a43298e6 5c50e3803049470283f7a9d18e871096
>>       28d5644376ba4d3bab3a30e09a0b28d1 - - -] Filter ExactRamFilter returned 0
>>       hosts
>>       2016-05-11 09:17:30.530 15559 INFO nova.filters
>>       [req-6c68100d-420f-43ad-878e-7819a43298e6 5c50e3803049470283f7a9d18e871096
>>       28d5644376ba4d3bab3a30e09a0b28d1 - - -] Filtering removed all hosts for the
>>       request with reservation ID 'r-mld1goh8' and instance ID
>>       '98c49d72-9d8e-4377-bbe0-6dbef187e75a'. Filter results: ['RetryFilter:
>>       (start: 3, end: 3)', 'AvailabilityZoneFilter: (start: 3, end: 3)',
>>       'ComputeFilter: (start: 3, end: 3)', 'ComputeCapabilitiesFilter: (start: 3,
>>       end: 3)', 'ImagePropertiesFilter: (start: 3, end: 3)', 'ExactRamFilter:
>>       (start: 3, end: 0)']
>>
>>       now i dont understand what is the meaning of "ExactRamFilter
>>        returned 0 hosts"
>>
>>       please help
>>
>>       Regards,
>>
>>
>>
>>       _______________________________________________
>>       Mailing list:
>>       *http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack*
>>       <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>>       Post to     : *openstack at lists.openstack.org*
>>       <openstack at lists.openstack.org>
>>       Unsubscribe :
>>       *http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack*
>>       <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>>
>>
>>
>>    _______________________________________________
>>    Mailing list:
>>    *http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack*
>>    <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>>    Post to     : *openstack at lists.openstack.org*
>>    <openstack at lists.openstack.org>
>>    Unsubscribe :
>>    *http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack*
>>    <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>>
>>
>> _______________________________________________
>> Mailing list:
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to     : openstack at lists.openstack.org
>> Unsubscribe :
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160512/2be74556/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160512/2be74556/attachment.gif>


More information about the Openstack mailing list