os-fixed-ips api does not take care deleted ip address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Zhi Yan Liu |
Bug Description
1. Instance info:
lzy@host:~$ nova list
+------
| ID | Name | Status | Networks |
+------
| 3a312912-
+------
2. fixed ip info query request:
curl -i "http://
3. HTTP response:
HTTP/1.1 404 Not Found
Content-Length: 79
Content-Type: application/json; charset=UTF-8
X-Compute-
Date: Sat, 09 Mar 2013 11:26:33 GMT
{"itemNotFound": {"message": "Fixed IP 9.9.0.3 has been deleted", "code": 404}}
4. Deleted fixed ip address in db:
mysql> select * from fixed_ips where address = '9.9.0.3';
+------
| created_at | updated_at | deleted_at | deleted | id | address | network_id | allocated | leased | reserved | virtual_
+------
| 2012-11-27 08:45:43 | 2012-11-27 08:47:26 | 2012-11-27 09:37:43 | 1 | 4 | 9.9.0.3 | 1 | 0 | 0 | 0 | 1 | NULL | NULL |
| 2012-11-27 09:38:38 | 2013-03-05 01:32:47 | NULL | 0 | 36 | 9.9.0.3 | 2 | 1 | 1 | 0 | 10 | NULL | 3a312912-
+------
2 rows in set (0.00 sec)
5. Except fixed ip info result:
HTTP/1.1 200 OK
X-Compute-
Content-Type: application/json
Content-Length: 113
Date: Sat, 09 Mar 2013 11:28:01 GMT
{"fixed_ip": {"cidr": "9.9.0.0/24", "hostname": "lzy", "host": "dev-compute-
6. Analisys
The defect in os-fixed-ips api extension, it not take care the ips which marked 'deleted'.
Changed in nova: | |
assignee: | nobody → Zhi Yan Liu (lzy-dev) |
status: | New → In Progress |
Changed in nova: | |
milestone: | none → grizzly-rc1 |
importance: | Undecided → High |
description: | updated |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-rc1 → 2013.1 |
Fix proposed to branch: master /review. openstack. org/23993
Review: https:/