ST: crashing due to resource exhaustion

Bug #1662674 reported by amit surana
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
High
Sachin Bansal
R3.1
Fix Committed
High
Sachin Bansal
R3.2
Fix Committed
High
Sachin Bansal
Trunk
Fix Committed
High
Sachin Bansal

Bug Description

if max configured BGPaaS is 'n', and admin creates and attaches 'n+1' BGPaaS objects to a VMI each, then schema is crashing while attempting to allocate a port for the n+1 bgp-client router. This exception should be handled gracefully.

 /usr/lib/python2.7/dist-packages/schema_transformer/to_bgp.py in __init__(self=<schema_transformer.to_bgp.SchemaTransformer object>, args=Namespace(admin_password='***', admin_te...0.8:2181', zk_server_port='2181', zk_timeout=400))
  241 # the RMQ constructs created earlier and then give up.
  242 self._vnc_kombu.shutdown()
  243 raise e
  244 # end __init__
  245
e = ResourceExhaustionError('Cannot get zk index from bit 2001',)
<class 'cfgm_common.exceptions.ResourceExhaustionError'>: Cannot get zk index from bit 2001
    __class__ = <class 'cfgm_common.exceptions.ResourceExhaustionError'>
    __delattr__ = <method-wrapper '__delattr__' of ResourceExhaustionError object>
    __dict__ = {}
    __doc__ = None
    __format__ = <built-in method __format__ of ResourceExhaustionError object>
    __getattribute__ = <method-wrapper '__getattribute__' of ResourceExhaustionError object>
    __getitem__ = <method-wrapper '__getitem__' of ResourceExhaustionError object>
    __getslice__ = <method-wrapper '__getslice__' of ResourceExhaustionError object>
    __hash__ = <method-wrapper '__hash__' of ResourceExhaustionError object>
    __init__ = <method-wrapper '__init__' of ResourceExhaustionError object>
    __module__ = 'cfgm_common.exceptions'
    __new__ = <built-in method __new__ of type object>
    __reduce__ = <built-in method __reduce__ of ResourceExhaustionError object>
    __reduce_ex__ = <built-in method __reduce_ex__ of ResourceExhaustionError object>
    __repr__ = <method-wrapper '__repr__' of ResourceExhaustionError object>
    __setattr__ = <method-wrapper '__setattr__' of ResourceExhaustionError object>
    __setstate__ = <built-in method __setstate__ of ResourceExhaustionError object>
    __sizeof__ = <built-in method __sizeof__ of ResourceExhaustionError object>
    __str__ = <method-wrapper '__str__' of ResourceExhaustionError object>
    __subclasshook__ = <built-in method __subclasshook__ of type object>
    __unicode__ = <built-in method __unicode__ of ResourceExhaustionError object>
    __weakref__ = None
    args = ('Cannot get zk index from bit 2001',)
    message = 'Cannot get zk index from bit 2001'

Tags: bgpaas config
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/28576
Submitter: Sachin Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/28621
Submitter: Sachin Bansal (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/28576
Committed: http://github.org/Juniper/contrail-controller/commit/630bcd8b55c79a6ae95b4f031c1f58c59c0e56f0
Submitter: Zuul (<email address hidden>)
Branch: master

commit 630bcd8b55c79a6ae95b4f031c1f58c59c0e56f0
Author: Sachin Bansal <email address hidden>
Date: Wed Feb 8 17:27:15 2017 -0800

Catch ResourceExhaustionError and log

Catch ResourceExhaustionError and log the failure instead of
generating a traceback.

Change-Id: I914132f2e5a77b43fc0a212152dd631393f2ba1b
Closes-Bug: 1662674

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/28621
Submitter: Sachin Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/28643
Submitter: Sachin Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/28644
Submitter: Sachin Bansal (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/28621
Committed: http://github.org/Juniper/contrail-controller/commit/7988017040c3545d0093bbcd8c3c27ffa3ce83c7
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 7988017040c3545d0093bbcd8c3c27ffa3ce83c7
Author: Sachin Bansal <email address hidden>
Date: Wed Feb 8 17:27:15 2017 -0800

Catch ResourceExhaustionError and log

Catch ResourceExhaustionError and log the failure instead of
generating a traceback.

Change-Id: I914132f2e5a77b43fc0a212152dd631393f2ba1b
Closes-Bug: 1662674
(cherry picked from commit 630bcd8b55c79a6ae95b4f031c1f58c59c0e56f0)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/28643
Committed: http://github.org/Juniper/contrail-controller/commit/38ec59836d89ecaaf8905943aae17b9e77a5ae23
Submitter: Zuul (<email address hidden>)
Branch: R3.1

commit 38ec59836d89ecaaf8905943aae17b9e77a5ae23
Author: Sachin Bansal <email address hidden>
Date: Wed Feb 8 17:27:15 2017 -0800

Catch ResourceExhaustionError and log

Catch ResourceExhaustionError and log the failure instead of
generating a traceback.

Change-Id: I914132f2e5a77b43fc0a212152dd631393f2ba1b
Closes-Bug: 1662674
(cherry picked from commit 630bcd8b55c79a6ae95b4f031c1f58c59c0e56f0)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/28644
Committed: http://github.org/Juniper/contrail-controller/commit/a4949b150f460aaed14682a776d29c068d1cf186
Submitter: Zuul (<email address hidden>)
Branch: R3.0

commit a4949b150f460aaed14682a776d29c068d1cf186
Author: Sachin Bansal <email address hidden>
Date: Wed Feb 8 17:27:15 2017 -0800

Catch ResourceExhaustionError and log

Catch ResourceExhaustionError and log the failure instead of
generating a traceback.

Change-Id: I914132f2e5a77b43fc0a212152dd631393f2ba1b
Closes-Bug: 1662674
(cherry picked from commit 630bcd8b55c79a6ae95b4f031c1f58c59c0e56f0)

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.