Associate an already associated Floating IP to server is returning 500 error code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Association of a floating IP to server where floating IP is already associated to another server is returning 500 error code
Steps to reproduce:
1. Create two instances 'a' and 'b' (wait till they are ACTIVE)
2. Create a floating IP
3. Associate floating IP to instance 'a'
4. Associate the same floating IP to instance 'b'
Expected result:
The error message should state that "This acction is not allowed as floating IP is already associted to 'a'." and should return 400 as it is a BadRequest.
Actual Result:
ERROR: Associate floating ip failed (HTTP 500)
LOG:
[muralik@
+------
| ID | Name | Status | Networks |
+------
| 9cc6e27b-
| ff0b8b93-
+------
[muralik@
REQ: curl -i http://
REQ BODY: {"addFloatingIp": {"address": "172.24.4.225"}}
RESP:{'date': 'Thu, 17 May 2012 11:13:13 GMT', 'status': '500', 'content-length': '74', 'content-type': 'application/json; charset=UTF-8', 'x-compute-
ERROR: Associate floating ip failed (HTTP 500)
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in nova: | |
status: | Confirmed → Fix Committed |
Changed in nova: | |
milestone: | none → folsom-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-2 → 2012.2 |
This looks to be fixed in nova at this point. When I try to reproduce, I get:
dan@devstack: ~/devstack$ nova add-floating-ip efec3700- 95ce-4cd9- 933e-2d1ab3f618 79 172.24.4.225 b7d9-48dc- 8b81-eaa9000251 08)
ERROR: floating ip is already associated (HTTP 400) (Request-ID: req-6bbb14d0-