Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unit test failing on dev machine

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 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:54:18,589 DEBUG nova.rpc [-] Initing the Adapter Consumer for compute.a5c050e640ca429bbec5c9e2fd1b3b7b from (pid=30386) __init__ /home/salvatore/workspace/Openstack-xenapi-netinject/nova/rpc.py:160 2011-03-14 14:54:18,589 DEBUG nova.fakerabbit [-] Declaring queue compute.a5c050e640ca429bbec5c9e2fd1b3b7b from (pid=30386) queue_declare /home/salvatore/workspace/Openstack-xenapi-netinject/nova/fakerabbit.py:83 2011-03-14 14:54:18,589 DEBUG nova.fakerabbit [-] Binding compute.a5c050e640ca429bbec5c9e2fd1b3b7b to nova with key compute.a5c050e640ca429bbec5c9e2fd1b3b7b from (pid=30386) queue_bind /home/salvatore/workspace/Openstack-xenapi-netinject/nova/fakerabbit.py:96 2011-03-14 14:54:18,590 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: Failure: ImportError (No module named novaclient)

Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/nose/loader.py", line 379, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/pymodules/python2.6/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/pymodules/python2.6/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/salvatore/workspace/Openstack-xenapi-netinject/nova/tests/test_scheduler.py", line 33, in <module> from nova.scheduler import manager File "/home/salvatore/workspace/Openstack-xenapi-netinject/nova/scheduler/manager.py", line 32, in <module> from nova.scheduler import zone_manager File "/home/salvatore/workspace/Openstack-xenapi-netinject/nova/scheduler/zone_manager.py", line 20, in <module> import novaclient ImportError: No module named novaclient