[2.20-55~juno]KeyError: 'virtual_network_network_id' seen and config not applied using device-manager

Bug #1466437 reported by Ganesha HV
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
Critical
Suresh Balineni
Trunk
Fix Committed
Critical
Suresh Balineni

Bug Description

Topo
====
nodeb12

Version
======
ubuntu-14.04 2.20-55~juno

Steps
====
Configured 'yuvaraj' as Physical router and BGP router.
After adding a virtual-network, I see that the following config is pushed onto the router:

set groups __contrail__ routing-options route-distinguisher-id 10.204.217.190
set groups __contrail__ routing-options autonomous-system 64512
set groups __contrail__ protocols bgp group __contrail__ type internal
set groups __contrail__ protocols bgp group __contrail__ multihop
set groups __contrail__ protocols bgp group __contrail__ local-address 10.204.217.190
set groups __contrail__ protocols bgp group __contrail__ hold-time 90
set groups __contrail__ protocols bgp group __contrail__ keep all
set groups __contrail__ protocols bgp group __contrail__ family inet-vpn unicast
set groups __contrail__ protocols bgp group __contrail__ family inet6-vpn unicast
set groups __contrail__ protocols bgp group __contrail__ family evpn signaling
set groups __contrail__ protocols bgp group __contrail__ family route-target
set groups __contrail__ protocols bgp group __contrail__ neighbor 10.204.216.5
set groups __contrail__ protocols bgp group __contrail__ neighbor 10.204.216.245
set groups __contrail__ protocols bgp group __contrail_external__ type external
set groups __contrail__ protocols bgp group __contrail_external__ multihop
set groups __contrail__ protocols bgp group __contrail_external__ local-address 10.204.217.190
set groups __contrail__ protocols bgp group __contrail_external__ hold-time 90
set groups __contrail__ protocols bgp group __contrail_external__ keep all
set groups __contrail__ protocols bgp group __contrail_external__ family inet-vpn unicast
set groups __contrail__ protocols bgp group __contrail_external__ family inet6-vpn unicast
set groups __contrail__ protocols bgp group __contrail_external__ family evpn signaling
set groups __contrail__ protocols bgp group __contrail_external__ family route-target
set groups __contrail__ routing-instances __contrail__l3_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn instance-type vrf
set groups __contrail__ routing-instances __contrail__l3_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn interface irb.4
set groups __contrail__ routing-instances __contrail__l3_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn vrf-import __contrail__l3_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn-import
set groups __contrail__ routing-instances __contrail__l3_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn vrf-export __contrail__l3_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn-export
set groups __contrail__ routing-instances __contrail__l3_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn vrf-table-label
set groups __contrail__ routing-instances __contrail__l3_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn routing-options static route 10.204.219.96/29 discard
set groups __contrail__ routing-instances __contrail__l3_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn routing-options auto-export family inet unicast
set groups __contrail__ routing-instances __contrail__l2_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn vtep-source-interface lo0.0
set groups __contrail__ routing-instances __contrail__l2_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn instance-type virtual-switch
set groups __contrail__ routing-instances __contrail__l2_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn vrf-target target:64512:8000001
set groups __contrail__ routing-instances __contrail__l2_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn protocols evpn
set groups __contrail__ routing-instances __contrail__l2_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn bridge-domains bd-4 vlan-id 4
set groups __contrail__ routing-instances __contrail__l2_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn bridge-domains bd-4 routing-interface irb.4
set groups __contrail__ routing-instances __contrail__l2_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn bridge-domains bd-4 vxlan vni 4
set groups __contrail__ routing-instances __contrail__l2_c3e48376-f66a-4f5b-94ff-458d3fd297f7_public-vn bridge-domains bd-4 vxlan ingress-node-replication

The config isn' t applied

Traceback
========
See the following error on contrail-device-manager.log:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/device_manager/device_manager.py", line 309, in _vnc_subscribe_callback
    obj = obj_class.locate(obj_id)
  File "/usr/lib/python2.7/dist-packages/cfgm_common/vnc_db.py", line 55, in locate
    cls._dict[key] = cls(key, *args)
  File "/usr/lib/python2.7/dist-packages/device_manager/db.py", line 583, in __init__
    self.update(obj_dict)
  File "/usr/lib/python2.7/dist-packages/device_manager/db.py", line 595, in update
    self.set_vxlan_vni(obj)
  File "/usr/lib/python2.7/dist-packages/device_manager/db.py", line 627, in set_vxlan_vni
    self.vxlan_vni = obj['virtual_network_network_id']
KeyError: 'virtual_network_network_id'

Revision history for this message
Ganesha HV (ganeshahv) wrote :

The following traceback seen while deleting the physical router :

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/device_manager/device_manager.py", line 328, in _vnc_subscribe_callback
    obj_class.delete(obj_id)
  File "/usr/lib/python2.7/dist-packages/device_manager/db.py", line 136, in delete
    self.uve_send(True)
NameError: global name 'self' is not defined

Revision history for this message
Suresh Balineni (sbalineni) wrote :

Fixes for both issues already went into the branch. Should be available in next build.

Revision history for this message
Suresh Balineni (sbalineni) wrote :

R2.20 commit for this issue: https://review.opencontrail.org/#/c/11649/

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

Review in progress for https://review.opencontrail.org/12043
Submitter: Suresh Balineni (<email address hidden>)

Nischal Sheth (nsheth)
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/12043
Committed: http://github.org/Juniper/contrail-controller/commit/91fbdb6187dc2932e3ccc0c7435365a1e88a5b73
Submitter: Zuul
Branch: master

commit 91fbdb6187dc2932e3ccc0c7435365a1e88a5b73
Author: sbalineni <email address hidden>
Date: Thu Jun 25 14:08:30 2015 -0700

DM: fixes ported from R2.20

Change-Id: Ie5e87314202a45b7863960d9d68a29121d30a22a
Closes-Bug: #1468209
Closes-Bug: #1468145
Closes-Bug: #1468143
Closes-Bug: #1466721
Closes-Bug: #1466719
Closes-Bug: #1466717
Closes-Bug: #1466437

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.