opserver is not compatible with python-redis>=2.4.9

Bug #1352157 reported by Ignatious Johnson Christopher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Released
High
Ignatious Johnson Christopher
R1.1
Fix Released
High
Ignatious Johnson Christopher

Bug Description

In packaging we package contrail built version of python-redis and using it in a freshly installed system.
[python-redis]
file = python-redis_2.8.0-1contrail1_all.deb <<<<<<<<<Contrail built
md5 = a2c82a2b974ed10471570c09aef0673d
https://github.com/Juniper/contrail-packaging/blob/master/build/package_configs/ubuntu1204/havana/depends_packages.cfg

And in the contrail-packages, contrail-analytics requires python-redis (>= 2.4.9)
https://github.com/Juniper/contrail-packages/blob/master/debian/contrail/debian/control
Package: contrail-analytics
Architecture: any
Depends: adduser,
         contrail-lib (= ${binary:Version}),
         libprotobuf7,
         python-bottle (>= 0.11.6),
         python-contrail (= ${source:Version}),
         python-pkg-resources,
         python-redis (>= 2.4.9),<<<<<<<<<<<<<<<<<<<<<<<<<<<

However with python-redis= 2.4.9, opserver is not coming up, Following is the error in opserver.log, with python-redis_2.8.0-1contrail1_all.deb, we are not hitting this issue.

08/03/2014 02:45:03 PM [a5s311:OpServer:Analytics:0]: Discarding event[EvSandeshUVESend] in state[Idle]
08/03/2014 02:45:03 PM [a5s311:OpServer:Analytics:0]: Processing event[EvSandeshUVESend] in state[Idle]
08/03/2014 02:45:03 PM [a5s311:OpServer:Analytics:0]: Discarding event[EvSandeshUVESend] in state[Idle]
No pre_exec_cmd found
08/03/2014 02:46:11 PM [a5s311:OpServer:Analytics:0]: SANDESH: Logging: LEVEL: [SYS_INFO] -> [SYS_DEBUG]
Traceback (most recent call last):
  File "/usr/bin/contrail-analytics-api", line 9, in <module>
    load_entry_point('opserver==0.1dev', 'console_scripts', 'contrail-analytics-api')()
  File "/usr/lib/python2.7/dist-packages/opserver/opserver.py", line 1714, in main
    opserver = OpServer()
  File "/usr/lib/python2.7/dist-packages/opserver/opserver.py", line 485, in __init__
    self._logger)
  File "/usr/lib/python2.7/dist-packages/opserver/uveserver.py", line 31, in __init__
    self._redis = redis.StrictRedis(self._local_redis_uve[0],
AttributeError: 'module' object has no attribute 'StrictRedis'
No pre_exec_cmd found

Revision history for this message
Ignatious Johnson Christopher (ijohnson-x) wrote :

Hit this issue during upgrading from 1.05 to 1.10, we used python-redis_2.4.9-1ubuntu1_all.deb in R1.05-211 build, and during upgrade pyhon-redis was not upgraded as the new 1.10 contrail-analytics requires python-redis (>= 2.4.9) and the requirement was satisfied. But opserver failed to come up.

description: updated
description: updated
Changed in juniperopenstack:
milestone: r1.10-fcs → r1.10-beta
Revision history for this message
Raj Reddy (rajreddy) wrote :

please take care of it along with upgrade changes.

Changed in juniperopenstack:
assignee: Raj Reddy (rajreddy) → Ignatious Johnson Christopher (ijohnson-x)
Changed in juniperopenstack:
status: New → Fix Committed
status: Fix Committed → New
information type: Proprietary → Public
Raj Reddy (rajreddy)
tags: added: blocker
Changed in juniperopenstack:
milestone: r1.10-beta → none
Changed in juniperopenstack:
milestone: none → r1.10-fcs
milestone: r1.10-fcs → r1.06-fcs
Changed in juniperopenstack:
milestone: r1.06-fcs → r1.10-fcs
Revision history for this message
Ignatious Johnson Christopher (ijohnson-x) wrote :

Raised review requesthttps://review.opencontrail.org/#/c/1961/

Revision history for this message
Ignatious Johnson Christopher (ijohnson-x) wrote :
Changed in juniperopenstack:
status: New → Fix Committed
Changed in juniperopenstack:
milestone: r1.10-fcs → none
Raj Reddy (rajreddy)
Changed in juniperopenstack:
status: Fix Committed → Fix Released
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.