contrail-vrouter-nodemgr timeout, IndexError: list index out of range

Bug #1718011 reported by Vinoth Kannan Ganapathy
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

contrail-setup 4.1.0.0-49 49

contrail-vrouter-nodemgr failing because of the following traceback error

09/17/2017 10:50:27 PM [contrail-vrouter-nodemgr]: corename is : /var/crashes/old
Traceback (most recent call last):
  File "/usr/bin/contrail-nodemgr", line 9, in <module>
    load_entry_point('nodemgr==0.1dev', 'console_scripts', 'contrail-nodemgr')()
  File "/usr/lib/python2.7/dist-packages/nodemgr/main.py", line 241, in main
    gevent.spawn(prog.run_periodically(prog.do_periodic_events, 60))])
  File "/usr/lib/python2.7/dist-packages/nodemgr/common/event_manager.py", line 1028, in run_periodically
    function(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/nodemgr/vrouter_nodemgr/vrouter_event_manager.py", line 41, in do_periodic_events
    self.event_tick_60()
  File "/usr/lib/python2.7/dist-packages/nodemgr/common/event_manager.py", line 983, in event_tick_60
    if self.update_process_core_file_list():
  File "/usr/lib/python2.7/dist-packages/nodemgr/common/event_manager.py", line 611, in update_process_core_file_list
    exec_name = corename.split('.')[1]
IndexError: list index out of range

seems there is a unexpected directory under /var/crashes , hence it was failing.

information type: Proprietary → Public
Jeba Paulaiyan (jebap)
tags: added: regression
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/35697
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/35697
Committed: http://github.com/Juniper/contrail-controller/commit/c5b2117e4432ab4f802d37c6193f101d8ff5b9a7
Submitter: Zuul (<email address hidden>)
Branch: master

commit c5b2117e4432ab4f802d37c6193f101d8ff5b9a7
Author: Sundaresan Rajangam <email address hidden>
Date: Mon Sep 18 12:33:05 2017 -0700

Fix exception in processing corefile list

During upgrade, all the core files seem to be moved under
/var/crashes/old. This causes exception while extracting process name
from the file name. Ignore the directories and the files that doesn't
comply with the core pattern.

Change-Id: I26fc7cb81f022183eb2524b0f2720e4eae66fb92
Closes-Bug: #1718011

no longer affects: juniperopenstack/r4.1
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/35958
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/35958
Committed: http://github.com/Juniper/contrail-controller/commit/5b5cf4d38739bce84e23f0f5efb70e1194714cff
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 5b5cf4d38739bce84e23f0f5efb70e1194714cff
Author: Sundaresan Rajangam <email address hidden>
Date: Mon Sep 18 12:33:05 2017 -0700

Fix exception in processing corefile list

During upgrade, all the core files seem to be moved under
/var/crashes/old. This causes exception while extracting process name
from the file name. Ignore the directories and the files that doesn't
comply with the core pattern.

Change-Id: I26fc7cb81f022183eb2524b0f2720e4eae66fb92
Closes-Bug: #1718011
(cherry picked from commit c5b2117e4432ab4f802d37c6193f101d8ff5b9a7)

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.