<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:36:25 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-444] Port binding failure after rebooting compute node - hostconfig missing</title>
                <link>https://jira.opendaylight.org/browse/OVSDB-444</link>
                <project id="10158" key="OVSDB">ovsdb</project>
                    <description>&lt;p&gt;I have a pike/carbon TripleO based setup.&lt;/p&gt;

&lt;p&gt;Spin up a VM on compute node, verify it gets an IP and can ping. All is good.&lt;/p&gt;

&lt;p&gt;Now, delete the VM, reboot the compute node (sudo shutdown -r now).&lt;/p&gt;

&lt;p&gt;Compute node comes up, tunnel is up between compute and control (good stuff). But, when I boot the VM, port binding fails, as shown below.&lt;/p&gt;

&lt;p&gt;It looks like networking_odl sees the agent as &quot;dead&quot;. Tried booting the VM again, same issue (was wondering if it took some time to see the agent as &quot;alive&quot;).&lt;/p&gt;

&lt;p&gt;This log is generated:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;2017-11-29 23:52:38.233 56464 WARNING networking_odl.ml2.pseudo_agentdb_binding [req-fde69db7-2e68-4d1b-887c-3d16680cf567 74655be1d3634adc8234db3b9a35d083 231c8ce05e234185ac3db9c98e5eb3bd - default default] Refusing to bind port 13029ea7-
 9821-4796-a1d3-0640a8b14873 to dead pseudo agent: {&apos;binary&apos;: u&apos;neutron-odlagent-portbinding&apos;, &apos;description&apos;: None, &apos;admin_state_up&apos;: True, &apos;heartbeat_timestamp&apos;: datetime.datetime(2017, 11, 29, 23, 46, 18), &apos;availability_zone&apos;: None, &apos;ali
 ve&apos;: False, &apos;topic&apos;: u&apos;N/A&apos;, &apos;host&apos;: u&apos;overcloud-novacompute-0.opnfvlf.org&apos;, &apos;agent_type&apos;: u&apos;ODL L2&apos;, &apos;resource_versions&apos;: {}, &apos;created_at&apos;: datetime.datetime(2017, 11, 28, 2, 40, 59), &apos;started_at&apos;: datetime.datetime(2017, 11, 28, 2, 40, 
 59), &apos;id&apos;: u&apos;dddc4a58-fee2-4788-b560-433be36f64fd&apos;, &apos;configurations&apos;: {u&apos;allowed_network_types&apos;: [u&apos;local&apos;, u&apos;vlan&apos;, u&apos;vxlan&apos;, u&apos;gre&apos;], u&apos;bridge_mappings&apos;:
{u&apos;datacentre&apos;: u&apos;br-ex&apos;}
, u&apos;supported_vnic_types&apos;: [{u&apos;vnic_type&apos;: u&apos;normal&apos;, u&apos;v
 if_type&apos;: u&apos;ovs&apos;, u&apos;vif_details&apos;: {}}]}} 
 2017-11-29 23:52:38.233 56464 WARNING networking_odl.ml2.pseudo_agentdb_binding [req-fde69db7-2e68-4d1b-887c-3d16680cf567 74655be1d3634adc8234db3b9a35d083 231c8ce05e234185ac3db9c98e5eb3bd - default default] No ODL hostconfigs for host ove
 rcloud-novacompute-0.opnfvlf.org found in agentdb
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;More debugging with input from devs, indicates that hostconfig is missing from ODL.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Here is that query after reboot of compute node.&lt;/p&gt;

&lt;p&gt;[&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;root@overcloud-controller-0 neutron]# curl -s -u admin:admin -X GET http://${CIP}:8181/restconf/operational/neutron:neutron/hostconfigs/ | python -m json.tool 
 { 
 &quot;hostconfigs&quot;: { 
 &quot;hostconfig&quot;: [ 
 { 
 &quot;config&quot;: &quot;{ \&quot;supported_vnic_types\&quot;: [{ \&quot;vnic_type\&quot;: \&quot;normal\&quot;, \&quot;vif_type\&quot;: \&quot;ovs\&quot;, \&quot;vif_details\&quot;: {} }], \&quot;allowed_network_types\&quot;: [\&quot;local\&quot;,\&quot;vlan\&quot;,\&quot;vxlan\&quot;,\&quot;gre\&quot;], \&quot;bridge_mappings\&quot;: {\&quot;da
 tacentre\&quot;:\&quot;br-ex\&quot;}}&quot;, 
 &quot;host-id&quot;: &quot;overcloud-controller-0.opnfvlf.org&quot;, 
 &quot;host-type&quot;: &quot;ODL L2&quot; 
 } 
 ] 
 } 
 } 
 [root@overcloud-controller-0 neutron]#&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;One last data point. I went to the compute node, did a del-manager, then set-manager, and the compute node is now in the host config, and I can boot VMs on the compute node again.&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;(overcloud) &lt;span class=&quot;error&quot;&gt;&amp;#91;heat-admin@overcloud-controller-0 log&amp;#93;&lt;/span&gt;$ curl -s -u admin:admin -X GET &lt;a href=&quot;http://$&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://$&lt;/a&gt;{CIP}:8181/restconf/operational/neutron:neutron/hostconfigs/ | python -m json.tool &lt;br/&gt;
 { &lt;br/&gt;
 &quot;hostconfigs&quot;: { &lt;br/&gt;
 &quot;hostconfig&quot;: [ &lt;br/&gt;
 { &lt;br/&gt;
 &quot;config&quot;: &quot;{ \&quot;supported_vnic_types\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;{ \&amp;quot;vnic_type\&amp;quot;: \&amp;quot;normal\&amp;quot;, \&amp;quot;vif_type\&amp;quot;: \&amp;quot;ovs\&amp;quot;, \&amp;quot;vif_details\&amp;quot;: {} }&amp;#93;&lt;/span&gt;, \&quot;allowed_network_types\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;\&amp;quot;local\&amp;quot;,\&amp;quot;vlan\&amp;quot;,\&amp;quot;vxlan\&amp;quot;,\&amp;quot;gre\&amp;quot;&amp;#93;&lt;/span&gt;, \&quot;bridge_mappings\&quot;: {\&quot;da&lt;br/&gt;
 tacentre\&quot;:\&quot;br-ex\&quot;}}&quot;, &lt;br/&gt;
 &quot;host-id&quot;: &quot;overcloud-controller-0.opnfvlf.org&quot;, &lt;br/&gt;
 &quot;host-type&quot;: &quot;ODL L2&quot; &lt;br/&gt;
 }, &lt;br/&gt;
 { &lt;br/&gt;
 &quot;config&quot;: &quot;{ \&quot;supported_vnic_types\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;{ \&amp;quot;vnic_type\&amp;quot;: \&amp;quot;normal\&amp;quot;, \&amp;quot;vif_type\&amp;quot;: \&amp;quot;ovs\&amp;quot;, \&amp;quot;vif_details\&amp;quot;: {} }&amp;#93;&lt;/span&gt;, \&quot;allowed_network_types\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;\&amp;quot;local\&amp;quot;,\&amp;quot;vlan\&amp;quot;,\&amp;quot;vxlan\&amp;quot;,\&amp;quot;gre\&amp;quot;&amp;#93;&lt;/span&gt;, \&quot;bridge_mappings\&quot;: {\&quot;da&lt;br/&gt;
 tacentre\&quot;:\&quot;br-ex\&quot;}}&quot;, &lt;br/&gt;
 &quot;host-id&quot;: &quot;overcloud-novacompute-0.opnfvlf.org&quot;, &lt;br/&gt;
 &quot;host-type&quot;: &quot;ODL L2&quot; &lt;br/&gt;
 } &lt;br/&gt;
 ] &lt;br/&gt;
 } &lt;br/&gt;
 } &lt;br/&gt;
 (overcloud) &lt;span class=&quot;error&quot;&gt;&amp;#91;heat-admin@overcloud-controller-0 log&amp;#93;&lt;/span&gt;${noformat}&lt;br/&gt;
&#160;&lt;/p&gt;

&lt;p&gt;From Moshe, another workaound is to restart opendaylight service.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;ins&gt;&lt;b&gt;Isaku&apos;s email describing some relevant behavior:&lt;/b&gt;&lt;/ins&gt;&lt;/p&gt;

&lt;p&gt;Right now Ran Xiao has reported a bug related to hostconfig.&lt;br/&gt;
 We&apos;re looking into it. Due to the issue, hostconfig entry may not be&lt;br/&gt;
 created properly. It can be diagnosed by looking the log of ODL.&lt;br/&gt;
 &lt;a href=&quot;https://lists.opendaylight.org/pipermail/neutron-dev/2017-November/001472.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lists.opendaylight.org/pipermail/neutron-dev/2017-November/001472.html&lt;/a&gt;&lt;br/&gt;
 &lt;a href=&quot;https://jira.opendaylight.org/browse/NEUTRON-151&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.opendaylight.org/browse/NEUTRON-151&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When compute node is shutdown, hostconfig entry in MD-SAL is deleted as ovsdb&lt;br/&gt;
 connection is deleted. Then entry in neutron agentdb is deleted, thus&lt;br/&gt;
 port binding on the shutdown compute node will fail. This is&lt;br/&gt;
 intentional behavior as Daya pointed it out.&lt;/p&gt;

&lt;p&gt;Then, suppose the compute node is back. When port binding occurs and agentdb&lt;br/&gt;
 entry is not found or the entry is not alive, networking-odl tries to&lt;br/&gt;
 refresh agentdb by retrieving hostconfig of the compute node from ODL&lt;br/&gt;
 to update agentdb with new one.&lt;br/&gt;
 This logic is introduced from Pike release. Before Pike, periodic update&lt;br/&gt;
 was used. 30 sec polling.&lt;/p&gt;

&lt;p&gt;If hostconfig in MD-SAL isn&apos;t populated after rebooting compude node,&lt;br/&gt;
 it sounds like a bug somewhere in ODL. Probably ODL Neutron Northbound.&lt;br/&gt;
 I&apos;m quite happy to look into it.&lt;br/&gt;
 I would look at MD-SAL hostconfig, and then topology to check if&lt;br/&gt;
 corresponding ovsdb entry exists.&lt;/p&gt;</description>
                <environment></environment>
        <key id="28989">OVSDB-444</key>
            <summary>Port binding failure after rebooting compute node - hostconfig missing</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="vpickard">Victor Pickard</assignee>
                                    <reporter username="vpickard">Victor Pickard</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Dec 2017 21:32:10 +0000</created>
                <updated>Thu, 2 May 2019 00:01:06 +0000</updated>
                            <resolved>Thu, 2 May 2019 00:01:06 +0000</resolved>
                                    <version>Oxygen-SR4</version>
                    <version>Fluorine</version>
                                    <fixVersion>Fluorine</fixVersion>
                                    <component>Southbound.Open_vSwitch</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="60480" author="ritusood" created="Thu, 14 Dec 2017 22:36:10 +0000"  >&lt;p&gt;&#160;After reboot of compute node can you also check the ovsdb tables and check if the tables are populated with the hostconfig data. (&#160;ovs-vsctl list Open_vSwitch)&lt;/p&gt;</comment>
                            <comment id="60481" author="vpickard" created="Thu, 14 Dec 2017 23:55:33 +0000"  >&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Yes, the tables are populated with host config after reboot. Here is the dump before reboot:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;stack@control2 vagrant&amp;#93;&lt;/span&gt;$ sudo ovs-vsctl list Open_vSwitch &lt;br/&gt;
 _uuid &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: 02ca8a9e-06b0-4147-8cb4-38e77d882242 &lt;br/&gt;
 bridges &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: &lt;span class=&quot;error&quot;&gt;&amp;#91;53143932-72fd-451f-9465-a1a06ba8a0d0, 9a905ed7-99f1-405e-a6e6-bff5ba3bdacb&amp;#93;&lt;/span&gt; &lt;br/&gt;
 cur_cfg &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: 10 &lt;br/&gt;
 datapath_types &#160;&#160;&#160;&#160;&#160;: &lt;span class=&quot;error&quot;&gt;&amp;#91;netdev, system&amp;#93;&lt;/span&gt; &lt;br/&gt;
 db_version &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: &quot;7.14.0&quot; &lt;br/&gt;
 external_ids &#160;&#160;&#160;&#160;&#160;&#160;&#160;: {hostname=&quot;control2&quot;, &quot;odl_os_hostconfig_config_odl_l2&quot;=&quot;{\&quot;allowed_network_types\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;\&amp;quot;local\&amp;quot;, \&amp;quot;flat\&amp;quot;, \&amp;quot;vlan\&amp;quot;, \&amp;quot;vxlan\&amp;quot;, \&amp;quot;gre\&amp;quot;&amp;#93;&lt;/span&gt;, \&quot;bridge_m&lt;br/&gt;
 appings\&quot;: {}, \&quot;datapath_type\&quot;: \&quot;system\&quot;, \&quot;supported_vnic_types\&quot;: [{\&quot;vif_type\&quot;: \&quot;ovs\&quot;, \&quot;vnic_type\&quot;: \&quot;normal\&quot;, \&quot;vif_details\&quot;: {\&quot;support_vhost_user\&quot;: fals&lt;br/&gt;
 e, \&quot;has_datapath_type_netdev\&quot;: false, \&quot;uuid\&quot;: \&quot;02ca8a9e-06b0-4147-8cb4-38e77d882242\&quot;, \&quot;host_addresses\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;\&amp;quot;control2\&amp;quot;&amp;#93;&lt;/span&gt;}}]}&quot;, odl_os_hostconfig_hostid=&quot;control2&quot;, &lt;br/&gt;
 system-id=&quot;0697fb3a-40e3-4d15-b055-9af0f2e34f1c&quot;} &lt;br/&gt;
 iface_types &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: &lt;span class=&quot;error&quot;&gt;&amp;#91;geneve, gre, internal, ipsec_gre, lisp, patch, stt, system, tap, vxlan&amp;#93;&lt;/span&gt; &lt;br/&gt;
 manager_options &#160;&#160;&#160;&#160;: &lt;span class=&quot;error&quot;&gt;&amp;#91;3cb6b115-bb53-4cb6-88ad-39691c54822a&amp;#93;&lt;/span&gt; &lt;br/&gt;
 next_cfg &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: 10 &lt;br/&gt;
 other_config &#160;&#160;&#160;&#160;&#160;&#160;&#160;: {local_ip=&quot;192.168.254.251&quot;} &lt;br/&gt;
 ovs_version &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: &quot;2.6.1&quot; &lt;br/&gt;
 ssl &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: [] &lt;br/&gt;
 statistics &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: {} &lt;br/&gt;
 system_type &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: centos &lt;br/&gt;
 system_version &#160;&#160;&#160;&#160;&#160;: &quot;7&quot; &lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;stack@control2 vagrant&amp;#93;&lt;/span&gt;$ sudo shutdown -r now&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Dump after reboot&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;stack@control2 vagrant&amp;#93;&lt;/span&gt;$ sudo ovs-vsctl list Open_vSwitch &lt;br/&gt;
 _uuid &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: 02ca8a9e-06b0-4147-8cb4-38e77d882242 &lt;br/&gt;
 bridges &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: &lt;span class=&quot;error&quot;&gt;&amp;#91;53143932-72fd-451f-9465-a1a06ba8a0d0, 9a905ed7-99f1-405e-a6e6-bff5ba3bdacb&amp;#93;&lt;/span&gt; &lt;br/&gt;
 cur_cfg &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: 10 &lt;br/&gt;
 datapath_types &#160;&#160;&#160;&#160;&#160;: &lt;span class=&quot;error&quot;&gt;&amp;#91;netdev, system&amp;#93;&lt;/span&gt; &lt;br/&gt;
 db_version &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: &quot;7.14.0&quot; &lt;br/&gt;
 external_ids &#160;&#160;&#160;&#160;&#160;&#160;&#160;: {hostname=&quot;control2&quot;, &quot;odl_os_hostconfig_config_odl_l2&quot;=&quot;{\&quot;allowed_network_types\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;\&amp;quot;local\&amp;quot;, \&amp;quot;flat\&amp;quot;, \&amp;quot;vlan\&amp;quot;, \&amp;quot;vxlan\&amp;quot;, \&amp;quot;gre\&amp;quot;&amp;#93;&lt;/span&gt;, \&quot;bridge_m&lt;br/&gt;
 appings\&quot;: {}, \&quot;datapath_type\&quot;: \&quot;system\&quot;, \&quot;supported_vnic_types\&quot;: [{\&quot;vif_type\&quot;: \&quot;ovs\&quot;, \&quot;vnic_type\&quot;: \&quot;normal\&quot;, \&quot;vif_details\&quot;: {\&quot;support_vhost_user\&quot;: fals&lt;br/&gt;
 e, \&quot;has_datapath_type_netdev\&quot;: false, \&quot;uuid\&quot;: \&quot;02ca8a9e-06b0-4147-8cb4-38e77d882242\&quot;, \&quot;host_addresses\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;\&amp;quot;control2\&amp;quot;&amp;#93;&lt;/span&gt;}}]}&quot;, odl_os_hostconfig_hostid=&quot;control2&quot;, &lt;br/&gt;
 system-id=&quot;0697fb3a-40e3-4d15-b055-9af0f2e34f1c&quot;} &lt;br/&gt;
 iface_types &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: &lt;span class=&quot;error&quot;&gt;&amp;#91;geneve, gre, internal, ipsec_gre, lisp, patch, stt, system, tap, vxlan&amp;#93;&lt;/span&gt; &lt;br/&gt;
 manager_options &#160;&#160;&#160;&#160;: &lt;span class=&quot;error&quot;&gt;&amp;#91;3cb6b115-bb53-4cb6-88ad-39691c54822a&amp;#93;&lt;/span&gt; &lt;br/&gt;
 next_cfg &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: 10 &lt;br/&gt;
 other_config &#160;&#160;&#160;&#160;&#160;&#160;&#160;: {local_ip=&quot;192.168.254.251&quot;} &lt;br/&gt;
 ovs_version &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: &quot;2.6.1&quot; &lt;br/&gt;
 ssl &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: [] &lt;br/&gt;
 statistics &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: {} &lt;br/&gt;
 system_type &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;: centos &lt;br/&gt;
 system_version &#160;&#160;&#160;&#160;&#160;: &quot;7&quot; &lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;stack@control2 vagrant&amp;#93;&lt;/span&gt;$&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="60498" author="ritusood" created="Sat, 16 Dec 2017 06:27:37 +0000"  >&lt;p&gt;That&apos;s good.&lt;/p&gt;

&lt;p&gt;One other thing to verify is whether after reboot the ovsdb manager is set before the ovsdb tables are updated with the hostconfig information. If&#160;the sequence is reversed that can cause ODL to miss hostconfig update.&#160;&lt;/p&gt;</comment>
                            <comment id="60527" author="yamahata" created="Wed, 20 Dec 2017 18:32:09 +0000"  >&lt;p&gt;ovsdb table looks good. What about ovsdb entry in topology in MD-SAL?&lt;/p&gt;

&lt;p&gt;ODL ovsdb handles reboots properly?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="60529" author="vpickard" created="Wed, 20 Dec 2017 19:36:08 +0000"  >&lt;p&gt;The OVSDB node is not in the topology in MD-SAL after reboot.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Here is the compute node info. I have attached 2 files, one with topology before reboot, one with after reboot. You will see that this node is not there after node reboot.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/attachment/14328/14328_topologyBeforeRebootCompute&quot; title=&quot;topologyBeforeRebootCompute attached to OVSDB-444&quot;&gt;topologyBeforeRebootCompute&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.opendaylight.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/attachment/14329/14329_topologyAfterRebootCompute&quot; title=&quot;topologyAfterRebootCompute attached to OVSDB-444&quot;&gt;topologyAfterRebootCompute&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.opendaylight.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;heat-admin@overcloud-novacompute-0 ~&amp;#93;&lt;/span&gt;$ sudo ovs-vsctl show &lt;br/&gt;
2e084435-25bc-4037-b1c5-30b90f6f983d &lt;br/&gt;
 &#160;&#160;&#160;Manager &quot;tcp:192.0.2.14:6640&quot; &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;is_connected: true &lt;br/&gt;
 &#160;&#160;&#160;Bridge br-ex &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;fail_mode: standalone &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;Port br-ex &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Interface br-ex &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;type: internal &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;Port &quot;eth2&quot; &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Interface &quot;eth2&quot; &lt;br/&gt;
 &#160;&#160;&#160;Bridge br-int &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;Controller &quot;tcp:192.0.2.14:6653&quot; &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;is_connected: true &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;fail_mode: secure &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;Port br-int &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Interface br-int &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;type: internal &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;Port br-ex-patch &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Interface br-ex-patch &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;type: patch &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;options: {peer=br-ex-int-patch} &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;Port &quot;tuncd01fa2b4fa&quot; &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Interface &quot;tuncd01fa2b4fa&quot; &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;type: vxlan &lt;br/&gt;
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;options: {key=flow, local_ip=&quot;11.0.0.26&quot;, remote_ip=&quot;11.0.0.25&quot;} &lt;br/&gt;
 &#160;&#160;&#160;ovs_version: &quot;2.7.3&quot; &lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;heat-admin@overcloud-novacompute-0 ~&amp;#93;&lt;/span&gt;$&lt;/p&gt;</comment>
                            <comment id="60531" author="yamahata" created="Wed, 20 Dec 2017 21:43:26 +0000"  >&lt;p&gt;I&apos;m asking the value in MD-SAL ovsdb model. not ovsdb table in ovs.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="60587" author="vpickard" created="Wed, 3 Jan 2018 18:58:59 +0000"  >&lt;p&gt;Isaku,&lt;/p&gt;

&lt;p&gt;Look at my comment earlier, from 20/Dec/17.&#160; There are 2 links, in that comment, which are the MD-SAL dumps. You can see that the OVSDB node was not in the topology after reboot. So, this appears to be an OVSDB bug, I&apos;ll change the bug.&#160;&lt;/p&gt;</comment>
                            <comment id="64710" author="vpickard" created="Wed, 22 Aug 2018 16:30:38 +0000"  >&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I&apos;m still seeing this with queens/oxygen.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Some karaf logs that may be of interest.... Will keep digging.&lt;/p&gt;

{no format}&lt;br/&gt;
&lt;br/&gt;
2018-08-22T19:39:23,469 | ERROR | OVSDBConnNotifSer-9 | OvsdbConnectionManager           | 393 - org.opendaylight.ovsdb.southbound-impl - 1.6.4.SNAPSHOT | Old connection still hanging for Entity{type=&apos;ovsdb&apos;, id=/(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)network-topology/topology/topology&lt;span class=&quot;error&quot;&gt;&amp;#91;{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)topology-id=ovsdb:1}&amp;#93;&lt;/span&gt;/node/node&lt;span class=&quot;error&quot;&gt;&amp;#91;{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node-id=ovsdb://uuid/922f7894-5e8f-4b34-8284-8029f3934312}&amp;#93;&lt;/span&gt;}&lt;br/&gt;
2018-08-22T19:39:23,469 | INFO  | OVSDBConnNotifSer-9 | OvsdbConnectionManager           | 393 - org.opendaylight.ovsdb.southbound-impl - 1.6.4.SNAPSHOT | Library disconnected PASSIVE from /10.8.125.231:49846 to /10.8.125.230:6640. Cleaning up the operational data store&lt;br/&gt;
2018-08-22T19:39:23,469 | INFO  | OVSDBConnNotifSer-9 | OvsdbConnectionManager           | 393 - org.opendaylight.ovsdb.southbound-impl - 1.6.4.SNAPSHOT | Library disconnected ConnectionInfo [_localIp=IpAddress [_ipv4Address=Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.8.125.230&amp;#93;&lt;/span&gt;], _localPort=PortNumber &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=6640&amp;#93;&lt;/span&gt;, _remoteIp=IpAddress [_ipv4Address=Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.8.125.231&amp;#93;&lt;/span&gt;], _remotePort=PortNumber &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=49846&amp;#93;&lt;/span&gt;, augmentation=[]] this controller does not have ownership&lt;br/&gt;
    &lt;br/&gt;
&lt;br/&gt;
2018-08-22T19:42:09,781 | ERROR | nioEventLoopGroup-5-5 | ExceptionHandler                 | 389 - org.opendaylight.ovsdb.library - 1.6.4.SNAPSHOT | Exception occurred while processing connection pipeline&lt;br/&gt;
io.netty.handler.timeout.ReadTimeoutException: null&lt;br/&gt;
2018-08-22T19:42:09,784 | INFO  | nioEventLoopGroup-5-5 | ExceptionHandler                 | 389 - org.opendaylight.ovsdb.library - 1.6.4.SNAPSHOT | Closing channel to ovsdb &lt;span class=&quot;error&quot;&gt;&amp;#91;id: 0x51eb2fe8, L:/10.8.125.230:6640 - R:/10.8.125.231:53276&amp;#93;&lt;/span&gt;&lt;br/&gt;
2018-08-22T19:42:09,784 | INFO  | nioEventLoopGroup-5-5 | OvsdbConnectionService           | 389 - org.opendaylight.ovsdb.library - 1.6.4.SNAPSHOT | Connection closed ConnectionInfo &lt;span class=&quot;error&quot;&gt;&amp;#91;Remote-address=10.8.125.231, Remote-port=53276, Local-address10.8.125.230, Local-port=6640, type=PASSIVE&amp;#93;&lt;/span&gt;&lt;br/&gt;
2018-08-22T19:42:09,785 | INFO  | nioEventLoopGroup-5-5 | HwvtepConnectionManager          | 388 - org.opendaylight.ovsdb.hwvtepsouthbound-impl - 1.6.4.SNAPSHOT | Library disconnected PASSIVE from /10.8.125.231:53276 to /10.8.125.230:6640. Cleaning up the operational data store&lt;br/&gt;
2018-08-22T19:42:09,785 | WARN  | nioEventLoopGroup-5-5 | HwvtepConnectionManager          | 388 - org.opendaylight.ovsdb.hwvtepsouthbound-impl - 1.6.4.SNAPSHOT | HWVTEP disconnected event did not find connection instance for ConnectionInfo [_localIp=IpAddress [_ipv4Address=Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.8.125.230&amp;#93;&lt;/span&gt;], _localPort=PortNumber &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=6640&amp;#93;&lt;/span&gt;, _remoteIp=IpAddress [_ipv4Address=Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.8.125.231&amp;#93;&lt;/span&gt;], _remotePort=PortNumber &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=53276&amp;#93;&lt;/span&gt;, augmentation=[]]&lt;br/&gt;
2018-08-22T19:42:09,786 | INFO  | nioEventLoopGroup-5-5 | OvsdbConnectionManager           | 393 - org.opendaylight.ovsdb.southbound-impl - 1.6.4.SNAPSHOT | Library disconnected PASSIVE from /10.8.125.231:53276 to /10.8.125.230:6640. Cleaning up the operational data store&lt;br/&gt;
2018-08-22T19:42:09,786 | INFO  | nioEventLoopGroup-5-5 | OvsdbConnectionManager           | 393 - org.opendaylight.ovsdb.southbound-impl - 1.6.4.SNAPSHOT | Library disconnected ConnectionInfo [_localIp=IpAddress [_ipv4Address=Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.8.125.230&amp;#93;&lt;/span&gt;], _localPort=PortNumber &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=6640&amp;#93;&lt;/span&gt;, _remoteIp=IpAddress [_ipv4Address=Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.8.125.231&amp;#93;&lt;/span&gt;], _remotePort=PortNumber &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=53276&amp;#93;&lt;/span&gt;, augmentation=[]] this controller instance has ownership&lt;br/&gt;
2018-08-22T19:42:09,787 | INFO  | nioEventLoopGroup-5-5 | StalePassiveConnectionService    | 389 - org.opendaylight.ovsdb.library - 1.6.4.SNAPSHOT | Client disconnected ConnectionInfo &lt;span class=&quot;error&quot;&gt;&amp;#91;Remote-address=10.8.125.231, Remote-port=53276, Local-address10.8.125.230, Local-port=6640, type=PASSIVE&amp;#93;&lt;/span&gt;&lt;br/&gt;
2018-08-22T19:42:09,789 | WARN  | opendaylight-cluster-data-notification-dispatcher-729 | OvsdbNodeListener                | 255 - org.opendaylight.genius.itm-impl - 0.4.4.SNAPSHOT | processBridgeUpdate: bridge br-int removal case when Switch is disconnected.Hence, Ovsdb Node could not be fetched from Oper DS.&lt;br/&gt;
2018-08-22T19:42:09,790 | WARN  | opendaylight-cluster-data-notification-dispatcher-729 | OvsdbNodeListener                | 255 - org.opendaylight.genius.itm-impl - 0.4.4.SNAPSHOT | processBridgeUpdate: bridge br-ex removal case when Switch is disconnected.Hence, Ovsdb Node could not be fetched from Oper DS.&lt;br/&gt;
2018-08-22T19:42:09,798 | INFO  | opendaylight-cluster-data-akka.actor.default-dispatcher-4 | OvsdbConnectionManager           | 393 - org.opendaylight.ovsdb.southbound-impl - 1.6.4.SNAPSHOT | Entity{type=&apos;ovsdb&apos;, id=/(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)network-topology/topology/topology&lt;span class=&quot;error&quot;&gt;&amp;#91;{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)topology-id=ovsdb:1}&amp;#93;&lt;/span&gt;/node/node&lt;span class=&quot;error&quot;&gt;&amp;#91;{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node-id=ovsdb://uuid/922f7894-5e8f-4b34-8284-8029f3934312}&amp;#93;&lt;/span&gt;} has no owner, cleaning up the operational data store&lt;br/&gt;
{no format}</comment>
                            <comment id="64711" author="vpickard" created="Wed, 22 Aug 2018 16:34:05 +0000"  >&lt;p&gt;Here is the hostconfig before rebooting compute node compute1 (sudo shutdown -r now). Notice, that compute1 is missing from the hostconfig in the 2nd query (it is there initially, but takes some time before it is removed, like a minute or so....)&lt;/p&gt;

&lt;p&gt;The workaround, is to do a del-manager, followed by a set-manager, on the compute node (until this bug is resolved).&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Vic@rippleRider$&amp;#93;&lt;/span&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=&quot; class=&quot;user-hover&quot; rel=&quot;&quot;&gt;&lt;/a&gt;$ curl -s -u admin:admin -X GET &lt;a href=&quot;http://$&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://$&lt;/a&gt;{CIP}:8181/restconf/operational/neutron:neutron/hostconfigs/ | python -m json.tool&lt;br/&gt;
{&lt;br/&gt;
    &quot;hostconfigs&quot;: {&lt;br/&gt;
        &quot;hostconfig&quot;: [&lt;br/&gt;
            {&lt;br/&gt;
                &quot;config&quot;: &quot;{\&quot;allowed_network_types\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;\&amp;quot;local\&amp;quot;, \&amp;quot;flat\&amp;quot;, \&amp;quot;vlan\&amp;quot;, \&amp;quot;vxlan\&amp;quot;, \&amp;quot;gre\&amp;quot;&amp;#93;&lt;/span&gt;, \&quot;bridge_mappings\&quot;: {}, \&quot;datapath_type\&quot;: \&quot;system\&quot;, \&quot;supported_vnic_types\&quot;: [{\&quot;vif_type\&quot;: \&quot;ovs\&quot;, \&quot;vnic_type\&quot;: \&quot;normal\&quot;, \&quot;vif_details\&quot;: {\&quot;support_vhost_user\&quot;: false, \&quot;has_datapath_type_netdev\&quot;: false, \&quot;uuid\&quot;: \&quot;554a442a-34fa-4ead-845f-7a2f14fea0a7\&quot;, \&quot;host_addresses\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;\&amp;quot;control\&amp;quot;&amp;#93;&lt;/span&gt;}}]}&quot;,&lt;br/&gt;
                &quot;host-id&quot;: &quot;control&quot;,&lt;br/&gt;
                &quot;host-type&quot;: &quot;ODL L2&quot;&lt;br/&gt;
            },&lt;br/&gt;
            {&lt;br/&gt;
                &quot;config&quot;: &quot;{\&quot;allowed_network_types\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;\&amp;quot;local\&amp;quot;, \&amp;quot;flat\&amp;quot;, \&amp;quot;vlan\&amp;quot;, \&amp;quot;vxlan\&amp;quot;, \&amp;quot;gre\&amp;quot;&amp;#93;&lt;/span&gt;, \&quot;bridge_mappings\&quot;: {}, \&quot;datapath_type\&quot;: \&quot;system\&quot;, \&quot;supported_vnic_types\&quot;: [{\&quot;vif_type\&quot;: \&quot;ovs\&quot;, \&quot;vnic_type\&quot;: \&quot;normal\&quot;, \&quot;vif_details\&quot;: {\&quot;support_vhost_user\&quot;: false, \&quot;has_datapath_type_netdev\&quot;: false, \&quot;uuid\&quot;: \&quot;922f7894-5e8f-4b34-8284-8029f3934312\&quot;, \&quot;host_addresses\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;\&amp;quot;compute1\&amp;quot;&amp;#93;&lt;/span&gt;}}]}&quot;,&lt;br/&gt;
                &quot;host-id&quot;: &quot;compute1&quot;,&lt;br/&gt;
                &quot;host-type&quot;: &quot;ODL L2&quot;&lt;br/&gt;
            },&lt;br/&gt;
            {&lt;br/&gt;
                &quot;config&quot;: &quot;{\&quot;allowed_network_types\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;\&amp;quot;local\&amp;quot;, \&amp;quot;flat\&amp;quot;, \&amp;quot;vlan\&amp;quot;, \&amp;quot;vxlan\&amp;quot;, \&amp;quot;gre\&amp;quot;&amp;#93;&lt;/span&gt;, \&quot;bridge_mappings\&quot;: {}, \&quot;datapath_type\&quot;: \&quot;system\&quot;, \&quot;supported_vnic_types\&quot;: [{\&quot;vif_type\&quot;: \&quot;ovs\&quot;, \&quot;vnic_type\&quot;: \&quot;normal\&quot;, \&quot;vif_details\&quot;: {\&quot;support_vhost_user\&quot;: false, \&quot;has_datapath_type_netdev\&quot;: false, \&quot;uuid\&quot;: \&quot;4c53d595-7d24-450e-96c7-edbac64ffb7f\&quot;, \&quot;host_addresses\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;\&amp;quot;compute2\&amp;quot;&amp;#93;&lt;/span&gt;}}]}&quot;,&lt;br/&gt;
                &quot;host-id&quot;: &quot;compute2&quot;,&lt;br/&gt;
                &quot;host-type&quot;: &quot;ODL L2&quot;&lt;br/&gt;
            }&lt;br/&gt;
        ]&lt;br/&gt;
    }&lt;br/&gt;
}&lt;/p&gt;




&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Vic@rippleRider$&amp;#93;&lt;/span&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=&quot; class=&quot;user-hover&quot; rel=&quot;&quot;&gt;&lt;/a&gt;$ curl -s -u admin:admin -X GET &lt;a href=&quot;http://$&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://$&lt;/a&gt;{CIP}:8181/restconf/operational/neutron:neutron/hostconfigs/ | python -m json.tool&lt;br/&gt;
{&lt;br/&gt;
    &quot;hostconfigs&quot;: {&lt;br/&gt;
        &quot;hostconfig&quot;: [&lt;br/&gt;
            {&lt;br/&gt;
                &quot;config&quot;: &quot;{\&quot;allowed_network_types\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;\&amp;quot;local\&amp;quot;, \&amp;quot;flat\&amp;quot;, \&amp;quot;vlan\&amp;quot;, \&amp;quot;vxlan\&amp;quot;, \&amp;quot;gre\&amp;quot;&amp;#93;&lt;/span&gt;, \&quot;bridge_mappings\&quot;: {}, \&quot;datapath_type\&quot;: \&quot;system\&quot;, \&quot;supported_vnic_types\&quot;: [{\&quot;vif_type\&quot;: \&quot;ovs\&quot;, \&quot;vnic_type\&quot;: \&quot;normal\&quot;, \&quot;vif_details\&quot;: {\&quot;support_vhost_user\&quot;: false, \&quot;has_datapath_type_netdev\&quot;: false, \&quot;uuid\&quot;: \&quot;554a442a-34fa-4ead-845f-7a2f14fea0a7\&quot;, \&quot;host_addresses\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;\&amp;quot;control\&amp;quot;&amp;#93;&lt;/span&gt;}}]}&quot;,&lt;br/&gt;
                &quot;host-id&quot;: &quot;control&quot;,&lt;br/&gt;
                &quot;host-type&quot;: &quot;ODL L2&quot;&lt;br/&gt;
            },&lt;br/&gt;
            {&lt;br/&gt;
                &quot;config&quot;: &quot;{\&quot;allowed_network_types\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;\&amp;quot;local\&amp;quot;, \&amp;quot;flat\&amp;quot;, \&amp;quot;vlan\&amp;quot;, \&amp;quot;vxlan\&amp;quot;, \&amp;quot;gre\&amp;quot;&amp;#93;&lt;/span&gt;, \&quot;bridge_mappings\&quot;: {}, \&quot;datapath_type\&quot;: \&quot;system\&quot;, \&quot;supported_vnic_types\&quot;: [{\&quot;vif_type\&quot;: \&quot;ovs\&quot;, \&quot;vnic_type\&quot;: \&quot;normal\&quot;, \&quot;vif_details\&quot;: {\&quot;support_vhost_user\&quot;: false, \&quot;has_datapath_type_netdev\&quot;: false, \&quot;uuid\&quot;: \&quot;4c53d595-7d24-450e-96c7-edbac64ffb7f\&quot;, \&quot;host_addresses\&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;\&amp;quot;compute2\&amp;quot;&amp;#93;&lt;/span&gt;}}]}&quot;,&lt;br/&gt;
                &quot;host-id&quot;: &quot;compute2&quot;,&lt;br/&gt;
                &quot;host-type&quot;: &quot;ODL L2&quot;&lt;br/&gt;
            }&lt;br/&gt;
        ]&lt;br/&gt;
    }&lt;br/&gt;
}&lt;/p&gt;
</comment>
                            <comment id="64747" author="vpickard" created="Thu, 23 Aug 2018 17:08:41 +0000"  >&lt;p&gt;Here is my analysis of this issue:&lt;/p&gt;

&lt;p&gt;1. switch/compute node is rebooted&lt;br/&gt;
2. New connection request comes in. OVSDB still has old connection info, hasn&apos;t detected that old connection when down&lt;br/&gt;
3. Ovsdb initiates ping/echo on old connection, which fails. Ovsdb notifies clients, but there is NO CLEANUP of old connection&lt;br/&gt;
4. New connection is closed, as registerEntityOwnership() fails, existing old connection in the ovsdb map&lt;br/&gt;
5. Old connection is closed later from ExceptionHandler (readTimeoutException), like 3 secs later&lt;br/&gt;
6. OVSDB thinks there is no connection, no hostconfig in oper d/s.&lt;br/&gt;
7. But.. the connection is really there....&lt;/p&gt;

&lt;p&gt;Proposed Fix&lt;br/&gt;
===========&lt;br/&gt;
In step 3, the old connection has failed the echo test, but only action was to notify clients. Wouldn&apos;t it be good to go ahead and properly close/cleanup the connection here and now, instead of readTimeOutException 3 secs from now? What a lovely idea! Yes, it would. Thanks!&lt;/p&gt;


&lt;p&gt;New connection attempt from switch just after reboot&lt;br/&gt;
=========================================&lt;br/&gt;
2018-08-22T22:57:21,427 | INFO  | OVSDBConnNotifSer-28 | StalePassiveConnectionService    | 389 - org.opendaylight.ovsdb.library - 1.6.4.SNAPSHOT | Adding client to pending list ConnectionInfo &lt;span class=&quot;error&quot;&gt;&amp;#91;Remote-address=10.8.125.231, Remote-port=34176, Local-address10.8.125.230, Local-port=6640, type=PASSIVE&amp;#93;&lt;/span&gt;&lt;br/&gt;
2018-08-22T22:57:21,427 | INFO  | OVSDBConnNotifSer-28 | StalePassiveConnectionService    | 389 - org.opendaylight.ovsdb.library - 1.6.4.SNAPSHOT | Echo testing client ConnectionInfo &lt;span class=&quot;error&quot;&gt;&amp;#91;Remote-address=10.8.125.231, Remote-port=45016, Local-address10.8.125.230, Local-port=6640, type=PASSIVE&amp;#93;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;Testing of old connection &amp;#8211; fails in 1 sec, clients are notified.&lt;br/&gt;
=============================================&lt;br/&gt;
2018-08-22T22:57:22,427 | INFO  | OVSDB-Lib-Future-Reaper-1 | StalePassiveConnectionService    | 389 - org.opendaylight.ovsdb.library - 1.6.4.SNAPSHOT | Echo testing of old client ConnectionInfo &lt;span class=&quot;error&quot;&gt;&amp;#91;Remote-address=10.8.125.231, Remote-port=45016, Local-address10.8.125.230, Local-port=6640, type=PASSIVE&amp;#93;&lt;/span&gt; failed&lt;/p&gt;

&lt;p&gt;2018-08-22T22:57:22,428 | INFO  | OVSDB-Lib-Future-Reaper-1 | StalePassiveConnectionService    | 389 - org.opendaylight.ovsdb.library - 1.6.4.SNAPSHOT | Sending notification for client ConnectionInfo &lt;span class=&quot;error&quot;&gt;&amp;#91;Remote-address=10.8.125.231, Remote-port=34176, Local-address10.8.125.230, Local-port=6640, type=PASSIVE&amp;#93;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;Switch connects to controller after reboot, new connection&lt;br/&gt;
============================================&lt;br/&gt;
2018-08-22T22:57:22,429 | INFO  | OVSDBConnNotifSer-29 | OvsdbConnectionManager           | 393 - org.opendaylight.ovsdb.southbound-impl - 1.6.4.SNAPSHOT | Library connected PASSIVE from /10.8.125.231:34176 to /10.8.125.230:6640&lt;/p&gt;

&lt;p&gt;This will register the entity for ownership, registerEntityForOwnership(), which fails... next logs&lt;/p&gt;


&lt;p&gt;Old connection still there, so new connection is rejected, and ovsdb closes the new connection....&lt;br/&gt;
=========================================================================&lt;br/&gt;
2018-08-22T22:57:22,439 | ERROR | OVSDBConnNotifSer-29 | OvsdbConnectionManager           | 393 - org.opendaylight.ovsdb.southbound-impl - 1.6.4.SNAPSHOT | Old connection still hanging for Entity{type=&apos;ovsdb&apos;, id=/(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)network-topology/topology/topology[&lt;/p&gt;
{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)topology-id=ovsdb:1}
&lt;p&gt;]/node/node[&lt;/p&gt;
{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node-id=ovsdb://uuid/922f7894-5e8f-4b34-8284-8029f3934312}
&lt;p&gt;]}&lt;br/&gt;
2018-08-22T22:57:22,440 | INFO  | OVSDBConnNotifSer-29 | OvsdbConnectionManager           | 393 - org.opendaylight.ovsdb.southbound-impl - 1.6.4.SNAPSHOT | Library disconnected PASSIVE from /10.8.125.231:34176 to /10.8.125.230:6640. Cleaning up the operational data store&lt;/p&gt;




&lt;p&gt;Read timeout exception (from echo/ping failure of old connection) Fails, closes connection, which ends up removing from hostconfig&lt;br/&gt;
===============================================================================================&lt;/p&gt;

&lt;p&gt;2018-08-22T23:00:09,548 | ERROR | nioEventLoopGroup-5-7 | ExceptionHandler                 | 389 - org.opendaylight.ovsdb.library - 1.6.4.SNAPSHOT | Exception occurred while processing connection pipeline&lt;br/&gt;
io.netty.handler.timeout.ReadTimeoutException: null&lt;br/&gt;
2018-08-22T23:00:09,549 | INFO  | nioEventLoopGroup-5-7 | ExceptionHandler                 | 389 - org.opendaylight.ovsdb.library - 1.6.4.SNAPSHOT | Closing channel to ovsdb &lt;span class=&quot;error&quot;&gt;&amp;#91;id: 0x35d1f7ce, L:/10.8.125.230:6640 - R:/10.8.125.231:45016&amp;#93;&lt;/span&gt;&lt;br/&gt;
2018-08-22T23:00:09,549 | INFO  | nioEventLoopGroup-5-7 | OvsdbConnectionService           | 389 - org.opendaylight.ovsdb.library - 1.6.4.SNAPSHOT | Connection closed ConnectionInfo &lt;span class=&quot;error&quot;&gt;&amp;#91;Remote-address=10.8.125.231, Remote-port=45016, Local-address10.8.125.230, Local-port=6640, type=PASSIVE&amp;#93;&lt;/span&gt;&lt;br/&gt;
2018-08-22T23:00:09,550 | INFO  | nioEventLoopGroup-5-7 | HwvtepConnectionManager          | 388 - org.opendaylight.ovsdb.hwvtepsouthbound-impl - 1.6.4.SNAPSHOT | Library disconnected PASSIVE from /10.8.125.231:45016 to /10.8.125.230:6640. Cleaning up the operational data store&lt;br/&gt;
2018-08-22T23:00:09,550 | WARN  | nioEventLoopGroup-5-7 | HwvtepConnectionManager          | 388 - org.opendaylight.ovsdb.hwvtepsouthbound-impl - 1.6.4.SNAPSHOT | HWVTEP disconnected event did not find connection instance for ConnectionInfo [_localIp=IpAddress [_ipv4Address=Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.8.125.230&amp;#93;&lt;/span&gt;], _localPort=PortNumber &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=6640&amp;#93;&lt;/span&gt;, _remoteIp=IpAddress [_ipv4Address=Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.8.125.231&amp;#93;&lt;/span&gt;], _remotePort=PortNumber &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=45016&amp;#93;&lt;/span&gt;, augmentation=[]]&lt;br/&gt;
2018-08-22T23:00:09,551 | INFO  | nioEventLoopGroup-5-7 | OvsdbConnectionManager           | 393 - org.opendaylight.ovsdb.southbound-impl - 1.6.4.SNAPSHOT | Library disconnected PASSIVE from /10.8.125.231:45016 to /10.8.125.230:6640. Cleaning up the operational data store&lt;br/&gt;
2018-08-22T23:00:09,551 | INFO  | nioEventLoopGroup-5-7 | OvsdbConnectionManager           | 393 - org.opendaylight.ovsdb.southbound-impl - 1.6.4.SNAPSHOT | Library disconnected ConnectionInfo [_localIp=IpAddress [_ipv4Address=Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.8.125.230&amp;#93;&lt;/span&gt;], _localPort=PortNumber &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=6640&amp;#93;&lt;/span&gt;, _remoteIp=IpAddress [_ipv4Address=Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.8.125.231&amp;#93;&lt;/span&gt;], _remotePort=PortNumber &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=45016&amp;#93;&lt;/span&gt;, augmentation=[]] this controller instance has ownership&lt;/p&gt;

&lt;p&gt;Connection is really there between Controller and OVS switch&lt;br/&gt;
===============================================&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;stack@control log&amp;#93;&lt;/span&gt;$ netstat -punta|grep 6640&lt;br/&gt;
(Not all processes could be identified, non-owned process info&lt;br/&gt;
 will not be shown, you would have to be root to see it all.)&lt;br/&gt;
tcp        0      0 10.8.125.230:33252      10.8.125.230:6640       ESTABLISHED -&lt;br/&gt;
tcp6       0      0 :::6640                 :::*                    LISTEN      10732/java&lt;br/&gt;
tcp6       0      0 10.8.125.230:6640       10.8.125.231:34176      ESTABLISHED 10732/java&lt;br/&gt;
tcp6       0      0 10.8.125.230:6640       10.8.125.230:33252      ESTABLISHED 10732/java&lt;br/&gt;
tcp6       0      0 10.8.125.230:6640       10.8.125.232:59698      ESTABLISHED 10732/java&lt;/p&gt;


&lt;p&gt;Last login: Thu Aug 23 00:45:32 2018 from 192.168.121.1&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;vagrant@compute1 ~&amp;#93;&lt;/span&gt;$ sudo netstat -punta |grep 6640&lt;br/&gt;
tcp        0      0 10.8.125.231:34176      10.8.125.230:6640       ESTABLISHED 794/ovsdb-server&lt;/p&gt;



</comment>
                            <comment id="64748" author="vpickard" created="Thu, 23 Aug 2018 17:15:23 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/75430/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/75430/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="64749" author="vpickard" created="Thu, 23 Aug 2018 18:41:18 +0000"  >&lt;p&gt;For reference, looks like similiar issue was reported in &lt;a href=&quot;https://jira.opendaylight.org/browse/OVSDB-439&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.opendaylight.org/browse/OVSDB-439&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Corresponding patch:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/71303/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/71303/&lt;/a&gt; &lt;/p&gt;

</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="29365">OVSDB-455</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="29533">NETVIRT-1178</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="14329" name="topologyAfterRebootCompute" size="23912" author="vpickard" created="Wed, 20 Dec 2017 19:35:17 +0000"/>
                            <attachment id="14328" name="topologyBeforeRebootCompute" size="44212" author="vpickard" created="Wed, 20 Dec 2017 19:35:09 +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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i038zr:</customfieldvalue>

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