← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1190242] Re: addFloatingIp with empty IP address should raise a 404 not a 200

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

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

Title:
  addFloatingIp with empty IP address should raise a 404 not a 200

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  With Quantum the following request is valid and returns a 202 Accepted
  : POST
  http://10.1.59.157:8774/v2/$PROJECT_ID/servers/$server_id/action -d
  '{"addFloatingIp": {"address": ""}}'

  Notice the empty IP Address. Quantum here associates the first free
  floating IP address in the pool.

  But with Nova Network, the exact same request returns a 404 Not Found,
  as the empty IP address is not found in the pool.

  There's a mismatch in the 2 API which causes the Tempest test
  tempest.api.compute.floating_ips.test_floating_ips_actions:FloatingIPsTestJSON.test_associate_ip_to_server_without_passing_floating_ip
  to fail.

  I am working on a patch for Quantum that will return a 404 if the
  floating IP address is empty.

  Jordan

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