Comment 0 for bug 1352157

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

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 <<<<<<<<<<<<<<<<<<<<<
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, observer is not coming up, Following is the error in observer.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