openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #13713
Re: Nova doesn't release ips when terminating instances
> Do you see something like the following every sixty seconds in your network.log?
>
> 2012-06-26 17:52:38 DEBUG nova.manager [-] Running periodic task FlatDHCPManager._disassociate_stale_fixed_ips from (pid=20993) periodic_tasks /opt/stack/nova/nova/manager.py:164
I do see these messages in the log (approximately once/minute, it looks like).
Here's a test:
- I boot and then deleted ('nova delete ...') an instance. This
leaves the database looking like this:
mysql> select created_at,updated_at,allocated,instance_id
from fixed_ips where allocated=0 and instance_id is not null;
+---------------------+---------------------+-----------+-------------+
| created_at | updated_at | allocated | instance_id |
+---------------------+---------------------+-----------+-------------+
| 2012-06-21 20:26:45 | 2012-06-26 18:56:32 | 0 | 2247 |
+---------------------+---------------------+-----------+-------------+
1 row in set (0.00 sec)
- I wait a while...
mysql> select utc_time();
+------------+
| utc_time() |
+------------+
| 19:08:24 |
+------------+
1 row in set (0.00 sec)
- But the ip still has an instance_id:
mysql> select created_at,updated_at,allocated,instance_id
from fixed_ips where allocated=0 and instance_id is not null;
+---------------------+---------------------+-----------+-------------+
| created_at | updated_at | allocated | instance_id |
+---------------------+---------------------+-----------+-------------+
| 2012-06-21 20:26:45 | 2012-06-26 18:56:32 | 0 | 2247 |
+---------------------+---------------------+-----------+-------------+
1 row in set (0.00 sec)
> fixed_ip_disassociate_timeout defaults to 600 so ips should be reclaimed
> after 10 minutes unless you have changed the value of that option.
That option appears to be set to the default of 600 seconds.
--
Lars Kellogg-Stedman <lars@xxxxxxxxxxxxxxxx> |
Senior Technologist | http://ac.seas.harvard.edu/
Academic Computing | http://code.seas.harvard.edu/
Harvard School of Engineering and Applied Sciences |
References