[OVSDB-297] openflow entity are not removed after unstack in operational data store Created: 11/Feb/16  Updated: 08/Apr/19  Resolved: 08/Mar/16

Status: Resolved
Project: ovsdb
Component/s: openstack.net-virt
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: balakrishnan k Assignee: Anil Vishnoi
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: File ODL1.tar     File ODL2.tar     File ODL3.tar    
Issue Links:
Duplicate
duplicates CONTROLLER-1487 entity structures are kept even when ... Resolved
External issue ID: 5312

 Description   

Used ODL1 for Neutron
ODL2, ODL3 for handling OVS

The following operations were done
1.stack control and one compute node.
2.check entity owner in operational data store
3.unstack control and compute node
4.check entity owner in operational data store
5.stack control and one compute node.
6.check entity owner in operational data store

1.initially checked entity owners:
(http://10.106.138.137:8181/restconf/operational/entity-owners:entity-owners)
6 openflow entity listed.
2 openflow id doesn't have owner assigned.

<entity-owners xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:clustering:entity-owners">
<entity-type>
<type>openflow</type>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:345048876240']</id>
<candidate>
<name>member-2</name>
</candidate>
<candidate>
<name>member-3</name>
</candidate>
<owner>member-2</owner>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:345048876244']</id>
<candidate>
<name>member-3</name>
</candidate>
<candidate>
<name>member-2</name>
</candidate>
<owner>member-3</owner>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:227487825177152']</id>
<owner/>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:68772974013003']</id>
<candidate>
<name>member-3</name>
</candidate>
<candidate>
<name>member-2</name>
</candidate>
<owner>member-3</owner>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:143933533566541']</id>
<owner/>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:112452218492485']</id>
<candidate>
<name>member-2</name>
</candidate>
<candidate>
<name>member-3</name>
</candidate>
<owner>member-2</owner>
</entity>
</entity-type>
<entity-type>
<type>ovsdb</type>
<entity>

2.disconnected control and compute node openflow entity still exists.
owners are removed from the openflow entity.

<entity-owners xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:clustering:entity-owners">
<entity-type>
<type>openflow</type>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:345048876240']</id>
<owner/>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:345048876244']</id>
<owner/>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:227487825177152']</id>
<owner/>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:68772974013003']</id>
<owner/>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:143933533566541']</id>
<owner/>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:112452218492485']</id>
<owner/>
</entity>
</entity-type>

3.Again connected control and compute node to the cluster.
now i am getting 10 openflow entity.
4 has owner assigned which is newly created.
6 entries are old one which is not removed after unstack

<entity-owners xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:clustering:entity-owners">
<entity-type>
<type>openflow</type>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:345048876240']</id>
<candidate>
<name>member-3</name>
</candidate>
<candidate>
<name>member-2</name>
</candidate>
<owner>member-3</owner>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:68772974013003']</id>
<owner/>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:196520204491084']</id>
<owner/>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:33501764442695']</id>
<candidate>
<name>member-3</name>
</candidate>
<candidate>
<name>member-2</name>
</candidate>
<owner>member-3</owner>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:152646101208130']</id>
<candidate>
<name>member-3</name>
</candidate>
<candidate>
<name>member-2</name>
</candidate>
<owner>member-3</owner>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:345048876244']</id>
<candidate>
<name>member-3</name>
</candidate>
<candidate>
<name>member-2</name>
</candidate>
<owner>member-3</owner>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:253670478162507']</id>
<owner/>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:227487825177152']</id>
<owner/>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:143933533566541']</id>
<owner/>
</entity>
<entity>
<id xmlns:a="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:general-entity">/a:entity[a:name='openflow:112452218492485']</id>
<owner/>
</entity>
</entity-type>



 Comments   
Comment by Anil Vishnoi [ 11/Feb/16 ]

Hi Balakrishnan,

Can you please provide the log file (karaf.log) from all the controller?

How long do you wait before you fire the rest conf request to get the entity ownership details?

Comment by balakrishnan k [ 11/Feb/16 ]

Attachment ODL1.tar has been added with description: ODL1 logs

Comment by balakrishnan k [ 11/Feb/16 ]

Attachment ODL2.tar has been added with description: ODL2 logs

Comment by balakrishnan k [ 11/Feb/16 ]

Attachment ODL3.tar has been added with description: ODL3 logs

Comment by balakrishnan k [ 11/Feb/16 ]

Hi Anil,
waited 5 minutes before fire the rest conf

Comment by Anil Vishnoi [ 08/Mar/16 ]

Currently this is expected behavior and we are discussing to change the current behavior through https://bugs.opendaylight.org/show_bug.cgi?id=5397

Generated at Wed Feb 07 20:36:01 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.