[3.0-2713~kilo] Service chain created using template version 2 is not working

Bug #1545663 reported by Ganesha HV
6
This bug affects 1 person
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-8583-4d52-9002-ae1a21532f82: No ip address found for interface default-domain:admin:3b0c0bdd-9d41-4e90-83b6-2cf8f056800e
02/15/2016 03:13:07 PM [contrail-schema]: service chain c01cb3f0-8583-4d52-9002-ae1a21532f82: No ip address found for interface default-domain:admin:3b0c0bdd-9d41-4e90-83b6-2cf8f056800e
02/15/2016 03:18:36 PM [contrail-schema]: service chain c01cb3f0-8583-4d52-9002-ae1a21532f82: No ip address found for interface default-domain:admin:3b0c0bdd-9d41-4e90-83b6-2cf8f056800e
02/15/2016 03:18:36 PM [contrail-schema]: service chain c01cb3f0-8583-4d52-9002-ae1a21532f82: No ip address found for interface default-domain:admin:3b0c0bdd-9d41-4e90-83b6-2cf8f056800e
02/15/2016 03:46:32 PM [contrail-schema]: service chain c01cb3f0-8583-4d52-9002-ae1a21532f82: No ip address found for interface default-domain:admin:3b0c0bdd-9d41-4e90-83b6-2cf8f056800e

Ganesha HV (ganeshahv)
tags: added: config heat
removed: conf
Changed in juniperopenstack:
assignee: nobody → Sachin Bansal (sbansal)
Revision history for this message
Senthilnathan Murugappan (msenthil) wrote :

There were regressions caused due to commits
https://github.com/Juniper/contrail-controller/commit/87661c5af04ea9979f7f2402f012f0d7511f4103
https://github.com/Juniper/contrail-controller/commit/a9d186000a163175f961975bb80325eaec0f1fc5

Below patch fixed things.

root@a2s42:/usr/lib/python2.7/dist-packages/svc_monitor# diff -u config_db.py.1 config_db.py
--- 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 = VirtualMachineSM.get(self.virtual_machine)
         if vm:
             self._manager.port_delete_or_si_link(vm, self)
- return

         self._manager.port_tuple_agent.update_port_tuple(self)

root@a2s42:/usr/lib/python2.7/dist-packages/svc_monitor# diff -u port_tuple.py.1 port_tuple.py
--- 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 @@
             iip_obj.set_instance_ip_mode(si.ha_mode)
             try:
                 self._vnc_lib.instance_ip_create(iip_obj)
- self._vnc_lib.ref_relax_for_delete(iip_id, vn_obj.uuid)
+ self._vnc_lib.ref_relax_for_delete(iip_obj.uuid, vn_obj.uuid)
             except RefsExistError:
                 self._vnc_lib.instance_ip_update(iip_obj)
             except Exception as e:
@@ -196,12 +196,14 @@

         return port_config

- def update_port_tuple(self, vmi):
- if not vmi.port_tuple:
- self.delete_old_vmi_links(vmi)
- return
-
- pt = PortTupleSM.get(vmi.port_tuple)
+ def update_port_tuple(self, vmi=None, pt_id=None):
+ if vmi:
+ if not vmi.port_tuple:
+ self.delete_old_vmi_links(vmi)
+ return
+ pt = PortTupleSM.get(vmi.port_tuple)
+ if pt_id:
+ pt = PortTupleSM.get(pt_id)
         if not pt:
             return
         si = ServiceInstanceSM.get(pt.parent_key)
@@ -234,6 +236,6 @@
     def update_port_tuples(self):
         for si in ServiceInstanceSM.values():
             for pt_id in si.port_tuples:
- self.update_port_tuple(pt_id)
+ self.update_port_tuple(pt_id=pt_id)
         for iip in InstanceIpSM.values():
                 self.delete_shared_iip(iip)

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/17303
Submitter: Sachin Bansal (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/17303
Committed: http://github.org/Juniper/contrail-controller/commit/94a2385c3ad9dc216f377bf5b2418a20669e9dc4
Submitter: Zuul
Branch: master

commit 94a2385c3ad9dc216f377bf5b2418a20669e9dc4
Author: Sachin Bansal <email address hidden>
Date: Tue Feb 16 21:48:04 2016 -0800

Fix regressions issued in svc monitor

Few regressions have been introduced in svc monitor which broke v2 service chaining.
Thanks to Senthil for providing the fix.

Change-Id: Ide539adee94b619ded6b129540ac6cc04f78e0a9
Closes-Bug: 1545663

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.