Re: [Openstack] help me with the xenapi test

2012-07-02 Thread Yong Sheng Gong
Many thanks for the findings.The Jenkins pass now.I removed the setAttr(FLAGS, 'injected', True)-Salvatore Orlando wrote: -To: Yong Sheng Gong/China/IBM@IBMCNFrom: Salvatore Orlando Date: 07/03/2012 06:29AMCc: "openstack@lists.launchpad.net" Subject: Re: [Openstack] help me with the xenapi

Re: [Openstack] help me with the xenapi test

2012-07-02 Thread Yong Sheng Gong
But I think we should make our test cases environment agnostic.I mean we can set the injected into False since our test cases can fail if it is True.Forget it if I don't get the point.ThanksYong Sheng Gong-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: "openstack@list

Re: [Openstack] help me with the xenapi test

2012-07-02 Thread Salvatore Orlando
Sincere apologies for cluttering this thread with another post. 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. I don't know exactly why, and probably that does not even matter, as setattr globally alters the valu

Re: [Openstack] help me with the xenapi test

2012-07-02 Thread Salvatore Orlando
Hi Yong, 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. It seems that test_quantumv2 is the root cause. If you look at gerrit, Jenkins started complaining when you first added that module

Re: [Openstack] help me with the xenapi test

2012-07-02 Thread Johannes Erdfelt
On Mon, Jul 02, 2012, Salvatore Orlando wrote: > 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. It's not when the

Re: [Openstack] help me with the xenapi test

2012-07-02 Thread Salvatore Orlando
Hi Yong, 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. Do you see the failures also on your dev machine? Salvatore On

[Openstack] help me with the xenapi test

2012-07-02 Thread Yong Sheng Gong
hi,In my change at https://review.openstack.org/#/c/8916/, some xenapi tests alway fail:>>><<< nova.tests.test_xenapi.XenAPIMigrateInstance.test_finish_migrate Loading...10 sec1>>><<< nova.tests.test_xenapi.XenAPIMigrateInstance.test_finish_migrate_no_local_storage Loading...10 sec1>>><<< nova.tes