<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:22:24 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-760] Sometimes vxlan port with remote_ip set to the node itself was created when adding new L2GW Node to Open vSwitch HWVTEP Emulator</title>
                <link>https://jira.opendaylight.org/browse/NETVIRT-760</link>
                <project id="10144" key="NETVIRT">netvirt</project>
                    <description>&lt;p&gt;Issue&#65306;&lt;br/&gt;
Sometimes vxlan port with remote_ip set to the node itself was created when adding new L2GW Node to Open vSwitch HWVTEP Emulator.&lt;/p&gt;

&lt;p&gt;Additional Info&#65306;&lt;br/&gt;
This issue was found while we executing HWVTEP Emulator HA node addition. But not sure whether it&apos;s related to HA node addition or not.&lt;br/&gt;
Once this issue happened in l2gw connection creation, it will happen every time even deleted the created l2gw connection to create a new one.&lt;br/&gt;
But by creating a new virtual network to create a new l2gw connection, the result may changes.&lt;/p&gt;

&lt;p&gt;Environment details:&lt;br/&gt;
OpenStack Version&#65306;stable/ocata&lt;br/&gt;
ODL Version&#65306;Carbon-FR + patch&lt;br/&gt;
   patch: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/56773/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/56773/&lt;/a&gt;&lt;br/&gt;
          &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/56710/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/56710/&lt;/a&gt;&lt;br/&gt;
          &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/58787/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/58787/&lt;/a&gt;&lt;br/&gt;
          &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/59598/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/59598/&lt;/a&gt;&lt;br/&gt;
HWVTEP: Open vSwitch 2.6.1 HWVTEP Emulator&lt;br/&gt;
      : HA Cluster&lt;/p&gt;

&lt;p&gt;What we did (Steps):&lt;br/&gt;
1. Create a L2GW Node with Open vSwitch HWVTEP Emulator&lt;br/&gt;
   Set &apos;other_config:ha_enabled=true&apos; and &apos;other_config:ha_id=0123456789&apos; when creating.&lt;br/&gt;
2. Create gateway and connection&lt;br/&gt;
   Confirmed the communication via L2GW Node was OK&lt;br/&gt;
3. Create a new L2GW Node with Open vSwitch HWVTEP Emulator&lt;br/&gt;
   Create a HA Cluster with node created in step1&lt;br/&gt;
   Set &apos;other_config:ha_enabled=true&apos;, and &apos;other_config:ha_id=0123456789&apos;&lt;br/&gt;
   VTEP and MAC were also set to the same vaule of the first node&lt;/p&gt;


&lt;p&gt;Below are ovs information:&lt;br/&gt;
------------------------------&lt;br/&gt;
When this issue not occurred:&lt;br/&gt;
------------------------------&lt;/p&gt;

&lt;p&gt;    Bridge &quot;ocata-l2gw1_vtep_ls1&quot;&lt;br/&gt;
        Port &quot;vx1&quot;&lt;br/&gt;
            Interface &quot;vx1&quot;&lt;br/&gt;
                type: vxlan&lt;br/&gt;
                options: &lt;/p&gt;
{key=&quot;100&quot;, remote_ip=&quot;10.0.0.10&quot;}
&lt;p&gt;        Port &quot;ocata-l2gw1_vtep_ls1&quot;&lt;br/&gt;
            Interface &quot;ocata-l2gw1_vtep_ls1&quot;&lt;br/&gt;
                type: internal&lt;br/&gt;
        Port &quot;2222-patch-vlan-l&quot;&lt;br/&gt;
            Interface &quot;2222-patch-vlan-l&quot;&lt;br/&gt;
                type: patch&lt;br/&gt;
                options: &lt;/p&gt;
{peer=&quot;2222-patch-vlan-p&quot;}&lt;br/&gt;
&lt;br/&gt;
Mcast_Macs_Local table&lt;br/&gt;
MAC         _uuid                                ipaddr locator_set                          logical_switch&lt;br/&gt;
----------- ------------------------------------ ------ ------------------------------------ ------------------------------------&lt;br/&gt;
unknown-dst 667cbc44-a44f-4074-8978-b832249442c6 &quot;&quot;     45c85fa4-5014-408d-b82d-12121fb189d7 40c1ae3d-3ee8-412f-84df-dd7157fb700a&lt;br/&gt;
&lt;br/&gt;
Mcast_Macs_Remote table&lt;br/&gt;
MAC         _uuid                                ipaddr locator_set                          logical_switch&lt;br/&gt;
----------- ------------------------------------ ------ ------------------------------------ ------------------------------------&lt;br/&gt;
unknown-dst c7e3ab8f-219d-4e5d-84ed-36475bfa1705 &quot;&quot;     4df98102-7cc0-4286-a286-ecb597943f1d 40c1ae3d-3ee8-412f-84df-dd7157fb700a&lt;br/&gt;
&lt;br/&gt;
Physical_Locator table&lt;br/&gt;
_uuid                                dst_ip      encapsulation_type tunnel_key&lt;br/&gt;
------------------------------------ ----------- ------------------ ----------&lt;br/&gt;
d405d20d-c40f-4770-8b99-9f08f2610a9b &quot;10.0.0.10&quot; &quot;vxlan_over_ipv4&quot;  []&lt;br/&gt;
c2e3fb86-440b-4dd0-8509-6eb77d448c53 &quot;10.0.0.50&quot; &quot;vxlan_over_ipv4&quot;  []&lt;br/&gt;
&lt;br/&gt;
Physical_Locator_Set table&lt;br/&gt;
_uuid                                locators&lt;br/&gt;
------------------------------------ --------------------------------------&lt;br/&gt;
45c85fa4-5014-408d-b82d-12121fb189d7 &lt;span class=&quot;error&quot;&gt;&amp;#91;c2e3fb86-440b-4dd0-8509-6eb77d448c53&amp;#93;&lt;/span&gt;&lt;br/&gt;
4df98102-7cc0-4286-a286-ecb597943f1d &lt;span class=&quot;error&quot;&gt;&amp;#91;d405d20d-c40f-4770-8b99-9f08f2610a9b&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
---------------------------&lt;br/&gt;
When this issue occurred: &lt;br/&gt;
---------------------------&lt;br/&gt;
&lt;br/&gt;
    Bridge &quot;ocata-l2gw1_vtep_ls1&quot;&lt;br/&gt;
        Port &quot;2222-patch-vlan-l&quot;&lt;br/&gt;
            Interface &quot;2222-patch-vlan-l&quot;&lt;br/&gt;
                type: patch&lt;br/&gt;
                options: {peer=&quot;2222-patch-vlan-p&quot;}
&lt;p&gt;        Port &quot;vx1&quot;&lt;br/&gt;
            Interface &quot;vx1&quot;&lt;br/&gt;
                type: vxlan&lt;br/&gt;
                options: &lt;/p&gt;
{key=&quot;48&quot;, remote_ip=&quot;10.0.0.50&quot;}
&lt;p&gt;        Port &quot;vx2&quot;&lt;br/&gt;
            Interface &quot;vx2&quot;&lt;br/&gt;
                type: vxlan&lt;br/&gt;
                options: &lt;/p&gt;
{key=&quot;48&quot;, remote_ip=&quot;10.0.0.10&quot;}
&lt;p&gt;        Port &quot;ocata-l2gw1_vtep_ls1&quot;&lt;br/&gt;
            Interface &quot;ocata-l2gw1_vtep_ls1&quot;&lt;br/&gt;
                type: internal&lt;/p&gt;

&lt;p&gt;Mcast_Macs_Local table&lt;br/&gt;
MAC         _uuid                                ipaddr locator_set                          logical_switch&lt;br/&gt;
----------- ------------------------------------ ------ ------------------------------------ ------------------------------------&lt;br/&gt;
unknown-dst b841e569-0c2e-4d77-b4a3-240416a5f481 &quot;&quot;     024e56e7-f56b-4fa0-9201-65ac6930e113 567bb87c-d5d9-4292-8eff-9dc04dccec1a&lt;/p&gt;

&lt;p&gt;Mcast_Macs_Remote table&lt;br/&gt;
MAC         _uuid                                ipaddr locator_set                          logical_switch&lt;br/&gt;
----------- ------------------------------------ ------ ------------------------------------ ------------------------------------&lt;br/&gt;
unknown-dst f4a9f429-5be3-49d9-8f35-d1b21a96ad10 &quot;&quot;     5603ff4c-4a46-4a70-adc9-32d2ee8b66b5 567bb87c-d5d9-4292-8eff-9dc04dccec1a&lt;br/&gt;
Physical_Locator table&lt;br/&gt;
_uuid                                dst_ip      encapsulation_type tunnel_key&lt;br/&gt;
------------------------------------ ----------- ------------------ ----------&lt;br/&gt;
f8da2d44-e8d3-4a14-94b4-9549546aa4bf &quot;10.0.0.10&quot; &quot;vxlan_over_ipv4&quot;  []&lt;br/&gt;
d804bff8-6922-4b28-93af-8ca650f203fb &quot;10.0.0.50&quot; &quot;vxlan_over_ipv4&quot;  []&lt;/p&gt;

&lt;p&gt;Physical_Locator_Set table&lt;br/&gt;
_uuid                                locators&lt;br/&gt;
------------------------------------ ----------------------------------------------------------------------------&lt;br/&gt;
024e56e7-f56b-4fa0-9201-65ac6930e113 &lt;span class=&quot;error&quot;&gt;&amp;#91;d804bff8-6922-4b28-93af-8ca650f203fb&amp;#93;&lt;/span&gt;&lt;br/&gt;
5603ff4c-4a46-4a70-adc9-32d2ee8b66b5 &lt;span class=&quot;error&quot;&gt;&amp;#91;d804bff8-6922-4b28-93af-8ca650f203fb, f8da2d44-e8d3-4a14-94b4-9549546aa4bf&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="20681">NETVIRT-760</key>
            <summary>Sometimes vxlan port with remote_ip set to the node itself was created when adding new L2GW Node to Open vSwitch HWVTEP Emulator</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <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="-1">Unassigned</assignee>
                                    <reporter username="ran-xiao@vf.jp.nec.com">Ran Xiao</reporter>
                        <labels>
                    </labels>
                <created>Tue, 4 Jul 2017 10:04:16 +0000</created>
                <updated>Thu, 19 Oct 2017 21:29:18 +0000</updated>
                            <resolved>Tue, 18 Jul 2017 02:19:36 +0000</resolved>
                                    <version>Carbon</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="38045" author="ran-xiao@vf.jp.nec.com" created="Thu, 13 Jul 2017 12:17:35 +0000"  >&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Reproduction Steps&lt;br/&gt;
1. Start L2GW Node without setting HA configuration (ha_id and ha_enabled are no set)&lt;br/&gt;
2. Create L2GW GATEWAY and L2GW CONNECTION&lt;br/&gt;
3. Set HA configuration for L2GW Node (set ha_id and ha_enabled)&lt;br/&gt;
   LogicalSwitch is re-created here&lt;br/&gt;
   VTEP Tunnel I/F of its own is created&lt;br/&gt;
   if it is not created, go to the next step&lt;br/&gt;
4. Stop all OVS processes on L2GW Node, and initialize OVSDB&lt;br/&gt;
5. Repeat steps 1 and 2 again&lt;br/&gt;
   It will be reproduced 100% at this point&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Cause of this issue&lt;br/&gt;
a. When creating L2GW GATEWAY and L2GW CONNECTION&lt;br/&gt;
   L2 Gateway device information is registered in ElanL2GwCacheUtils treated as &quot;a L2GW Node without HA setting&quot;   &lt;br/&gt;
b. When setting HA configuration for L2GW Node&lt;br/&gt;
   L2 Gateway device information is registered in ElanL2GwCacheUtils treated as &quot;a L2GW Node with HA setting&quot;   &lt;br/&gt;
   At this point, the L2Gateway device information having the same VTEP is registered as another entry&lt;br/&gt;
c. When updating RemoteMcastMac for &quot;L2GW Node with HA setting&quot;, all TEP information is queried from L2 gateway device&lt;br/&gt;
   There are 2 VTEPs in TEP information queried from ElanL2GwCacheUtils&lt;br/&gt;
   There is an exclusion processing logic to exclude its own VTEP from all TEP information, but only one can be excluded.&lt;br/&gt;
   Therefore, there is still one VTEP of its own remains, which will be registered as its own VTEP.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Proposal&lt;br/&gt;
Change the getting all VTEP method (org.opendaylight.netvirt.elan.l2gw.utils.ElanL2GatewayMulticastUtils#getAllTepIpsOfL2GwDevices())&lt;br/&gt;
logic to NOT to add to the list when the same VTEP exists.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="38046" author="ran-xiao@vf.jp.nec.com" created="Fri, 14 Jul 2017 07:44:09 +0000"  >&lt;p&gt;Pushed the following patch. Waiting for review.&lt;br/&gt;
&amp;lt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/60318/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/60318/&lt;/a&gt;&amp;gt;&lt;/p&gt;</comment>
                            <comment id="38047" author="ran-xiao@vf.jp.nec.com" created="Tue, 18 Jul 2017 02:19:36 +0000"  >&lt;p&gt;Close this bug ticket as the fix patch has been merged.&lt;br/&gt;
&amp;lt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/60318/2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/60318/2&lt;/a&gt;&amp;gt;&lt;/p&gt;</comment>
                    </comments>
                    <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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8796</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=8796]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i01tsf:</customfieldvalue>

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