]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix dvr_local_router.floating_ip_added_dist failure after agent restart
authorErik Colnick <erik.colnick@hp.com>
Wed, 11 Nov 2015 11:44:42 +0000 (04:44 -0700)
committerErik Colnick <erik.colnick@hp.com>
Wed, 11 Nov 2015 14:22:31 +0000 (07:22 -0700)
commitda3de52c507544c84463a037acac3b2b24a37fe0
treea6361c53a990b4daca8675bf61314abc7c7bb055
parent87ce4868caea9b7f1dd79f575004ee152ffa7eb0
Fix dvr_local_router.floating_ip_added_dist failure after agent restart

If DVR is enabled and an l3-agent is restarted, associating a floatingip
to an existing vm on the compute node where the l3-agent was restarted
will fail.  This commit fixes the floating_ip_added_dist method in
dvr_local_router.py so that self.rtr_fip_subnet will be created if
it is 'None' prior to the attempt to call the get_name() method on
it.

Change-Id: I860ee3522275f62f393e66853e53ef387598983d
CLoses-Bug: #1515341
neutron/agent/l3/dvr_local_router.py
neutron/tests/unit/agent/l3/test_dvr_local_router.py