[Openstack] Error: No valid host was found. There are not enough hosts available
Irfan Sayed
irfu.sayed at gmail.com
Thu May 12 06:53:55 UTC 2016
thanks all.
Issue got resolved.
I am not sure whether the changes i made that causes the issue to resolve
or something else.
i made following changes in both the nova.conf (controller node and compute
node )
scheduler_default_filters=AllHostsFilter
ram_allocation_ratio=3.0
Regards,
On Thu, May 12, 2016 at 10:50 AM, Nasir Mahmood <nasir.mahmood at gmail.com>
wrote:
> If this is not a production setup, try recreating or updating your nova db
>
> su -s /bin/sh -c "nova-manage db sync" nova
>
> And then restart all relevant services on controller node.
>
> Irfan,
>
> You compute host might not be able to communicate with the controller
> node. In order to identify the root cause, try isolating them into
> different regions first, spin up cirros instance on them one by one and
> then find out in the relevant logs.
>
> Ideally, logs in your compute hosts should be indicating what's going on
> , or in controller node though.
>
> What are the status command results from nova. I don't remember them now,
> but it should be available from docs.
>
> Regards,
> Nasir Mahmood
> On May 12, 2016 9:03 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
>>
>>
>>
>>
>
> _______________________________________________
> 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/fb88d0e9/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/fb88d0e9/attachment.gif>
More information about the Openstack
mailing list