[nova-manage][floating] Deletion process should continue when failing due to ip not found.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Russell Bryant |
Bug Description
Description of problem:
nova-mange floating delete fails when deleting ip range and one of the addresses does not exists.
* The command should print a warning and continue deleting the rest of the range.
e.g:
# nova-manage floating create --ip_range=
# nova-manage floating delete 1.1.1.1
# nova-manage floating delete 1.1.1.0/24
2012-07-05 12:12:33 CRITICAL nova [req-74930806-
2012-07-05 12:12:33 TRACE nova Traceback (most recent call last):
2012-07-05 12:12:33 TRACE nova File "/usr/bin/
2012-07-05 12:12:33 TRACE nova main()
2012-07-05 12:12:33 TRACE nova File "/usr/bin/
2012-07-05 12:12:33 TRACE nova fn(*fn_args, **fn_kwargs)
2012-07-05 12:12:33 TRACE nova File "/usr/bin/
2012-07-05 12:12:33 TRACE nova str(address))
2012-07-05 12:12:33 TRACE nova File "/usr/lib/
2012-07-05 12:12:33 TRACE nova return IMPL.floating_
2012-07-05 12:12:33 TRACE nova File "/usr/lib/
2012-07-05 12:12:33 TRACE nova return f(*args, **kwargs)
2012-07-05 12:12:33 TRACE nova File "/usr/lib/
2012-07-05 12:12:33 TRACE nova session=session)
2012-07-05 12:12:33 TRACE nova File "/usr/lib/
2012-07-05 12:12:33 TRACE nova return f(*args, **kwargs)
2012-07-05 12:12:33 TRACE nova File "/usr/lib/
2012-07-05 12:12:33 TRACE nova raise exception.
2012-07-05 12:12:33 TRACE nova FloatingIpNotFo
2012-07-05 12:12:33 TRACE nova
# nova-manage floating list
None 1.1.1.2 None nova eth1
.
.
.
None 1.1.1.254 None nova eth1
Changed in nova: | |
milestone: | none → folsom-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-3 → 2012.2 |
no longer affects: | nova/essex |
Thanks for the patch! To get merged, it must be submitted through gerrit. See the developer section on http:// wiki.openstack. org/HowToContri bute for more information