Schema: not creating RI->RT refs if RT added after creating network policy

Bug #1647504 reported by amit surana
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
High
Sahil Sabharwal
R3.1
Fix Committed
High
Sahil Sabharwal
R3.2
Fix Committed
High
Sahil Sabharwal
Trunk
Fix Committed
High
Sahil Sabharwal

Bug Description

bug seen in 3.1/3.2.

consider this network policy that is applied to left/right VNs.

pass protocol any network serial-left ports any <> network serial-right ports [ 80 ] services serial-1,serial-2

now, the policy rule is edited and the port is changed from 80 to any. next, an external RT is configured on the left-vn. It is seen that schema is not creating the RT refs from the left RI. Restarting schema fixes the issue.

These were the only schema errors seen:

Upon modifying the policy rule:

root@csol2-node5:/var/log/contrail# 12/05/2016 03:08:31 PM [contrail-schema]: Duplicate uve delete <e3b97e88-f995-4c5b-93ae-d947e08a2a63>
12/05/2016 03:08:31 PM [contrail-schema]: Duplicate uve delete <e3b97e88-f995-4c5b-93ae-d947e08a2a63>
12/05/2016 03:08:31 PM [contrail-schema]: Duplicate uve delete <e3b97e88-f995-4c5b-93ae-d947e08a2a63>
12/05/2016 03:08:31 PM [contrail-schema]: service chain ip address is None for: default-domain:admin:serial-1
12/05/2016 03:08:31 PM [contrail-schema]: service chain ip address is None for: default-domain:admin:serial-1
12/05/2016 03:08:32 PM [contrail-schema]: service chain ip address is None for: default-domain:admin:serial-2
12/05/2016 03:08:32 PM [contrail-schema]: service chain ip address is None for: default-domain:admin:serial-2

Upon adding the RT:

root@csol2-node5:/var/log/contrail#
root@csol2-node5:/var/log/contrail# 12/05/2016 03:09:00 PM [contrail-schema]: service chain ip address is None for: default-domain:admin:serial-1
12/05/2016 03:09:00 PM [contrail-schema]: service chain ip address is None for: default-domain:admin:serial-2

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

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

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

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

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

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

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

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

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

Reviewed: https://review.opencontrail.org/27216
Committed: http://github.org/Juniper/contrail-controller/commit/49832489d1126c0c6c8a763fe2c6836cc0ca77ae
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 49832489d1126c0c6c8a763fe2c6836cc0ca77ae
Author: Sahil Sabharwal <email address hidden>
Date: Tue Dec 13 14:38:29 2016 -0800

Removed adding routing instance connection locally

We were adding routing instance connection locally in schema-transformer
RI object but was not deleting it at the time of deleting a connection.

Change-Id: I6e82b106cc9d967b77ed0268d04e0d9b92797f87
Closes-Bug: 1647504
(cherry picked from commit d6ba70c5cbb16d9b41f1a7e5fec200fff54e72bd)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

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

commit d6ba70c5cbb16d9b41f1a7e5fec200fff54e72bd
Author: Sahil Sabharwal <email address hidden>
Date: Tue Dec 13 14:38:29 2016 -0800

Removed adding routing instance connection locally

We were adding routing instance connection locally in schema-transformer
RI object but was not deleting it at the time of deleting a connection.

Change-Id: I6e82b106cc9d967b77ed0268d04e0d9b92797f87
Closes-Bug: 1647504

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/27217
Committed: http://github.org/Juniper/contrail-controller/commit/648d18395c39c81f1f35fc11046ff3eed83c9555
Submitter: Zuul (<email address hidden>)
Branch: R3.1

commit 648d18395c39c81f1f35fc11046ff3eed83c9555
Author: Sahil Sabharwal <email address hidden>
Date: Tue Dec 13 14:38:29 2016 -0800

Removed adding routing instance connection locally

We were adding routing instance connection locally in schema-transformer
RI object but was not deleting it at the time of deleting a connection.

Change-Id: I6e82b106cc9d967b77ed0268d04e0d9b92797f87
Closes-Bug: 1647504

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/27223
Committed: http://github.org/Juniper/contrail-controller/commit/135163ecad6978c31efc58010001fbe92cdb6243
Submitter: Zuul (<email address hidden>)
Branch: R3.0

commit 135163ecad6978c31efc58010001fbe92cdb6243
Author: Sahil Sabharwal <email address hidden>
Date: Tue Dec 13 14:38:29 2016 -0800

Removed adding routing instance connection locally

We were adding routing instance connection locally in schema-transformer
RI object but was not deleting it at the time of deleting a connection.

Change-Id: I6e82b106cc9d967b77ed0268d04e0d9b92797f87
Closes-Bug: 1647504
(cherry picked from commit d6ba70c5cbb16d9b41f1a7e5fec200fff54e72bd)

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.