yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #40646
[Bug 1471959] Re: Dhcp error in network with two subnet when one is disabled
*** This bug is a duplicate of bug 1417379 ***
https://bugs.launchpad.net/bugs/1417379
just now noticed, this is duplicate to bug
https://bugs.launchpad.net/neutron/+bug/1417379
** This bug has been marked a duplicate of bug 1417379
KeyError returned when subnet-update enable_dhcp to False
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1471959
Title:
Dhcp error in network with two subnet when one is disabled
Status in neutron:
New
Bug description:
Trace:
ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for 125c7403-1ef1-489c-bc0c-cf6a0f83e742.
Traceback (most recent call last):
File "/opt/stack/neutron/neutron/agent/dhcp_agent.py", line 128, in call_driver
getattr(driver, action)(**action_kwargs)
File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 207, in enable
self.spawn_process()
File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 376, in spawn_process
'--dhcp-optsfile=%s' % self._output_opts_file(),
File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 646, in _output_opts_file
isolated_subnets = self.get_isolated_subnets(self.network)
File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 812, in get_isolated_subnets
if subnets[alloc.subnet_id].gateway_ip == alloc.ip_address:
KeyError: u'f1ff257b-ddb8-4069-bf9f-8a60bd704097'
TRACE neutron.agent.dhcp_agent KeyError: u'f1ff257b-ddb8-4069-bf9f-8a60bd704097'
TRACE neutron.agent.dhcp_agent
Steps to reproduce:
NET_NAME=test-key
I=11
neutron net-create ${NET_NAME}
neutron port-create ${NET_NAME}
neutron subnet-create --name "${NET_NAME}-sub001" ${NET_NAME} 192.168.${I}.1/24
neutron subnet-create --name "${NET_NAME}-sub002" ${NET_NAME} 192.168.${I}1.1/24
while [ "$(neutron port-list | grep "192.168.${I}" | wc -l)" != 2 ]; do
echo "waiting for dhcp port on both subnet"
done
neutron subnet-update --disable-dhcp "${NET_NAME}-sub002"
sleep 10
if [ "$(neutron port-list | grep "192.168.${I}" | wc -l)" != 2 ]; then
echo "failed"
fi
Impact:
cause logs to grow more than necessary
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1471959/+subscriptions
References