[Openstack] Unable to start nova-scheduler : duplicate option: scheduler_host_manager

Ben ben.div at gmail.com
Wed Aug 22 16:10:02 UTC 2012


Hum, ok but why ? I'm running essex out of the box packaged in Ubuntu 
12.04. I didn't modify the code (except comment the raise line in cfg.py 
for this problem), but I did a lot of reinstall, modify configuration, 
drop nova db, etc.

What would cause this circular import ? Can I tweak the code to avoid 
this circular import (as workaround to validate this hypothesis) ?

Thanks to all for your help.

Ben


Le 22/08/2012 18:00, Vishvananda Ishaya a écrit :
> You have a circular import somewhere That is causing scheduler/driver.py to be imported twice.
>
> Vish
> On Aug 22, 2012, at 8:33 AM, Ben <ben.div at gmail.com> wrote:
>
>> # grep -R scheduler_host_manager /usr/lib/python2.7/dist-packages/nova
>> /usr/lib/python2.7/dist-packages/nova/scheduler/driver.py: cfg.StrOpt('scheduler_host_manager',
>> /usr/lib/python2.7/dist-packages/nova/scheduler/driver.py:   FLAGS.scheduler_host_manager)
>> Fichier binaire /usr/lib/python2.7/dist-packages/nova/scheduler/driver.pyc concordant
>> grep: /usr/lib/python2.7/dist-packages/nova/CA/reqs/.gitignore: Aucun fichier ou dossier de ce type
>> grep: /usr/lib/python2.7/dist-packages/nova/CA/.gitignore: Aucun fichier ou dossier de ce type
>> grep: /usr/lib/python2.7/dist-packages/nova/CA/projects/.gitignore: Aucun fichier ou dossier de ce type
>>
>> If I comment the portion of code that raise the error (in _is_opt_registered(opts, opt) of cfg.py), I get the following error :
>>
>> ClassNotFound: Class SimpleScheduler could not be found: cannot import name vnc
>>
>> I have the same error if I replace --scheduler_driver by --scheduler_manager in nova.conf.
>>
>> novnc is not installed because it give a configure error, but nova-vncproxy is well installed.
>>
>> I suspect the error raised is not the original error, only side effect...
>> I joined the trace of nova-scheduler before and after the code comment.
>>
>> What can I try now ?
>>
>> Ben
>>
>> Le 22/08/2012 17:00, Joseph Suh a écrit :
>>> Ben,
>>>
>>> It is possible to have the option specified in a code. Try grep -r on whole code.
>>>
>>> Thanks,
>>>
>>> Joseph
>>>
>>> ----- Original Message -----
>>> From: "Ben" <ben.div at gmail.com>
>>> To: "Joseph Suh" <jsuh at isi.edu>
>>> Cc: openstack at lists.launchpad.net
>>> Sent: Wednesday, August 22, 2012 10:47:35 AM
>>> Subject: Re: [Openstack] Unable to start nova-scheduler : duplicate option: scheduler_host_manager
>>>
>>> Hi Joseph,
>>>
>>> Thank you for your answer. Yes, but where could be that option ? It's
>>> not duplicated in my nova.conf file, and this is the file the
>>> nova-scheduler uses.
>>> My nova.conf file joined.
>>>
>>> Regards,
>>>
>>> Ben
>>>
>>>
>>> Le 22/08/2012 16:37, Joseph Suh a écrit :
>>>> Ben,
>>>>
>>>> As the error message suggests, it is due to a duplicated option of scheduler_host_manager. It is specified more than once somewhere.
>>>>
>>>> Thanks,
>>>>
>>>> Joseph
>>>>
>>>> ----- Original Message -----
>>>> From: "Ben" <ben.div at gmail.com>
>>>> To: openstack at lists.launchpad.net
>>>> Sent: Wednesday, August 22, 2012 8:27:39 AM
>>>> Subject: Re: [Openstack] Unable to start nova-scheduler : duplicate option:	scheduler_host_manager
>>>>
>>>> Hi,
>>>>
>>>> No idea for my scheduler problem ? It was working at the beginning (I
>>>> suppose because I could launch instances), but I did a lot of
>>>> modification, modifying networks, deleting nova db, rebuild it, etc.
>>>>
>>>> Any idea on what I can do to identify the problem ? Where can I find the
>>>> mentionned option except in nova.conf ?
>>>>
>>>> Ben
>>>>
>>>> Le 22/08/2012 00:46, Ben a écrit :
>>>>> Hi,
>>>>>
>>>>> I'm trying to setup a little nova cluster with 3 nodes :
>>>>>
>>>>> - 1 controller node running all services but compute
>>>>> - 2 compute nodes running compute and network only
>>>>>
>>>>> I have faced a lot of issues, but I can't understand this one. When I
>>>>> start nova-scheduler on controller node, the process dies instantly with
>>>>> this error :
>>>>>
>>>>> CRITICAL nova [-] duplicate option: scheduler_host_manager
>>>>>
>>>>> So I can't start an instance, it remains stuck in building state. I have
>>>>> checked my nova.conf file, and I only see this line :
>>>>>
>>>>> --scheduler_driver=nova.scheduler.simple.SimpleScheduler
>>>>>
>>>>> What does means this error, how can I solve it ?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Ben
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~openstack
>>>> Post to     : openstack at lists.launchpad.net
>>>> Unsubscribe : https://launchpad.net/~openstack
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>> <nova.conf><trace.log>_______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack at lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>




More information about the Openstack mailing list