<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:36:21 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>[OVSDB-421] Tunnel_ips of hardware_vtep is cleared when Open vSwitch process restarted in Open vSwitch HWVTEP Emulator</title>
                <link>https://jira.opendaylight.org/browse/OVSDB-421</link>
                <project id="10158" key="OVSDB">ovsdb</project>
                    <description>&lt;p&gt;Issue:&lt;br/&gt;
Tunnel_ips of hardware_vtep is cleared when Open vSwitch process restarted in Open vSwitch HWVTEP Emulator.&lt;/p&gt;

&lt;p&gt;Tunnel_ips is cleared when ovsdb-server connects to ODL.&lt;/p&gt;


&lt;p&gt;Details:&lt;br/&gt;
 In one L2GW Node(with HA setting) environment, restart Open vSwitch process after GW/CONNECTION creation : 5 / 5 times happened&lt;br/&gt;
 In one L2GW Node(without HA setting) environment, restart Open vSwitch process after GW/CONNECTION creation : 0 / 5 times happened&lt;/p&gt;


&lt;p&gt;Reproduction Steps&lt;br/&gt;
 1.Initialization&lt;br/&gt;
  1.1 Initialize ODL &lt;br/&gt;
        Delete snapshots, journal, data folders&lt;br/&gt;
        Start ODL&lt;br/&gt;
        Install feature&lt;br/&gt;
  1.2 Set OVS in Controller/Compute Node to connect ODL&lt;br/&gt;
  1.3 Create Network&lt;br/&gt;
  1.4 Initialize L2GW Node and connect to ODL&lt;br/&gt;
  1.5 Create GW/CONNECTION&lt;br/&gt;
 2.L2GW Node process&lt;br/&gt;
    ovsdb-client dump hardware_vtep &amp;gt; /tmp/before&lt;br/&gt;
    ps -ef|grep ovs-vtep | grep -v grep | awk &apos;&lt;/p&gt;
{print &quot;kill &quot;$2}
&lt;p&gt;&apos; | sh&lt;br/&gt;
    pkill ovs-vswitchd&lt;br/&gt;
    pkill ovsdb-server&lt;br/&gt;
    ovs-dpctl del-flows system@ovs-system&lt;br/&gt;
    ps -ef | grep ovs | grep -v grep&lt;br/&gt;
    ps -ef | grep -v &apos;[&apos; | grep -v grep&lt;br/&gt;
 3.Start L2GW Node process&lt;br/&gt;
    vtep=10.0.0.50&lt;br/&gt;
    ovsdb-server --pidfile --detach --log-file \&lt;br/&gt;
        -vsyslog:dbg -vfile:dbg \&lt;br/&gt;
        --remote=punix:/var/run/openvswitch/db.sock \&lt;br/&gt;
        --remote=db:hardware_vtep,Global,managers \&lt;br/&gt;
        --remote=ptcp:6632 /etc/openvswitch/ovs.db /etc/openvswitch/vtep.db&lt;br/&gt;
    ovsdb-client dump hardware_vtep &amp;gt; /tmp/after-1&lt;br/&gt;
    sleep 1&lt;br/&gt;
    ovsdb-client dump hardware_vtep &amp;gt; /tmp/after-2&lt;br/&gt;
    sleep 1&lt;br/&gt;
    ovsdb-client dump hardware_vtep &amp;gt; /tmp/after-3&lt;br/&gt;
    sleep 1&lt;br/&gt;
    ovsdb-client dump hardware_vtep &amp;gt; /tmp/after-4&lt;/p&gt;


&lt;p&gt;LOG Info:&lt;br/&gt;
The following logs are collected for environment of L2GW Node with HA setting.&lt;br/&gt;
karaf.log&lt;br/&gt;
ovsdb-server.log&lt;/p&gt;


&lt;p&gt;Investigation:&lt;br/&gt;
We found the tunnel_ips setting requests log in ovsdb-server.log:&lt;br/&gt;
2017-07-18T06:26:14.968Z|00062|jsonrpc|DBG|tcp:172.16.1.30:6640: received request, method=&quot;transact&quot;, params=[&quot;hardware_vtep&quot;,{&quot;where&quot;:[&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;name&amp;quot;,&amp;quot;==&amp;quot;,&amp;quot;ocata-l2gw1&amp;quot;&amp;#93;&lt;/span&gt;],&quot;table&quot;:&quot;Physical_Switch&quot;,&quot;op&quot;:&quot;update&quot;,&quot;row&quot;:{&quot;tunnel_ips&quot;:[&quot;set&quot;,[]]}},&lt;/p&gt;
{&quot;comment&quot;:&quot;Physical Switch: Updating ocata-l2gw1&quot;,&quot;op&quot;:&quot;comment&quot;}
&lt;p&gt;], id=&quot;f219d330-cc99-4bd0-bfed-ace6878bc80e&quot;&lt;br/&gt;
2017-07-18T06:26:14.968Z|00063|jsonrpc|DBG|tcp:172.16.1.30:6640: send notification, method=&quot;update&quot;, params=[&quot;ec3f9930-be2f-4d4d-91ea-1b9c042b9c16&quot;,{&quot;Physical_Switch&quot;:{&quot;36939d13-f767-4385-bd37-b4829611fd5b&quot;:{&quot;new&quot;:&lt;/p&gt;
{&quot;_version&quot;:[&quot;uuid&quot;,&quot;415b5777-3122-4157-bff0-0c282fdc06a4&quot;],&quot;name&quot;:&quot;ocata-l2gw1&quot;,&quot;description&quot;:&quot;OVS VTEP Emulator&quot;,&quot;other_config&quot;:[&quot;map&quot;,[]],&quot;switch_fault_status&quot;:[&quot;set&quot;,[]],&quot;management_ips&quot;:[&quot;set&quot;,[]],&quot;tunnels&quot;:[&quot;uuid&quot;,&quot;5e77e08c-68d6-4e9c-bdfe-e052446b52b8&quot;],&quot;ports&quot;:[&quot;uuid&quot;,&quot;7b986670-e6e8-4209-b157-369d6a107137&quot;],&quot;_uuid&quot;:[&quot;uuid&quot;,&quot;36939d13-f767-4385-bd37-b4829611fd5b&quot;],&quot;tunnel_ips&quot;:[&quot;set&quot;,[]]}
&lt;p&gt;,&quot;old&quot;:{&quot;_version&quot;:&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;uuid&amp;quot;,&amp;quot;b866dc9f-a024-4b30-8d64-ab397ef62bd4&amp;quot;&amp;#93;&lt;/span&gt;,&quot;tunnel_ips&quot;:&quot;10.0.0.50&quot;}}}}]&lt;/p&gt;

&lt;p&gt;And found the following log about information update has been raised from OVS in karaf.log&lt;br/&gt;
2017-07-18 15:26:15,201 | TRACE | entLoopGroup-5-1 | HwvtepMonitorCallback            | 292 - org.opendaylight.ovsdb.hwvtepsouthbound-impl - 1.4.1.SNAPSHOT | result: TableUpdates [map={Physical_Switch=TableUpdate [{36939d13-f767-4385-bd37-b4829611fd5b=RowUpdate [uuid=36939d13-f767-4385-bd37-b4829611fd5b, oldRow=Row [columns=&lt;/p&gt;
{tunnel_ips=[tunnel_ips=[10.0.0.50]], _version=[_version=b866dc9f-a024-4b30-8d64-ab397ef62bd4]}
&lt;p&gt;], newRow=Row [columns={tunnels=[tunnels=&lt;span class=&quot;error&quot;&gt;&amp;#91;5e77e08c-68d6-4e9c-bdfe-e052446b52b8&amp;#93;&lt;/span&gt;], tunnel_ips=[tunnel_ips=[]], other_config=&lt;span class=&quot;error&quot;&gt;&amp;#91;other_config={}&amp;#93;&lt;/span&gt;, management_ips=[management_ips=[]], name=&lt;span class=&quot;error&quot;&gt;&amp;#91;name=ocata-l2gw1&amp;#93;&lt;/span&gt;, description=&lt;span class=&quot;error&quot;&gt;&amp;#91;description=OVS VTEP Emulator&amp;#93;&lt;/span&gt;, _uuid=&lt;span class=&quot;error&quot;&gt;&amp;#91;_uuid=36939d13-f767-4385-bd37-b4829611fd5b&amp;#93;&lt;/span&gt;, ports=[ports=&lt;span class=&quot;error&quot;&gt;&amp;#91;7b986670-e6e8-4209-b157-369d6a107137&amp;#93;&lt;/span&gt;], _version=&lt;span class=&quot;error&quot;&gt;&amp;#91;_version=415b5777-3122-4157-bff0-0c282fdc06a4&amp;#93;&lt;/span&gt;, switch_fault_status=[switch_fault_status=[]]}]]}]}, error=null, details=null, getError()=null, getDetails()=null, getClass()=class org.opendaylight.ovsdb.lib.message.TableUpdates, hashCode()=1554159592, toString()=org.opendaylight.ovsdb.lib.message.TableUpdates@5ca297e8] dbSchema: hardware_vtep&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22113">OVSDB-421</key>
            <summary>Tunnel_ips of hardware_vtep is cleared when Open vSwitch process restarted in 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="thapar">Vishal Thapar</assignee>
                                    <reporter username="ran-xiao@vf.jp.nec.com">Ran Xiao</reporter>
                        <labels>
                    </labels>
                <created>Fri, 21 Jul 2017 10:14:46 +0000</created>
                <updated>Mon, 30 Oct 2017 19:50:58 +0000</updated>
                            <resolved>Mon, 28 Aug 2017 12:19:05 +0000</resolved>
                                    <version>unspecified</version>
                                                    <component>Southbound.hw_vtep</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="41682" author="ran-xiao@vf.jp.nec.com" created="Fri, 21 Jul 2017 10:14:46 +0000"  >&lt;p&gt;Attachment karaf.log.gz has been added with description: Karaf log&lt;/p&gt;</comment>
                            <comment id="41683" author="ran-xiao@vf.jp.nec.com" created="Fri, 21 Jul 2017 10:15:41 +0000"  >&lt;p&gt;Attachment ovsdb-server.log has been added with description: ovsdb log&lt;/p&gt;</comment>
                            <comment id="41680" author="ran-xiao@vf.jp.nec.com" created="Tue, 25 Jul 2017 00:57:36 +0000"  >&lt;p&gt;Cause of this issue: &lt;br/&gt;
After Open vSwitch process restarted, ODL attempts to acquire tunnel_ips from CONFIGURATION MD-SAL and set it to Physical Switch.&lt;br/&gt;
As tunnel_ips is not set from ODL but is set by vtep-ctl command, it does not exist in CONFIGURATION MD-SAL.&lt;br/&gt;
This caused an empty value is set to tunnel_ips for Physical Switch.&lt;/p&gt;

&lt;p&gt;Proposal: &lt;br/&gt;
Let ODL to acquire tunnel_ips from OPERATIONAL MD-SAL after VTEP Emulator restarted.&lt;/p&gt;</comment>
                            <comment id="41681" author="ran-xiao@vf.jp.nec.com" created="Tue, 25 Jul 2017 06:12:54 +0000"  >&lt;p&gt;Pushed the following patch. Waiting for review.&lt;br/&gt;
60711&amp;lt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/60711/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/60711/&lt;/a&gt;&amp;gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12923" name="karaf.log.gz" size="150405" author="ran-xiao@vf.jp.nec.com" created="Fri, 21 Jul 2017 10:14:46 +0000"/>
                            <attachment id="12924" name="ovsdb-server.log" size="138747" author="ran-xiao@vf.jp.nec.com" created="Fri, 21 Jul 2017 10:15:41 +0000"/>
                    </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>8874</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=8874]]></customfieldvalue>

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

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