Disable SNAT on Neutron router

neutron router-gateway-set –disable-snat <Router ID> <External network ID>

Openstack Liberty – Neutron config file issue

All the doco I could lay my hand on for configuring OpenStack Liberty(Which at the time of writing, is not alot!) shows the config file for the OpenVSwitch agent to be located at “/etc/neutron/plugin.ini” which is a symlink to “/etc/neutron/plugins/ml2/ml2_conf.ini”

I configured /etc/neutron/plugins/ml2/ml2_conf.ini as per the config i needed but it just didn’t work.
Upon running ps ax | grep open

3324 ? Ss 0:10 /usr/bin/python2 /usr/bin/neutron-openvswitch-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf  --config-file /etc/neutron/plugins/ml2/openvswitch_agent.ini --config-dir  /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-openvswitch-agent --log-file /var/log/neutron/openvswitch-agent.log


This tells me that the openvswitch agent isn’t reading form any of the config files i expected, when i manually killed the process and ran the command in the SSH console(Probably less than ideal) with the adjusted config file location it worked!


So a tweak of /usr/lib/systemd/system/neutron-openvswitch-agent.service changing line 9 to read ExecStart=/usr/bin/neutron-openvswitch-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf  --config-file /etc/neutron/plugins.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-openvswitch-agent --log-file /var/log/neutron/openvswitch-agent.log then restarting the service gave me the results I was looking for.