Reviewed: https://review.openstack.org/364323 Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=e5339b4a3d79693a09e19322ebc804b5e1c765ec Submitter: Jenkins Branch: master
commit e5339b4a3d79693a09e19322ebc804b5e1c765ec Author: Kevin Benton <ke...@benton.pub> Date: Thu Sep 1 06:45:52 2016 -0700 Ignore extra subnet IPs in DHCP agent When the DHCP agent requests a port from a server, it asks for fixed IPs from specific subnets. However, if the server is doing auto ipv6 addressing, it may give it an extra IP it never asked for. The previous logic was not expecting this so it would fail to correctly setup the DHCP port. This patch just ignores any IPs on subnets the DHCP agent isn't servicing. Closes-Bug: #1618674 Change-Id: I1c26c85520258b751fa98eee326bc2acd2a16860 ** Changed in: neutron Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1618674 Title: dhcp agent throwing KeyError setting-up port Status in neutron: Fix Released Bug description: Found this KeyError in the dhcp-agent log file from a tempest test: http://logs.openstack.org/14/356714/4/check/gate-tempest-dsvm-neutron- dvr-multinode- full/cbdf339/logs/screen-q-dhcp.txt.gz#_2016-08-30_22_07_04_149 ERROR neutron.agent.dhcp.agent [req-4e94ba84-1ed6-43d8-acbc-20089babac6d tempest-NetworksTestDHCPv6-620333947 -] Unable to enable dhcp for f08de6cf-0815-456c-84bd-1ceff273c018. ERROR neutron.agent.dhcp.agent Traceback (most recent call last): ERROR neutron.agent.dhcp.agent File "/opt/stack/new/neutron/neutron/agent/dhcp/agent.py", line 115, in call_driver ERROR neutron.agent.dhcp.agent getattr(driver, action)(**action_kwargs) ERROR neutron.agent.dhcp.agent File "/opt/stack/new/neutron/neutron/agent/linux/dhcp.py", line 211, in enable ERROR neutron.agent.dhcp.agent interface_name = self.device_manager.setup(self.network) ERROR neutron.agent.dhcp.agent File "/opt/stack/new/neutron/neutron/agent/linux/dhcp.py", line 1220, in setup ERROR neutron.agent.dhcp.agent port = self.setup_dhcp_port(network) ERROR neutron.agent.dhcp.agent File "/opt/stack/new/neutron/neutron/agent/linux/dhcp.py", line 1192, in setup_dhcp_port ERROR neutron.agent.dhcp.agent for fixed_ip in dhcp_port.fixed_ips] ERROR neutron.agent.dhcp.agent KeyError: u'adb32792-59e1-48a9-a4ea-9d3181e80ea4' I think the test is test_dhcpv6_64_subnets(), but it's definitely in the class. logstash found a lot of these, so it's happening pretty frequently. To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1618674/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp