[NETVIRT-447] Update of dhcp flag option does not work using the neutron subnet-update onfiguration Created: 25/Jan/17  Updated: 20/Feb/17  Resolved: 20/Feb/17

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

Type: Bug
Reporter: Vijayalakshmi C N Assignee: Vijayalakshmi C N
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: Macintosh


External issue ID: 7674

 Description   

EFFECT:

After changing the flag in the neutron subnet-update configuration . Reprogramming of flows are not happing properly for existing flows.

DESCRIPTION:

SG state is in transparent mode

steps :
1. First Dhcp flag set as false
2. All VMs are getting the ip address from external dhcp server and its working fine .
3. After changing the dhcp flag from false to true and for existing VMs ip address are not getting from ODL
Packets from the table=0 is not forwarding to table=60 and this is reason why it's not getting the ip from ODL

stack@css1-osc:/opt/stack/devstack$ ./flows
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x8000000, duration=3583.622s, table=0, n_packets=144, n_bytes=25207, priority=4,in_port=1 actions=write_metadata:0x199a0000000000/0xffffff0000000001,goto_table:17
cookie=0x8000000, duration=2974.121s, table=0, n_packets=166, n_bytes=38444, priority=4,in_port=2 actions=write_metadata:0x199b0000000000/0xffffff0000000001,goto_table:17
cookie=0x8000001, duration=2907.129s, table=0, n_packets=3492, n_bytes=259660, priority=5,in_port=3 actions=write_metadata:0x199c0000000001/0x1fffff0000000001,goto_table:36
cookie=0x8000000, duration=2873.919s, table=0, n_packets=35, n_bytes=5985, priority=4,in_port=4 actions=write_metadata:0x19a00000000000/0xffffff0000000001,goto_table:17
cookie=0x8040000, duration=3453.054s, table=17, n_packets=136, n_bytes=24559, priority=6,metadata=0xc0199a0000000000/0xffffff0000000000 actions=write_metadata:0xe0199a1772000000/0xfffffffffffffffe,goto_table:48
cookie=0x8000001, duration=3453.039s, table=17, n_packets=136, n_bytes=24559, priority=5,metadata=0x199a0000000000/0xffffff0000000000 actions=write_metadata:0xc0199a0000023a50/0xfffffffffffffffe,goto_table:19
cookie=0x8000001, duration=2968.144s, table=17, n_packets=166, n_bytes=38444, priority=5,metadata=0x199b0000000000/0xffffff0000000000 actions=write_metadata:0xc0199b0000023a50/0xfffffffffffffffe,goto_table:19
cookie=0x8040000, duration=2968.144s, table=17, n_packets=166, n_bytes=38444, priority=6,metadata=0xc0199b0000000000/0xffffff0000000000 actions=write_metadata:0xe0199b1772000000/0xfffffffffffffffe,goto_table:48
cookie=0x8000001, duration=2864.909s, table=17, n_packets=30, n_bytes=5343, priority=5,metadata=0x19a00000000000/0xffffff0000000000 actions=write_metadata:0xc019a00000023a50/0xfffffffffffffffe,goto_table:19
cookie=0x8040000, duration=2864.909s, table=17, n_packets=30, n_bytes=5343, priority=6,metadata=0xc019a00000000000/0xffffff0000000000 actions=write_metadata:0xe019a01772000000/0xfffffffffffffffe,goto_table:48
cookie=0x8000000, duration=3954.201s, table=17, n_packets=0, n_bytes=0, priority=0,metadata=0xa000000000000000/0xe000000000000000 actions=write_metadata:0xc000000000000000/0xe000000000000000,goto_table:80
cookie=0x6800000, duration=3954.195s, table=18, n_packets=0, n_bytes=0, priority=0 actions=goto_table:38
cookie=0x1080000, duration=3954.191s, table=19, n_packets=40, n_bytes=1680, priority=100,arp,arp_op=2 actions=CONTROLLER:65535,resubmit(,17)
cookie=0x1080000, duration=3954.190s, table=19, n_packets=52, n_bytes=2184, priority=100,arp,arp_op=1 actions=group:6000
cookie=0x8000009, duration=3457.038s, table=19, n_packets=0, n_bytes=0, priority=20,metadata=0x23a50/0xfffffffe,dl_dst=fa:16:3e:41:8d:80 actions=goto_table:21
cookie=0x1080000, duration=3954.191s, table=19, n_packets=240, n_bytes=64482, priority=0 actions=resubmit(,17)
cookie=0x8000002, duration=2904.788s, table=20, n_packets=0, n_bytes=0, priority=10,mpls,mpls_label=73003 actions=pop_mpls:0x0800,group:152501
cookie=0x8000002, duration=2904.598s, table=20, n_packets=0, n_bytes=0, priority=10,mpls,mpls_label=73002 actions=pop_mpls:0x0800,group:152500
cookie=0x1030000, duration=3954.189s, table=20, n_packets=0, n_bytes=0, priority=0 actions=resubmit(,19)
cookie=0x8000003, duration=3452.346s, table=21, n_packets=0, n_bytes=0, priority=42,icmp,metadata=0x23a50/0xfffffffe,nw_dst=13.0.0.1,icmp_type=8,icmp_code=0 actions=move:NXM_OF_ETH_SRC[]>NXM_OF_ETH_DST[],set_field:fa:16:3e:41:8d:80>eth_src,move:NXM_OF_IP_SRC[]>NXM_OF_IP_DST[],set_field:13.0.0.1>ip_src,set_field:0->icmp_type,load:0->NXM_OF_IN_PORT[],resubmit(,21)
cookie=0x8000003, duration=2904.786s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x23a50/0xfffffffe,nw_dst=13.0.0.3 actions=group:152501
cookie=0x8000003, duration=2904.598s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x23a50/0xfffffffe,nw_dst=13.0.0.2 actions=group:152500
cookie=0x8000003, duration=2865.177s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x23a50/0xfffffffe,nw_dst=13.0.0.5 actions=group:152503
cookie=0x8000003, duration=2853.588s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x23a50/0xfffffffe,nw_dst=13.0.0.6 actions=set_field:0x11d2d->tun_id,set_field:fa:16:3e:ad:b4:21->eth_dst,output:3
cookie=0x8000003, duration=2818.078s, table=21, n_packets=0, n_bytes=0, priority=42,ip,metadata=0x23a50/0xfffffffe,nw_dst=13.0.0.4 actions=set_field:0x11d30->tun_id,set_field:fa:16:3e:4b:9e:29->eth_dst,output:3
cookie=0x8000004, duration=3954.200s, table=22, n_packets=0, n_bytes=0, priority=0 actions=CONTROLLER:65535
cookie=0x9001772, duration=3581.099s, table=36, n_packets=96, n_bytes=26444, priority=5,tun_id=0x1772 actions=write_actions(group:212003)
cookie=0x900199a, duration=3581.085s, table=36, n_packets=71, n_bytes=13766, priority=5,tun_id=0x199a actions=load:0x199a00->NXM_NX_REG6[],resubmit(,220)
cookie=0x900199b, duration=2969.097s, table=36, n_packets=0, n_bytes=0, priority=5,tun_id=0x199b actions=load:0x199b00->NXM_NX_REG6[],resubmit(,220)
cookie=0x9011d2b, duration=2904.787s, table=36, n_packets=0, n_bytes=0, priority=5,tun_id=0x11d2b actions=group:152501
cookie=0x9011d2a, duration=2904.598s, table=36, n_packets=0, n_bytes=0, priority=5,tun_id=0x11d2a actions=group:152500
cookie=0x90019a0, duration=2866.343s, table=36, n_packets=0, n_bytes=0, priority=5,tun_id=0x19a0 actions=load:0x19a000->NXM_NX_REG6[],resubmit(,220)
cookie=0x9051772, duration=3583.236s, table=38, n_packets=0, n_bytes=0, priority=5,tun_id=0x3f8 actions=write_metadata:0x1772000000/0x1fffffffff000000,goto_table:51
cookie=0x6900000, duration=3954.200s, table=40, n_packets=0, n_bytes=0, priority=0 actions=goto_table:41
cookie=0x6900000, duration=3954.200s, table=41, n_packets=0, n_bytes=0, priority=0 actions=resubmit(,17)
cookie=0x4000000, duration=3954.200s, table=45, n_packets=0, n_bytes=0, priority=0 actions=resubmit(,17)
cookie=0x8500000, duration=3954.201s, table=48, n_packets=339, n_bytes=68904, priority=0 actions=resubmit(,49),resubmit(,50)
cookie=0x8051772, duration=3581.114s, table=50, n_packets=143, n_bytes=25117, priority=20,metadata=0x199a1772000000/0x1fffffffff000000,dl_src=fa:16:3e:d3:01:e9 actions=goto_table:51
cookie=0x8051772, duration=640.330s, table=50, n_packets=55, n_bytes=18810, idle_timeout=300, send_flow_rem priority=20,metadata=0x199b1772000000/0x1fffffffff000000,dl_src=fa:16:3e:6b:94:2c actions=goto_table:51
cookie=0x8050001, duration=3954.195s, table=50, n_packets=10, n_bytes=2616, priority=10,reg4=0x1 actions=goto_table:51
cookie=0x8050000, duration=3954.195s, table=50, n_packets=11, n_bytes=3194, priority=0 actions=CONTROLLER:65535,learn(table=49,hard_timeout=10,priority=0,cookie=0x8600000,NXM_OF_ETH_SRC[],load:0x1->NXM_NX_REG4[0..7]),goto_table:51
cookie=0x8031772, duration=3581.085s, table=51, n_packets=36, n_bytes=5399, priority=20,metadata=0x1772000000/0xffff000000,dl_dst=fa:16:3e:d3:01:e9 actions=load:0x199a00->NXM_NX_REG6[],resubmit(,220)
cookie=0x8031772, duration=1315.155s, table=51, n_packets=0, n_bytes=0, priority=20,metadata=0x1772000000/0xffff000000,dl_dst=fa:16:3e:9d:d9:6f actions=load:0x19a000->NXM_NX_REG6[],resubmit(,220)
cookie=0x8031772, duration=1068.018s, table=51, n_packets=0, n_bytes=0, priority=20,metadata=0x1772000000/0xffff000000,dl_dst=fa:16:3e:ad:b4:21 actions=set_field:0x19a1->tun_id,output:3
cookie=0x8031772, duration=640.329s, table=51, n_packets=0, n_bytes=0, priority=20,metadata=0x1772000000/0xffff000000,dl_dst=fa:16:3e:6b:94:2c actions=load:0x199b00->NXM_NX_REG6[],resubmit(,220)
cookie=0x8031772, duration=133.488s, table=51, n_packets=0, n_bytes=0, priority=20,metadata=0x1772000000/0xffff000000,dl_dst=fa:16:3e:4b:9e:29 actions=set_field:0x199e->tun_id,output:3
cookie=0x8030000, duration=3954.193s, table=51, n_packets=199, n_bytes=44846, priority=0 actions=goto_table:52
cookie=0x8701772, duration=3581.099s, table=52, n_packets=199, n_bytes=44846, priority=5,metadata=0x1772000000/0xffff000001 actions=write_actions(group:212004)
cookie=0x8701772, duration=3581.099s, table=52, n_packets=0, n_bytes=0, priority=5,metadata=0x1772000001/0xffff000001 actions=write_actions(group:212003)
cookie=0x880199a, duration=3581.099s, table=55, n_packets=39, n_bytes=6458, priority=10,tun_id=0x199a,metadata=0x199a0000000000/0x1fffff0000000000 actions=drop
cookie=0x880199b, duration=2969.097s, table=55, n_packets=144, n_bytes=35100, priority=10,tun_id=0x199b,metadata=0x199b0000000000/0x1fffff0000000000 actions=drop
cookie=0x88019a0, duration=2866.344s, table=55, n_packets=16, n_bytes=3288, priority=10,tun_id=0x19a0,metadata=0x19a00000000000/0x1fffff0000000000 actions=drop
cookie=0x880199a, duration=3581.085s, table=55, n_packets=256, n_bytes=64832, priority=9,tun_id=0x199a actions=load:0x199a00->NXM_NX_REG6[],resubmit(,220)
cookie=0x880199b, duration=2969.097s, table=55, n_packets=144, n_bytes=35632, priority=9,tun_id=0x199b actions=load:0x199b00->NXM_NX_REG6[],resubmit(,220)
cookie=0x88019a0, duration=2866.343s, table=55, n_packets=249, n_bytes=65198, priority=9,tun_id=0x19a0 actions=load:0x19a000->NXM_NX_REG6[],resubmit(,220)
cookie=0x6800000, duration=2040.050s, table=60, n_packets=0, n_bytes=0, priority=50,udp,dl_src=fa:16:3e:d3:01:e9,tp_src=68,tp_dst=67 actions=CONTROLLER:65535
cookie=0x6800000, duration=2036.824s, table=60, n_packets=0, n_bytes=0, priority=50,udp,dl_src=fa:16:3e:6b:94:2c,tp_src=68,tp_dst=67 actions=CONTROLLER:65535
cookie=0x6800000, duration=2036.302s, table=60, n_packets=0, n_bytes=0, priority=50,udp,dl_src=fa:16:3e:9d:d9:6f,tp_src=68,tp_dst=67 actions=CONTROLLER:65535
cookie=0x6800000, duration=3954.187s, table=60, n_packets=0, n_bytes=0, priority=0 actions=resubmit(,17)
cookie=0x1030000, duration=3957.241s, table=70, n_packets=0, n_bytes=0, priority=0 actions=write_metadata:0xa000000000000000/0xe000000000000000,goto_table:80
cookie=0x1030000, duration=3957.241s, table=71, n_packets=0, n_bytes=0, priority=0 actions=write_metadata:0xa000000000000000/0xe00000ffffffffff,goto_table:80
cookie=0x1030000, duration=3957.242s, table=72, n_packets=0, n_bytes=0, priority=0 actions=write_metadata:0xa000000000000000/0xe000000000000000,goto_table:80
cookie=0x1030000, duration=3957.242s, table=73, n_packets=0, n_bytes=0, priority=0 actions=write_metadata:0xa000000000000000/0xe00000ffffffffff,goto_table:80
cookie=0x1030000, duration=3957.242s, table=74, n_packets=0, n_bytes=0, priority=0 actions=write_metadata:0xa000000000000000/0xe00000ffffffffff,goto_table:80
cookie=0x1030000, duration=3957.242s, table=75, n_packets=0, n_bytes=0, priority=0 actions=write_metadata:0xa000000000000000/0xe00000ffffffffff,goto_table:80
cookie=0x1030000, duration=3954.202s, table=80, n_packets=0, n_bytes=0, priority=0 actions=resubmit(,17)
cookie=0x1522199d, duration=2912.707s, table=81, n_packets=0, n_bytes=0, priority=100,arp,metadata=0xc0199b0000023a50/0xffffff00fffffffe,arp_tpa=13.0.0.1,arp_op=1 actions=move:NXM_OF_ETH_SRC[]>NXM_OF_ETH_DST[],set_field:fa:16:3e:41:8d:80>eth_src,load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]>NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]>NXM_OF_ARP_TPA[],load:0xfa163e418d80->NXM_NX_ARP_SHA[],load:0xd000001->NXM_OF_ARP_SPA[],load:0->NXM_OF_IN_PORT[],load:0x199b00->NXM_NX_REG6[],resubmit(,220)
cookie=0x1522199c, duration=2910.996s, table=81, n_packets=0, n_bytes=0, priority=100,arp,metadata=0xc0199a0000023a50/0xffffff00fffffffe,arp_tpa=13.0.0.1,arp_op=1 actions=move:NXM_OF_ETH_SRC[]>NXM_OF_ETH_DST[],set_field:fa:16:3e:41:8d:80>eth_src,load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]>NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]>NXM_OF_ARP_TPA[],load:0xfa163e418d80->NXM_NX_ARP_SHA[],load:0xd000001->NXM_OF_ARP_SPA[],load:0->NXM_OF_IN_PORT[],load:0x199a00->NXM_NX_REG6[],resubmit(,220)
cookie=0x152219a2, duration=2869.008s, table=81, n_packets=0, n_bytes=0, priority=100,arp,metadata=0xc019a00000023a50/0xffffff00fffffffe,arp_tpa=13.0.0.1,arp_op=1 actions=move:NXM_OF_ETH_SRC[]>NXM_OF_ETH_DST[],set_field:fa:16:3e:41:8d:80>eth_src,load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]>NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]>NXM_OF_ARP_TPA[],load:0xfa163e418d80->NXM_NX_ARP_SHA[],load:0xd000001->NXM_OF_ARP_SPA[],load:0->NXM_OF_IN_PORT[],load:0x19a000->NXM_NX_REG6[],resubmit(,220)
cookie=0x8220000, duration=3954.201s, table=81, n_packets=52, n_bytes=2184, priority=0 actions=drop
cookie=0x8000007, duration=3582.638s, table=220, n_packets=363, n_bytes=83997, priority=7,reg6=0x199a00 actions=output:1
cookie=0x8000007, duration=2972.288s, table=220, n_packets=164, n_bytes=38020, priority=7,reg6=0x199b00 actions=output:2
cookie=0x8000007, duration=2869.436s, table=220, n_packets=268, n_bytes=68423, priority=7,reg6=0x19a000 actions=output:4
cookie=0x6900000, duration=3954.189s, table=251, n_packets=0, n_bytes=0, priority=0 actions=goto_table:252
cookie=0x6900000, duration=3954.187s, table=252, n_packets=0, n_bytes=0, priority=0 actions=resubmit(,220)

After launching the new VM and its getting the IP from ODL :

stack@css1-osc:/opt/stack/devstack$ ./flows | grep table=0
cookie=0x8000000, duration=4638.119s, table=0, n_packets=144, n_bytes=25207, priority=4,in_port=1 actions=write_metadata:0x199a0000000000/0xffffff0000000001,goto_table:17
cookie=0x8000000, duration=4028.618s, table=0, n_packets=253, n_bytes=68198, priority=4,in_port=2 actions=write_metadata:0x199b0000000000/0xffffff0000000001,goto_table:17
cookie=0x8000001, duration=3961.626s, table=0, n_packets=4740, n_bytes=354692, priority=5,in_port=3 actions=write_metadata:0x199c0000000001/0x1fffff0000000001,goto_table:36
cookie=0x8000000, duration=3928.416s, table=0, n_packets=35, n_bytes=5985, priority=4,in_port=4 actions=write_metadata:0x19a00000000000/0xffffff0000000001,goto_table:17
cookie=0x8000000, duration=152.197s, table=0, n_packets=11, n_bytes=1622, priority=4,in_port=6 actions=write_metadata:0x19a30000000000/0xffffff0000000001,goto_table:17
stack@css1-osc:/opt/stack/devstack$ ./flows | grep table=60
cookie=0x6800000, duration=3097.277s, table=60, n_packets=0, n_bytes=0, priority=50,udp,dl_src=fa:16:3e:d3:01:e9,tp_src=68,tp_dst=67 actions=CONTROLLER:65535
cookie=0x6800000, duration=3094.051s, table=60, n_packets=0, n_bytes=0, priority=50,udp,dl_src=fa:16:3e:6b:94:2c,tp_src=68,tp_dst=67 actions=CONTROLLER:65535
cookie=0x6800000, duration=3093.529s, table=60, n_packets=0, n_bytes=0, priority=50,udp,dl_src=fa:16:3e:9d:d9:6f,tp_src=68,tp_dst=67 actions=CONTROLLER:65535
cookie=0x6800000, duration=150.550s, table=60, n_packets=2, n_bytes=680, priority=50,udp,dl_src=fa:16:3e:17:b7:41,tp_src=68,tp_dst=67 actions=CONTROLLER:65535
cookie=0x6800000, duration=5011.414s, table=60, n_packets=3, n_bytes=210, priority=0 actions=resubmit(,17)

MEASURES:


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