← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1475938] [NEW] create_security_group code may get into endless loop

 

Public bug reported:

That damn piece of code again.

In some cases when network is created for tenant and default security group is created in the process, there may be concurrent network of sg creation happening.
That leads to a condition when the code fetches default sg, it's not there, tries to add it - it's already there, then it tries to fetch it again, but due to REPEATABLE READ isolation method, the query returns empty result.
As a result, such logic will hang in the loop forever.

** Affects: neutron
     Importance: High
     Assignee: Eugene Nikanorov (enikanorov)
         Status: New


** Tags: sg-fw

** Changed in: fuel
     Assignee: (unassigned) => Eugene Nikanorov (enikanorov)

** Tags added: sg-fw

** Project changed: fuel => neutron

** Changed in: neutron
   Importance: Undecided => High

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

Title:
  create_security_group code may get into endless loop

Status in neutron:
  New

Bug description:
  That damn piece of code again.

  In some cases when network is created for tenant and default security group is created in the process, there may be concurrent network of sg creation happening.
  That leads to a condition when the code fetches default sg, it's not there, tries to add it - it's already there, then it tries to fetch it again, but due to REPEATABLE READ isolation method, the query returns empty result.
  As a result, such logic will hang in the loop forever.

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


Follow ups