Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Luanch instance:Exceeded max scheduling attempts 3 for instance

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 ?

Luanch instance:Exceeded max scheduling attempts 3 for instance

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 192.168.5.10:5672 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/manager.py", line 1333, in _build_instance\n set_access_ip=set_access_ip)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", 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/manager.py", 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/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1742, in _spawn\n block_device_info)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/ libvirt/driver.py", line 2295, in spawn\n block_device_info)\n', u' File "/usr/lib/pytho n2.7/dist-packages/nova/virt/libvirt/driver.py", 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 r.py", line 3602, in _create_domain\n domain.XMLDesc(0))\n', u' File "/usr/lib/python2.7 /dist-packages/nova/openstack/common/excutils.py", 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/driver.py", line 3597, in _create_domain\n domain.createWithFlags(launch_flags)\n', u' File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit\n result = proxy_call(self._autowrap, f, *args, *kwargs)\n', u' File "/usr/lib/python2.7/dist-packag es/eventlet/tpool.py", line 139, in proxy_call\n rv = execute(f,args,kwargs)\n', u' F ile "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker\n rv = meth (args,kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/libvirt.py", line 896, in cr eateWithFlags\n if ret == -1: raise libvirtError (\'virDomainCreateWithFlags() failed\', dom=self)\n', u"libvirtError: internal error: process exited while connecting to monitor: Ca nnot set up guest memory 'pc.ram': Cannot allocate memory\n\n"] 2015-02-09 21:57:38.489 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:57:44.350 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:44.351 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/manager.py", line 1333, in _build_instance\n set_access_ip=set_access_ip)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", 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/manager.py", 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/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1742, in _spawn\n block_device_info)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/ libvirt/driver.py", line 2295, in spawn\n block_device_info)\n', u' File "/usr/lib/pytho n2.7/dist-packages/nova/virt/libvirt/driver.py", 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 r.py", line 3602, in _create_domain\n domain.XMLDesc(0))\n', u' File "/usr/lib/python2.7 /dist-packages/nova/openstack/common/excutils.py", 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/driver.py", line 3597, in _create_domain\n domain.createWithFlags(launch_flags)\n', u' File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit\n result = proxy_call(self._autowrap, f, args, *kwargs)\n', u' File "/usr/lib/python2.7/dist-packag es/eventlet/tpool.py", line 139, in proxy_call\n rv = execute(f,args,kwargs)\n', u' F ile "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker\n rv = meth (args,kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/libvirt.py", line 896, in cr eateWithFlags\n if ret == -1: raise libvirtError (\'virDomainCreateWithFlags() failed\', dom=self)\n', u"libvirtError: internal error: early end of file from monitor: possible probl em:\nCannot set up guest memory 'pc.ram': Cannot allocate memory\n\n"] 2015-02-09 21:57:44.356 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:57:51.405 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:51.407 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/manager.py", line 1333, in _build_instance\n set_access_ip=set_access_ip)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", 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/manager.py", 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/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1742, in _spawn\n block_device_info)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/ libvirt/driver.py", line 2295, in spawn\n block_device_info)\n', u' File "/usr/lib/pytho n2.7/dist-packages/nova/virt/libvirt/driver.py", 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 r.py", line 3602, in _create_domain\n domain.XMLDesc(0))\n', u' File "/usr/lib/python2.7 /dist-packages/nova/openstack/common/excutils.py", 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/driver.py", line 3597, in _create_domain\n domain.createWithFlags(launch_flags)\n', u' File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit\n result = proxy_call(self._autowrap, f, args, *kwargs)\n', u' File "/usr/lib/python2.7/dist-packag es/eventlet/tpool.py", line 139, in proxy_call\n rv = execute(f,args,kwargs)\n', u' F ile "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker\n rv = meth (args,**kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/libvirt.py", line 896, in cr eateWithFlags\n if ret == -1: raise libvirtError (\'virDomainCreateWithFlags() failed\', dom=self)\n', u"libvirtError: internal error: early end of file from monitor: possible probl em:\nCannot set up guest memory 'pc.ram': Cannot allocate memory\n\n"] 2015-02-09 21:57:51.407 2480 WARNING nova.scheduler.utils [req-a154a0e0-7314-4e3c-842f-cf156 0e81452 9ceb0d08f3324003822747f15c8222ea 71c00c7b8c654515800ae3db1309fe70] Failed to schedul er_run_instance: No valid host was found. Exceeded max scheduling attempts 3 for instance 55 abf7b0-e899-45aa-a45e-e6b63229a5cd 2015-02-09 21:57:51.409 2480 WARNING nova.scheduler.utils [req-a154a0e0-7314-4e3c-842f-cf156 0e81452 9ceb0d08f3324003822747f15c8222ea 71c00c7b8c654515800ae3db1309fe70] [instance: 55abf7 b0-e899-45aa-a45e-e6b63229a5cd] Setting instance to ERROR state.