<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:23:45 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[NETVIRT-1313] Orphaned vpn-portip-to-port entry after router unsets external-gateway</title>
                <link>https://jira.opendaylight.org/browse/NETVIRT-1313</link>
                <project id="10144" key="NETVIRT">netvirt</project>
                    <description>&lt;p&gt;Orphaned router external gateway IP&apos;s vpn-portip-to-port entry for the&#160;after router unsets external-gateway. This entry will prevent PNF with same IP to be discovered via Subnet Route.&lt;/p&gt;

&lt;p&gt;Version Tested: master, nitrogen&lt;/p&gt;

&lt;p&gt;Reproduction Steps:&lt;/p&gt;

&lt;p&gt;1) Create network/subnet&lt;/p&gt;

&lt;p&gt;2) Create VM&#160;&lt;/p&gt;

&lt;p&gt;3) Create Router&lt;/p&gt;

&lt;p&gt;4) Attach subnet to router&lt;/p&gt;

&lt;p&gt;5) create external network/subnet&lt;/p&gt;

&lt;p&gt;Entry vpn-portip-to-port is added for the router&apos;s external gateway IP 192.168.56.13:&lt;br/&gt;
&quot;neutron-vpn-portip-port-data&quot;: {&lt;br/&gt;
 &quot;vpn-portip-to-port&quot;: [&lt;/p&gt;

&lt;p&gt;&#160; &lt;/p&gt;
{
&#160; &#160; &quot;mac-address&quot;: &quot;fa:16:3e:e5:5f:67&quot;,
&#160; &#160; &quot;port-fixedip&quot;: &quot;192.168.56.13&quot;,
&#160; &#160; &quot;port-name&quot;: &quot;c7cb629c-9f61-4fa8-ac6a-ec34ef1ec33a&quot;,
&#160; &#160; &quot;subnet-ip&quot;: false,
&#160; &#160; &quot;vpn-name&quot;: &quot;52e09bd3-84a1-495e-9f9e-0d7a99018025&quot;
&#160; &#160; }


&lt;p&gt;6) Unset the router&apos;s external gateway&lt;br/&gt;
 openstack router unset --external-gateway router1&lt;/p&gt;

&lt;p&gt;The entry vpn-portip-to-port for external gateway IP remains even though the neutron port&lt;br/&gt;
for 192.168.56.13 is deleted.&lt;/p&gt;

&lt;p&gt;7) Re-set the router&apos;s external gateway to the same external network&lt;br/&gt;
 openstack router set --external-gateway ext-net1 router1&lt;/p&gt;

&lt;p&gt;New entry vpn-portip-to-port for new external gateway IP (192.168.56.11) is added.&lt;br/&gt;
The orphaned entry for obsoleted external gateway IP (192.168.56.13)&#160; in 6) still remains:&lt;/p&gt;

&lt;p&gt;&quot;vpn-portip-to-port&quot;: [&lt;br/&gt;
&#160; &lt;/p&gt;
{
&#160; &#160; &quot;mac-address&quot;: &quot;fa:16:3e:c9:46:18&quot;,
&#160; &#160; &quot;port-fixedip&quot;: &quot;192.168.56.11&quot;,
&#160; &#160; &quot;port-name&quot;: &quot;d774a2d5-07c9-4306-a635-bf889ab61640&quot;,
&#160; &#160; &quot;subnet-ip&quot;: false,

&#160; &#160; &quot;vpn-name&quot;: &quot;52e09bd3-84a1-495e-9f9e-0d7a99018025&quot;
&#160; }
&lt;p&gt;,&lt;br/&gt;
&#160; &lt;/p&gt;
{
&#160; &#160; &quot;mac-address&quot;: &quot;fa:16:3e:e5:5f:67&quot;,
&#160; &#160; &quot;port-fixedip&quot;: &quot;192.168.56.13&quot;,
&#160; &#160; &quot;port-name&quot;: &quot;c7cb629c-9f61-4fa8-ac6a-ec34ef1ec33a&quot;,
&#160; &#160; &quot;subnet-ip&quot;: false,
&#160; &#160; &quot;vpn-name&quot;: &quot;52e09bd3-84a1-495e-9f9e-0d7a99018025&quot;
&#160; }

&lt;p&gt;Issue:&lt;/p&gt;

&lt;p&gt;-------&lt;/p&gt;

&lt;p&gt;Failure to communicate with PNF which has same IP as the obsoleted router&apos;s external gateway:&lt;/p&gt;

&lt;p&gt;8) ssh to PNF which has same IP as the obsoleted router&apos;s external gateway (192.168.56.13)&lt;br/&gt;
 Connection timeout, no PNF flows installed.&lt;/p&gt;

&lt;p&gt;Reason:&lt;br/&gt;
 Upon receiving the first packet from PNF, SubnetRoutePacketInHandler checks the neutron-vpn-portip-port-data DS if the target IP is known neutron port and ignores the packet if it is.&lt;/p&gt;

&lt;p&gt;Since the PNF IP&apos;s is the same as the obsoleted gateways&apos;s IP, and there exists the orphaned entry in 6) the subnet route processing for the PNF target is ignored.&lt;/p&gt;

&lt;p&gt;As a result the FIB entry for the PNF are not installed and communication to the PNF fails.&lt;/p&gt;

&lt;p&gt;Related information from karaf.log:&lt;br/&gt;
2018-06-18T14:33:27,396 | INFO | pool-52-thread-1 | SubnetRoutePacketInHandler | 382 - org.opendaylight.netvirt.vpnmanager-impl - 0.7.0.SNAPSHOT | SUBNETROUTE: onPacketReceived: IPv4 Packet received with Target IP 192.168.56.13 source IP &lt;span class=&quot;error&quot;&gt;&amp;#91;-64, -88, 56, 11&amp;#93;&lt;/span&gt; vpnId 100006 is a valid Neutron port,ignoring subnet route processing&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="30146">NETVIRT-1313</key>
            <summary>Orphaned vpn-portip-to-port entry after router unsets external-gateway</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="VinhNguyen">Vinh Nguyen</assignee>
                                    <reporter username="VinhNguyen">Vinh Nguyen</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Jun 2018 23:07:51 +0000</created>
                <updated>Mon, 25 Jun 2018 00:51:28 +0000</updated>
                            <resolved>Mon, 25 Jun 2018 00:51:28 +0000</resolved>
                                                    <fixVersion>Oxygen-SR3</fixVersion>
                    <fixVersion>Fluorine</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                        <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03fnz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>