← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2073464] [NEW] [DHCP] Race condition when creating a network

 

Public bug reported:

When a new network is created, the code [1] first calls the DHCP driver
"disable" and then it calls "enable". That sometimes creates a race
condition where the namespace is deleted (including the existing DHCP
port). This section, that was supposed to be deleted after Zed release,
should be removed to avoid the mentioned race condition. For example,
for the network "79caa1c4-6e26-49c9-87b3-b8d5add13dbd" in [1], the DHCP
agent first deletes the namespace and then tries to create it again,
including the DHCP port.

Sometimes that leads to an incomplete state where the DHCP is not
present (the DHCP port must be present since the DHCP namespace
creation).

[1]https://paste.opendev.org/show/bueaIUiPNoAMuS7xnfmR/
[2]https://paste.opendev.org/show/bYBI4vMG9j4MXGyIpXyA/

** Affects: neutron
     Importance: High
     Assignee: Rodolfo Alonso (rodolfo-alonso-hernandez)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Rodolfo Alonso (rodolfo-alonso-hernandez)

** 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/2073464

Title:
  [DHCP] Race condition when creating a network

Status in neutron:
  New

Bug description:
  When a new network is created, the code [1] first calls the DHCP
  driver "disable" and then it calls "enable". That sometimes creates a
  race condition where the namespace is deleted (including the existing
  DHCP port). This section, that was supposed to be deleted after Zed
  release, should be removed to avoid the mentioned race condition. For
  example, for the network "79caa1c4-6e26-49c9-87b3-b8d5add13dbd" in
  [1], the DHCP agent first deletes the namespace and then tries to
  create it again, including the DHCP port.

  Sometimes that leads to an incomplete state where the DHCP is not
  present (the DHCP port must be present since the DHCP namespace
  creation).

  [1]https://paste.opendev.org/show/bueaIUiPNoAMuS7xnfmR/
  [2]https://paste.opendev.org/show/bYBI4vMG9j4MXGyIpXyA/

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



Follow ups