Network-ipam: panic when trying to use Contains method on IpamSubnetType object with nil subnet

Bug #1789207 reported by Bartlomiej Gajda
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Bartlomiej Gajda

Bug Description

Contains method is used indirectly when updating or deleting virtual-network. Sometimes there are no ipam-subnets and panic occurs.

Tags: go-api
information type: Proprietary → Public
Changed in juniperopenstack:
assignee: nobody → Bartlomiej Gajda (baltekg)
summary: - Network-ipam: panic when trying to use Contains method on nil
- IpamSubnetType object
+ Network-ipam: panic when trying to use Contains method on IpamSubnetType
+ object with nil subnet
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/45771
Submitter: Bartlomiej Gajda (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/45771
Committed: http://github.com/Juniper/contrail/commit/cca2669486ff1ef3c9390f86b2b446ef4e75a60a
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit cca2669486ff1ef3c9390f86b2b446ef4e75a60a
Author: Bartłomiej Gajda <email address hidden>
Date: Mon Aug 27 14:52:10 2018 +0200

Fixed panic while trying to use network-ipam Contains method

- fixing nil pointer dereference error in Contains method

Change-Id: I29afa03bd6050cc9b9c1b64d407e9cbe7a250f90
Closes-bug: 1789207

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.