Ask Your Question
0

Unit test failing on dev machine

asked 2011-03-14 14:59:09 -0500

salvatore-orlando gravatar image

Hi, I noticed that since the weekend some unit tests are failing on my machine. Failing tests are CloudTest, DirectCloudTest and Failure. I branched directly from lp:nova, so I guess it must be something with my environment, not my code.

Any hint?

Tracebacks reported below:

======================================================================

ERROR: test_key_generation (nova.tests.test_cloud.CloudTestCase)

Traceback (most recent call last): File "/home/salvatore/workspace/Openstack-xenapi-netinject/nova/tests/test_cloud.py", line 71, in setUp self.scheduter = self.start_service('scheduler') File "/home/salvatore/workspace/Openstack-xenapi-netinject/nova/test.py", line 138, in start_service svc = service.Service.create(**kwargs) File "/home/salvatore/workspace/Openstack-xenapi-netinject/nova/service.py", line 164, in create report_interval, periodic_interval) File "/home/salvatore/workspace/Openstack-xenapi-netinject/nova/service.py", line 72, in __init__ manager_class = utils.import_class(self.manager_class_name) File "/home/salvatore/workspace/Openstack-xenapi-netinject/nova/utils.py", line 65, in import_class raise exception.NotFound(_('Class %s cannot be found') % class_str) NotFound: Class SchedulerManager cannot be found -------------------- >> begin captured logging << -------------------- 2011-03-14 14:53:49,650 AUDIT nova [-] Starting compute node (version 2011.2-LOCALBRANCH:LOCALREVISION) 2011-03-14 14:53:49,788 DEBUG nova.rpc [-] Initing the Adapter Consumer for compute from (pid=30386) __init__ /home/salvatore/workspace/Openstack-xenapi-netinject/nova/rpc.py:160 2011-03-14 14:53:49,788 DEBUG nova.fakerabbit [-] Binding compute to nova with key compute from (pid=30386) queue_bind /home/salvatore/workspace/Openstack-xenapi-netinject/nova/fakerabbit.py:96 2011-03-14 14:53:49,789 DEBUG nova.rpc [-] Initing the Adapter Consumer for compute.b516963f8bc64a038f6d9fce2703ffab from (pid=30386) __init__ /home/salvatore/workspace/Openstack-xenapi-netinject/nova/rpc.py:160 2011-03-14 14:53:49,789 DEBUG nova.fakerabbit [-] Declaring queue compute.b516963f8bc64a038f6d9fce2703ffab from (pid=30386) queue_declare /home/salvatore/workspace/Openstack-xenapi-netinject/nova/fakerabbit.py:83 2011-03-14 14:53:49,789 DEBUG nova.fakerabbit [-] Binding compute.b516963f8bc64a038f6d9fce2703ffab to nova with key compute.b516963f8bc64a038f6d9fce2703ffab from (pid=30386) queue_bind /home/salvatore/workspace/Openstack-xenapi-netinject/nova/fakerabbit.py:96 2011-03-14 14:53:49,790 DEBUG nova.utils [-] Inner Exception: No module named novaclient from (pid=30386) import_class /home/salvatore/workspace/Openstack-xenapi-netinject/nova/utils.py:64 --------------------- >> end captured logging << ---------------------

======================================================================

ERROR: test_user_editable_image_endpoint (nova.tests.test_direct.DirectCloudTestCase)

Traceback (most recent call last): File "/home/salvatore/workspace/Openstack-xenapi-netinject/nova/tests/test_direct.py", line 95, in setUp super(DirectCloudTestCase, self).setUp() File "/home/salvatore/workspace/Openstack-xenapi-netinject/nova/tests/test_cloud.py", line 71, in setUp self.scheduter = self.start_service('scheduler') File "/home/salvatore/workspace/Openstack-xenapi-netinject/nova/test.py", line 138, in start_service svc = service.Service.create(**kwargs) File "/home/salvatore/workspace/Openstack-xenapi-netinject/nova/service.py", line 164, in create report_interval, periodic_interval) File "/home/salvatore/workspace/Openstack-xenapi-netinject/nova/service.py", line 72, in __init__ manager_class = utils.import_class(self.manager_class_name) File "/home/salvatore/workspace/Openstack-xenapi-netinject/nova/utils.py", line 65, in import_class raise exception.NotFound(_('Class %s cannot be found') % class_str) NotFound: Class SchedulerManager cannot be found -------------------- >> begin captured logging << -------------------- 2011-03-14 14:54:18,460 AUDIT nova [-] Starting compute node (version 2011.2-LOCALBRANCH:LOCALREVISION) 2011-03-14 14:54:18,588 DEBUG nova.rpc [-] Initing the Adapter Consumer for compute from (pid=30386) __init__ /home/salvatore/workspace/Openstack-xenapi-netinject/nova/rpc.py:160 2011-03-14 14:54:18,589 ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2011-03-14 17:13:13 -0500

salvatore-orlando gravatar image

Thanks Rick Harris, that solved my question.

edit flag offensive delete link more
0

answered 2011-03-14 15:00:48 -0500

novaclient is now required by the tests; to fix this you can run:

pip install python-novaclient.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-03-14 14:59:09 -0500

Seen: 30 times

Last updated: Mar 14 '11