commit b117e8ec854dd0a26d04beb7e1effedffec3cb3a
Author: Yalei Wang <email address hidden>
Date: Wed Jan 21 17:48:56 2015 +0800
Move the assignment of existing_floating_ips before try block
In function _process_external() in agent/l3/agent.py, the call to
iptables_manager.defer_apply() may throw an exception, making a
later call to _update_fip_statuses() use an un-initialized value.
This will throw its own UnboundLocalError, with the result being
no iptables rules will be applied.
Added tests to cover both the defer_apply() code exception
processing, as well as this new case where we might jump to
_update_fip_statuses() without having done any work on floating
IP addresses.
Reviewed: https:/ /review. openstack. org/148862 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=b117e8ec854 dd0a26d04beb7e1 effedffec3cb3a
Committed: https:/
Submitter: Jenkins
Branch: master
commit b117e8ec854dd0a 26d04beb7e1effe dffec3cb3a
Author: Yalei Wang <email address hidden>
Date: Wed Jan 21 17:48:56 2015 +0800
Move the assignment of existing_ floating_ ips before try block
In function _process_external() in agent/l3/agent.py, the call to manager. defer_apply( ) may throw an exception, making a fip_statuses( ) use an un-initialized value.
iptables_
later call to _update_
This will throw its own UnboundLocalError, with the result being
no iptables rules will be applied.
Added tests to cover both the defer_apply() code exception fip_statuses( ) without having done any work on floating
processing, as well as this new case where we might jump to
_update_
IP addresses.
Change-Id: I0045effc931977 2127758be4aacca 02ab5c236cd
Closes-Bug: #1413111