Number of cores generated per process exceeds max limit

Bug #1696214 reported by Sundaresan Rajangam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
High
Sundaresan Rajangam
Trunk
Fix Committed
High
Sundaresan Rajangam

Bug Description

Number of cores generated per process should not exceed the max limit of 4 [limit set in nodemgr]

nodemgr failed to delete the old core file due to incomplete path passed to remove() call to delete the core file

contrail-query-engine with pid:8198 exited abnormally
find command option for cores:find /var/crashes -name core.[A-Za-z]*.8198*
Exception AssertionError: AssertionError() in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
core file: /var/crashes/core.contrail-query-.8198.nodec40.1496774618

core_file_list:['core.contrail-query-.7392.nodec40.1496773642', 'core.contrail-query-.7802.nodec40.1496773771', 'core.contrail-query-.7918.nodec40.1496773879', 'core.contrail-query-.8032.nodec40.1496774117'], self.max_cores:4
max # of cores reached:4
deleting core file list:['core.contrail-query-.8032.nodec40.1496774117']
deleting core file:core.contrail-query-.8032.nodec40.1496774117
ERROR: [Errno 2] No such file or directory: 'core.contrail-query-.8032.nodec40.1496774117'
# of cores for contrail-query-engine:4

Tags: analytics
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/32634
Submitter: Sundaresan Rajangam (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/32634
Committed: http://github.com/Juniper/contrail-controller/commit/3017293f1f57297f2c264093c1e56a4731a8ca08
Submitter: Zuul (<email address hidden>)
Branch: master

commit 3017293f1f57297f2c264093c1e56a4731a8ca08
Author: Sundaresan Rajangam <email address hidden>
Date: Wed Jun 7 12:19:17 2017 -0700

Number of cores generated per process exceeds max limit

nodemgr failed to delete the old core file when the max number of cores
per process exceeded due to incomplete path passed to remove() call.
Fix update_process_core_file_list() which sends core file list without
complete path.
Handle the case when nodemgr doesn't run when the process generates
coredump and exceeds the max limit.

Change-Id: Icb14d15f266c39621e423e8d302224b94681a1e9
Clsoes-Bug: #1696214

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

Review in progress for https://review.opencontrail.org/33795
Submitter: Sundaresan Rajangam (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/33795
Committed: http://github.com/Juniper/contrail-controller/commit/61c77d153e149e6037770128a725d5c442fcdc05
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 61c77d153e149e6037770128a725d5c442fcdc05
Author: Sundaresan Rajangam <email address hidden>
Date: Wed Jun 7 12:19:17 2017 -0700

Number of cores generated per process exceeds max limit

nodemgr failed to delete the old core file when the max number of cores
per process exceeded due to incomplete path passed to remove() call.
Fix update_process_core_file_list() which sends core file list without
complete path.
Handle the case when nodemgr doesn't run when the process generates
coredump and exceeds the max limit.

Change-Id: Icb14d15f266c39621e423e8d302224b94681a1e9
Clsoes-Bug: #1696214
(cherry picked from commit 3017293f1f57297f2c264093c1e56a4731a8ca08)

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.