Re: [Quantum-core] Unit test errors

2013-02-06 Thread Sumit Naiksatam
Thanks much Nachi, I will try it out! On Wed, Feb 6, 2013 at 12:24 PM, Nachi Ueno wrote: > Hi Sumit > > Here is script on CI. so this may help you simulate the ci env. > https://github.com/openstack-infra/config/tree/master/modules/jenkins/files/slave_scripts > > I faced similar problem, in that

Re: [Quantum-core] Unit test errors

2013-02-06 Thread Nachi Ueno
Hi Sumit Here is script on CI. so this may help you simulate the ci env. https://github.com/openstack-infra/config/tree/master/modules/jenkins/files/slave_scripts I faced similar problem, in that case module version was different. 2013/2/6 Sumit Naiksatam : > Thanks guys for the suggestions, muc

Re: [Quantum-core] Unit test errors

2013-02-06 Thread Sumit Naiksatam
Thanks guys for the suggestions, much appreciated. I will go back and check this, but I am not hitting these errors in my local setup, so wondering what Jenkins is doing differently. On Wed, Feb 6, 2013 at 11:59 AM, Maru Newby wrote: > It's worth noting that tearDown can fail if an error occurs i

Re: [Quantum-core] Unit test errors

2013-02-06 Thread Maru Newby
It's worth noting that tearDown can fail if an error occurs in setUp. For this reason, it's much preferable to use unittest2/testtools addCleanup() facility, since functions registered this way will be called even if an exception occurs in setUp. Reference: http://docs.python.org/2/library/un

Re: [Quantum-core] Unit test errors

2013-02-06 Thread Dan Wendlandt
yeah, when these issues happen, its almost always that one plugin (bigswitch in this case) modified global state, but forgot to restore it. Usually there is a model where you save any state you muck with in setUp(), modify it during tests, and restore it in tearDown() dan On Wed, Feb 6, 2013 at

Re: [Quantum-core] Unit test errors

2013-02-06 Thread Nachi Ueno
Hi Sumit I have commented on review comment https://review.openstack.org/#/c/21285/ I faced same problem. it was because of I haven't have teardown method for cleanup global variable. Thanks Nachi 2013/2/6 Sumit Naiksatam : > I am not sure what's happening here in Jenkins. When the following > L

Re: [Quantum-core] Unit test errors

2013-02-06 Thread Sumit Naiksatam
I am not sure what's happening here in Jenkins. When the following Linux Bridge Plugin test is run, it seems to be loading the BigSwitch plugin: ft26.1: quantum.tests.unit.linuxbridge.test_lb_db.NetworkBindingsTest.test_add_network_bindingTraceback (most recent call last): File "/home/jenkins/

Re: [Quantum-core] Unit test errors

2013-02-06 Thread Gary Kotton
Hi, My bad. The tests look OK. Thanks Gary On 02/06/2013 11:18 AM, Gary Kotton wrote: Hi, I am not sure. I know that I am working on a simple bug fix at the moment and there are a ton of print outs when the test cases run. This seems to be related to the latest openstack oslo updates. In the p

Re: [Quantum-core] Unit test errors

2013-02-06 Thread Gary Kotton
Hi, I am not sure. I know that I am working on a simple bug fix at the moment and there are a ton of print outs when the test cases run. This seems to be related to the latest openstack oslo updates. In the past the logging was contained in the config module and this was moved out. Day to day m

[Quantum-core] Unit test errors

2013-02-05 Thread Sumit Naiksatam
Hi, I posted a patch (https://review.openstack.org/#/c/21285) few hours back and I am repeatedly seeing a bunch of tests failing outside of my patch: http://logs.openstack.org/21285/2/check/gate-quantum-python26/4032/nose_results.html.gz I noticed Jenkins fail on some other patches too. Just won