Exception handling for 3rd party processes during mem/cpu info collection

Bug #1609911 reported by Santosh Gupta
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Fix Committed
High
Santosh Gupta
Trunk
Fix Committed
High
Santosh Gupta

Bug Description

pstat.pname should be used as index for self.third_party_process_state_db
Backtrace below.

NoSuchProcess: process name:zookeeper pid:6803
Traceback (most recent call last):
 File "/usr/lib64/python2.7/site-packages/gevent/greenlet.py", line 327, in run
   result = self._run(*self.args, **self.kwargs)
 File "/usr/lib/python2.7/site-packages/nodemgr/database_nodemgr/database_event_manager.py", line 338, in runforever
   self.event_tick_60()
 File "/usr/lib/python2.7/site-packages/nodemgr/common/event_manager.py", line 567, in event_tick_60
   process_mem_cpu_usage = self.get_all_processes_mem_cpu_usage()
 File "/usr/lib/python2.7/site-packages/nodemgr/common/event_manager.py", line 444, in get_all_processes_mem_cpu_usage
   self.third_party_process_state_db.pop(pstat.name)
KeyError: 'nodei21.englab.juniper.net'
<Greenlet at 0x1fa80f0: <bound method DatabaseEventManager.runforever of <nodemgr.database_nodemgr.database_event_manager.DatabaseEventManager object at 0x1d83450>>> failed with KeyError

Santosh Gupta (sangupta)
Changed in juniperopenstack:
assignee: nobody → Santosh Gupta (sangupta)
importance: Undecided → High
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/22872
Submitter: Santosh Gupta (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/22873
Submitter: Santosh Gupta (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/22872
Committed: http://github.org/Juniper/contrail-controller/commit/e436deb2a46d41ca53129345573f0e9a4252cd4d
Submitter: Zuul
Branch: R3.1

commit e436deb2a46d41ca53129345573f0e9a4252cd4d
Author: Santosh Gupta <email address hidden>
Date: Thu Aug 4 10:58:20 2016 -0700

Exception handling for 3rd party processes during mem/cpu info collection

pstat.pname should be used as index for self.third_party_process_state_db

Change-Id: I5b64cd1a0c9c8d911cc50a82a7f0cc055f8ae6b2
Closes-Bug:1609911

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

Reviewed: https://review.opencontrail.org/22873
Committed: http://github.org/Juniper/contrail-controller/commit/3ab7e744f822fe75b133d47a157f13764ecc3214
Submitter: Zuul
Branch: master

commit 3ab7e744f822fe75b133d47a157f13764ecc3214
Author: Santosh Gupta <email address hidden>
Date: Thu Aug 4 10:59:06 2016 -0700

Exception handling for 3rd party processes during mem/cpu info collection

pstat.pname should be used as index for self.third_party_process_state_db

Change-Id: I193b3c48f679a415252c29da4c2cb8e6e108ba0c
Closes-Bug:1609911

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.