<div dir="ltr">
<div>Hello,</div><div><br></div><div>I am trying to get the l2gw feature installed on an openstack install on centos 7 using the rdo queens repo.</div><div><br></div><div>Initially I installed the l2gw rpms form the repo:</div><div><font size="2"><br></font></div><div><font size="2"><span style="font-family:monospace,monospace"> yum install openstack-neutron-l2gw-agent<br>======================================================================================</span></font></div><div><span style="font-family:monospace,monospace"><font size="2"> Package                            Arch       Version           Repository                     <br>======================================================================================<br>Installing:<br> openstack-neutron-l2gw-agent      noarch     1:12.0.1-1.el7    centos-openstack-queens <br>Installing for dependencies:<br> python2-networking-l2gw           noarch     1:12.0.1-1.el7    centos-openstack-queens</font><br></span><br></div><div>I enabled the service plugin in /etc/neutron/neutron.conf:</div><div>[root@gullwing-controller neutron]# grep service_plugin neutron.conf<br>service_plugins = router,networking_l2gw.services.l2gateway.plugin.L2GatewayPlugin</div><div><br></div><div>I pointed my l2gw plugin to my gw in l2gateway_agent.ini:</div><div>[root@gullwing-controller neutron]# grep ovsdb1 l2gateway_agent.ini<br>ovsdb_hosts = 'ovsdb1:<a href="http://10.0.0.31:6632" target="_blank">10.0.0.31:6632</a>'<br></div><div><br></div><div>I upgraded the neutron DB<br></div><div>
<pre><font size="2"><code class="gmail-m_8987905551652196750gmail-hljs gmail-m_8987905551652196750gmail-sql">systemctl <span class="gmail-m_8987905551652196750gmail-hljs-keyword">stop</span> neutron-<span class="gmail-m_8987905551652196750gmail-hljs-keyword">server</span>
neutron-db-manage <span class="gmail-m_8987905551652196750gmail-hljs-comment">--config-file /etc/neutron/neutron.conf --config-file /etc/neutron/l2gw_plugin.ini  upgrade head</span>
systemctl <span class="gmail-m_8987905551652196750gmail-hljs-keyword">start</span> neutron-<span class="gmail-m_8987905551652196750gmail-hljs-keyword">server<br><br></span></code></font></pre><pre><font size="2"><code class="gmail-m_8987905551652196750gmail-hljs gmail-m_8987905551652196750gmail-sql"><span class="gmail-m_8987905551652196750gmail-hljs-keyword">I then added the "<code class="gmail-m_8987905551652196750gmail-hljs gmail-m_8987905551652196750gmail-nginx"><span class="gmail-m_8987905551652196750gmail-hljs-string">--config-file /etc/neutron/l2gw_plugin.ini" to the ExecStart of the nova-server systemd unit file.<br><br></span></code></span></code></font></pre><pre><font size="2"><code class="gmail-m_8987905551652196750gmail-hljs gmail-m_8987905551652196750gmail-sql"><span class="gmail-m_8987905551652196750gmail-hljs-keyword"><code class="gmail-m_8987905551652196750gmail-hljs gmail-m_8987905551652196750gmail-nginx"><span class="gmail-m_8987905551652196750gmail-hljs-string">When I try to restart nova, it fails with:<br>2018-08-30 09:59:32.605 21059 ERROR neutron Invalid: Driver networking_l2gw.services.l2gateway.service_drivers.rpc_l2gw.L2gwRpcDriver is not unique across providers<br></span></code> <br></span></code></font></pre><pre><font size="2"><code class="gmail-m_8987905551652196750gmail-hljs gmail-m_8987905551652196750gmail-sql"><span class="gmail-m_8987905551652196750gmail-hljs-keyword">One web page <a href="https://lonelypacket.co.uk/post/openstack-pike-l2gw-setup-on-ubuntu-16-04/" target="_blank">https://lonelypacket.co.uk/post/openstack-pike-l2gw-setup-on-ubuntu-16-04/</a>  suggested adding a service_providers<br>section to neutron.conf but it made no difference.<br>[service_providers]<br>service_provider=L2GW:l2gw:networking_l2gw.services.l2gateway.service_drivers.rpc_l2gw.L2gwRpcDriver:default<br><br></span></code></font></pre><pre><font size="2"><code class="gmail-m_8987905551652196750gmail-hljs gmail-m_8987905551652196750gmail-sql"><span class="gmail-m_8987905551652196750gmail-hljs-keyword">I also tried uninstalling the l2gw rpms and used a clone of <a href="https://github.com/openstack/networking-l2gw" target="_blank">https://github.com/openstack/networking-l2gw</a>, also tried<br>branch stable/queens.<br><br></span></code></font></pre><pre><font size="2"><code class="gmail-m_8987905551652196750gmail-hljs gmail-m_8987905551652196750gmail-sql"><span class="gmail-m_8987905551652196750gmail-hljs-keyword">When I tried that version, I got an error "AttributeError: 'module' object has no attribute 'L3'" which seems to be related to<br><a href="https://lists.launchpad.net/yahoo-eng-team/msg73944.html" target="_blank">https://lists.launchpad.net/yahoo-eng-team/msg73944.html</a><br><br></span></code></font></pre><pre><font size="2"><code class="gmail-m_8987905551652196750gmail-hljs gmail-m_8987905551652196750gmail-sql"><span class="gmail-m_8987905551652196750gmail-hljs-keyword">I would appreciate any insight that you can give me and would be happy to provide any requested info.<br><br></span></code></font></pre><pre><font size="2"><code class="gmail-m_8987905551652196750gmail-hljs gmail-m_8987905551652196750gmail-sql"><span class="gmail-m_8987905551652196750gmail-hljs-keyword">Thanks,<br><br></span></code></font></pre><pre><font size="2"><code class="gmail-m_8987905551652196750gmail-hljs gmail-m_8987905551652196750gmail-sql"><span class="gmail-m_8987905551652196750gmail-hljs-keyword">Mike Oliveras </span></code></font></pre></div>

</div>