Ask Your Question

Nova Class not found error

asked 2011-09-28 05:25:39 -0500

anbalagan123 gravatar image


I am seeing the following error in my testbed which has got latest Nova and Glance,. Using the nova flag --FLAGS.image_service=nova.image.local.LocalImageService

I have posted in nova but still waiting for response, can anyone of you help me in this regard

2011-09-28 10:46:32,124 DEBUG nova.utils [-] Inner Exception: No module named xattr from (pid=6637) import_class /usr/local/lib/python2.7/dist-packages/nova-2011.3-py2.7.egg/nova/ 2011-09-28 10:46:32,135 CRITICAL nova [-] Class Client could not be found (nova): TRACE: Traceback (most recent call last): (nova): TRACE: File "/usr/local/bin/nova-compute", line 5, in <module> (nova): TRACE: pkg_resources.run_script('nova==2011.3', 'nova-compute') (nova): TRACE: File "/usr/lib/python2.7/dist-packages/", line 467, in run_script (nova): TRACE: self.require(requires)[0].run_script(script_name, ns) (nova): TRACE: File "/usr/lib/python2.7/dist-packages/", line 1200, in run_script (nova): TRACE: execfile(script_filename, namespace, namespace) (nova): TRACE: File "/usr/local/lib/python2.7/dist-packages/nova-2011.3-py2.7.egg/EGG-INFO/scripts/nova-compute", line 47, in <module> (nova): TRACE: server = service.Service.create(binary='nova-compute') (nova): TRACE: File "/usr/local/lib/python2.7/dist-packages/nova-2011.3-py2.7.egg/nova/", line 216, in create (nova): TRACE: report_interval, periodic_interval) (nova): TRACE: File "/usr/local/lib/python2.7/dist-packages/nova-2011.3-py2.7.egg/nova/", line 125, in __init__ (nova): TRACE: manager_class = utils.import_class(self.manager_class_name) (nova): TRACE: File "/usr/local/lib/python2.7/dist-packages/nova-2011.3-py2.7.egg/nova/", line 62, in import_class (nova): TRACE: __import__(mod_str) (nova): TRACE: File "/usr/local/lib/python2.7/dist-packages/nova-2011.3-py2.7.egg/nova/compute/", line 19, in <module> (nova): TRACE: from nova.compute.api import API (nova): TRACE: File "/usr/local/lib/python2.7/dist-packages/nova-2011.3-py2.7.egg/nova/compute/", line 29, in <module> (nova): TRACE: import nova.image (nova): TRACE: File "/usr/local/lib/python2.7/dist-packages/nova-2011.3-py2.7.egg/nova/image/", line 22, in <module> (nova): TRACE: from nova.image import glance (nova): TRACE: File "/usr/local/lib/python2.7/dist-packages/nova-2011.3-py2.7.egg/nova/image/", line 43, in <module> (nova): TRACE: GlanceClient = utils.import_class('glance.client.Client') (nova): TRACE: File "/usr/local/lib/python2.7/dist-packages/nova-2011.3-py2.7.egg/nova/", line 66, in import_class (nova): TRACE: raise exception.ClassNotFound(class_name=class_str) (nova): TRACE: ClassNotFound: Class Client could not be found (nova): TRACE:

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2011-09-30 07:06:56 -0500

Are you getting the same error still? Can you paste the error, otherwise?

--glance_api_servers= Also I think you need to provide port 9292 for glance api servers. Like, --glance_api_servers=

edit flag offensive delete link more

answered 2011-09-29 16:43:39 -0500

Hi Anbalagan,

The local image service no longer exists: (

The default image service is now:


Can you try this option for image_service instead. Also make sure to set glance_api_servers as well if glance is running on a separate server.

Hope this helps.

edit flag offensive delete link more

answered 2011-09-30 05:22:13 -0500

anbalagan123 gravatar image


I tried Local and glance options seperately. Still I am getting the same errors. This is the nova image release on 9/26 , so suspecting something wrong in this release. Does anyone installed this image and it is working without any errors. ?

root@ubuntushow:/etc/nova# cat nova.conf.glance --dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --logdir=/var/log/nova --state_path=/var/lib/nova --lock_path=/var/lock/nova --verbose --s3_host= --rabbit_host= --cc_host= --ec2_url= --fixed_range= --network_size=256 --FAKE_subdomain=ec2 --routing_source_ip= --verbose --sql_connection=mysql://root:root@ --glance_host= --glance_api_servers= --image_service=nova.image.glance.GlanceImageService

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-09-28 05:25:39 -0500

Seen: 43 times

Last updated: Sep 30 '11