[K8S] Ingress : kube-manager traceback while deleting ingress

Bug #1685573 reported by chhandak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Released
High
chhandak
Trunk
Fix Released
High
chhandak

Bug Description

Observed the following traceback in contrail-kube-manager log while deleting ingress object.
Observed this issue with Latest contrail-kube-manager code replaced on 3056 contrail build .

[root@5b7s18 ~]# kubectl get svc
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes 10.96.0.1 <none> 443/TCP 1d

[root@5b7s18 ~]# kubectl get ing
NAME HOSTS ADDRESS PORTS AGE
test foo.bar.com 80 9h
[root@5b7s18 ~]# kubectl delete ing test
ingress "test" deleted

Ingress Object Details
------------------------
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: test
  annotations:
    externalIP: 10.87.121.250
spec:
  rules:
  - host: foo.bar.com
    http:
      paths:
      - path: /foo
        backend:
          serviceName: ctest-nginx-svc-38148246
          servicePort: 80
      - path: /bar
        backend:
          serviceName: ctest-nginx-svc-38148246
          servicePort: 80

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cfgm_common/vnc_amqp.py", line 61, in _vnc_subscribe_callback
    self.vnc_subscribe_actions()
  File "/usr/lib/python2.7/dist-packages/cfgm_common/vnc_amqp.py", line 113, in vnc_subscribe_actions
    self.handle_delete()
  File "/usr/lib/python2.7/dist-packages/cfgm_common/vnc_amqp.py", line 191, in handle_delete
    self.obj_class.delete(obj_key)
  File "/usr/lib/python2.7/dist-packages/kube_manager/vnc/config_db.py", line 372, in delete
    super(VirtualMachineKM, cls).delete(uuid)
  File "/usr/lib/python2.7/dist-packages/kube_manager/vnc/config_db.py", line 98, in delete
    del cls._kube_fq_name_to_uuid[tuple(obj.kube_fq_name)]
KeyError: ()

Revision history for this message
chhandak (chhandak) wrote :

Full log copied at

/auto/cores/1685573
ubuntu-build04:/auto/cores/1685573> ls -lrt
total 3820
-rwxrwxrwx 1 chhandak epbg 3894363 Apr 22 18:11 contrail-kube-manager.log

Changed in juniperopenstack:
importance: Undecided → High
assignee: nobody → ymariappan (ymariappan)
milestone: none → r4.0
chhandak (chhandak)
information type: Proprietary → Public
Revision history for this message
Yuvaraja Mariappan (ymariappan) wrote :

Please try it in the latest build(since kube-manager does not have all the fixes). It is tested with latest kube-manager and i have not seen the issue.

Thanks,
Yuvaraja

Changed in juniperopenstack:
assignee: ymariappan (ymariappan) → chhandak (chhandak)
Revision history for this message
Rudra Rugge (rrugge) wrote :

Let us know if you see this again.

Changed in juniperopenstack:
status: New → Incomplete
Revision history for this message
chhandak (chhandak) wrote :

Not seeing the issue in latest build any more

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.