Traceback due to undefined _queue attribute in contrail-kube-manager log

Bug #1690714 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
High
Dinesh Bakiaraj
Trunk
Fix Committed
High
Dinesh Bakiaraj

Bug Description

R4.0 Ubuntu 14.04

With project-isolation set for namespaces in k8s, ran the sanity and we see this bt multiple times

05/14/2017 07:26:30 PM [contrail-kube-manager]: vnc_timer: VncKubernetes - <type 'exceptions.AttributeError'>
Python 2.7.6: /usr/bin/python
Sun May 14 19:26:30 2017

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

 /usr/lib/python2.7/dist-packages/kube_manager/vnc/vnc_kubernetes.py in vnc_timer(self=<kube_manager.vnc.vnc_kubernetes.VncKubernetes object>)
  333 self.service_mgr.service_timer()
  334 self.pod_mgr.pod_timer()
  335 self.namespace_mgr.namespace_timer()
  336 except Exception as e:
  337 string_buf = StringIO()
self = <kube_manager.vnc.vnc_kubernetes.VncKubernetes object>
self.namespace_mgr = <kube_manager.vnc.vnc_namespace.VncNamespace object>
self.namespace_mgr.namespace_timer = <bound method VncNamespace.namespace_timer of <kube_manager.vnc.vnc_namespace.VncNamespace object>>

 /usr/lib/python2.7/dist-packages/kube_manager/vnc/vnc_namespace.py in namespace_timer(self=<kube_manager.vnc.vnc_namespace.VncNamespace object>)
  408
  409 def namespace_timer(self):
  410 self._sync_namespace_project()
  411
  412 def process(self, event):
self = <kube_manager.vnc.vnc_namespace.VncNamespace object>
self._sync_namespace_project = <bound method VncNamespace._sync_namespace_proje...e_manager.vnc.vnc_namespace.VncNamespace object>>

 /usr/lib/python2.7/dist-packages/kube_manager/vnc/vnc_namespace.py in _sync_namespace_project(self=<kube_manager.vnc.vnc_namespace.VncNamespace object>)
  405 event['type'] = 'DELETED'
  406 event['object'] = object
  407 self._queue.put(event)
  408
  409 def namespace_timer(self):
self = <kube_manager.vnc.vnc_namespace.VncNamespace object>
self._queue undefined
event = {'object': {'kind': 'Namespace', 'metadata': {'name': u'ctest-namespace-29004655', 'uid': u'8c113c37-38d4-11e7-9420-525400010001'}}, 'type': 'DELETED'}
<type 'exceptions.AttributeError'>: 'VncNamespace' object has no attribute '_queue'
    __class__ = <type 'exceptions.AttributeError'>
    __delattr__ = <method-wrapper '__delattr__' of exceptions.AttributeError object>
    __dict__ = {}
    __doc__ = 'Attribute not found.'
    __format__ = <built-in method __format__ of exceptions.AttributeError object>
    __getattribute__ = <method-wrapper '__getattribute__' of exceptions.AttributeError object>
    __getitem__ = <method-wrapper '__getitem__' of exceptions.AttributeError object>
    __getslice__ = <method-wrapper '__getslice__' of exceptions.AttributeError object>
    __hash__ = <method-wrapper '__hash__' of exceptions.AttributeError object>
    __init__ = <method-wrapper '__init__' of exceptions.AttributeError object>
    __new__ = <built-in method __new__ of type object>
    __reduce__ = <built-in method __reduce__ of exceptions.AttributeError object>
    __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.AttributeError object>
    __repr__ = <method-wrapper '__repr__' of exceptions.AttributeError object>
    __setattr__ = <method-wrapper '__setattr__' of exceptions.AttributeError object>
    __setstate__ = <built-in method __setstate__ of exceptions.AttributeError object>
    __sizeof__ = <built-in method __sizeof__ of exceptions.AttributeError object>
    __str__ = <method-wrapper '__str__' of exceptions.AttributeError object>
    __subclasshook__ = <built-in method __subclasshook__ of type object>
    __unicode__ = <built-in method __unicode__ of exceptions.AttributeError object>
    args = ("'VncNamespace' object has no attribute '_queue'",)
    message = "'VncNamespace' object has no attribute '_queue'"

The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/kube_manager/vnc/vnc_kubernetes.py", line 335, in vnc_timer
    self.namespace_mgr.namespace_timer()
  File "/usr/lib/python2.7/dist-packages/kube_manager/vnc/vnc_namespace.py", line 410, in namespace_timer
    self._sync_namespace_project()
  File "/usr/lib/python2.7/dist-packages/kube_manager/vnc/vnc_namespace.py", line 407, in _sync_namespace_project
    self._queue.put(event)
AttributeError: 'VncNamespace' object has no attribute '_queue'

Revision history for this message
Dinesh Bakiaraj (dineshb) wrote :

Review in progress

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

Review in progress for https://review.opencontrail.org/31701
Submitter: Dinesh Bakiaraj (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/31701
Committed: http://github.com/Juniper/contrail-ansible/commit/cfb11b89f618c1d433d10e3d311ebeff9500c506
Submitter: Zuul (<email address hidden>)
Branch: master

commit cfb11b89f618c1d433d10e3d311ebeff9500c506
Author: dineshb-jnpr <email address hidden>
Date: Fri May 19 08:11:07 2017 -0700

Provisioning knobs for some kubenernets config.

This commit is to support config knobs for the following:

1. Cluster network config
2. Public fip pool config
3. Pod subnet
4. Service subnet

Change-Id: I552bbc17aa25b3c75af8b29c7e3516e6cb613aca
Closes-Bug: #1687370
Closes-Bug: #1690714
Closes-Bug: #1690968

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.