[NETVIRT-750] [l3vpn_Ecmp]When bgpvpn is updated via rest, karaf doesnt show it as updated however rest response shows it as updated. Created: 27/Jun/17  Updated: 02/Apr/19  Resolved: 23/Jul/17

Status: Resolved
Project: netvirt
Component/s: General
Affects Version/s: Carbon
Fix Version/s: None

Type: Bug
Reporter: Jaya Priyadarshini Assignee: Swati Udhavrao Niture
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: File 8753_fail_logs.rar    
External issue ID: 8753

 Description   

Description
=====================
Flow is not getting installed for second DC-GW, when both the DC-GWs are in same vpn.

Steps to repro
====================
1)Do the basic configuration for all the CSS.
2)Form bgp neighborship between DC-GW1 and CSC.
3)Also form bgp neighborship between DC-GW2 and CSC.
4)Create mpls-over-gre tunnel for both.
5)Check the flows in the CSS, table21 should have an entry for both DC-GW1 and DC-GW2.

Logs attached

Current output
=======================================
20.1.1.0 corresponds to DC-GW1 while 30.1.1.0 corresponds to DC-GW2 and 40.1.1.0 corresponds to outside network.
Flow is not present fot 30.1.1.0
root@Ubuntu-97:~# flows | grep table=21,
cookie=0x8000003, duration=143.511s, table=21, n_packets=0, n_bytes=0, priority=42,icmp,metadata=0x30d56/0xfffffe,nw_dst=10.10.1.1,icmp_type=8,icmp_code=0 actions=move:NXM_OF_ETH_SRC[]>NXM_OF_ETH_DST[],set_field:fa:16:3e:5e:3c:68>eth_src,move:NXM_OF_IP_SRC[]>NXM_OF_IP_DST[],set_field:10.10.1.1>ip_src,set_field:0->icmp_type,load:0->NXM_OF_IN_PORT[],resubmit(,21)
cookie=0x8000003, duration=142.634s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x30d56/0xfffffe,nw_dst=10.10.1.5 actions=set_field:0x186ae->tun_id,set_field:fa:16:3e:6e:73:11->eth_dst,load:0x600->NXM_NX_REG6[],resubmit(,220)
cookie=0x8000003, duration=142.283s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x30d56/0xfffffe,nw_dst=10.10.1.6 actions=set_field:0x186b2->tun_id,set_field:fa:16:3e:de:ec:59->eth_dst,load:0x600->NXM_NX_REG6[],resubmit(,220)
cookie=0x8000003, duration=142.233s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x30d56/0xfffffe,nw_dst=10.10.1.7 actions=set_field:0x186b3->tun_id,set_field:fa:16:3e:6b:1a:d1->eth_dst,load:0x600->NXM_NX_REG6[],resubmit(,220)
cookie=0x8000003, duration=140.654s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x30d56/0xfffffe,nw_dst=10.10.1.3 actions=group:150008
cookie=0x8000003, duration=140.554s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x30d56/0xfffffe,nw_dst=10.10.1.2 actions=group:150009
cookie=0x8000003, duration=140.370s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x30d56/0xfffffe,nw_dst=10.10.1.4 actions=group:150010
cookie=0x8000003, duration=148.267s, table=21, n_packets=0, n_bytes=0, priority=34,ip,metadata=0x30d56/0xfffffe,nw_dst=40.1.1.0/24 actions=push_mpls:0x8847,set_field:786431->mpls_label,load:0->NXM_OF_IN_PORT[],load:0x800->NXM_NX_REG6[],resubmit(,220)
cookie=0x8000003, duration=148.267s, table=21, n_packets=0, n_bytes=0, priority=34,ip,metadata=0x30d56/0xfffffe,nw_dst=10.10.1.0/24 actions=write_metadata:0x1389030d56/0xfffffffffe,goto_table:22
cookie=0x8000003, duration=148.267s, table=21, n_packets=10, n_bytes=980, priority=34,ip,metadata=0x30d56/0xfffffe,nw_dst=20.1.1.0/24 actions=push_mpls:0x8847,set_field:786433->mpls_label,load:0->NXM_OF_IN_PORT[],load:0x800->NXM_NX_REG6[],resubmit(,220)
root@Ubuntu-97:~#



 Comments   
Comment by Jaya Priyadarshini [ 27/Jun/17 ]

Please ignore the previous description

Description
=====================
When bgpvpn is updated via rest, karaf doesnt show it as updated however rest response shows it as updated.

Steps to repro
====================
1)Configure bgpvpn with multiple rds and verify the output in controller using "l3vpn-config-show -vid <vid>"
2)Update the rds and verify in the controller as in step 1.
3)Delete the vpn and reconfigure the same using rest call.
4)Verify the rest response and also in controller, works fine.
5)Now update the same using rest call and verify the rest response, it is properly updated.
6)Verify the same in controller,it throws error.

Logs
=====================
attached

Current output
===========================
Before updation
===============
opendaylight-user@root>l3vpn-config-show -vid 4ae8cd92-48ca-49b5-94e1-b2921a261111

VPN ID Tenant ID RD

Import-RTs

Export-RTs

Subnet IDs

------------------------------------------------------------------------------------

4ae8cd92-48ca-49b5-94e1-b2921a261111 3a1edb44-fa47-4300-b32f-e1b1aabf7e87 [100:14, 100:13, 100:12, 100:11, 100:10]

[210:2]

[210:2]

" "

----------------------------------------

After updation
===================================================================================
opendaylight-user@root>l3vpn-config-show -vid 4ae8cd92-48ca-49b5-94e1-b2921a261111
error getting VPN info : [RpcError [message=GetVPN failed due to null, severity=ERROR, errorType=APPLICATION, tag=operation-failed, applicationTag=null, info=null, cause=null]]
Usage:display vpn-config [-vid/--vpnid <id>]

Comment by Jaya Priyadarshini [ 27/Jun/17 ]

Attachment 8753_fail_logs.rar has been added with description: 8753_fail_log

Comment by Swati Udhavrao Niture [ 20/Jul/17 ]

This issue is not reproducible.

But, an additional check if VPN targets are null:

https://git.opendaylight.org/gerrit/#/c/60611/

Generated at Wed Feb 07 20:22:22 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.