Ask Your Question

Luanch instance:Exceeded max scheduling attempts 3 for instance

asked 2015-02-09 08:05:11 -0500

djepnguyen gravatar image

updated 2015-02-10 00:09:45 -0500

Dear , i have openstack icehouse all in one. i check all service are Ok and i launch cirros successfully and i want to launch a ubuntu image. i downloaded a ubuntu cloud image based on a link in openstack docs. but althouhg i choose any flavor , i still got the error : Error: Failed to launch instance "yo": Please try again later [Error: No valid host was found. Exceeded max scheduling attempts 3 for instance anyone has ann idea ? below is nova-scheduler log:

2015-02-09 21:53:44.451 2480 INFO nova.scheduler.filter_scheduler [req-a154a0e0-7314-4e3c-84                                                                            2f-cf1560e81452 9ceb0d08f3324003822747f15c8222ea 71c00c7b8c654515800ae3db1309fe70] Attemptin                                                                            g to build 1 instance(s) uuids: [u'55abf7b0-e899-45aa-a45e-e6b63229a5cd']

2015-02-09 21:53:44.465 2480 INFO nova.scheduler.filter_scheduler [req-a154a0e0-7314-4e3c-84 2f-cf1560e81452 9ceb0d08f3324003822747f15c8222ea 71c00c7b8c654515800ae3db1309fe70] Choosing host WeighedHost [host: controller, weight: 1.0] for instance 55abf7b0-e899-45aa-a45e-e6b632 29a5cd 2015-02-09 21:53:44.591 2480 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on 2015-02-09 21:54:47.886 2480 WARNING nova.openstack.common.loopingcall [-] task run outlaste d interval by 12.147125 sec 2015-02-09 21:57:38.422 2480 INFO nova.scheduler.filter_scheduler [req-a154a0e0-7314-4e3c-84 2f-cf1560e81452 9ceb0d08f3324003822747f15c8222ea 71c00c7b8c654515800ae3db1309fe70] Attemptin g to build 1 instance(s) uuids: [u'55abf7b0-e899-45aa-a45e-e6b63229a5cd'] 2015-02-09 21:57:38.425 2480 ERROR nova.scheduler.filter_scheduler [req-a154a0e0-7314-4e3c-8 42f-cf1560e81452 9ceb0d08f3324003822747f15c8222ea 71c00c7b8c654515800ae3db1309fe70] [instanc e: 55abf7b0-e899-45aa-a45e-e6b63229a5cd] Error from last host: controller (node controller): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/dist-packages/nova/c ompute/", line 1333, in _build_instance\n set_access_ip=set_access_ip)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/", line 401, in decorated_func tion\n return function(self, context, args, kwargs)\n', u' File "/usr/lib/python2.7/d ist-packages/nova/compute/", line 1745, in _spawn\n LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u' File "/usr/lib/python2.7/dist-packages/nova/o penstack/common/", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1742, in _spawn\n block_device_info)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/ libvirt/", line 2295, in spawn\n block_device_info)\n', u' File "/usr/lib/pytho n2.7/dist-packages/nova/virt/libvirt/", line 3701, in _create_domain_and_network\n power_on=power_on)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/drive", line 3602, in _create_domain\n domain.XMLDesc(0))\n', u' File "/usr/lib/python2.7 /dist-packages/nova/openstack/common/", line 68, in __exit__\n six.reraise(sel f.type_, self.value, self.tb)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvi rt/", line 3597, in _create_domain\n domain.createWithFlags(launch_flags)\n', u' File "/usr/lib/python2.7/dist-packages/eventlet/", line 179, in doit\n result = proxy_call(self._autowrap, f, *args, *kwargs)\n', u' File "/usr/lib/python2.7/dist-packag es/eventlet/", line 139, in proxy_call\n rv = execute(f,args,kwargs)\n ... (more)

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted

answered 2015-02-10 05:35:34 -0500

jdiaz9 gravatar image

updated 2015-02-10 05:35:53 -0500

I agree with the comment above. That message is usually as a result of there not being enough resources for the instance to launch in that node. However, I have come across it other times when I have not configured the nova.conf files in the controller or compute node correctly. I would suggest you look over the file (or paste it here if you like) and look for any typos, etc. Additionally, neutron might be the issue. So, neutron.conf is something else I would look into.

Hope that helps.

edit flag offensive delete link more


here is my script to install nova:

djepnguyen gravatar imagedjepnguyen ( 2015-02-10 19:10:32 -0500 )edit

answered 2015-02-09 08:23:39 -0500

In general, "No Valid Host Was Found" error meesage is raised when not enough resources(vCUP, Mem, Storage, ...) are availabe to launch an instance on compute nodes. In other words, nova-scheduler can not find a compute node with enough resources(vcpu, disk, ram,...) to launch instance.

Make sure that your target compute node has enough virtual resources that your instance requested. For further details, check your scheduler(nova-scheduler.log) and nova-api(nova-api.log) log files and put the error messages in your post. Both files are stored at:

edit flag offensive delete link more


Thanks for comment. i will paste the log @@

djepnguyen gravatar imagedjepnguyen ( 2015-02-09 19:09:53 -0500 )edit

From "Cannot set up guest memory 'pc.ram'" part of your posted log, it sounds like that you requested to run instance with demanding memory more than what is physically availble. What flavor you selected for your instance to spawn? Reduce the value of memory for your instance. It may fix the issue

Mzoorikh gravatar imageMzoorikh ( 2015-02-10 09:07:16 -0500 )edit

i know that. my VM has 3GB RAM and when i start it , it only use 5% RAM.but when i tried launch ubuntu with tiny flavor , VM immediatly use over 90% ram although after i already delete this instance. here is my output of top command:

djepnguyen gravatar imagedjepnguyen ( 2015-02-10 19:08:02 -0500 )edit

Did you launch Cirros image? Cirros is so lightweight image. Test it, to see whether the error message is the same as ubuntu or not.

Mzoorikh gravatar imageMzoorikh ( 2015-02-11 00:25:38 -0500 )edit

thánks for your comment. i can run cirros successful.allthing are ok with cirros. the ubuntun server i tried to launch is so light. it's only 235MB. here is my nova.config :

djepnguyen gravatar imagedjepnguyen ( 2015-02-11 03:17:42 -0500 )edit

answered 2015-02-10 02:43:32 -0500

djepnguyen gravatar image

anyone can answer me :D

edit flag offensive delete link more

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


Asked: 2015-02-09 08:05:11 -0500

Seen: 7,161 times

Last updated: Feb 10 '15