← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1417379] [NEW] KeyError returned when subnet-update enable_dhcp to False

 

Public bug reported:

[reproduce]
1.net-create(test)
2.subnet-create(subnet1) * enable_dhcp: True
3.subnet-create(subnet2) * enable_dhcp: True
4.subnet-update(subnet2) * enable_dhcp: True -> False

[Trace log]
In the same time of step 4 of [reproduce], the following log start to out put:
====================
/var/log/neutron/dhcp-agent.log
====================
ERROR neutron.agent.dhcp_agent [req-3ca55527-3620-4698-bb40-95a5fe2e2f73 admin 7a787c3b6a6e4ac9b5d8fe48028197bf] Unable to restart dhcp for 9673de7e-bd5d-4eba-9191-3e98de2043dd.
TRACE neutron.agent.dhcp_agent Traceback (most recent call last):
TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/dhcp_agent.py", line 129, in call_driver
TRACE neutron.agent.dhcp_agent     getattr(driver, action)(**action_kwargs)
TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 159, in restart
TRACE neutron.agent.dhcp_agent     self.enable()
TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 207, in enable
TRACE neutron.agent.dhcp_agent     interface_name = self.device_manager.setup(self.network)
TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 951, in setup
TRACE neutron.agent.dhcp_agent     port = self.setup_dhcp_port(network)
TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 941, in setup_dhcp_port
TRACE neutron.agent.dhcp_agent     for fixed_ip in dhcp_port.fixed_ips]
TRACE neutron.agent.dhcp_agent KeyError: u'779c00d0-64c9-416a-8048-94530c716a83'
TRACE neutron.agent.dhcp_agent
====================

・All agents looks fine :-)
・Restart changes nothing. :-(

** Affects: neutron
     Importance: Undecided
     Assignee: watanabe.isao (watanabe.isao)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => watanabe.isao (watanabe.isao)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1417379

Title:
  KeyError returned when subnet-update enable_dhcp to False

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  [reproduce]
  1.net-create(test)
  2.subnet-create(subnet1) * enable_dhcp: True
  3.subnet-create(subnet2) * enable_dhcp: True
  4.subnet-update(subnet2) * enable_dhcp: True -> False

  [Trace log]
  In the same time of step 4 of [reproduce], the following log start to out put:
  ====================
  /var/log/neutron/dhcp-agent.log
  ====================
  ERROR neutron.agent.dhcp_agent [req-3ca55527-3620-4698-bb40-95a5fe2e2f73 admin 7a787c3b6a6e4ac9b5d8fe48028197bf] Unable to restart dhcp for 9673de7e-bd5d-4eba-9191-3e98de2043dd.
  TRACE neutron.agent.dhcp_agent Traceback (most recent call last):
  TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/dhcp_agent.py", line 129, in call_driver
  TRACE neutron.agent.dhcp_agent     getattr(driver, action)(**action_kwargs)
  TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 159, in restart
  TRACE neutron.agent.dhcp_agent     self.enable()
  TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 207, in enable
  TRACE neutron.agent.dhcp_agent     interface_name = self.device_manager.setup(self.network)
  TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 951, in setup
  TRACE neutron.agent.dhcp_agent     port = self.setup_dhcp_port(network)
  TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 941, in setup_dhcp_port
  TRACE neutron.agent.dhcp_agent     for fixed_ip in dhcp_port.fixed_ips]
  TRACE neutron.agent.dhcp_agent KeyError: u'779c00d0-64c9-416a-8048-94530c716a83'
  TRACE neutron.agent.dhcp_agent
  ====================

  ・All agents looks fine :-)
  ・Restart changes nothing. :-(

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1417379/+subscriptions


Follow ups

References