[5.0.0-99~mitaka] User configured Route target not seen in control-node

Bug #1730363 reported by Ganesha HV
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.1
Fix Committed
High
Zhiqiang Cui
Trunk
Fix Committed
High
Zhiqiang Cui

Bug Description

1]. Configured VN with user-defined RT:

{
virtual-network: {
virtual_network_network_id: 4,
virtual_machine_interface_back_refs: [
{
to: [
"default-domain",
"ctest-TestRouterSNAT-33756923",
"default-domain__ctest-TestRouterSNAT-33756923__snat_ac0a8a24-9662-4191-906b-07e5faf6e714_e0cb949b-d7cc-4cbd-be61-22ae15e4569a__1__right__1"
],
href: "http://nodem14:8080/proxy?proxyURL=http://10.204.216.103:8082/virtual-machine-interface/ca439491-1972-4c44-bb45-ae928c812e6f",
attr: null,
uuid: "ca439491-1972-4c44-bb45-ae928c812e6f"
},
{
to: [
"default-domain",
"ctest-TestRouterSNAT-33756923",
"default-domain__ctest-TestRouterSNAT-33756923__snat_ac0a8a24-9662-4191-906b-07e5faf6e714_e0cb949b-d7cc-4cbd-be61-22ae15e4569a__2__right__1"
],
href: "http://nodem14:8080/proxy?proxyURL=http://10.204.216.103:8082/virtual-machine-interface/c190ecad-c8e6-4fe8-8a98-8704bb9b9df2",
attr: null,
uuid: "c190ecad-c8e6-4fe8-8a98-8704bb9b9df2"
}
],
parent_uuid: "941965dc-b88a-4de2-b8e6-2c412c05cdf0",
display_name: "public-network",
parent_href: "http://nodem14:8080/proxy?proxyURL=http://10.204.216.103:8082/project/941965dc-b88a-4de2-b8e6-2c412c05cdf0",
parent_type: "project",
route_target_list: {
route_target: [
"target:64510:11111"
]
},

2]. The same is not seen in the control-node introspect. It displays only the system-configured RTs.

import_target
target:64510:8000002
target:10.10.10.14:2
export_target
target:64510:8000002

information type: Proprietary → Public
tags: added: sanity
tags: added: sanityblocker
removed: sanity
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Reviewed: https://review.opencontrail.org/37374
Committed: http://github.com/Juniper/contrail-controller/commit/7d2d7cd2b038c6ffa8380df5538b2ea14214f502
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 7d2d7cd2b038c6ffa8380df5538b2ea14214f502
Author: zcui <email address hidden>
Date: Thu Nov 9 15:59:51 2017 -0800

User configured Route target not seen in control-node

Root cause:
When we add a reference(uuid1), delete it and add same FQ name reference(uuid2) again.
We do not remove first reference from cache. In cache, the key is related to UUID. So
the above operation result is two items which has same FQ name exist in cache, because
the first one refreshed is false, in fact, we will send two message to ifmap:
Add “to FQ name, uuid uuid1” reference
Deleted “to FQ name, uuid uuid2” reference
From configure management client to ifmap we only use “to FQ name”, Add/Delete pair
is considered as same one.

Change-Id: I796499ad92b9748d40003a107da078c1aea794f0
Closes-bug: 1730363

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

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

commit d85db5c2ccb6dd5d83a5fd8ad638659e5dc50a8a
Author: zcui <email address hidden>
Date: Thu Nov 9 15:59:51 2017 -0800

User configured Route target not seen in control-node

Root cause:
When we add a reference(uuid1), delete it and add same FQ name reference(uuid2) again.
We do not remove first reference from cache. In cache, the key is related to UUID. So
the above operation result is two items which has same FQ name exist in cache, because
the first one refreshed is false, in fact, we will send two message to ifmap:
Add “to FQ name, uuid uuid1” reference
Deleted “to FQ name, uuid uuid2” reference
From configure management client to ifmap we only use “to FQ name”, Add/Delete pair
is considered as same one.

Change-Id: I796499ad92b9748d40003a107da078c1aea794f0
Closes-bug: 1730363

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.