Ask Your Question
0

What changed recently in Neutron's server code flow?

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

anonymous user

Anonymous

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

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 Resource.py. This would then route it to the controller file Base.py. After that, it would go to the ovs_neutron_plugin.py 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
0

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

darragh-oreilly gravatar image

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

edit flag offensive delete link more
0

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

Anand gravatar image

Hi,

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 /stack.sh as you normally do.

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

edit flag offensive delete link more

Comments

or just set it in localrc

darragh-oreilly gravatar imagedarragh-oreilly ( 2013-10-16 05:44:16 -0500 )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

1 follower

Stats

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

Seen: 196 times

Last updated: Oct 16 '13