← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1649852] Re: Concurrent calls to DELETE os-floating-ips can raise uncaught neutronclient.common.exceptions.NotFound

 

** Changed in: nova
     Assignee: Matt Riedemann (mriedem) => Guillaume Espanel (guillaume-espanel)

** Changed in: nova
   Importance: Undecided => Medium

** Also affects: nova/ocata
   Importance: Undecided
       Status: New

** Changed in: nova/ocata
       Status: New => Confirmed

** Changed in: nova/ocata
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1649852

Title:
  Concurrent calls to DELETE os-floating-ips can raise uncaught
  neutronclient.common.exceptions.NotFound

Status in OpenStack Compute (nova):
  In Progress
Status in OpenStack Compute (nova) ocata series:
  Confirmed

Bug description:
  Description
  ============

  Concurrent calls to DELETE os-floating-ips/floating-ip-id can cause neutronclient to raise
  a neutronclient.common.exceptions.NotFound exception uncaught by Nova which in turn returns
  a 500 Error.

  Steps to reproduce
  ===================

  Tested on a mitaka devstack :

   - source openrc
   - run this humble script :

  FIP_ID=`nova floating-ip-create | grep public | awk '{print($2)}'`
  TENANT_ID=`keystone token-get | grep " tenant_id " | awk '{print($4)}'`
  TOKEN_ID=`keystone token-get | grep " id " | awk '{print($4)}'`

  curl -g -i -X DELETE http://127.0.0.1:8774/v2.1/$TENANT_ID/os-floating-ips/$FIP_ID -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: $TOKEN_ID"&
  curl -g -i -X DELETE http://127.0.0.1:8774/v2.1/$TENANT_ID/os-floating-ips/$FIP_ID -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: $TOKEN_ID"&
  curl -g -i -X DELETE http://127.0.0.1:8774/v2.1/$TENANT_ID/os-floating-ips/$FIP_ID -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: $TOKEN_ID"&
  curl -g -i -X DELETE http://127.0.0.1:8774/v2.1/$TENANT_ID/os-floating-ips/$FIP_ID -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: $TOKEN_ID"

  
  Expected result
  ================

  First call to go trough should return a 202, and all other calls
  should probably return 404 or 409 if deletion is in progress but not
  500.

  
  Actual result
  ==============

  Some calls to DELETE get a 500 Error response.

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


References