yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #38684
[Bug 1497522] [NEW] DHCP agent fail if create a D type subnet
Public bug reported:
When we create a subnet, neutron-server just check the subnet validation, and permit to create a D type subnet,
for example: neutron subnet-create dhcp-test 224.0.0.0/8, but dhcp-agent will fail, the error log as bellow:
[-] Unable to enable dhcp for c07785a5-aa25-4939-b74f-481c1158ebcd.
Traceback (most recent call last):
File "/opt/stack/neutron/neutron/agent/dhcp/agent.py", line 115, in call_driver
getattr(driver, action)(**action_kwargs)
File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 203, in enable
interface_name = self.device_manager.setup(self.network)
File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 1212, in setup
self._set_default_route(network, interface_name)
File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 1015, in _set_default_route
device.route.add_gateway(subnet.gateway_ip)
File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 584, in add_gateway
self._as_root([ip_version], tuple(args))
File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 280, in _as_root
use_root_namespace=use_root_namespace)
File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 80, in _as_root
log_fail_as_error=self.log_fail_as_error)
File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 89, in _execute
log_fail_as_error=log_fail_as_error)
File "/opt/stack/neutron/neutron/agent/linux/utils.py", line 160, in execute
raise RuntimeError(m)
RuntimeError:
Command: ['ip', 'netns', 'exec', u'qdhcp-c07785a5-aa25-4939-b74f-481c1158ebcd', 'ip', '-4', 'route', 'replace', 'default', 'via', u'224.0.0.1',
Exit code: 2
Stdin:
Stdout:
Stderr: RTNETLINK answers: Network is unreachable
** Affects: neutron
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/1497522
Title:
DHCP agent fail if create a D type subnet
Status in neutron:
New
Bug description:
When we create a subnet, neutron-server just check the subnet validation, and permit to create a D type subnet,
for example: neutron subnet-create dhcp-test 224.0.0.0/8, but dhcp-agent will fail, the error log as bellow:
[-] Unable to enable dhcp for c07785a5-aa25-4939-b74f-481c1158ebcd.
Traceback (most recent call last):
File "/opt/stack/neutron/neutron/agent/dhcp/agent.py", line 115, in call_driver
getattr(driver, action)(**action_kwargs)
File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 203, in enable
interface_name = self.device_manager.setup(self.network)
File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 1212, in setup
self._set_default_route(network, interface_name)
File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 1015, in _set_default_route
device.route.add_gateway(subnet.gateway_ip)
File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 584, in add_gateway
self._as_root([ip_version], tuple(args))
File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 280, in _as_root
use_root_namespace=use_root_namespace)
File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 80, in _as_root
log_fail_as_error=self.log_fail_as_error)
File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 89, in _execute
log_fail_as_error=log_fail_as_error)
File "/opt/stack/neutron/neutron/agent/linux/utils.py", line 160, in execute
raise RuntimeError(m)
RuntimeError:
Command: ['ip', 'netns', 'exec', u'qdhcp-c07785a5-aa25-4939-b74f-481c1158ebcd', 'ip', '-4', 'route', 'replace', 'default', 'via', u'224.0.0.1',
Exit code: 2
Stdin:
Stdout:
Stderr: RTNETLINK answers: Network is unreachable
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1497522/+subscriptions
Follow ups