Yun,<div><br></div><div>I just ran the unit tests on mac via '.run_test.sh' and could not reproduce your error.  But then again I was using python 2.7 and not python 2.6.</div><div><br></div><div>best,</div><div>~Joe<br>

<br><div class="gmail_quote">On Mon, May 7, 2012 at 9:01 AM, Yun Mao <span dir="ltr"><<a href="mailto:yunmao@gmail.com" target="_blank">yunmao@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi guys,<br>
<br>
I can't get my master branch freshly off github to pass the<br>
run_test.sh script. The errors are as follows. Tried on mac and ubuntu<br>
12.04.. Any ideas? Thanks,<br>
<br>
Yun<br>
<br>
<br>
======================================================================<br>
ERROR: test_json (nova.tests.test_log.JSONFormatterTestCase)<br>
----------------------------------------------------------------------<br>
Traceback (most recent call last):<br>
  File "/Users/maoy/git/nova/nova/tests/test_log.py", line 183, in test_json<br>
    data = json.loads(self.stream.getvalue())<br>
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/__init__.py",<br>
line 307, in loads<br>
    return _default_decoder.decode(s)<br>
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py",<br>
line 319, in decode<br>
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())<br>
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py",<br>
line 338, in raw_decode<br>
    raise ValueError("No JSON object could be decoded")<br>
ValueError: No JSON object could be decoded<br>
-------------------- >> begin captured logging << --------------------<br>
test-json: DEBUG: This is a log line<br>
--------------------- >> end captured logging << ---------------------<br>
<br>
======================================================================<br>
ERROR: test_json_exception (nova.tests.test_log.JSONFormatterTestCase)<br>
----------------------------------------------------------------------<br>
Traceback (most recent call last):<br>
  File "/Users/maoy/git/nova/nova/tests/test_log.py", line 207, in<br>
test_json_exception<br>
    data = json.loads(self.stream.getvalue())<br>
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/__init__.py",<br>
line 307, in loads<br>
    return _default_decoder.decode(s)<br>
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py",<br>
line 319, in decode<br>
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())<br>
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py",<br>
line 338, in raw_decode<br>
    raise ValueError("No JSON object could be decoded")<br>
ValueError: No JSON object could be decoded<br>
-------------------- >> begin captured logging << --------------------<br>
test-json: ERROR: This is exceptional<br>
Traceback (most recent call last):<br>
  File "/Users/maoy/git/nova/nova/tests/test_log.py", line 203, in<br>
test_json_exception<br>
    raise Exception('This is exceptional')<br>
Exception: This is exceptional<br>
--------------------- >> end captured logging << ---------------------<br>
<br>
======================================================================<br>
FAIL: test_deserialize_remote_exception<br>
(nova.tests.rpc.test_common.RpcCommonTestCase)<br>
----------------------------------------------------------------------<br>
Traceback (most recent call last):<br>
  File "/Users/maoy/git/nova/nova/tests/rpc/test_common.py", line 98,<br>
in test_deserialize_remote_exception<br>
    self.assertTrue('test message' in unicode(after_exc))<br>
AssertionError<br>
<br>
======================================================================<br>
FAIL: test_deserialize_remote_exception_user_defined_exception<br>
(nova.tests.rpc.test_common.RpcCommonTestCase)<br>
----------------------------------------------------------------------<br>
Traceback (most recent call last):<br>
  File "/Users/maoy/git/nova/nova/tests/rpc/test_common.py", line 127,<br>
in test_deserialize_remote_exception_user_defined_exception<br>
    self.assertTrue('raise FakeUserDefinedException' in unicode(after_exc))<br>
AssertionError<br>
<br>
======================================================================<br>
FAIL: test_call_converted_exception (nova.tests.rpc.test_kombu.RpcKombuTestCase)<br>
----------------------------------------------------------------------<br>
Traceback (most recent call last):<br>
  File "/Users/maoy/git/nova/nova/test.py", line 87, in _skipper<br>
    func(*args, **kw)<br>
  File "/Users/maoy/git/nova/nova/tests/rpc/test_kombu.py", line 369,<br>
in test_call_converted_exception<br>
    self.assertTrue(value in unicode(exc))<br>
AssertionError:<br>
-------------------- >> begin captured logging << --------------------<br>
nova.rpc.common: INFO: Connected to AMQP server on localhost:5672<br>
nova.rpc.common: INFO: Connected to AMQP server on localhost:5672<br>
nova.rpc.amqp: ERROR: Exception during message handling<br>
2012-05-07 11:54:32 TRACE nova.rpc.amqp Traceback (most recent call last):<br>
2012-05-07 11:54:32 TRACE nova.rpc.amqp   File<br>
"/Users/maoy/git/nova/nova/rpc/amqp.py", line 263, in _process_data<br>
2012-05-07 11:54:32 TRACE nova.rpc.amqp     rval =<br>
node_func(context=ctxt, **node_args)<br>
2012-05-07 11:54:32 TRACE nova.rpc.amqp   File<br>
"/Users/maoy/git/nova/nova/tests/rpc/common.py", line 264, in<br>
fail_converted<br>
2012-05-07 11:54:32 TRACE nova.rpc.amqp     raise<br>
exception.ConvertedException(explanation=value)<br>
2012-05-07 11:54:32 TRACE nova.rpc.amqp ConvertedException: This is<br>
the exception message<br>
2012-05-07 11:54:32 TRACE nova.rpc.amqp<br>
nova.rpc.common: INFO: Connected to AMQP server on localhost:5672<br>
nova.rpc.common: ERROR: Returning exception None to caller<br>
nova.rpc.common: ERROR: ['Traceback (most recent call last):\n', '<br>
File "/Users/maoy/git/nova/nova/rpc/amqp.py", line 263, in<br>
_process_data\n    rval = node_func(context=ctxt, **node_args)\n', '<br>
File "/Users/maoy/git/nova/nova/tests/rpc/common.py", line 264, in<br>
fail_converted\n    raise<br>
exception.ConvertedException(explanation=value)\n',<br>
'ConvertedException: This is the exception message\n']<br>
nova.rpc.amqp: ERROR: Exception during message handling<br>
2012-05-07 11:54:32 TRACE nova.rpc.amqp Traceback (most recent call last):<br>
2012-05-07 11:54:32 TRACE nova.rpc.amqp   File<br>
"/Users/maoy/git/nova/nova/rpc/amqp.py", line 263, in _process_data<br>
2012-05-07 11:54:32 TRACE nova.rpc.amqp     rval =<br>
node_func(context=ctxt, **node_args)<br>
2012-05-07 11:54:32 TRACE nova.rpc.amqp   File<br>
"/Users/maoy/git/nova/nova/tests/rpc/common.py", line 264, in<br>
fail_converted<br>
2012-05-07 11:54:32 TRACE nova.rpc.amqp     raise<br>
exception.ConvertedException(explanation=value)<br>
2012-05-07 11:54:32 TRACE nova.rpc.amqp ConvertedException: This is<br>
the exception message<br>
2012-05-07 11:54:32 TRACE nova.rpc.amqp<br>
nova.rpc.common: ERROR: Returning exception None to caller<br>
nova.rpc.common: ERROR: ['Traceback (most recent call last):\n', '<br>
File "/Users/maoy/git/nova/nova/rpc/amqp.py", line 263, in<br>
_process_data\n    rval = node_func(context=ctxt, **node_args)\n', '<br>
File "/Users/maoy/git/nova/nova/tests/rpc/common.py", line 264, in<br>
fail_converted\n    raise<br>
exception.ConvertedException(explanation=value)\n',<br>
'ConvertedException: This is the exception message\n']<br>
--------------------- >> end captured logging << ---------------------<br>
<br>
======================================================================<br>
FAIL: test_get_rrd_server (nova.tests.test_xenapi.XenAPIVMTestCase)<br>
----------------------------------------------------------------------<br>
Traceback (most recent call last):<br>
  File "/Users/maoy/git/nova/nova/tests/test_xenapi.py", line 266, in<br>
test_get_rrd_server<br>
    self.assertEqual(server_info[1], 'myaddress')<br>
AssertionError: '' != 'myaddress'<br>
-------------------- >> begin captured logging << --------------------<br>
nova.virt.xenapi.fake: DEBUG: Calling getter session.get_this_host<br>
nova.virt.xenapi.fake: DEBUG: Calling getter host.get_uuid<br>
nova.virt.xenapi.fake: DEBUG: Calling getter host.get_by_uuid<br>
nova.virt.xenapi.fake: DEBUG: Calling getter host.get_record<br>
--------------------- >> end captured logging << ---------------------<br>
<br>
----------------------------------------------------------------------<br>
Ran 2862 tests in 375.443s<br>
<br>
FAILED (SKIP=31, errors=2, failures=4)<br>
Slowest 5 tests took 24.29 secs:<br>
    6.77       test_instance_initiated_shutdown_behavior<br>
(nova.tests.api.ec2.test_cloud.CloudTestCase)<br>
    5.71       test_create_and_rebuild_server<br>
(nova.tests.integrated.test_servers.ServersTest)<br>
    4.68       test_create_multiple_servers<br>
(nova.tests.integrated.test_servers.ServersTest)<br>
    3.61       test_stop_with_attached_volume<br>
(nova.tests.api.ec2.test_cloud.CloudTestCase)<br>
    3.52       test_deferred_delete<br>
(nova.tests.integrated.test_servers.ServersTest)<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div><br></div>