<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Ricardo,<br>
    <br>
    That is the exception which gives us the trouble.<br>
    <br>
    If you have ideas as you mentioned in which case a gw should be
    updated, and in what not, that would be really nice.<br>
    Actually now we have a kind of development environment with devstack
    and vtep emulator
    (<a class="moz-txt-link-freetext" href="http://docs.openvswitch.org/en/latest/howto/vtep/">http://docs.openvswitch.org/en/latest/howto/vtep/</a>) on the same
    host, what do you think is that enough to go on with this problem?<br>
    I am not so sure if with vtep emulator we can cover all the good and
    bad (I mean when we mustn't do the update for example) scenarios.<br>
    <br>
    Regards<br>
    Lajos<br>
    <br>
    <div class="moz-cite-prefix">On 2017-09-28 14:12, Ricardo Noriega De
      Soto wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAD9PB6V8T_jMPgdQR_siyRgwu=A8f8yyfjPLk_APt0aLdCMD0g@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <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"
              moz-do-not-send="true">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" moz-do-not-send="true">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"
                        moz-do-not-send="true">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"
                        moz-do-not-send="true">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"
                        moz-do-not-send="true">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"
                        moz-do-not-send="true">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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: <a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>