grizzly scheduler can not start with import error

Bug #1103202 reported by Gloria Gu
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Undecided
Unassigned
nova (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Grizzly nova installtion finished without complain.

apt-get install -y nova-api nova-cert novnc nova-consoleauth nova-scheduler nova-novncproxy

When try to start nova-scheduler service:
service nova-scheduler restart

the log contains the following error:

2013-01-22 11:58:13 19961 TRACE nova
2013-01-22 13:36:24 20088 CRITICAL nova [-] No module named simple
2013-01-22 13:36:24 20088 TRACE nova Traceback (most recent call last):
2013-01-22 13:36:24 20088 TRACE nova File "/usr/bin/nova-scheduler", line 53, in <module>
2013-01-22 13:36:24 20088 TRACE nova topic=CONF.scheduler_topic)
2013-01-22 13:36:24 20088 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 496, in create
2013-01-22 13:36:24 20088 TRACE nova periodic_fuzzy_delay=periodic_fuzzy_delay)
2013-01-22 13:36:24 20088 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 381, in __init__
2013-01-22 13:36:24 20088 TRACE nova self.manager = manager_class(host=self.host, *args, **kwargs)
2013-01-22 13:36:24 20088 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 62, in __init__
2013-01-22 13:36:24 20088 TRACE nova self.driver = importutils.import_object(scheduler_driver)
2013-01-22 13:36:24 20088 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 40, in import_object
2013-01-22 13:36:24 20088 TRACE nova return import_class(import_str)(*args, **kwargs)
2013-01-22 13:36:24 20088 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 30, in import_class
2013-01-22 13:36:24 20088 TRACE nova __import__(mod_str)
2013-01-22 13:36:24 20088 TRACE nova ImportError: No module named simple
2013-01-22 13:36:24 20088 TRACE nova

service doesn't get started.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Can you please look in nova.conf to see if you have a definition for scheduler_driver? if you do, try commenting it out and restart the process?

thanks,
dims

Revision history for this message
Thierry Carrez (ttx) wrote :

Could also be a packaging issue, adding Ubuntu to make sure

Changed in nova:
status: New → Incomplete
Revision history for this message
Yolanda Robla (yolanda.robla) wrote :

Thanks for reporting this
Can you provide the Ubuntu version where that error is happening?
Also, can you use the command:
apt-get install -f

And check the results of this?

Changed in nova (Ubuntu):
status: New → Incomplete
Revision history for this message
Chuck Short (zulcss) wrote :

Please attach your configuration file.

Revision history for this message
Gloria Gu (gloria-gu) wrote :

ubuntu version :

Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-23-generic linux-headers-3.2.0-23

in my nova.conf

it used to be this, I commented it out
#scheduler_driver=nova.scheduler.simple.SimpleScheduler

and added the following:

compute_scheduler_driver = nova.scheduler.filter_scheduler.FilterScheduler

it seems to work.

Again...there is NO doc for grizzly installation, I sort of follow the following link....got lots of road blocks.

https://github.com/mseknibilel/OpenStack-Folsom-Install-guide

Revision history for this message
Chuck Short (zulcss) wrote :

Again please attach your configuration file.

Revision history for this message
Gloria Gu (gloria-gu) wrote :

Hi,

I am not sure about the state of the system at this point since I move on to do a different project. Will ask one of my co-workers to follow up on this if the system info is still available. Gloria

Revision history for this message
Chuck Short (zulcss) wrote :

Please re-open this bug when you have the information.

Changed in nova:
status: Incomplete → Won't Fix
Changed in nova (Ubuntu):
status: Incomplete → Won't Fix
Revision history for this message
Thiago Martins (martinx) wrote :

Same problem here... I'm installing Grizzly from Ubuntu PPA (grizzly-trunk-testing) and my nova-scheduler.log shows up:

2013-03-15 16:39:11.205 858 CRITICAL nova [-] No module named simple
2013-03-15 16:39:11.205 858 TRACE nova Traceback (most recent call last):
2013-03-15 16:39:11.205 858 TRACE nova File "/usr/bin/nova-scheduler", line 54, in <module>
2013-03-15 16:39:11.205 858 TRACE nova topic=CONF.scheduler_topic)
2013-03-15 16:39:11.205 858 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 534, in create
2013-03-15 16:39:11.205 858 TRACE nova db_allowed=db_allowed)
2013-03-15 16:39:11.205 858 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 413, in __init__
2013-03-15 16:39:11.205 858 TRACE nova self.manager = manager_class(host=self.host, *args, **kwargs)
2013-03-15 16:39:11.205 858 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 65, in __init__
2013-03-15 16:39:11.205 858 TRACE nova self.driver = importutils.import_object(scheduler_driver)
2013-03-15 16:39:11.205 858 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 40, in import_object
2013-03-15 16:39:11.205 858 TRACE nova return import_class(import_str)(*args, **kwargs)
2013-03-15 16:39:11.205 858 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 30, in import_class
2013-03-15 16:39:11.205 858 TRACE nova __import__(mod_str)
2013-03-15 16:39:11.205 858 TRACE nova ImportError: No module named simple
2013-03-15 16:39:11.205 858 TRACE nova

Revision history for this message
Thiago Martins (martinx) wrote :

Comment #5 solves the issue...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.