← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1622694] [NEW] [FWaaS] Unit test race condition in creating/updating firewall

 

Public bug reported:

The FWaaS unit test
neutron_fwaas.tests.unit.services.firewall.test_fwaas_plugin.TestFirewallPluginBase.test_update_firewall_shared_fails_for_non_admin
creates a firewall, and then tries an update.  If that update occurs
before the creation is completed, then the router is still in
PENDING_UPDATE state and a successful return code is returned.  Since
the test is expecting exc.HTTPForbidden.code (HTTP 403), this means the
test fails.  This looks like a race condition, but it should be handled
properly.

** Affects: neutron
     Importance: Medium
         Status: Confirmed


** Tags: fwaas

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

Title:
  [FWaaS] Unit test race condition in creating/updating firewall

Status in neutron:
  Confirmed

Bug description:
  The FWaaS unit test
  neutron_fwaas.tests.unit.services.firewall.test_fwaas_plugin.TestFirewallPluginBase.test_update_firewall_shared_fails_for_non_admin
  creates a firewall, and then tries an update.  If that update occurs
  before the creation is completed, then the router is still in
  PENDING_UPDATE state and a successful return code is returned.  Since
  the test is expecting exc.HTTPForbidden.code (HTTP 403), this means
  the test fails.  This looks like a race condition, but it should be
  handled properly.

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


Follow ups