I just encountered the same problem, when I added a decorator to a method but the decorator did not exist.<div><br></div><div>Just putting it here as it took me quite a while to find this silly problem, hope it helps somebody.<br>
<br><div class="gmail_quote">On Thu, Aug 23, 2012 at 12:10 AM, Ben <span dir="ltr"><<a href="mailto:ben.div@gmail.com" target="_blank">ben.div@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.<br>


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