Modified BGP AS number not reflecting in the default-domain:admin:public:service-xxx and default-domain:demo:snat-si-left_snat_xxxx routing instances.

Bug #1603857 reported by sureshkvl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
Medium
Ranjeet R
R3.1
Fix Committed
Medium
Ranjeet R
Trunk
Fix Committed
Medium
Ranjeet R

Bug Description

Routing Instances default-domain:admin:public:service-xxx and default-domain:demo:snat-si-left_snat_xxxx stays with default AS Number (64512) even after modifying the AS Number from global system config.

steps followed:

1. Modified the BGP AS Number via opencontrail UI
    Infra -> Global Config -> Global ASN from default value 64512 to 64510

2. verfied the AS changes from Global system config c API, API output reflects the modified AS number(64510)

    http://192.168.124.174:8082/global-system-config/ab8a3165-30d7-4527-bab4-5739efd5f923

    output file attached : GET_GLOBALCONFIG

3. Routing Instances Introspect of Control node shows, default AS (64512) still exists in the following Routing Instances

default-domain:admin:public:service-50f3fe57-0ed8-43b3-ae8c-5312f5013e6e-default-domain_demo_snat_736a5087-e1fe-43ea-af1b-357f3af5cbb1_e3022da5-9f1b-4f19-9294-f8764aef7b04

default-domain:demo:snat-si-left_snat_736a5087-e1fe-43ea-af1b-357f3af5cbb1_e3022da5-9f1b-4f19-9294-f8764aef7b04:service-50f3fe57-0ed8-43b3-ae8c-5312f5013e6e-default-domain_demo_snat_736a5087-e1fe-43ea-af1b-357f3af5cbb1_e3022da5-9f1b-4f19-9294-f8764aef7b04

http://192.168.124.174:8083/Snh_ShowRoutingInstanceSummaryReq?search_string=

output xml file is attached.

Tags: config
Revision history for this message
sureshkvl (sureshkumar-s) wrote :
Revision history for this message
sureshkvl (sureshkumar-s) wrote :
Nischal Sheth (nsheth)
no longer affects: opencontrail
tags: added: config
Revision history for this message
Ranjeet R (rranjeet-n) wrote :

@sureshkvl
The bug is not repdroducible. After I changed the Global ASN in Global config to a different number other than 64512, the change is reflected in the control node as well.

 <ShowRoutingInstance>
            <name type="string" identifier="1" link="ShowRoutingInstanceReq">default-domain:admin:testvn1:testvn1</name>
            <virtual_network type="string" identifier="3">default-domain:admin:testvn1</virtual_network>
            <vn_index type="i32" identifier="6">4</vn_index>
            <vxlan_id type="i32" identifier="8">0</vxlan_id>
            <import_target type="list" identifier="4">
               <list type="string" size="1">
                  <element>target:64510:8000001</element> >>>>>>>>>>>>>>> Changed value
               </list>
            </import_target>
            <export_target type="list" identifier="5">
               <list type="string" size="1">
                  <element>target:64510:8000001</element>
               </list>
            </export_target>
            <always_subscribe type="bool" identifier="10">false</always_subscribe>
            <deleted type="bool" identifier="7">false</deleted>
            <deleted_at type="string" identifier="9" />
         </ShowRoutingInstance>

Am I missing something?

Revision history for this message
sureshkvl (sureshkumar-s) wrote :

Hi Ranjeet,

Even in my testing, Routing instance of private network is updated with the new ASN Number.
But, default-domain:admin:public:service-xxx and default-domain:demo:snat-si-left_snat_xxxx routing instances are not updated. Could you check those ?

My Test environment: I am using Devstack all in one setup.

Revision history for this message
Ranjeet R (rranjeet-n) wrote :

@sureshkvl

I tried with a public network and it seems working fine. See below.

<ShowRoutingInstance><name type="string" identifier="1" link="ShowRoutingInstanceReq">default-domain:admin:public1:public1</name><virtual_network type="string" identifier="3">default-domain:admin:public1</virtual_network><vn_index type="i32" identifier="6">10</vn_index><vxlan_id type="i32" identifier="8">0</vxlan_id><import_target type="list" identifier="4"><list type="string" size="1"><element>

target:64506:8000007

</element></list></import_target>

Can you please help me with any config that I am missing. If you could give me the config for the network it will be really helpful.

Revision history for this message
sureshkvl (sureshkumar-s) wrote :

Hi Ranjeet,

My environment is Devstack(mitaka) + contrail 2.21.x - All in one setup(installed in a ubuntu 14.04 VM) with default configuration.

After modifying the BGP AS, i have checked the introspect as below,
http://192.168.124.174:8083/Snh_ShowRoutingInstanceSummaryReq?search_string=

I have attached the XML file(ShowRoutingInstanceSummaryResp_ModifiedAS64510_Messup_Introspect.xml). please have a look. Default AS (64512) is showing only in two Routing instances , remaining all other routing instances are changed with modified AS (64510).

Please let me know what config you want from me? Also specify where/how to note that config in my setup.

Thanks
suresh

Revision history for this message
Ranjeet R (rranjeet-n) wrote :

Ok. The bug was filed in Trunk (mainline) and I was trying it out in Contrail 3.1. The bug is not reproducible in the latest branch. I will modify the branch details.

Revision history for this message
Ranjeet R (rranjeet-n) wrote :

Suresh

Can you please help me with the exact contrail-version as I was not able to repro the bug with the following release - 2.21.3-47

I would want to check your version before I could debug this further.

Ranjeet

Revision history for this message
Antoine Eiche (lewo-c) wrote :

Ranjeet,

I don't know if it is related, but Suresh only encountered the bug on VRFs used by service chaining feature. Your introspect output only mention "user" networks. Maybe, you could try to reproduce the bug by adding a service chain in your setup.

Regarding the codebase, we are using Cloudwatt github repos (branch 'R2.21-cloudwatt').

Revision history for this message
sureshkvl (sureshkumar-s) wrote :

Ranjeet,

I am able to reproduce this issue in Devstack(Mitaka) + Contrail 3.1.

My devstack local.conf is below,
[[local|localrc]]
        SERVICE_TOKEN=abcdeftoken
        ADMIN_PASSWORD=contrail123
        MYSQL_PASSWORD=stackdb
        RABBIT_PASSWORD=stackqueue
        SERVICE_PASSWORD=$ADMIN_PASSWORD
        LOGFILE=$DEST/logs/stack.sh.log
        LOGDAYS=2
        enable_plugin contrail https://github.com/zioc/contrail-devstack-plugin.git
        CONTRAIL_REPO=https://github.com/Juniper/contrail-vnc.git
        CONTRAIL_BRANCH=R3.1
        SCONS_JOBS=$(lscpu -p | grep -cve '^#')

I have modified BGP Global ASN to 64513 in UI.
After modifying the BGP , i have checked the introspect as below,
Snh_ShowRtGroupReq?search_string=
Snh_ShowRoutingInstanceSummaryReq?search_string=

Routing instances of public,private networks looks good, have been changed to modified ASN(64513).
But, The "default-domain:demo:snat-si-left_snat_xxx" routing instance still refers the old 64512 ASN. Attached the XML File for reference.

<ShowRtGroupInfo><rtarget type="string" identifier="1" link="ShowRtGroupReq">target:64512:8000002</rtarget><import_members type="list" identifier="2"><list type="struct" size="4"><ShowRtGroupMemberTableList><family type="string" identifier="1">inet-vpn</family><tables type="list" identifier="2"><list type="string" size="2"><element>bgp.l3vpn.0</element><element>default-domain:demo:snat-si-left_snat_d58f9c4f-2214-460c-815f-52ee80d15235_f37decce-12bd-4f8e-af03-80e24c283b7b:snat-si-left_snat_d58f9c4f-2214-460c-815f-52ee80d15235_f37decce-12bd-4f8e-af03-80e24c283b7b.inet.0</element>

Let me know if you need any other details

Revision history for this message
sureshkvl (sureshkumar-s) wrote :
Revision history for this message
Suresh Balineni (sbalineni) wrote :

Sureshkvl,

If you have the setup in problem state, please share.

Thanks,
Suresh

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

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

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

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

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

Reviewed: https://review.opencontrail.org/23698
Committed: http://github.org/Juniper/contrail-controller/commit/45e6d6f1b7ce0edb528cd7b851418f73a15226d1
Submitter: Zuul
Branch: master

commit 45e6d6f1b7ce0edb528cd7b851418f73a15226d1
Author: Ranjeet R <email address hidden>
Date: Mon Aug 29 05:22:08 2016 -0700

Fixes: Modified BGP AS number not reflecting in the default-domain:admin:public:service-xxx
and default-domain:demo:snat-si-left_snat_xxxx routing instances

Updating the ASN from the global route target list instead of updating from the routing
instance. Moved the update function from VirtualNetwork to GlobalSystemConfig, since
the function will be called for every network which is not necessary.

Change-Id: Iabb30a94c8e127d6e59c19c85d2547731f017079
Closes-Bug:1603857

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

Review in progress for https://review.opencontrail.org/24028
Submitter: Ranjeet R (<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/24029
Submitter: Ranjeet R (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/24028
Committed: http://github.org/Juniper/contrail-controller/commit/136ac8cddd022360cf065ccb378f2496752af2bf
Submitter: Zuul
Branch: R3.0

commit 136ac8cddd022360cf065ccb378f2496752af2bf
Author: Ranjeet R <email address hidden>
Date: Thu Sep 8 21:55:03 2016 -0700

Fixes: Modified BGP AS number not reflecting in the default-domain:admin:public:service-xxx
and default-domain:demo:snat-si-left_snat_xxxx routing instances

Updating the ASN from the global route target list instead of updating from the routing
instance. Moved the update function from VirtualNetwork to GlobalSystemConfig, since
the function will be called for every network which is not necessary.

Change-Id: Ic6be9ac7f08da1a68ce0538cbf7ea8aa5dc18e5e
Closes-Bug:1603857

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

Reviewed: https://review.opencontrail.org/24029
Committed: http://github.org/Juniper/contrail-controller/commit/42c4087653ef0b7c255830d51a27650ebbf5207e
Submitter: Zuul
Branch: R3.1

commit 42c4087653ef0b7c255830d51a27650ebbf5207e
Author: Ranjeet R <email address hidden>
Date: Thu Sep 8 21:57:17 2016 -0700

Fixes: Modified BGP AS number not reflecting in the default-domain:admin:public:service-xxx
and default-domain:demo:snat-si-left_snat_xxxx routing instances

Updating the ASN from the global route target list instead of updating from the routing
instance. Moved the update function from VirtualNetwork to GlobalSystemConfig, since
the function will be called for every network which is not necessary.

Change-Id: Ia2d44baacf0e6b475dfadf41d826e9c81be5d8aa
Closes-Bug:1603857

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.