Sincere apologies for cluttering this thread with another post.<div><br></div><div>I think I probably found the root cause of the test failure. It seems that a setattr on FLAGS.flat_injected was causing the problem.</div><div>
I don't know exactly why, and probably that does not even matter, as setattr globally alters the value of flag, and we probably don't want this to happen anyway.</div><div>The value of the flag can be altered for a single test case using the following syntax: <span style="font-family:'Bitstream Vera Sans Mono',monospace;font-size:13px">self.flags(flat_injected=True)</span></div>
<div><br></div><div>The full diff for test_quantumv2.py - which executes correctly the tests - is available here: <a href="http://paste.openstack.org/show/19204/">http://paste.openstack.org/show/19204/</a><br><br>Regards,</div>
<div>Salvatore</div><div><br><div class="gmail_quote">On 2 July 2012 22:53, Salvatore Orlando <span dir="ltr"><<a href="mailto:sorlando@nicira.com" target="_blank">sorlando@nicira.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Yong,<div><br></div><div>I have been able to reproduce the error on my dev machine - I couldn't earlier on because I was tesyinh the test_xenapi module only, and no failure occured.</div><div><br></div><div>It seems that test_quantumv2 is the root cause. If you look at gerrit, Jenkins started complaining when you first added that module. </div>

<div>Indeed, if you rename it to _test_quantumv2, the error disappears.</div><div><br></div><div>I guess the problem is that quantum_v2 apparently is the only test modules whose test cases do not inherit from nova.test. I am trying to understand what exactly causes then the failure in test_xenapi. My gut says it must have something to do with mox, but I will let you know soon - unfortunately each test run takes almost 10 minutes!</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>Salvatore</div></font></span><div class="HOEnZb"><div class="h5"><div><br><div class="gmail_quote">On 2 July 2012 19:18, Salvatore Orlando <span dir="ltr"><<a href="mailto:sorlando@nicira.com" target="_blank">sorlando@nicira.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Yong, <div><br></div><div>I do not see any obvious reason for these failures, especially as they appear to occur when the vdi is created. If I recall it correctly, that code is stubbed out for unit tests, and it does not seem your patch un-stubs it.</div>


<div>Do you see the failures also on your dev machine?</div><div><br></div><div>Salvatore<br><br><div class="gmail_quote"><div><div>On 2 July 2012 14:30, Yong Sheng Gong <span dir="ltr"><<a href="mailto:gongysh@cn.ibm.com" target="_blank">gongysh@cn.ibm.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif"> <span>hi,<br><br>
</span>In my change at <a href="https://review.openstack.org/#/c/8916/" target="_blank">https://review.openstack.org/#/c/8916/</a>, some xenapi tests alway fail:<br>
<table><tbody><tr><td><a>>>></a><a><<<</a> <a href="https://jenkins.openstack.org/job/gate-nova-python26/1386/testReport/nova.tests.test_xenapi/XenAPIMigrateInstance/test_finish_migrate/" target="_blank">nova.tests.test_xenapi.XenAPIMigrateInstance.test_finish_migrate</a> <div>


Loading...</div></td><td style="text-align:right">10 sec</td><td style="text-align:right"><a href="https://jenkins.openstack.org/job/gate-nova-python26/1386/" target="_blank">1</a></td></tr><tr><td><a>>>></a><a><<<</a> <a href="https://jenkins.openstack.org/job/gate-nova-python26/1386/testReport/nova.tests.test_xenapi/XenAPIMigrateInstance/test_finish_migrate_no_local_storage/" target="_blank">nova.tests.test_xenapi.XenAPIMigrateInstance.test_finish_migrate_no_local_storage</a> <div>


Loading...</div></td><td style="text-align:right">10 sec</td><td style="text-align:right"><a href="https://jenkins.openstack.org/job/gate-nova-python26/1386/" target="_blank">1</a></td></tr><tr><td><a>>>></a><a><<<</a> <a href="https://jenkins.openstack.org/job/gate-nova-python26/1386/testReport/nova.tests.test_xenapi/XenAPIMigrateInstance/test_finish_migrate_no_resize_vdi/" target="_blank">nova.tests.test_xenapi.XenAPIMigrateInstance.test_finish_migrate_no_resize_vdi</a> <div>


Loading...</div></td><td style="text-align:right">10 sec</td><td style="text-align:right"><a href="https://jenkins.openstack.org/job/gate-nova-python26/1386/" target="_blank">1</a></td></tr><tr><td><a>>>></a><a><<<</a> <a href="https://jenkins.openstack.org/job/gate-nova-python26/1386/testReport/nova.tests.test_xenapi/XenAPIMigrateInstance/test_revert_migrate/" target="_blank">nova.tests.test_xenapi.XenAPIMigrateInstance.test_revert_migrate</a> <br>


<br>Who can help me find the reason?<br>Thanks<span><font color="#888888"><br>Yong Sheng Gong<br></font></span></td></tr></tbody></table></font>

<br></div></div>_______________________________________________<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" target="_blank">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>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>