dhcp agent throwing KeyError setting-up port

Bug #1618674 reported by Brian Haley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Kevin Benton

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.

Tags: gate-failure
tags: added: gate-failure
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/364323

Changed in neutron:
assignee: nobody → Kevin Benton (kevinbenton)
status: New → In Progress
Changed in neutron:
milestone: none → newton-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

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 <email address hidden>
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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 9.0.0.0rc1

This issue was fixed in the openstack/neutron 9.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.