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
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.