centos65: python daemons are throwing exceptions

Bug #1500532 reported by Raj Reddy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.0
Won't Fix
Undecided
Arvind
R2.20
Fix Committed
High
Arvind
R2.21.x
Fix Committed
High
Arvind
R2.22.x
Fix Committed
High
Arvind
Trunk
Fix Committed
High
Arvind

Bug Description

following is for contrail-api, but the same happens on contrail-analytics-api.. seems like some issue in sandesh code generation for rate limiting..

Traceback (most recent call last):
  File "/usr/bin/contrail-api", line 9, in <module>
    load_entry_point('vnc-cfg-api-server==0.1dev', 'console_scripts', 'contrail-api')()
  File "/usr/lib/python2.6/site-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 2650, in server_main
    main()
  File "/usr/lib/python2.6/site-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 2609, in main
    vnc_api_server = VncApiServer(args_str)
  File "/usr/lib/python2.6/site-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 1377, in __init__
    self._pipe_start_app = auth_svc.get_middleware_app()
  File "/usr/lib/python2.6/site-packages/vnc_cfg_api_server/vnc_auth_keystone.py", line 235, in get_middleware_app
    level=SandeshLevel.SYS_NOTICE)
  File "/usr/lib/python2.6/site-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 2228, in config_log
    sandesh=self._sandesh)
  File "/usr/lib/python2.6/site-packages/pysandesh/sandesh_base.py", line 740, in send
    if (not self.is_rate_limit_pass(sandesh)):
  File "/usr/lib/python2.6/site-packages/pysandesh/sandesh_base.py", line 752, in is_rate_limit_pass
    if self.__class__.rate_limit_buffer.maxlen == 0:
AttributeError: 'collections.deque' object has no attribute 'maxlen'

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

Review in progress for https://review.opencontrail.org/14113
Submitter: Arvind (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/14113
Committed: http://github.org/Juniper/contrail-sandesh/commit/e1f03cba0cc4105e28dae9acc5be4e5b51240e39
Submitter: Zuul
Branch: master

commit e1f03cba0cc4105e28dae9acc5be4e5b51240e39
Author: arvindvis <email address hidden>
Date: Tue Sep 29 15:49:42 2015 -0700

With python2.6 collections.deque does not support maxlen attribute
So we inherit the collections.deque and add a property maxlen to
make it work in 2.6 We use property and not a instance variable
maxlen because 2.7 has maxlen as a readonly property
Closes-Bug: #1500532

Change-Id: Iab53ee65c1a4195261da672ebcbd3f663e4bb3e6

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.21.x

Review in progress for https://review.opencontrail.org/19909
Submitter: Arvind (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/19909
Committed: http://github.org/Juniper/contrail-sandesh/commit/578c7e8f75ba23ed20281ceaa8d7ec2592d1a160
Submitter: Zuul
Branch: R2.21.x

commit 578c7e8f75ba23ed20281ceaa8d7ec2592d1a160
Author: arvindvis <email address hidden>
Date: Tue Sep 29 15:49:42 2015 -0700

With python2.6 collections.deque does not support maxlen attribute
So we inherit the collections.deque and add a property maxlen to
make it work in 2.6 We use property and not a instance variable
maxlen because 2.7 has maxlen as a readonly property
Closes-Bug: #1500532

Change-Id: Iab53ee65c1a4195261da672ebcbd3f663e4bb3e6

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22.x

Review in progress for https://review.opencontrail.org/20058
Submitter: Arvind (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/20059
Submitter: Arvind (<email address hidden>)

Jeba Paulaiyan (jebap)
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/20059
Committed: http://github.org/Juniper/contrail-sandesh/commit/06913a50478b96352451f921835a5f824458760b
Submitter: Zuul
Branch: R2.20

commit 06913a50478b96352451f921835a5f824458760b
Author: arvindvis <email address hidden>
Date: Tue Sep 29 15:49:42 2015 -0700

With python2.6 collections.deque does not support maxlen attribute
So we inherit the collections.deque and add a property maxlen to
make it work in 2.6 We use property and not a instance variable
maxlen because 2.7 has maxlen as a readonly property
Closes-Bug: #1500532

Change-Id: Iab53ee65c1a4195261da672ebcbd3f663e4bb3e6

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

Reviewed: https://review.opencontrail.org/20058
Committed: http://github.org/Juniper/contrail-sandesh/commit/68709776dfab515825f4e75ac7f7d91eda6fb5ee
Submitter: Zuul
Branch: R2.22.x

commit 68709776dfab515825f4e75ac7f7d91eda6fb5ee
Author: arvindvis <email address hidden>
Date: Tue Sep 29 15:49:42 2015 -0700

With python2.6 collections.deque does not support maxlen attribute
So we inherit the collections.deque and add a property maxlen to
make it work in 2.6 We use property and not a instance variable
maxlen because 2.7 has maxlen as a readonly property
Closes-Bug: #1500532

Change-Id: Iab53ee65c1a4195261da672ebcbd3f663e4bb3e6

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.