[nova-manage][floating-ips] There is no way to delete floating ips pool.
Bug #1022237 reported by
David Naori
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Mark McLoughlin |
Bug Description
Description of problem:
While it is possible to create new pools its impossible to delete them.
# nova-manage floating create --ip_range=
# nova-manage floating delete --ip_range=
(There is no pool arg)
# nova floating-
+-------+
| name |
+-------+
| X |
| nova |
+-------+
Version-Release number of selected component (if applicable):
openstack-
How reproducible:
100%
tags: | added: network nova-manage |
Changed in nova: | |
milestone: | none → folsom-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-3 → 2012.2 |
To post a comment you must log in.
Yep, the problem here seems to be that we include a pool in the listing even if all floating IPs in it have been deleted
This simple change fixes it for me:
def floating_ ip_get_ pools(context) : query(models. FloatingIp. pool).distinct( ): context, models. FloatingIp. pool).distinct( ):
pools. append( {'name' : result[0]})
session = get_session()
pools = []
- for result in session.
+ for result in model_query(
return pools