fixed_ips table is not cleaned up by default using FlatDHCPManager
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Vish Ishaya |
Bug Description
In flat dhcp manager, the fixed_ips table is not cleaned up:
henrichrubin: vishy: if you try a bunch of instances that never get to the running state, then terminate the instance, they are never cleaned from the fixed_ips table. so you would run out of ips eventually, even though you have no instances running. shouldn't there be a mechanism to clean this table up if the instance isn't running or is terminated?
that is a pretty specific use case
[5:03pm] vishy: henrichrubin: they are cleaned up after 10 minutes or so
[5:03pm] vishy: by default
[5:03pm] henrichrubin: or send a warning to the user that they need to clean up
[5:03pm] vishy: henrichrubin: at least they are supposed to be
[5:04pm] henrichrubin: vishy: i am not sure about the default time. the old fixed_ips were still there from yesterday.
[5:04pm] vishy: henrichrubin: the ones that no longer had a network?
[5:05pm] henrichrubin: vishy: yes. plus there were ones that did have a network that i killed this morning.
[5:05pm] vishy: henrichrubin: hmm let me check something, there may be a bug with flatdhcp
[5:06pm] vishy: henrichrubin: you are correct, the disassociate only happens in vlan manage
[5:07pm] vishy: henrichrubin: the periodic_tasks code needs to be copied over, and made to work without a host, if you report it as a bug i will make a fix.
[5:07pm] henrichrubin: vishy: ok, i'll file a bug report.
Related branches
- Devin Carlen (community): Approve
- Soren Hansen (community): Approve
-
Diff: 58 lines (+15/-12)1 file modifiednova/network/manager.py (+15/-12)
summary: |
- fixed_ips table is not cleaned up by default + fixed_ips table is not cleaned up by default using FlatDHCPManager |
Changed in nova: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Vish Ishaya (vishvananda) |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.2 |
status: | Fix Committed → Fix Released |