<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:22:20 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-738] Error occurs when adding a new L2GW Node to the environment which L2GW is running with Open vSwitch HWVTEP Emulator</title>
                <link>https://jira.opendaylight.org/browse/NETVIRT-738</link>
                <project id="10144" key="NETVIRT">netvirt</project>
                    <description>&lt;p&gt;What we want to do&#65306;&lt;br/&gt;
Add L2GW Nodes to the environment which already have one or more L2GW nodes working. &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 a gateway and connection&lt;br/&gt;
   Confirmed the comminocation 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;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;
HWVTEP: Open vSwitch 2.6.1 HWVTEP Emulator&lt;br/&gt;
      : HA Cluster&lt;/p&gt;

&lt;p&gt;karaf.log&#65306;&lt;br/&gt;
2017-06-14 14:14:35,554 | ERROR | on-dispatcher-66 | TransactInvokerImpl              | 292 - org.opendaylight.ovsdb.hwvtepsouthbound-impl - 1.4.1.SNAPSHOT | HWVTEP transaction operation failed referential integrity violation Table Physical_Port column vlan_bindings row d400dc78-d0b2-4a45-beba-326b18eb4d59 references nonexistent row cc7cbc81-eb4d-4f2b-ba04-9dfa6afe849d in table Logical_Switch.&lt;br/&gt;
2017-06-14 14:14:35,555 | ERROR | on-dispatcher-66 | TransactInvokerImpl              | 292 - org.opendaylight.ovsdb.hwvtepsouthbound-impl - 1.4.1.SNAPSHOT | Failed transaction update [tunnel_ips : [] , ]update [vlan_bindings : &lt;/p&gt;
{2222=LogicalSwitch_30ae2d8c_5361_45be_b7a8_a93abf722e8f} , ]&lt;br/&gt;
2017-06-14 14:14:36,047 | ERROR | on-dispatcher-66 | TransactInvokerImpl              | 292 - org.opendaylight.ovsdb.hwvtepsouthbound-impl - 1.4.1.SNAPSHOT | HWVTEP transaction operation failed referential integrity violation Table Ucast_Macs_Remote column locator row 17ddb12a-f4de-487d-908f-1717790100f1 references nonexistent row 00000000-0000-0000-0000-000000000000 in table Physical_Locator.&lt;br/&gt;
2017-06-14 14:14:36,047 | ERROR | on-dispatcher-66 | TransactInvokerImpl              | 292 - org.opendaylight.ovsdb.hwvtepsouthbound-impl - 1.4.1.SNAPSHOT | Failed transaction insert [name : 30ae2d8c-5361-45be-b7a8-a93abf722e8f , tunnel_key : &lt;span class=&quot;error&quot;&gt;&amp;#91;96&amp;#93;&lt;/span&gt; , ]   insert &lt;span class=&quot;error&quot;&gt;&amp;#91;encapsulation_type : vxlan_over_ipv4 , dst_ip : 10.0.0.10 , &amp;#93;&lt;/span&gt;   insert [locators : &lt;span class=&quot;error&quot;&gt;&amp;#91;PhysicalLocator_Random_61098e5741e640c6a118896b0c87e1c9&amp;#93;&lt;/span&gt; , ]   insert &lt;span class=&quot;error&quot;&gt;&amp;#91;locator_set : PhysicalLocatorSet_Random_49a5353230ee467c8a8254689b15a162 , logical_switch : LogicalSwitch_30ae2d8c_5361_45be_b7a8_a93abf722e8f , MAC : unknown-dst , &amp;#93;&lt;/span&gt;   insert &lt;span class=&quot;error&quot;&gt;&amp;#91;logical_switch : LogicalSwitch_30ae2d8c_5361_45be_b7a8_a93abf722e8f , MAC : fa:16:3e:fa:1d:10 , &amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;br/&gt;
Cause of failure:&lt;br/&gt;
The operation order of OVSDB is incorrect.&lt;br/&gt;
The uuid of LogicalSwitch_30ae2d8c_5361_45be_b7a8_a93abf722e8f will not be assigned &lt;br/&gt;
if update [vlan_bindings : {2222=LogicalSwitch_30ae2d8c_5361_45be_b7a8_a93abf722e8f}
&lt;p&gt; , ] &lt;br/&gt;
is not executed after Logical Switch creation with &lt;br/&gt;
operation of insert [name : 30ae2d8c-5361-45be-b7a8-a93abf722e8f , tunnel_key : &lt;span class=&quot;error&quot;&gt;&amp;#91;96&amp;#93;&lt;/span&gt; , ]&lt;/p&gt;


&lt;p&gt;Below are commands we executed.&lt;br/&gt;
---- HWVTEP#1/HWVTEP#2 ----&lt;br/&gt;
vtep=10.0.0.50&lt;br/&gt;
BRIDGE=ocata-l2gw1&lt;br/&gt;
HA_ID=0123456789&lt;br/&gt;
ovsdb-server --pidfile --detach --log-file --remote=punix:/var/run/openvswitch/db.sock --remote=db:hardware_vtep,Global,managers --remote=ptcp:6632 /etc/openvswitch/ovs.db /etc/openvswitch/vtep.db&lt;br/&gt;
ovs-vswitchd --log-file --detach --pidfile unix:/var/run/openvswitch/db.sock&lt;br/&gt;
ovs-vsctl add-br $BRIDGE&lt;br/&gt;
ovs-vsctl add-port $BRIDGE eth2&lt;br/&gt;
vtep-ctl add-ps $BRIDGE&lt;br/&gt;
vtep-ctl set Physical_Switch $BRIDGE tunnel_ips=$vtep&lt;br/&gt;
/usr/share/openvswitch/scripts/ovs-vtep --log-file=/var/log/openvswitch/ovs-vtep.log --pidfile=/var/run/openvswitch/ovs-vtep.pid --detach $BRIDGE&lt;br/&gt;
vtep-ctl set-manager tcp:172.16.1.30:6640&lt;br/&gt;
MANAGERUUID=$(vtep-ctl list Manager | grep ^_uuid | awk -F: &apos;&lt;/p&gt;
{print $2}
&lt;p&gt;&apos; | tr -d &apos; &apos;)&lt;br/&gt;
vtep-ctl set Manager $MANAGERUUID other_config:ha_enabled=true&lt;br/&gt;
vtep-ctl set Manager $MANAGERUUID other_config:ha_id=$HA_ID&lt;br/&gt;
vtep-ctl list Manager&lt;br/&gt;
---------------------------&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="20659">NETVIRT-738</key>
            <summary>Error occurs when adding a new L2GW Node to the environment which L2GW is running with 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>
                                            <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="-1">Unassigned</assignee>
                                    <reporter username="ran-xiao@vf.jp.nec.com">Ran Xiao</reporter>
                        <labels>
                    </labels>
                <created>Mon, 19 Jun 2017 09:29:15 +0000</created>
                <updated>Thu, 5 Apr 2018 20:47:30 +0000</updated>
                            <resolved>Thu, 5 Apr 2018 20:47:30 +0000</resolved>
                                    <version>Carbon</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>15</watches>
                                                                                                                <comments>
                            <comment id="37996" author="ran-xiao@vf.jp.nec.com" created="Thu, 22 Jun 2017 09:23:35 +0000"  >&lt;p&gt;We are considering how to fix it now.&lt;br/&gt;
Hope to get some advice about which product should we fix. ovsdb or netvirt?&lt;/p&gt;

&lt;p&gt;Cause of the bug:&lt;br/&gt;
When HWVTEP Node is added, netvirt use &apos;GlobalAugmentationMerger&apos; to merge and update &apos;RemoteMcastCmd,RemoteUcastCmd,LocalUcastCmd,LocalMcastCmd,LogicalSwichesCmd,SwichesCmd&apos; to MD-SAL at one time.&lt;br/&gt;
This trigger ovsdb to write data into OVS ,but without conscious of operation order.&lt;br/&gt;
Then error occur caused by the incorrect operation order. &lt;/p&gt;


&lt;p&gt;Proposal 1: fix in netvirt&lt;br/&gt;
Only merge LogicalSwichesCmd at first and write to MD-SAL&lt;br/&gt;
Wait till ovsdb begin to process the updates in MD-SAL&lt;br/&gt;
Then merge other data and write to MD-SAL&lt;/p&gt;


&lt;p&gt;Proposal 2: fix in ovsdb&lt;br/&gt;
Check whether LogicalSwitch data has been written,&lt;br/&gt;
if no, do not write other data into OVS&lt;br/&gt;
if yes, then write other data into OVS&lt;/p&gt;</comment>
                            <comment id="37997" author="ran-xiao@vf.jp.nec.com" created="Wed, 28 Jun 2017 08:37:42 +0000"  >&lt;p&gt;We chose &apos;Proposal 1: fix in netvirt&apos; to fix this bug.&lt;br/&gt;
And we have pushed the code.&lt;br/&gt;
Please help to review the changes.&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/59598&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/59598&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="37998" author="k.v.suneelu.verma@ericsson.com" created="Tue, 5 Sep 2017 13:07:13 +0000"  >&lt;p&gt;Review in progress for plugin&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/61606/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/61606/&lt;/a&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>8712</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=8712]]></customfieldvalue>

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

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