Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1426113

Summary: Cleanup Elan instances when a network is deleted
Product: Red Hat OpenStack Reporter: Sridhar Gaddam <sgaddam>
Component: opendaylightAssignee: Sridhar Gaddam <sgaddam>
Status: CLOSED ERRATA QA Contact: Itzik Brown <itbrown>
Severity: high Docs Contact:
Priority: high    
Version: 10.0 (Newton)CC: mkolesni, nyechiel
Target Milestone: asyncKeywords: ZStream
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: opendaylight-5.2.0-6.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
N/A
Last Closed: 2017-03-23 16:15:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sridhar Gaddam 2017-02-23 08:40:33 UTC
Description of problem:

The following patch in Neutron[1] modifies the Network delete sequence.
Prior to a network delete event, we now see an update event that removes
the networkType. So, in delete event, when we try to check for the
networkType, it would be empty and there is an exception. Because of this,
elanInstances are not getting deleted. In this patch, we avoid the check
for networkType since the network itself would not be created in the first
place if its not a supported networkType.

[1] https://review.openstack.org/#/c/317358/

Version-Release number of selected component (if applicable):


How reproducible:
always.

Steps to Reproduce:
1. In a fresh installation create a tenant neutron network, subnet and router.
2. Associate the subnet to the neutron router.
3. In karaf cli, check the ELAN instances.
   opendaylight-user@root>elan:show 
4. You would see an ELAN instance created for the resources.
5. Now dissociate the tenant subnet from neutron router, delete the router, network and subnet.

Actual results:
Check elan instances. You will see the same output as in Step 3 above.

Expected results:
The ELAN instances should have been deleted.

Comment 1 Sridhar Gaddam 2017-02-23 08:41:35 UTC
Fixed via the following patch: https://code.engineering.redhat.com/gerrit/#/c/97855/

Comment 3 Itzik Brown 2017-03-06 13:22:29 UTC
Verified as described:
opendaylight-5.2.0-6.el7ost.noarch

Comment 5 errata-xmlrpc 2017-03-23 16:15:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0840.html