Newton DHCP Agent Problem

asked 2016-11-09 05:00:31 -0500

Mrxlazuardin gravatar image

updated 2016-11-09 21:15:52 -0500

Hi,

I'm using Newton with below configuration of dhcp_agent.ini

[DEFAULT]
interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = true

Currently, the DHCP agent doesn't reply the DHCP request from VMs, eventhough the static IP configured inisde VMs is working. I find some warning like below inside the log file.

2016-11-09 17:29:38.650 13928 WARNING stevedore.named [req-9463e7f8-cf6c-4729-9fd8-6df5f3c7cdde - - - - -] Could not load neutron.agent.linux.interface.BridgeInterfaceDriver
2016-11-09 17:29:38.941 13928 WARNING stevedore.named [req-9463e7f8-cf6c-4729-9fd8-6df5f3c7cdde - - - - -] Could not load neutron.agent.linux.interface.BridgeInterfaceDriver

When I try to enable debuggin of DHCP agent, I get some following weird logs.

2016-11-09 16:50:28.412 13246 DEBUG neutron.agent.linux.utils [-] Unable to access /var/lib/neutron/dhcp/463fbe75-d12e-43fa-b533-2d5672c4840e/pid get_value_from_file /usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py:204
2016-11-09 16:50:28.467 13246 DEBUG neutron.agent.linux.utils [-] Unable to access /var/lib/neutron/dhcp/463fbe75-d12e-43fa-b533-2d5672c4840e/pid get_value_from_file /usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py:204
2016-11-09 16:50:28.721 13246 DEBUG neutron.agent.linux.utils [-] Unable to access /var/lib/neutron/dhcp/463fbe75-d12e-43fa-b533-2d5672c4840e/pid get_value_from_file /usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py:204
2016-11-09 16:50:28.777 13246 DEBUG neutron.agent.linux.utils [-] Unable to access /var/lib/neutron/dhcp/463fbe75-d12e-43fa-b533-2d5672c4840e/pid get_value_from_file /usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py:204

What's wrong with my configuration?

Best regards,

edit retag flag offensive close merge delete

Comments

This looks like the bridge interface driver is missing. Check if you forgot to install some software package. I wouldn't know in which package the driver is, but the file that it resides in is ..../neutron/agent/linux/interface.py.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-09 21:26:30 -0500 )edit

I've also been having the issue not being able to load the BridgeInterffaceDriver. My setup is a fresh install of CentOS 7 following the official install guide . So unless that guide missed a package, I should have everything. I can't find anything about this on Google either.

skeletorsue gravatar imageskeletorsue ( 2016-11-11 18:17:49 -0500 )edit

well, is the file ..../neutron/agent/linux/interface.py on your system? Does it contain a class named BridgeInterfaceDriver?

Or perhaps there is a typo in your config, and you wrote BridgeInterffaceDriver with a double-F as in your comment here.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-18 20:54:15 -0500 )edit

I double checked and confirmed that I don't have the double f in the actual config. Also, yes I do have /usr/lib/python2.7/site-packages/neutron/agent/linux/interface.py . The file does also contain a BridgeInterfaceDriver class. Is there maybe a path wrong somewhere?

skeletorsue gravatar imageskeletorsue ( 2016-11-18 21:37:54 -0500 )edit

That interface error is a bit misleading. Stevedore generates that when it can't load it by an alias since you are providing a class path. If it actually couldn't load the interface, it would be a fatal condition and exit. The get_value_from_file debugs are also normal. Can your VMs ping DHCP agent?

kevinbenton gravatar imagekevinbenton ( 2016-11-20 04:36:47 -0500 )edit