← Back to team overview

yahoo-eng-team team mailing list archive

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

 

** Also affects: neutron/kilo
   Importance: Undecided
       Status: New

-- 
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 neutron:
  Fix Released
Status in neutron kilo series:
  New

Bug description:
  Keyerror outputed in the trace log after set enable_dhcp of subnet to
  False.

  [reproduce]
   neutron net-create test
   neutron dhcp-agent-network-add ID_of_DHCP_agent test
   neutron subnet-create test 192.168.100.0/24 --name test1
   neutron subnet-create test 192.168.101.0/24 --name test2
   neutron subnet-update test2 --enable_dhcp False
   tailf /opt/stack/logs/q-dhcp.log

  [Trace log]
  ====================
  2015-02-14 01:01:08.556 5436 DEBUG neutron.agent.dhcp.agent [-] resync (536ef879-baf5-405b-8402-303ff5e2e905): [KeyError(u'37f0b628-22e6-4446-8bb9-2c2176c5a646',)] _periodic_resync_helper /opt/stack/neutron/neutron/agent/dhcp/agent.py:189
  2015-02-14 01:01:08.557 5436 DEBUG oslo_concurrency.lockutils [-] Lock "dhcp-agent" acquired by "sync_state" :: waited 0.000s inner /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:430
  2015-02-14 01:01:08.558 5436 INFO neutron.agent.dhcp.agent [-] Synchronizing state
  2015-02-14 01:01:08.559 5436 DEBUG oslo_messaging._drivers.amqpdriver [-] MSG_ID is a0f460425e904cc0b045336351d961d5 _send /usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:378
  2015-02-14 01:01:08.559 5436 DEBUG oslo_messaging._drivers.amqp [-] UNIQUE_ID is d3aff7b1f8744f5b909ef5bc6eded8d2. _add_unique_id /usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqp.py:224
  2015-02-14 01:01:08.632 5436 DEBUG neutron.agent.dhcp.agent [-] Calling driver for network: 536ef879-baf5-405b-8402-303ff5e2e905 action: enable call_driver /opt/stack/neutron/neutron/agent/dhcp/agent.py:106
  2015-02-14 01:01:08.633 5436 DEBUG neutron.agent.linux.utils [-] Unable to access /opt/stack/data/neutron/dhcp/536ef879-baf5-405b-8402-303ff5e2e905/pid get_value_from_file /opt/stack/neutron/neutron/agent/linux/utils.py:168
  2015-02-14 01:01:08.633 5436 ERROR neutron.agent.dhcp.agent [-] Unable to enable dhcp for 536ef879-baf5-405b-8402-303ff5e2e905.
  2015-02-14 01:01:08.633 5436 TRACE neutron.agent.dhcp.agent Traceback (most recent call last):
  2015-02-14 01:01:08.633 5436 TRACE neutron.agent.dhcp.agent   File "/opt/stack/neutron/neutron/agent/dhcp/agent.py", line 116, in call_driver
  2015-02-14 01:01:08.633 5436 TRACE neutron.agent.dhcp.agent     getattr(driver, action)(**action_kwargs)
  2015-02-14 01:01:08.633 5436 TRACE neutron.agent.dhcp.agent   File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 207, in enable
  2015-02-14 01:01:08.633 5436 TRACE neutron.agent.dhcp.agent     interface_name = self.device_manager.setup(self.network)
  2015-02-14 01:01:08.633 5436 TRACE neutron.agent.dhcp.agent   File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 934, in setup
  2015-02-14 01:01:08.633 5436 TRACE neutron.agent.dhcp.agent     port = self.setup_dhcp_port(network)
  2015-02-14 01:01:08.633 5436 TRACE neutron.agent.dhcp.agent   File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 924, in setup_dhcp_port
  2015-02-14 01:01:08.633 5436 TRACE neutron.agent.dhcp.agent     for fixed_ip in dhcp_port.fixed_ips]
  2015-02-14 01:01:08.633 5436 TRACE neutron.agent.dhcp.agent KeyError: u'37f0b628-22e6-4446-8bb9-2c2176c5a646'
  2015-02-14 01:01:08.633 5436 TRACE neutron.agent.dhcp.agent
  2015-02-14 01:01:08.634 5436 INFO neutron.agent.dhcp.agent [-] Synchronizing state complete
  2015-02-14 01:01:08.635 5436 DEBUG oslo_concurrency.lockutils [-] Lock "dhcp-agent" released by "sync_state" :: held 0.078s inner /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:442
  ====================

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

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


References