Public bug reported:

The previous bug[1]  highlighted that useFixture in testtools and
fixtures ensure fixture cleanup ONLY  if their setUp succeed[2].
Typically in bug[1], the cleanup of ProcessFixture resources are not
done if self.start() in setUp[2].

We can solve the bug[1] locally but we need a way to ensure for every
neutron fixture that their cleanup is done even if their setUp fails.

A parallel work is done in testtools/fixtures in order to address such
limitation of useFixture


[1] https://bugs.launchpad.net/neutron/+bug/1453888
[2] fixtures bug: https://bugs.launchpad.net/python-fixtures/+bug/1456353
      testtools bug: https://bugs.launchpad.net/testtools/+bug/1456370
[3] 
https://github.com/openstack/neutron/blob/e2cfd87ab4abab95d713fa39a576ca7e41bce5c2/neutron/tests/fullstack/fullstack_fixtures.py#L46-L48

** Affects: neutron
     Importance: Undecided
     Assignee: Cedric Brandily (cbrandily)
         Status: In Progress


** Tags: functional-tests

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1464410

Title:
  Neutron fixtures are not clean up if their setUp fails

Status in OpenStack Neutron (virtual network service):
  In Progress

Bug description:
  The previous bug[1]  highlighted that useFixture in testtools and
  fixtures ensure fixture cleanup ONLY  if their setUp succeed[2].
  Typically in bug[1], the cleanup of ProcessFixture resources are not
  done if self.start() in setUp[2].

  We can solve the bug[1] locally but we need a way to ensure for every
  neutron fixture that their cleanup is done even if their setUp fails.

  A parallel work is done in testtools/fixtures in order to address such
  limitation of useFixture

  
  [1] https://bugs.launchpad.net/neutron/+bug/1453888
  [2] fixtures bug: https://bugs.launchpad.net/python-fixtures/+bug/1456353
        testtools bug: https://bugs.launchpad.net/testtools/+bug/1456370
  [3] 
https://github.com/openstack/neutron/blob/e2cfd87ab4abab95d713fa39a576ca7e41bce5c2/neutron/tests/fullstack/fullstack_fixtures.py#L46-L48

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1464410/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to