Ask Your Question

What changed recently in Neutron's server code flow?

asked 2013-10-10 09:24:12 -0600

anonymous user


updated 2013-10-12 02:42:56 -0600

darragh-oreilly gravatar image

Using devstack.

I would like to ask that is there any change in the code flow of the neutron server.

As per my understanding (assuming Neutron is running OVS plugin), when a curl request for example GET /v2.0/networks was made it was received by the file This would then route it to the controller file After that, it would go to the file. The last one being located in neutron/plugins/openvswitch directory.

The neutron services could be restarted with screen -r navigating to the selected services and then restarting them. But I think there has been a change in this flow. I tried to dig inside and found that the flow does not go through the ovs_neutron_plugin file. I commented the functions related to Show Network ,get_network(), and List networks get_networks(), then restarted the service again, using the procedure mentioned in the previous paragraph, however the request still got executed. Stack trace was also not of help as the code flow did not go to the functions get_network() and get_networks() .

If anyone is aware of this could you please update me about it, i would be thankful for your help.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-10-10 09:34:03 -0600

darragh-oreilly gravatar image

devstack has recently started using the ml2 plugin by default instead of ovs.

edit flag offensive delete link more

answered 2013-10-16 03:47:35 -0600

Anand gravatar image


As pointed above, devstack has started using the ml2 plugin as the default plugin. However, to revert to openvswitch try the following procedure:

  1. Go to devstack folder and into the directory called lib.
  2. In the lib look for the file called neutron.
  3. In the file, look for the comment #Default Neutron Plugin followed by Q_PLUGIN=${Q_PLUGIN:-ml2}.
  4. Change the ml2 to openvswitch
  5. Run / as you normally do.

This will set up the devstack with OVS plugin. Hope it helps :)

edit flag offensive delete link more


or just set it in localrc

darragh-oreilly gravatar imagedarragh-oreilly ( 2013-10-16 05:44:16 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-10-10 09:24:12 -0600

Seen: 267 times

Last updated: Oct 16 '13