]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix unshortened IPv6 address caused DHCP crash
authorXuhan Peng <xuhanp@cn.ibm.com>
Wed, 12 Feb 2014 08:41:23 +0000 (03:41 -0500)
committerXuhan Peng <xuhanp@cn.ibm.com>
Thu, 20 Feb 2014 05:29:53 +0000 (00:29 -0500)
commit597288b1d1dfd148d1d782230bd258f3c851cbe0
tree8ba58ef459a3437433de9243a178b86b15b46ad3
parent59bf3d73894feb0610f9d32130acff16dd2519d3
Fix unshortened IPv6 address caused DHCP crash

When unshortened IPv6 address provided to allocation pool, DHCP
agent crashed because OpenStack is trying to add same IPv6 addresses
to dhcp tap device.

The root cause is that current code compares provided unshortened
IPv6 address with the returned result of "ip addr list", which is
shortened. So the same IPv6 address is treated as different ones.

The fix is trying to shorten the provided address before comparison.

Change-Id: If1e183e65c5ab785b73771d9a3d4b525d38284a9
Closes-Bug: 1266780
neutron/agent/linux/interface.py
neutron/tests/unit/test_linux_interface.py