← Back to team overview

openstack team mailing list archive

Re: Error in scheduler when create a new instance.

 

Hi!

1. Is your locale anything different from C or en? If so, you're most
likely getting an exception on nova-compute when it tries to start,
exception gets lost (my fault, forgot to file a bug) and nova-compute
dies. The exception is most likely occur because of
https://bugs.launchpad.net/nova/+bug/983845, the workaround must be to
"nova delete" instances that were failed to spawn on this node.
2. You're running nova-compute inside a VM, right? Then instance is
most likely failing to spawn because KVM is not available. In order to
use KVM inside a VM, you'll have to have nested virtualization
available and turned on. For this, on host machine you need at least
3.2 kernel and pass kvm-intel.nested=1 to kernel at boot if you have
Intel CPU (it looks like it's turned on by default for AMD). Then you
can use KVM inside KVM.

Kind regards, Yuriy.


On Sat, Apr 28, 2012 at 08:39, Yong Sheng Gong <gongysh@xxxxxxxxxx> wrote:
> Seems that your compute is not alive:
>
>
> nova-compute     ubuntu0001                           nova
> enabled    XXX
>
>
> -----openstack-bounces+gongysh=cn.ibm.com@xxxxxxxxxxxxxxxxxxx wrote: -----
>
> To: openstack@xxxxxxxxxxxxxxxxxxx
>
> From: Rogerio Goncalves <rogerlz@xxxxxxxxx>
> Sent by: openstack-bounces+gongysh=cn.ibm.com@xxxxxxxxxxxxxxxxxxx
> Date: 04/28/2012 10:22AM
>
> Subject: Re: [Openstack] Error in scheduler when create a new instance.
>
> Zhang,
>
> I already triad.
>
>
> root@ubuntu0001:~# service libvirt-bin restart
> libvirt-bin stop/waiting
> libvirt-bin start/running, process 21469
>
> root@ubuntu0001:~# service nova-compute restart
> stop: Unknown instance:
> nova-compute start/running, process 21524
>
> root@ubuntu0001:~# service nova-scheduler restart
> nova-scheduler stop/waiting
> nova-scheduler start/running, process 21540
>
> root@ubuntu0001:~# nova-manage service list
> 2012-04-27 21:36:23 DEBUG nova.utils
> [req-94ff244b-4fe2-4595-95b8-fea9deef4b22 None None] backend <module
> 'nova.db.sqlalchemy.api' from
> '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc'> from
> (pid=21547) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658
> Binary           Host                                 Zone
> Status     State Updated_At
> nova-scheduler   ubuntu0001                           nova
> enabled    :-)   2012-04-28 00:36:06
> nova-compute     ubuntu0001                           nova
> enabled    XXX   None
> nova-volume      ubuntu0001                           nova
> enabled    :-)   2012-04-28 00:36:16
> nova-network     ubuntu0001                           nova
> enabled    :-)   2012-04-28 00:36:15
>
>
> On Fri, Apr 27, 2012 at 11:17 PM, 张华 <veryhua2006@xxxxxxxxx> wrote:
>>
>> you need reboot libvirtd, yesterday I encounter the same problem
>>
>>
>>
>>
>> 2012/4/28 Rogerio Goncalves <rogerlz@xxxxxxxxx>
>>>
>>> Yong,
>>>
>>> oot@ubuntu0001:~# free -m
>>>              total       used       free     shared    buffers     cached
>>> Mem:          3951       2121       2830          0        168       160
>>> -/+ buffers/cache:        792       3159
>>> Swap:         1951          0       1951
>>>
>>>
>>>
>>> On Fri, Apr 27, 2012 at 8:11 PM, Yong Sheng Gong <gongysh@xxxxxxxxxx>
>>> wrote:
>>>>
>>>> how much free ram left on your compute node?
>>>>
>>>>
>>>> -----openstack-bounces+gongysh=cn.ibm.com@xxxxxxxxxxxxxxxxxxx wrote:
>>>> -----
>>>>
>>>> To: Flavia Missi <flaviamissi@xxxxxxxxx>
>>>> From: Rogerio Goncalves <rogerlz@xxxxxxxxx>
>>>> Sent by: openstack-bounces+gongysh=cn.ibm.com@xxxxxxxxxxxxxxxxxxx
>>>> Date: 04/28/2012 04:43AM
>>>> Cc: openstack@xxxxxxxxxxxxxxxxxxx
>>>> Subject: Re: [Openstack] Error in scheduler when create a new instance.
>>>>
>>>>
>>>> Flavia,
>>>>
>>>> Thanks, but does not help.
>>>> Get the same error.
>>>>
>>>> 2012-04-27 17:41:39 WARNING nova.scheduler.manager
>>>> [req-efb95a01-15f0-4ae7-9f7f-0ec71ff4d12a e53ddc6542c84f0791fd5ff8968162d7
>>>> c65c92296bf841c992c895074da03316] Failed to schedule_run_instance: No valid
>>>> host was found. Is the appropriate service running?
>>>>
>>>> 2012-04-27 17:41:39 WARNING nova.scheduler.manager
>>>> [req-efb95a01-15f0-4ae7-9f7f-0ec71ff4d12a e53ddc6542c84f0791fd5ff8968162d7
>>>> c65c92296bf841c992c895074da03316] Setting instance
>>>> 01a15b65-7807-42b4-95a2-66d64d12f906 to ERROR state.
>>>>
>>>> root@ubuntu0001:/var/log/nova# nova-manage service list
>>>> Binary           Host                                 Zone
>>>> Status     State Updated_At
>>>> nova-scheduler   ubuntu0001                           nova
>>>> enabled    :-)   2012-04-27 20:42:57
>>>> nova-compute     ubuntu0001                           nova
>>>> enabled    XXX   None
>>>> nova-volume      ubuntu0001                           nova
>>>> enabled    :-)   2012-04-27 20:42:52
>>>> nova-network     ubuntu0001                           nova
>>>> enabled    :-)   2012-04-27 20:42:52
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, Apr 27, 2012 at 5:02 PM, Flavia Missi <flaviamissi@xxxxxxxxx>
>>>> wrote:
>>>>>
>>>>> Rogerio, I had this problem and solved it by setting the following
>>>>> flag:
>>>>>
>>>>> scheduler_default_filters=AllHostsFilter
>>>>>
>>>>> Hope it helps.
>>>>>
>>>>> []'s
>>>>>
>>>>>
>>>>> On Fri, Apr 27, 2012 at 12:29 PM, Rogerio Goncalves <rogerlz@xxxxxxxxx>
>>>>> wrote:
>>>>>>
>>>>>> is enabled and not running
>>>>>> my  compute node is virtual machine to test and configured with qemu
>>>>>> (2 core, 4gb, 10gb free in nova-volumes)
>>>>>>
>>>>>>
>>>>>> my last log message on nova-compute is:
>>>>>>
>>>>>> 2012-04-27 12:22:25 DEBUG nova.virt.libvirt.connection [-] Connecting
>>>>>> to libvirt: qemu:///system from (pid=18588) _get_connection
>>>>>> /usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py:292
>>>>>>
>>>>>> libvirt is running
>>>>>>
>>>>>> 18420 ?        Sl     0:00 /usr/sbin/libvirtd -d
>>>>>>
>>>>>>
>>>>>> On Thu, Apr 26, 2012 at 10:43 PM, heut2008 <heut2008@xxxxxxxxx> wrote:
>>>>>>>
>>>>>>> be sure  nova-compute is running and is enabled by using nova-manage
>>>>>>> service list,also confirm that the compute node have enough
>>>>>>> resources(cpu,mem,disk) .
>>>>>>>
>>>>>>> 2012/4/27 Rogerio Goncalves <rogerlz@xxxxxxxxx>:
>>>>>>> > Hello,
>>>>>>> >
>>>>>>> > Im getting this error when launching a new instance.
>>>>>>> >
>>>>>>> > "Failed to schedule_run_instance: No valid host was found. Is the
>>>>>>> > appropriate service running?"
>>>>>>> >
>>>>>>> > http://paste.openstack.org/show/14020/
>>>>>>> >
>>>>>>> > SO Ubuntu 12.04
>>>>>>> >
>>>>>>> > libvirt-bin start/running, process 4153
>>>>>>> > nova-network start/running, process 4174
>>>>>>> > nova-compute start/running, process 4187
>>>>>>> > nova-api start/running, process 4198
>>>>>>> > nova-objectstore start/running, process 4210
>>>>>>> > nova-scheduler start/running, process 4222
>>>>>>> > nova-volume start/running, process 4235
>>>>>>> > nova-vncproxy start/running, process 4246
>>>>>>> >
>>>>>>> > rabbitmq is up too
>>>>>>> >
>>>>>>> >
>>>>>>> > Thanks
>>>>>>> >
>>>>>>> > Rogério Gonçalves
>>>>>>> >
>>>>>>> >
>>>>>>> > _______________________________________________
>>>>>>> > Mailing list: https://launchpad.net/~openstack
>>>>>>> > Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>>>>>>> > Unsubscribe : https://launchpad.net/~openstack
>>>>>>> > More help   : https://help.launchpad.net/ListHelp
>>>>>>> >
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mailing list: https://launchpad.net/~openstack
>>>>>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>>>>>> Unsubscribe : https://launchpad.net/~openstack
>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Flávia Missi
>>>>> @flaviamissi
>>>>> flaviamissi.com.br
>>>>> https://github.com/flaviamissi
>>>>>
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~openstack
>>>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~openstack
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~openstack
>>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~openstack
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>
>>
>>
>> --
>> Best Regards,
>>
>> Zhang Hua(张华)
>> ----------------------------------------------------
>> IBM China System and Technology Lab(CSTL), Beijing
>> E-Mail: zhhuabj@xxxxxxxxxx
>> Address: Building 28(Ring Building), ZhongGuanCun Software Park,
>>          No.8 Dong Bei Wang West Road, Haidian District Beijing P.R.China
>> 100193
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>


References