Uploaded image for project: 'netvirt'
  1. netvirt
  2. NETVIRT-724

Flows are not getting updated after neutron router static route got changed

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • Carbon
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 8652

    Description

      Build : distribution-karaf-0.6.1-20170609.063104-235.tar.gz
      first configured a ECMP route on neutron router with 5 next-hop and verified corresponding flows in Switches

      stack@Ubuntu-97:~/devstack$ neutron router-show router1
      ------------------------------------------------------------------------------------+

      Field Value

      ------------------------------------------------------------------------------------+

      admin_state_up True
      description  
      distributed False
      external_gateway_info  
      id e1c6993b-e91f-45f4-8e61-f3da471cf5b4
      name Router1
      routes {"destination": "100.100.100.100/32", "nexthop": "10.10.1.2"}
        {"destination": "100.100.100.100/32", "nexthop": "10.10.1.3"}
        {"destination": "100.100.100.100/32", "nexthop": "10.10.1.4"}
        {"destination": "100.100.100.100/32", "nexthop": "10.10.1.5"}
        {"destination": "100.100.100.100/32", "nexthop": "10.10.2.2"}
      status ACTIVE
      tenant_id 3a1edb44fa474300b32fe1b1aabf7e87

      ------------------------------------------------------------------------------------+

      Switch 1 flow/group :
      ---------------------
      cookie=0x8000003, duration=147.593s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x30d42/0xfffffe,nw_dst=100.100.100.100 actions=group:150014

      group_id=150014,type=select,bucket=actions=group:150008,bucket=actions=group:150012,bucket=actions=group:150013,bucket=actions=resubmit(,220),set_field:fa:16:3e:eb:d2:cb->eth_dst,load:0x300->NXM_NX_REG6[],set_field:0x186a9->tun_id,bucket=actions=resubmit(,220),set_field:fa:16:3e:8a:40:66->eth_dst,load:0x300->NXM_NX_REG6[],set_field:0x186a9->tun_id

      Switch 2 flow/group:
      --------------------
      cookie=0x8000003, duration=305.027s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x30d42/0xfffffe,nw_dst=100.100.100.100 actions=group:150014

      group_id=150014,type=select,bucket=actions=group:150010,bucket=actions=group:150011,bucket=actions=resubmit(,220),set_field:fa:16:3e:52:5d:f8->eth_dst,load:0x600->NXM_NX_REG6[],set_field:0x186a9->tun_id,bucket=actions=resubmit(,220),set_field:fa:16:3e:82:6c:df->eth_dst,load:0x600->NXM_NX_REG6[],set_field:0x186a9->tun_id,bucket=actions=resubmit(,220),set_field:fa:16:3e:d9:a3:21->eth_dst,load:0x600->NXM_NX_REG6[],set_field:0x186a9->tun_id

      =====================================================================
      Update ECMP route in neutron router

      stack@Ubuntu-97:~/devstack$
      stack@Ubuntu-97:~/devstack$ neutron router-update Router1 --routes type=dict list=true destination=100.100.100.100/32,nexthop=10.10.1.2 destination=100.100.100.100/32,nexthop=10.10.1.3 destination=100.100.100.100/32,nexthop=10.10.1.4 destination=100.100.100.100/32,nexthop=10.10.1.5
      Updated router: Router1
      stack@Ubuntu-97:~/devstack$
      stack@Ubuntu-97:~/devstack$ neutron router-show router1
      ------------------------------------------------------------------------------------+

      Field Value

      ------------------------------------------------------------------------------------+

      admin_state_up True
      description  
      distributed False
      external_gateway_info  
      id e1c6993b-e91f-45f4-8e61-f3da471cf5b4
      name Router1
      routes {"destination": "100.100.100.100/32", "nexthop": "10.10.1.2"}
        {"destination": "100.100.100.100/32", "nexthop": "10.10.1.3"}
        {"destination": "100.100.100.100/32", "nexthop": "10.10.1.4"}
        {"destination": "100.100.100.100/32", "nexthop": "10.10.1.5"}
      status ACTIVE
      tenant_id 3a1edb44fa474300b32fe1b1aabf7e87

      ------------------------------------------------------------------------------------+
      stack@Ubuntu-97:~/devstack$

      Switch 1 flow/group after update:
      ---------------------------------
      cookie=0x8000003, duration=622.128s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x30d42/0xfffffe,nw_dst=100.100.100.100 actions=group:150014

      group_id=150014,type=select,bucket=actions=group:150008,bucket=actions=group:150012,bucket=actions=group:150013,bucket=actions=resubmit(,220),set_field:fa:16:3e:eb:d2:cb->eth_dst,load:0x300->NXM_NX_REG6[],set_field:0x186a9->tun_id,bucket=actions=resubmit(,220),set_field:fa:16:3e:8a:40:66->eth_dst,load:0x300->NXM_NX_REG6[],set_field:0x186a9->tun_id

      Switch 2 flow/group after update:
      ---------------------------------
      cookie=0x8000003, duration=643.647s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x30d42/0xfffffe,nw_dst=100.100.100.100 actions=group:150014

      group_id=150014,type=select,bucket=actions=group:150010,bucket=actions=group:150011,bucket=actions=resubmit(,220),set_field:fa:16:3e:52:5d:f8->eth_dst,load:0x600->NXM_NX_REG6[],set_field:0x186a9->tun_id,bucket=actions=resubmit(,220),set_field:fa:16:3e:82:6c:df->eth_dst,load:0x600->NXM_NX_REG6[],set_field:0x186a9->tun_id,bucket=actions=resubmit(,220),set_field:fa:16:3e:d9:a3:21->eth_dst,load:0x600->NXM_NX_REG6[],set_field:0x186a9->tun_id

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kencykurian@gmail.com Kency Kurian
            ravi.ranjan3@tcs.com Ravi Ranjan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: