I have been getting this on my devstack install as well, but it doesn't happen in jenkins or on my mac. I'm wondering if there is a different version of a library in ubuntu.
Vish On Jan 5, 2012, at 1:10 PM, Yun Mao wrote: > I've always thought that whatever committed to the master branch has > already passed the unit tests by default. But I saw some failed tests > when I check out the master branch. Is it because I have a bad setting > on my Ubuntu 11.10 or it is not strictly enforced that everything must > pass run_test.sh before getting in? > > For example, here is the errors I have now with run_tests.sh > > > ====================================================================== > FAIL: test_instance_set_to_error_on_uncaught_exception > (nova.tests.test_compute.ComputeTestCase) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/reserve/maoy/git/nova/nova/tests/test_compute.py", line 840, > in test_instance_set_to_error_on_uncaught_exception > instance_uuid) > File "/usr/lib/python2.7/unittest/case.py", line 471, in assertRaises > callableObj(*args, **kwargs) > File "/reserve/maoy/git/nova/nova/exception.py", line 154, in wrapped > payload) > File "/reserve/maoy/git/nova/nova/notifier/api.py", line 112, in notify > payload = utils.to_primitive(payload, convert_instances=True) > File "/reserve/maoy/git/nova/nova/utils.py", line 708, in to_primitive > level=level) > File "/reserve/maoy/git/nova/nova/utils.py", line 702, in to_primitive > level=level)) > File "/reserve/maoy/git/nova/nova/utils.py", line 723, in to_primitive > level=level + 1) > File "/reserve/maoy/git/nova/nova/utils.py", line 708, in to_primitive > level=level) > File "/reserve/maoy/git/nova/nova/utils.py", line 723, in to_primitive > level=level + 1) > File "/reserve/maoy/git/nova/nova/utils.py", line 708, in to_primitive > level=level) > File "/reserve/maoy/git/nova/nova/utils.py", line 713, in to_primitive > return to_primitive(dict(value.iteritems()), > File "/usr/lib/python2.7/dist-packages/mox.py", line 985, in __call__ > expected_method = self._VerifyMethodCall() > File "/usr/lib/python2.7/dist-packages/mox.py", line 1032, in > _VerifyMethodCall > expected = self._PopNextMethod() > File "/usr/lib/python2.7/dist-packages/mox.py", line 1018, in _PopNextMethod > raise UnexpectedMethodCallError(self, None) > UnexpectedMethodCallError: Unexpected method call Stub for <bound > method API.allocate_for_instance of <nova.network.api.API object at > 0x215a8c50>>.iteritems() -> None > -------------------- >> begin captured logging << -------------------- > 2012-01-05 15:35:56,944 AUDIT nova.compute.manager > [5cd8ce6d-c9ab-46c6-8a37-f61e2d3f978d fake fake] instance > badcb818-7c26-4c5d-9e6c-7ac19586fd91: starting... > 2012-01-05 15:35:57,052 ERROR nova.compute.manager [-] Instance > badcb818-7c26-4c5d-9e6c-7ac19586fd91 failed network setup > (nova.compute.manager): TRACE: Traceback (most recent call last): > (nova.compute.manager): TRACE: File > "/reserve/maoy/git/nova/nova/compute/manager.py", line 473, in > _allocate_network > (nova.compute.manager): TRACE: requested_networks=requested_networks) > (nova.compute.manager): TRACE: File > "/usr/lib/python2.7/dist-packages/mox.py", line 993, in __call__ > (nova.compute.manager): TRACE: raise expected_method._exception > (nova.compute.manager): TRACE: QuantumServerException > (nova.compute.manager): TRACE: > --------------------- >> end captured logging << --------------------- > > ====================================================================== > FAIL: test_network_is_deallocated_on_spawn_failure > (nova.tests.test_compute.ComputeTestCase) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/reserve/maoy/git/nova/nova/tests/test_compute.py", line 862, > in test_network_is_deallocated_on_spawn_failure > instance['uuid']) > File "/usr/lib/python2.7/unittest/case.py", line 471, in assertRaises > callableObj(*args, **kwargs) > File "/reserve/maoy/git/nova/nova/exception.py", line 154, in wrapped > payload) > File "/reserve/maoy/git/nova/nova/notifier/api.py", line 112, in notify > payload = utils.to_primitive(payload, convert_instances=True) > File "/reserve/maoy/git/nova/nova/utils.py", line 708, in to_primitive > level=level) > File "/reserve/maoy/git/nova/nova/utils.py", line 702, in to_primitive > level=level)) > File "/reserve/maoy/git/nova/nova/utils.py", line 723, in to_primitive > level=level + 1) > File "/reserve/maoy/git/nova/nova/utils.py", line 708, in to_primitive > level=level) > File "/reserve/maoy/git/nova/nova/utils.py", line 713, in to_primitive > return to_primitive(dict(value.iteritems()), > File "/usr/lib/python2.7/dist-packages/mox.py", line 985, in __call__ > expected_method = self._VerifyMethodCall() > File "/usr/lib/python2.7/dist-packages/mox.py", line 1032, in > _VerifyMethodCall > expected = self._PopNextMethod() > File "/usr/lib/python2.7/dist-packages/mox.py", line 1018, in _PopNextMethod > raise UnexpectedMethodCallError(self, None) > UnexpectedMethodCallError: Unexpected method call Stub for <bound > method ComputeManager._setup_block_device_mapping of > <nova.compute.manager.ComputeManager object at > 0x22aabc50>>.iteritems() -> None > -------------------- >> begin captured logging << -------------------- > 2012-01-05 15:35:59,230 AUDIT nova.compute.manager > [3106077e-df25-411e-b975-39b8ffab62c2 fake fake] instance > 513b0848-f813-47a9-81a2-fbc61c45f447: starting... > 2012-01-05 15:35:59,283 DEBUG nova.compute.manager [-] Skipping > network allocation for instance 513b0848-f813-47a9-81a2-fbc61c45f447 > from (pid=2014) _allocate_network > /reserve/maoy/git/nova/nova/compute/manager.py:464 > 2012-01-05 15:35:59,341 ERROR nova.compute.manager [-] Instance > 513b0848-f813-47a9-81a2-fbc61c45f447 failed block device setup > (nova.compute.manager): TRACE: Traceback (most recent call last): > (nova.compute.manager): TRACE: File > "/reserve/maoy/git/nova/nova/compute/manager.py", line 487, in > _prep_block_device > (nova.compute.manager): TRACE: mapping = > self._setup_block_device_mapping(context, instance) > (nova.compute.manager): TRACE: File > "/usr/lib/python2.7/dist-packages/mox.py", line 993, in __call__ > (nova.compute.manager): TRACE: raise expected_method._exception > (nova.compute.manager): TRACE: RemoteError: Remote error: > (nova.compute.manager): TRACE: . > (nova.compute.manager): TRACE: > --------------------- >> end captured logging << --------------------- > > ---------------------------------------------------------------------- > Ran 2276 tests in 358.087s > > FAILED (SKIP=4, failures=2) > Slowest 5 tests took 33.38 secs: > 9.36 test_too_many_cores > (nova.tests.scheduler.test_scheduler.SimpleDriverTestCase) > 7.39 test_create_and_rebuild_server > (nova.tests.integrated.test_servers.ServersTest) > 5.62 test_too_many_cores_no_queue > (nova.tests.scheduler.test_scheduler.MultiDriverTestCase) > 5.61 test_create_multiple_servers > (nova.tests.integrated.test_servers.ServersTest) > 5.41 test_too_many_cores_no_queue > (nova.tests.scheduler.test_scheduler.SimpleDriverTestCase) > > _______________________________________________ > Mailing list: https://launchpad.net/~openstack > Post to : openstack@lists.launchpad.net > Unsubscribe : https://launchpad.net/~openstack > More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp