First instance launch after ./unstack.sh & ./stack.sh through devstack is unsuccessful but successive instance launch is successful ?

asked 2016-05-09 06:35:59 -0500

Manish5772 gravatar image

Hi,

I am using openstack version 13.0.1 with single node setup (using devstack) running on ubuntu 15.04. Each time I perform ./unstack.sh followed by ./stack.sh and after that on launching single instance, it fails with error message "No valid host was found. There are not enough hosts available". After that if I launch any number of instances, it spawns successfully. So we're getting error on lunching first instance after doing unstack.sh and stack.sh.

Below is the snippet of scheduler.log file where I'm getting error:

2016-05-09 15:37:43.196 ^[[00;32mDEBUG nova.filters [^[[01;36mreq-45200ab9-d12c-43c7-a057-cfd92efc39f8 ^[[00;36madmin demo^[[00;32m] ^[[01;35m^[[00;32mStarting with 1 host(s)^[[00m ^[[00;33mfrom (pid=20846) get_filtered_objects /opt/stack/nova/nova/filters.py:70^[[00m
2016-05-09 15:37:43.197 ^[[00;32mDEBUG nova.filters [^[[01;36mreq-45200ab9-d12c-43c7-a057-cfd92efc39f8 ^[[00;36madmin demo^[[00;32m] ^[[01;35m^[[00;32mFilter AllHostsFilter returned 1 host(s)^[[00m ^[[00;33mfrom (pid=20846) get_filtered_objects /opt/stack/nova/nova/filters.py:104^[[00m
2016-05-09 15:37:43.197 ^[[00;36mINFO nova.scheduler.filters.retry_filter [^[[01;36mreq-45200ab9-d12c-43c7-a057-cfd92efc39f8 ^[[00;36madmin demo^[[00;36m] ^[[01;35m^[[00;36mHost [u'ubuntu', u'ubuntu'] fails.  Previously tried hosts: [[u'ubuntu', u'ubuntu']]^[[00m
2016-05-09 15:37:43.197 ^[[00;36mINFO nova.filters [^[[01;36mreq-45200ab9-d12c-43c7-a057-cfd92efc39f8 ^[[00;36madmin demo^[[00;36m] ^[[01;35m^[[00;36mFilter RetryFilter returned 0 hosts^[[00m
2016-05-09 15:37:43.198 ^[[00;32mDEBUG nova.filters [^[[01;36mreq-45200ab9-d12c-43c7-a057-cfd92efc39f8 ^[[00;36madmin demo^[[00;32m] ^[[01;35m^[[00;32mFiltering removed all hosts for the request with instance ID '0cd7c9ee-ff36-4ef5-940e-0b1d50802e68'. Filter results: [('AllHostsFilter', [(u'ubuntu', u'ubuntu')]), ('RetryFilter', None)]^[[00m ^[[00;33mfrom (pid=20846) get_filtered_objects /opt/stack/nova/nova/filters.py:129^[[00m
2016-05-09 15:37:43.198 ^[[00;36mINFO nova.filters [^[[01;36mreq-45200ab9-d12c-43c7-a057-cfd92efc39f8 ^[[00;36madmin demo^[[00;36m] ^[[01;35m^[[00;36mFiltering removed all hosts for the request with instance ID '0cd7c9ee-ff36-4ef5-940e-0b1d50802e68'. Filter results: ['AllHostsFilter: (start: 1, end: 1)', 'RetryFilter: (start: 1, end: 0)']^[[00m
2016-05-09 15:37:43.198 ^[[00;32mDEBUG nova.scheduler.filter_scheduler [^[[01;36mreq-45200ab9-d12c-43c7-a057-cfd92efc39f8 ^[[00;36madmin demo^[[00;32m] ^[[01;35m^[[00;32mThere are 0 hosts available but 1 instances requested to build.^[[00m ^[[00;33mfrom (pid=20846) select_destinations /opt/stack/nova/nova/scheduler/filter_scheduler.py:71^[[00m
2016-05-09 15:37:43.199 ^[[00;32mDEBUG oslo_messaging.rpc.dispatcher [^[[01;36mreq-45200ab9-d12c-43c7-a057-cfd92efc39f8 ^[[00;36madmin demo^[[00;32m] ^[[01;35m^[[00;32mExpected exception during message handling (No valid host was found. There are not enough hosts available.)^[[00m ^[[00;33mfrom (pid=20846) _dispatch_and_reply /usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py:141^[[00m

We're getting one more error in the same file:

2016-05-09 15:38:24.424 ^[[00;36mINFO nova.scheduler.host_manager [^[[01;36mreq-b0009fed-7258-4a06-a74c-e8d9e25664b6 ^[[00;36mNone None^[[00;36m] ^[[01;35m^[[00;36mThe instance sync for host 'ubuntu' did not match. Re-created its InstanceList.

Here is my local.conf for reference:

> [[local|localrc]]
> FLOATING_RANGE=192.178.1.224/27
> FIXED_RANGE=13.11.12.0/24
> HOST_IP=10.201.2.90
> FIXED_NETWORK_SIZE=256
> FLAT_INTERFACE=eth1
> ADMIN_PASSWORD ...
(more)
edit retag flag offensive close merge delete