Ask Your Question
0

Openstack: Could not load neutron.agent.linux.interface.OVSInterfaceDriver

asked 2016-12-01 03:57:45 -0600

Diavel gravatar image

updated 2016-12-01 07:02:24 -0600

Hey guys.. can anyone help me out solve this problem??

I am running classic scenario with 3 nodes (controller, network, compute) with OpenvSwitch. All of my agents are alive (neutron agent-list).

If I check nova service-list, they all work like they should. (all enabled, up).

Trouble is when I check neutron-dhcp-agent on the network node, I get following warning

WARNING stevedore.named [-] Could not load neutron.agent.linux.interface.OVSInterfaceDriver

I get the same warning when I check neutron-l3-agent...

When I launch instance I get:

[Error: No valid host was found. There are not enough hosts available.].

In the nova-compute logs I saw:

PortBindingFailed: Binding failed for port 04310927-c1a2-452b-861f-03c296ce5b20, please check neutron logs for more information.

Any idea?

Edited.. with more info.. (neutron-dhcp-agent.log):

2016-12-01 13:50:34.503 6276 INFO neutron.agent.dhcp.agent [req-af407bc8-1eef-4ee2-b9ec-d69c1c4647fe - - - - -] All active networks have been fetched through RPC.
2016-12-01 13:50:34.504 6276 INFO neutron.agent.dhcp.agent [-] Starting network 83ae6b41-aa7e-4806-9473-0c38c5ea973b dhcp configuration
2016-12-01 13:50:34.505 6276 DEBUG neutron.agent.dhcp.agent [-] Calling driver for network: 83ae6b41-aa7e-4806-9473-0c38c5ea973b action: enable call_driver /usr/lib/python2.7/dist-packages/neutron/agent/dhcp/agent.py:105
2016-12-01 13:50:34.506 6276 WARNING stevedore.named [-] Could not load neutron.agent.linux.interface.OVSInterfaceDriver
2016-12-01 13:50:34.507 6276 DEBUG neutron.agent.linux.utils [-] Running command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-83ae6b41-aa7e-4806-9473-0c38c5ea973b', 'ip', 'link', 'set', 'tap6bdd013e-9a', 'up'] create_process /usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py:83
2016-12-01 13:50:34.540 6276 INFO neutron.agent.dhcp.agent [-] Starting network 4dbbf484-26b1-4405-b6be-9c329653ac93 dhcp configuration
2016-12-01 13:50:34.542 6276 DEBUG neutron.agent.dhcp.agent [-] Calling driver for network: 4dbbf484-26b1-4405-b6be-9c329653ac93 action: enable call_driver /usr/lib/python2.7/dist-packages/neutron/agent/dhcp/agent.py:105
2016-12-01 13:50:34.543 6276 WARNING stevedore.named [-] Could not load neutron.agent.linux.interface.OVSInterfaceDriver
2016-12-01 13:50:34.544 6276 DEBUG neutron.agent.linux.utils [-] Running command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-4dbbf484-26b1-4405-b6be-9c329653ac93', 'ip', 'link', 'set', 'tapa707bfe5-13', 'up'] create_process /usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py:83
2016-12-01 13:50:35.319 6276 DEBUG neutron.agent.linux.utils [-] Exit code: 0 execute /usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py:140
2016-12-01 13:50:35.321 6276 DEBUG neutron.agent.linux.dhcp [-] Reusing existing device: tapa707bfe5-13. setup /usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py:1361
2016-12-01 13:50:35.322 6276 DEBUG neutron.agent.linux.utils [-] Running command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-4dbbf484-26b1-4405-b6be-9c329653ac93', 'ip', '-o', 'link', 'show', 'tapa707bfe5-13'] create_process /usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py:83
2016-12-01 13:50:35.372 6276 DEBUG neutron.agent.linux.utils [-] Exit code: 0 execute /usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py:140
edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
2

answered 2016-12-05 10:22:48 -0600

tze gravatar image

updated 2016-12-05 13:40:17 -0600

As you can see from log ( the driver cannot found with named resolver. The name of the driver is openvswitch and not neutron.agent.linuxinterface.OVSInterfaceDriver For example in file ml2_conf.ini:

# An ordered list of networking mechanism driver entrypoints to be loaded from
# the neutron.ml2.mechanism_drivers namespace. (list value)
mechanism_drivers = openvswitch,l2population

# An ordered list of extension driver entrypoints to be loaded from the
# neutron.ml2.extension_drivers namespace. For example: extension_drivers =
# port_security,qos (list value)
extension_drivers = port_security

You can check these names from GitHub's neutron project in the file https://github.com/openstack/neutron/blob/stable/newton/setup.cfg (setup.cfg).

edit flag offensive delete link more
0

answered 2016-12-05 08:58:23 -0600

Diavel gravatar image

Hey guys.. so to summarize.. I have been able to get past this and launched instances without any problem. But the WARNING stevedore.named [-] Could not load neutron.agent.linux.interface.OVSInterfaceDriver still persists, unfortunatelly I have not been able to figure out the reason for this.

Anyway there obviously must have been something wrong with the configuration of our compute node. When I verify now that both neutron.conf and nova.conf (still on the compute node) have all necessary stuff (especially transport_url) in their [DEFAULT] configuration.. it all works well.

My compute uses:

Ubuntu 16.04.1 LTS 
neutron-common 2:8.3.0-0ubuntu1.1
neutron-openvswitch-agent 2:8.3.0-0ubuntu1.1
nova-common 2:13.1.2-0ubuntu2
nova-compute 2:13.1.2-0ubuntu2
edit flag offensive delete link more

Comments

Same with me I can launch Instances and seems to be working.. But this warning is there I dont know what is causing this warning...

vathanlal gravatar imagevathanlal ( 2016-12-07 03:37:48 -0600 )edit

Have you setup in file dhcp_agent.ini (section [DEFAULT]) interface_driver = openvswitch ? This is common mistake with named classes. Change this setting restart agent and message will stop (maybe other messages will raised from the driver).

tze gravatar imagetze ( 2017-01-08 14:50:48 -0600 )edit
0

answered 2016-12-01 05:08:18 -0600

I believe OVSInterfaceDriver is needed by all those parts of OpenStack that need to plug a port into an Openvswitch bridge, such as router ports, DHCP ports, instance ports etc. If the driver is not avaible, I would guess Networking is basically disabled.

You need to find out why the driver can't be loaded. Check for a file named .../neutron/agent/linux/interface.py and whether it contains a class named OVSInterfaceDriver. Where this file is located depends on how you installed OpenStack. The easiest way to find it is a brute-force find on the network node.

If you don't have the OVSInterfaceDriver class, probably something went wrong with the installation. If you have it, perhaps it's at the wrong location. Use debug logging and see if there are other messages around the stevedore warning that might give you a clue.

edit flag offensive delete link more

Comments

Hi, Hi, thanks for the response.. Unfortunately the mentioned file contains OVSInterfaceDriver class and the path seems to be fine. The packages were installed from repos. I added to my question the logs from dhcp-agent.. The ID 4dbbf484-26b1-4405-b6be-9c329653ac93 is my demo-net..

Diavel gravatar imageDiavel ( 2016-12-01 07:00:32 -0600 )edit

hi please help me I have the same problem could you please specify the path in which you found interface.py

vathanlal gravatar imagevathanlal ( 2016-12-02 09:01:44 -0600 )edit

vathanlal, the path depends on your installation. Just use the find command.

Bernd Bausch gravatar imageBernd Bausch ( 2016-12-02 16:56:12 -0600 )edit

Diavel, what repos? Could there be a version mismatch?

Bernd Bausch gravatar imageBernd Bausch ( 2016-12-02 16:57:15 -0600 )edit

I am using.. repos cloud-archive:newton on Ubuntu 16.04.1 LTS.. Ok, for some unknown (yet) reason me and my colleagues finally got it working. I will post an update on Monday what the problem was.

Diavel gravatar imageDiavel ( 2016-12-03 03:35:21 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2016-12-01 03:57:45 -0600

Seen: 4,899 times

Last updated: Dec 05 '16