Critical Nova Class client could not be found

Asked by Anbalagan

Hi
I am getting the following error and could not proceed further, I have installed NOVA and GLANCE in the server
I tried my level best to fix this problem , but failed to do so.

--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.47.142
--rabbit_host=10.37.47.142
--cc_host=10.37.47.142
--ec2_url=http://10.37.47.142:8773/services/Cloud
--fixed_range=192.168.1.0/24
--network_size=256
--FAKE_subdomain=ec2
--routing_source_ip=10.37.47.142
--verbose
--sql_connection=mysql://root:root@10.37.47.142/nova
--network_manager=nova.network.manager.FlatManager
--libvirt_type=kvm
--glance_host=10.37.47.142
--FLAGS.image_service=nova.image.local.LocalImageService

(nova): TRACE:
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:
^C

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Anbalagan
Solved:
Last query:
Last reply:
Revision history for this message
Gaurav Gupta (gagupta) said :
#1

Try specifying the following in your nova.conf (replace the ip address and port as per your configuration)

--image_service=nova.image.glance.GlanceImageService
--glance_api_servers=<glance-server-ip>:<glance-port>

Revision history for this message
Anbalagan (anbalagan123) said :
#2

I have added following entries , but still getting the above said errors. Along with it I am getting BotoServerError also.

--glance_host=10.37.39.57
--glance_api_servers=10.37.39.57:9774
--image_service=nova.image.glance.GlanceImageService

root@ubuntushow:~# euca-authorize -P icmp -t -1:-1 default
default None None icmp -1 -1 0.0.0.0/0
Warning: failed to parse error message from AWS: <unknown>:1:0: syntax error
BotoServerError: 500 Internal Server Error
Failure: 500 Internal Server Error
null

Revision history for this message
Anbalagan (anbalagan123) said :
#3

Hi

I had ubuntu server with Eucalyptus Cloud computing packages. Suspected port clash hence removed the eucalyptus.
Started fresh instalation of Nova and this time all the components came back fine.

I am able to create the image and started the instance. Having problem with IP address for the instance,
that I will call for a answer in a separate thread.

~anbalagan