<div dir="ltr">I see the exception now Lajos:<div><br></div><div><div>class L2GatewayInUse(exceptions.InUse):</div><div> message = _("L2 Gateway '%(gateway_id)s' still has active mappings "</div><div> "with one or more neutron networks.")</div></div><div><br></div><div>:-)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 27, 2017 at 6:40 PM, Ricardo Noriega De Soto <span dir="ltr"><<a href="mailto:rnoriega@redhat.com" target="_blank">rnoriega@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey Lajos,<div><br></div><div>Is this the exception you are encountering?</div><div><br></div><div><div>(neutron) l2-gateway-update --device name=hwvtep,interface_names=<wbr>eth0,eth1 gw1</div><div>L2 Gateway 'b8ef7f98-e901-4ef5-b159-<wbr>df53364ca996' still has active mappings with one or more neutron networks.</div><div>Neutron server returns request_ids: ['req-f231dc53-cb7d-4221-ab74-<wbr>fa8715f85869']</div></div><div><br></div><div>I don't see the L2GatewayInUse exception you're talking about, but I guess it's the same situation.</div><div><br></div><div>We should discuss in which case the l2gw instance could be updated, and in which cases it shouldn't.</div><div><br></div><div>Please, let me know!</div><div><br></div><div><br></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Wed, Aug 16, 2017 at 11:14 AM, Lajos Katona <span dir="ltr"><<a href="mailto:lajos.katona@ericsson.com" target="_blank">lajos.katona@ericsson.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
We faced an issue with l2-gw-update, which means that actually if there are connections for a gw the update will throw an exception (L2GatewayInUse), and the update is only possible after deleting first the connections, do the update and add the connections back.<br>
<br>
It is not exactly clear why this restriction is there in the code (at least I can't find it in docs or comments in the code, or review).<br>
As I see the check for network connections was introduced in this patch:<br>
<a href="https://review.openstack.org/#/c/144097" rel="noreferrer" target="_blank">https://review.openstack.org/#<wbr>/c/144097</a> (<a href="https://review.openstack.org/#/c/144097/21..22/networking_l2gw/db/l2gateway/l2gateway_db.py" rel="noreferrer" target="_blank">https://review.openstack.org/<wbr>#/c/144097/21..22/networking_l<wbr>2gw/db/l2gateway/l2gateway_db.<wbr>py</a>)<br>
<br>
Could you please give me a little background why the update operation is not allowed on an l2gw with network connections?<br>
<br>
Thanks in advance for the help.<br>
<br>
Regards<br>
Lajos<br>
<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="">-- <br><div class="m_-1018337626122417223gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Ricardo Noriega<br><div><br></div><div>Senior <span style="font-size:12.8px">Software Engineer - NFV Partner Engineer | Office of Technology | Red Hat</span><br></div><div><span style="font-size:12.8px">irc: rnoriega @freenode</span></div><div><br></div></div></div></div></div>
</span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Ricardo Noriega<br><div><br></div><div>Senior <span style="font-size:12.8px">Software Engineer - NFV Partner Engineer | Office of Technology | Red Hat</span><br></div><div><span style="font-size:12.8px">irc: rnoriega @freenode</span></div><div><br></div></div></div></div></div>
</div>