Ask Your Question
0

Nova Class not found error

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

anbalagan123 gravatar image

Hi

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/utils.py:65 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/pkg_resources.py", 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/pkg_resources.py", 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/service.py", 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/service.py", 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/utils.py", 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/__init__.py", 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/api.py", 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/__init__.py", 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/glance.py", 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/utils.py", 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
0

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

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

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

edit flag offensive delete link more
0

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

Hi Anbalagan,

The local image service no longer exists:

https://bugs.launchpad.net/nova/+bug/723947 (https://bugs.launchpad.net/nova/+bug/...)

The default image service is now:

nova.image.glance.GlanceImageService

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
0

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

anbalagan123 gravatar image

Hi

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=10.37.39.57 --rabbit_host=10.37.39.57 --cc_host=10.37.39.57 --ec2_url=http://10.37.39.57:9773/services/Cloud --fixed_range=192.168.1.0/24 --network_size=256 --FAKE_subdomain=ec2 --routing_source_ip=10.37.39.57 --verbose --sql_connection=mysql://root:root@10.37.39.57/nova --network_manager=nova.network.manager.FlatManager --glance_host=10.37.39.57 --glance_api_servers=10.37.39.57:9774 --image_service=nova.image.glance.GlanceImageService

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 43 times

Last updated: Sep 30 '11