contrail-analytics-nodemgr failed , IndexError: list index out of range

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

Bug Description

Contrail version 3.2, build 8, SKU kilo

contrail-analytics-nodemgr failed , IndexError: list index out of range

root@5b8s30-vm3:~# contrail-status
== Contrail Analytics ==
supervisor-analytics: active
contrail-alarm-gen:0 active
contrail-analytics-api initializing (Redis-UVE:10.87.66.167:6379[None] connection down)
contrail-analytics-nodemgr failed
contrail-collector active
contrail-query-engine active
contrail-snmp-collector active
contrail-topology active

Exception AssertionError: AssertionError() in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
E: Problem renaming the file /var/cache/apt/srcpkgcache.bin.FVJR8p to /var/cache/apt/srcpkgcache.bin - rename (2: No such file or directory)
E: Problem renaming the file /var/cache/apt/pkgcache.bin.hYRlVL to /var/cache/apt/pkgcache.bin - rename (2: No such file or directory)
E: The package lists or status file could not be parsed or opened.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/nodemgr/common/event_manager.py", line 657, in runforever
    self.do_periodic_events()
  File "/usr/lib/python2.7/dist-packages/nodemgr/common/event_manager.py", line 638, in do_periodic_events
    self.event_tick_60()
  File "/usr/lib/python2.7/dist-packages/nodemgr/common/event_manager.py", line 587, in event_tick_60
    self.get_package_name())
  File "/usr/lib/python2.7/dist-packages/nodemgr/utils.py", line 13, in get_package_version
    return version.split()[1]
IndexError: list index out of range
<Greenlet at 0x7fde7d323b90: <bound method AnalyticsEventManager.runforever of <nodemgr.analytics_nodemgr.analytics_event_manager.AnalyticsEventManager object at 0x7fde7d5e6110>>> failed with IndexError

Revision history for this message
Vinoth Kannan Ganapathy (vganapathy) wrote :
Changed in juniperopenstack:
importance: Undecided → High
Raj Reddy (rajreddy)
Changed in juniperopenstack:
milestone: r3.2.0.0-fcs → none
Revision history for this message
Santosh Gupta (sangupta) wrote :

From contrail-analytics-nodemgr-stderr.log file
...
E: Problem renaming the file /var/cache/apt/srcpkgcache.bin.FVJR8p to /var/cache/apt/srcpkgcache.bin - rename (2: No such file or directory)
E: Problem renaming the file /var/cache/apt/pkgcache.bin.hYRlVL to /var/cache/apt/pkgcache.bin - rename (2: No such file or directory)
E: The package lists or status file could not be parsed or opened.

There is error an apt/dpkg cache files.

Jeba Paulaiyan (jebap)
tags: added: regression
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/27102
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/27103
Submitter: Santosh Gupta (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/27102
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/27103
Submitter: Santosh Gupta (<email address hidden>)

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

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

commit 2b62dfd6b3c3333fbfedcc2bae8c1ca2d3c75600
Author: Santosh Gupta <email address hidden>
Date: Fri Dec 9 12:52:01 2016 -0800

Handle error in contrail-version

If contrail-version returns error
- exit on startup
- send "unknown-version" for package version
Closes-Bug: #1648592

Change-Id: Iba51af67eb7fe7010f33055a379b0bfac214ebb9

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

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

commit 51f4ec49dc0decaef6c05dbba70f94126c5143cf
Author: Santosh Gupta <email address hidden>
Date: Fri Dec 9 12:53:11 2016 -0800

Handle error in contrail-version

If contrail-version returns error
- exit on startup
- send "unknown-version" for package version
Closes-Bug: #1648592

Change-Id: I4cb93b6f975f57ffbbbeabd45bcee468e7524962

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.