[3.0-2713~kilo] Service chain created using template version 2 is not working
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
Critical
|
Rudra Rugge |
Bug Description
1]. Created service chains using UI and Heat.
2]. Observed that no VRFs for the service chain are created.
Setup
=====
cfgm - nodeg25, g26 & g27
ctrl - nodeg26 & g27
webUI/Horizon - g25
computes - nodek8, k9 & k10
Setup is intact.
Logs
====
schema.err
------------------
None
Python 2.7.6: /usr/bin/python
Mon Feb 15 15:28:10 2016
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
None: None
The above is a description of an error in a Python program. Here is
the original traceback:
None
None
Python 2.7.6: /usr/bin/python
Mon Feb 15 15:48:09 2016
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
None: None
The above is a description of an error in a Python program. Here is
the original traceback:
None
02/15/2016 03:13:07 PM [contrail-schema]: service chain c01cb3f0-
02/15/2016 03:13:07 PM [contrail-schema]: service chain c01cb3f0-
02/15/2016 03:18:36 PM [contrail-schema]: service chain c01cb3f0-
02/15/2016 03:18:36 PM [contrail-schema]: service chain c01cb3f0-
02/15/2016 03:46:32 PM [contrail-schema]: service chain c01cb3f0-
tags: |
added: config heat removed: conf |
Changed in juniperopenstack: | |
assignee: | nobody → Sachin Bansal (sbansal) |
There were regressions caused due to commits /github. com/Juniper/ contrail- controller/ commit/ 87661c5af04ea99 79f7f2402f012f0 d7511f4103 /github. com/Juniper/ contrail- controller/ commit/ a9d186000a16317 5f961975bb80325 eaec0f1fc5
https:/
https:/
Below patch fixed things.
root@a2s42: /usr/lib/ python2. 7/dist- packages/ svc_monitor# diff -u config_db.py.1 config_db.py M.get(self. virtual_ machine)
self. _manager. port_delete_ or_si_link( vm, self)
--- config_db.py.1 2016-02-15 15:24:13.740781407 -0800
+++ config_db.py 2016-02-15 15:20:51.344675251 -0800
@@ -469,7 +469,6 @@
vm = VirtualMachineS
if vm:
- return
root@a2s42: /usr/lib/ python2. 7/dist- packages/ svc_monitor# diff -u port_tuple.py.1 port_tuple.py
iip_ obj.set_ instance_ ip_mode( si.ha_mode)
self. _vnc_lib. instance_ ip_create( iip_obj) lib.ref_ relax_for_ delete( iip_id, vn_obj.uuid) lib.ref_ relax_for_ delete( iip_obj. uuid, vn_obj.uuid)
self. _vnc_lib. instance_ ip_update( iip_obj)
--- port_tuple.py.1 2016-02-15 14:42:32.911650439 -0800
+++ port_tuple.py 2016-02-15 15:21:02.556680615 -0800
@@ -53,7 +53,7 @@
try:
- self._vnc_
+ self._vnc_
except RefsExistError:
except Exception as e:
@@ -196,12 +196,14 @@
return port_config
- def update_ port_tuple( self, vmi): old_vmi_ links(vmi) get(vmi. port_tuple) port_tuple( self, vmi=None, pt_id=None): old_vmi_ links(vmi) get(vmi. port_tuple) get(pt_ id) SM.get( pt.parent_ key) port_tuples( self): SM.values( ): port_tuple( pt_id) port_tuple( pt_id=pt_ id) values( ):
self. delete_ shared_ iip(iip)
- if not vmi.port_tuple:
- self.delete_
- return
-
- pt = PortTupleSM.
+ def update_
+ if vmi:
+ if not vmi.port_tuple:
+ self.delete_
+ return
+ pt = PortTupleSM.
+ if pt_id:
+ pt = PortTupleSM.
if not pt:
return
si = ServiceInstance
@@ -234,6 +236,6 @@
def update_
for si in ServiceInstance
for pt_id in si.port_tuples:
- self.update_
+ self.update_
for iip in InstanceIpSM.