[k8s - R5.0] Contrail-kube-manager fail to come up

Bug #1737101 reported by Pulkit Tandon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Released
Critical
Prasanna Mucharikar

Bug Description

Build R5.0(mainline) - 54 / Ocata / CB-Build
Contrail-ansible provisioning
HA setup with 3 controllers and 2 agents.

Issue:

Contrail-kube-manager fail to come up.

Following exception was observed in contrail-kube-manager.log:

12/08/2017 11:05:20 AM [contrail-kube-manager]: __default__ [SYS_ERR]: KubeManagerErrorLog: VncKubernetes - <type 'exceptions.TypeError'>
Python 2.7.12: /usr/bin/python
Fri Dec 8 11:05:20 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_process(self=<kube_manager.vnc.vnc_kubernetes.VncKubernetes object>)
  519 while True:
  520 try:
  521 event = self.q.get()
  522 event_type = event['type']
  523 kind = event['object'].get('kind')
event undefined
self = <kube_manager.vnc.vnc_kubernetes.VncKubernetes object>
self.q = <class 'gevent.queue.Queue'>
self.q.get = <unbound method Queue.get>
<type 'exceptions.TypeError'>: unbound method get() must be called with Queue instance as first argument (got nothing instead)
    __class__ = <type 'exceptions.TypeError'>
    __delattr__ = <method-wrapper '__delattr__' of exceptions.TypeError object>
    __dict__ = {}
    __doc__ = 'Inappropriate argument type.'
    __format__ = <built-in method __format__ of exceptions.TypeError object>
    __getattribute__ = <method-wrapper '__getattribute__' of exceptions.TypeError object>
    __getitem__ = <method-wrapper '__getitem__' of exceptions.TypeError object>
    __getslice__ = <method-wrapper '__getslice__' of exceptions.TypeError object>
    __hash__ = <method-wrapper '__hash__' of exceptions.TypeError object>
    __init__ = <method-wrapper '__init__' of exceptions.TypeError object>
    __new__ = <built-in method __new__ of type object>
    __reduce__ = <built-in method __reduce__ of exceptions.TypeError object>
    __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.TypeError object>
    __repr__ = <method-wrapper '__repr__' of exceptions.TypeError object>
    __setattr__ = <method-wrapper '__setattr__' of exceptions.TypeError object>
    __setstate__ = <built-in method __setstate__ of exceptions.TypeError object>
    __sizeof__ = <built-in method __sizeof__ of exceptions.TypeError object>
    __str__ = <method-wrapper '__str__' of exceptions.TypeError object>
    __subclasshook__ = <built-in method __subclasshook__ of type object>
    __unicode__ = <built-in method __unicode__ of exceptions.TypeError object>
    args = ('unbound method get() must be called with Queue instance as first argument (got nothing instead)',)
    message = 'unbound method get() must be called with Queue instance as first argument (got nothing instead)'

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 521, in vnc_process
    event = self.q.get()
TypeError: unbound method get() must be called with Queue instance as first argument (got nothing instead)

Pulkit Tandon (pulkitt)
tags: added: sanityblocker
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/38224
Submitter: Prasanna Mucharikar (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/38224
Committed: http://github.com/Juniper/contrail-controller/commit/9792d7da9c4f95df2a7735ba46c16bc06b2450b7
Submitter: Zuul (<email address hidden>)
Branch: master

commit 9792d7da9c4f95df2a7735ba46c16bc06b2450b7
Author: Prasanna Mucharikar <email address hidden>
Date: Fri Dec 8 12:41:54 2017 -0800

Fix for exception in Kube manager at startup.
Closes-Bug: #1737101

Change-Id: I9885297f2b9aa30aa3de41e4fe71ed35b2c97f0a

Revision history for this message
Pulkit Tandon (pulkitt) wrote :

Fixed long back.
Latest build where a clean installation happened is CB-ubuntu16-193-ocata.

Closing the bug now

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.