Tuesday, 2016-04-05

*** zenoway has joined #openstack-dragonflow01:56
openstackgerritfeipeng proposed openstack/dragonflow: Add Redis Devstack  https://review.openstack.org/29791601:57
*** zenoway has quit IRC02:00
openstackgerritFei Rao proposed openstack/dragonflow: The implementation of distributed-DNAT  https://review.openstack.org/28914802:02
*** raofei has joined #openstack-dragonflow02:04
openstackgerritzhuweiqiong proposed openstack/dragonflow: Add Redis Availability spec  https://review.openstack.org/29870102:26
*** yamamoto has quit IRC02:32
openstackgerritheshan proposed openstack/dragonflow: code for local controller reliability  https://review.openstack.org/29206002:38
*** yamamoto has joined #openstack-dragonflow02:40
openstackgerritheshan proposed openstack/dragonflow: code for local controller reliability  https://review.openstack.org/29206002:41
*** zenoway has joined #openstack-dragonflow02:43
*** zenoway has quit IRC02:48
*** yamamoto has quit IRC02:48
*** yamamot__ has joined #openstack-dragonflow02:51
*** yamamot__ has quit IRC03:02
openstackgerrithujie proposed openstack/dragonflow: add data sync mechanism for keep db consistency  https://review.openstack.org/30087703:05
*** zenoway has joined #openstack-dragonflow03:08
*** zenoway has quit IRC03:12
*** gongysh_ has joined #openstack-dragonflow03:14
*** hujie has joined #openstack-dragonflow03:15
openstackgerritheshan proposed openstack/dragonflow: code for local controller reliability  https://review.openstack.org/29206003:27
openstackgerritheshan proposed openstack/dragonflow: code for local controller reliability  https://review.openstack.org/29206003:39
*** irenab has quit IRC03:47
*** yamamot__ has joined #openstack-dragonflow03:48
*** gongysh_ has quit IRC03:51
*** oanson has joined #openstack-dragonflow04:27
*** zenoway has joined #openstack-dragonflow05:41
*** zenoway has quit IRC05:48
*** gampel1 has joined #openstack-dragonflow05:55
openstackgerritMerged openstack/dragonflow: Fix links in the pluggable_pubsub doc  https://review.openstack.org/30122405:55
openstackgerritMerged openstack/dragonflow: Fullstack test cases for topology Fix the problem caused by overlaped ip address Change-Id: Ice5993aa3700df98fbff421d4583a6ed963c9aaf  https://review.openstack.org/29652205:56
openstackgerritMerged openstack/dragonflow: Add RateLimiter object  https://review.openstack.org/29993505:58
*** oanson has quit IRC06:01
*** yuli_s has joined #openstack-dragonflow06:12
yuli_shello all06:12
yuli_sraofei, you arround ?06:12
raofeiHi yuli06:13
yuli_shere are the results from yesterday06:14
yuli_si am able to do ping / ssh from vm1 (with fip1) to vim2 ( with fip2)06:14
raofeiHi everyone, for DNAT feature,  supporting external gw ip update is done06:14
yuli_si am not able to do ping from the host machine06:15
yuli_sand from other server in the external net06:15
yuli_sto the vm06:15
yuli_si can ping servers in outer world from the vm06:16
raofeido you mean this network path is failed? external host --> ovs bridge---->vm ?06:16
yuli_si do not see the SYN/ACK comming back to the external host06:17
yuli_syes,06:17
raofeican you please show me these table, table 0, table 15, table 20, and table 30?06:20
raofeifor the icmp echo reply, it should be forwarded with table 30, which implements the DNAT egress process.06:22
yuli_ssec.06:23
raofeiyuli, it's the  latest DNAT patch set which  you used?06:26
yuli_si used your last patches i think06:30
yuli_sops, it is not the last06:31
yuli_syou updated it few hours ago06:31
yuli_shere are the openflow rules (I am not using your latest patch from today, but an older ones)06:36
yuli_scookie=0x0, duration=148.972s, table=0, n_packets=62, n_bytes=4082, priority=100,in_port=4 actions=set_field:0x6->reg6,set_field:0x1->metadata,goto_table:906:36
yuli_s cookie=0x0, duration=132.612s, table=0, n_packets=50, n_bytes=3442, priority=100,in_port=5 actions=set_field:0x7->reg6,set_field:0x1->metadata,goto_table:906:36
yuli_s cookie=0x0, duration=102.627s, table=0, n_packets=149, n_bytes=26835, priority=1,in_port=1 actions=goto_table:1506:36
yuli_s cookie=0x0, duration=102.277s, table=0, n_packets=13, n_bytes=1470, priority=100,in_port=6 actions=set_field:0x5->reg6,set_field:0x1->metadata,goto_table:906:36
yuli_s cookie=0x0, duration=101.759s, table=0, n_packets=19, n_bytes=1522, priority=100,in_port=7 actions=set_field:0x3->reg6,set_field:0x1->metadata,goto_table:906:36
yuli_s cookie=0x0, duration=148.972s, table=0, n_packets=0, n_bytes=0, priority=100,tun_id=0x6 actions=output:406:36
yuli_s cookie=0x0, duration=132.612s, table=0, n_packets=0, n_bytes=0, priority=100,tun_id=0x7 actions=output:506:36
yuli_s cookie=0x0, duration=102.277s, table=0, n_packets=0, n_bytes=0, priority=100,tun_id=0x5 actions=output:606:36
yuli_s cookie=0x0, duration=101.759s, table=0, n_packets=0, n_bytes=0, priority=100,tun_id=0x3 actions=output:706:36
yuli_s cookie=0x0, duration=102.627s, table=15, n_packets=12, n_bytes=648, send_flow_rem priority=100,arp,arp_tpa=10.100.100.201,arp_op=1 actions=set_field:2->arp_op,move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],set_field:fa:16:3e:41:6e:11->eth_src,set_field:fa:16:3e:41:6e:11->arp_sha,set_field:10.100.100.201->arp_spa,IN_PORT06:37
yuli_s cookie=0x0, duration=86.341s, table=15, n_packets=4, n_bytes=240, send_flow_rem priority=100,arp,arp_tpa=10.100.100.202,arp_op=1 actions=set_field:2->arp_op,move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],set_field:fa:16:3e:3a:be:a9->eth_src,set_field:fa:16:3e:3a:be:a9->arp_sha,set_field:10.100.100.202->arp_spa,IN_PORT06:37
yuli_s cookie=0x0, duration=102.627s, table=15, n_packets=1, n_bytes=60, priority=100,arp,arp_spa=10.100.100.1,arp_tpa=10.100.100.201,arp_op=2 actions=CONTROLLER:6553506:37
yuli_s cookie=0x0, duration=102.627s, table=15, n_packets=0, n_bytes=0, priority=100,arp,arp_spa=10.100.100.1,arp_tpa=10.100.100.1,arp_op=1 actions=CONTROLLER:6553506:37
yuli_s cookie=0x0, duration=86.341s, table=15, n_packets=0, n_bytes=0, priority=100,arp,arp_spa=10.100.100.1,arp_tpa=10.100.100.202,arp_op=2 actions=CONTROLLER:6553506:37
yuli_s cookie=0x0, duration=102.627s, table=15, n_packets=16, n_bytes=1600, priority=100,ip,nw_dst=10.100.100.201 actions=set_field:fa:16:3e:41:6e:11->eth_src,set_field:fa:16:3e:07:d8:97->eth_dst,dec_ttl,set_field:10.0.0.3->ip_dst,output:406:37
yuli_s cookie=0x0, duration=86.341s, table=15, n_packets=4, n_bytes=448, priority=100,ip,nw_dst=10.100.100.202 actions=set_field:fa:16:3e:3a:be:a9->eth_src,set_field:fa:16:3e:32:4c:9a->eth_dst,dec_ttl,set_field:10.0.0.4->ip_dst,output:506:37
yuli_s cookie=0x0, duration=851.252s, table=20, n_packets=0, n_bytes=0, priority=200,ip,metadata=0x1,nw_dst=10.0.0.1 actions=goto_table:6406:37
yuli_s cookie=0x0, duration=845.829s, table=20, n_packets=0, n_bytes=0, priority=200,ipv6,metadata=0x1,ipv6_dst=fddc:4931:abd0::1 actions=goto_table:6406:37
yuli_s cookie=0x3, duration=845.829s, table=20, n_packets=0, n_bytes=0, priority=100,ip,metadata=0x1,nw_dst=10.0.0.0/24 actions=dec_ttl,set_field:0x1->metadata,set_field:fa:16:3e:6e:12:a6->eth_src,goto_table:2506:37
yuli_s cookie=0x5, duration=845.829s, table=20, n_packets=0, n_bytes=0, priority=100,ipv6,metadata=0x1,ipv6_dst=fddc:4931:abd0::/64 actions=dec_ttl,set_field:0x1->metadata,set_field:fa:16:3e:e2:6e:e6->eth_src,goto_table:2506:37
yuli_s cookie=0x0, duration=102.628s, table=20, n_packets=12, n_bytes=1032, priority=100,ip,metadata=0x1,nw_src=10.0.0.3 actions=goto_table:3006:37
yuli_s cookie=0x0, duration=86.342s, table=20, n_packets=2, n_bytes=196, priority=100,ip,metadata=0x1,nw_src=10.0.0.4 actions=goto_table:3006:37
yuli_s cookie=0x0, duration=900.233s, table=20, n_packets=5, n_bytes=490, priority=1 actions=goto_table:6406:37
yuli_s cookie=0x0, duration=102.627s, table=30, n_packets=12, n_bytes=1032, priority=100,ip,metadata=0x1,nw_src=10.0.0.3 actions=set_field:fa:16:3e:41:6e:11->eth_src,set_field:84:c9:b2:62:89:e0->eth_dst,dec_ttl,set_field:10.100.100.201->ip_src,output:106:37
yuli_s cookie=0x0, duration=86.342s, table=30, n_packets=2, n_bytes=196, priority=100,ip,metadata=0x1,nw_src=10.0.0.4 actions=set_field:fa:16:3e:3a:be:a9->eth_src,set_field:84:c9:b2:62:89:e0->eth_dst,dec_ttl,set_field:10.100.100.202->ip_src,output:106:37
yuli_stable 15 is correct, syn packets from external network are send to VM06:41
yuli_sraofei, can you reproduce this problem ?07:01
gampel1  raofei: does yuli problem make sense ? do you understand it07:19
yuli_si am checking this problem, so far07:26
*** irenab has joined #openstack-dragonflow07:27
yuli_sI see that SYN+ACK is send to the mac address of the gateway07:27
openstackgerritheshan proposed openstack/dragonflow: code for local controller reliability  https://review.openstack.org/29206007:29
yuli_sand not to the amc of the original server07:29
*** zenoway has joined #openstack-dragonflow07:37
yuli_si think I know solution,07:39
yuli_si will use host ip address as a gateway and check it07:39
openstackgerritduankebo proposed openstack/dragonflow: Support devstack configuration of selective topology distribution  https://review.openstack.org/30149007:40
yuli_sit is working now,08:09
yuli_sI use VM Ip as a public-subnet gateway ip08:10
yuli_sops, not VM ip08:10
yuli_sI used host IP as a public-subnet gateway ip08:10
raofeiyuli, sorry just seeing the reply.08:11
raofeiis there the problem? I'm update the latest code to verify you found issue.08:12
raofeiis there the problem still?08:13
yuli_snop, I found a reason why I had no connectivity from other servers on the ext network08:13
yuli_sthe gateway update is still not perfect,08:14
yuli_syou do not update the existing open flow rules08:14
yuli_si using the latest version of your patches08:14
yuli_syou do not update the floatingip table external_gateway_ip field08:16
yuli_sfor example I had gateway ip 10.100.100.808:17
yuli_swhen running theis command: neutron subnet-update public-subnet --gateway_ip 10.100.100.9908:17
yuli_stable : lswitch "neutron:network_name": "public" "gateway_ip": "10.100.100.99" - > correct08:18
yuli_sold, assigned floating ips are not updated:08:19
yuli_sTable = floatingip08:19
yuli_s"floating_ip_address": "10.100.100.201", "external_gateway_ip": "10.100.100.8"08:19
raofeibut when i do the test, the gateway is  changed dynamically for DNAT tables. such as table 15,  table=15, n_packets=0, n_bytes=0, priority=100,arp,arp_spa=10.100.100.1,arp_tpa=10.100.100.1,arp_op=1 actions=CONTROLLER:6553508:19
raofeithe arp_tpa will changed if the gw ip changed08:20
raofeican you test it now and show me the result08:20
raofeibefore change the gw ip, send me the table 1508:20
raofeiafter change the gw ip, send me the table 15 again08:20
yuli_s cookie=0x0, table=15, n_packets=4, n_bytes=240, send_flow_rem priority=100,arp,arp_tpa=10.100.100.201,arp_op=1 actions=set_field:2->arp_op,move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],set_field:fa:16:3e:ff:65:ba->eth_src,set_field:fa:16:3e:ff:65:ba->arp_sha,set_field:10.100.100.201->arp_spa,IN_PORT08:21
yuli_s cookie=0x0, table=15, n_packets=4, n_bytes=168, send_flow_rem priority=100,arp,arp_tpa=10.100.100.202,arp_op=1 actions=set_field:2->arp_op,move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],set_field:fa:16:3e:f3:3d:85->eth_src,set_field:fa:16:3e:f3:3d:85->arp_sha,set_field:10.100.100.202->arp_spa,IN_PORT08:21
yuli_s cookie=0x0, table=15, n_packets=1, n_bytes=42, priority=100,arp,arp_spa=10.100.100.8,arp_tpa=10.100.100.201,arp_op=2 actions=CONTROLLER:6553508:21
yuli_s cookie=0x0, table=15, n_packets=0, n_bytes=0, priority=100,arp,arp_spa=10.100.100.8,arp_tpa=10.100.100.8,arp_op=1 actions=CONTROLLER:6553508:21
yuli_s cookie=0x0, table=15, n_packets=0, n_bytes=0, priority=100,arp,arp_spa=10.100.100.8,arp_tpa=10.100.100.202,arp_op=2 actions=CONTROLLER:6553508:21
yuli_s cookie=0x0, table=15, n_packets=141, n_bytes=22183, priority=100,ip,nw_dst=10.100.100.201 actions=set_field:fa:16:3e:ff:65:ba->eth_src,set_field:fa:16:3e:19:11:f9->eth_dst,dec_ttl,set_field:10.0.0.3->ip_dst,output:408:21
yuli_s cookie=0x0, table=15, n_packets=10, n_bytes=1290, priority=100,ip,nw_dst=10.100.100.202 actions=set_field:fa:16:3e:f3:3d:85->eth_src,set_field:fa:16:3e:7d:82:ab->eth_dst,dec_ttl,set_field:10.0.0.4->ip_dst,output:508:21
raofeiok, change the gw ip08:21
yuli_scurrently I have gw_ip set to 10.100.100.9908:21
yuli_si do not see it their08:21
raofeishow me the ext-subnet please08:21
yuli_sneutron subnet-update public-subnet --gateway_ip 10.100.100.11108:22
raofeiwhat dnat need to do is make sure the flow rules'ip is same with subnet gw ip08:22
yuli_sneutron subnet-show public-subnet08:23
yuli_s+-------------------+------------------------------------------------------+08:23
yuli_s| Field             | Value                                                |08:23
yuli_s+-------------------+------------------------------------------------------+08:23
yuli_s| allocation_pools  | {"start": "10.100.100.200", "end": "10.100.100.220"} |08:23
yuli_s| cidr              | 10.100.0.0/16                                        |08:23
yuli_s| created_at        | 2016-04-05T07:54:33                                  |08:23
yuli_s| description       |                                                      |08:23
yuli_s| dns_nameservers   |                                                      |08:23
yuli_s| enable_dhcp       | False                                                |08:23
yuli_s| gateway_ip        | 10.100.100.111                                       |08:23
yuli_s| host_routes       |                                                      |08:23
yuli_s| id                | eff6bcff-e282-4492-86d4-6d256eb9f2ec                 |08:23
yuli_s| ip_version        | 4                                                    |08:23
yuli_s| ipv6_address_mode |                                                      |08:23
yuli_s| ipv6_ra_mode      |                                                      |08:24
yuli_s| name              | public-subnet                                        |08:24
yuli_s| network_id        | f40a4b8a-1206-4c8e-abee-917d12e58114                 |08:24
yuli_s| subnetpool_id     |                                                      |08:24
yuli_s| tenant_id         | 06d3282c8a7a4be1a2d3d017755efc01                     |08:24
yuli_s| updated_at        | 2016-04-05T08:22:24                                  |08:24
yuli_s+-------------------+------------------------------------------------------+08:24
yuli_s cookie=0x0, table=0, n_packets=1364, n_bytes=266669, priority=1,in_port=1 actions=goto_table:1508:24
yuli_sshlomo@ubuntu:~/devstack$08:24
yuli_sshlomo@ubuntu:~/devstack$ sudo ovs-ofctl dump-flows -O Openflow13 br-int | sed 's/duration=[0-9]*\.[0-9]*s, //' | grep "table=15"08:24
yuli_s cookie=0x0, table=15, n_packets=4, n_bytes=240, send_flow_rem priority=100,arp,arp_tpa=10.100.100.201,arp_op=1 actions=set_field:2->arp_op,move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],set_field:fa:16:3e:ff:65:ba->eth_src,set_field:fa:16:3e:ff:65:ba->arp_sha,set_field:10.100.100.201->arp_spa,IN_PORT08:24
yuli_s cookie=0x0, table=15, n_packets=4, n_bytes=168, send_flow_rem priority=100,arp,arp_tpa=10.100.100.202,arp_op=1 actions=set_field:2->arp_op,move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],set_field:fa:16:3e:f3:3d:85->eth_src,set_field:fa:16:3e:f3:3d:85->arp_sha,set_field:10.100.100.202->arp_spa,IN_PORT08:24
yuli_s cookie=0x0, table=15, n_packets=1, n_bytes=42, priority=100,arp,arp_spa=10.100.100.8,arp_tpa=10.100.100.201,arp_op=2 actions=CONTROLLER:6553508:24
yuli_s cookie=0x0, table=15, n_packets=0, n_bytes=0, priority=100,arp,arp_spa=10.100.100.8,arp_tpa=10.100.100.8,arp_op=1 actions=CONTROLLER:6553508:24
yuli_s cookie=0x0, table=15, n_packets=0, n_bytes=0, priority=100,arp,arp_spa=10.100.100.8,arp_tpa=10.100.100.202,arp_op=2 actions=CONTROLLER:6553508:24
yuli_s cookie=0x0, table=15, n_packets=141, n_bytes=22183, priority=100,ip,nw_dst=10.100.100.201 actions=set_field:fa:16:3e:ff:65:ba->eth_src,set_field:fa:16:3e:19:11:f9->eth_dst,dec_ttl,set_field:10.0.0.3->ip_dst,output:408:24
yuli_s cookie=0x0, table=15, n_packets=10, n_bytes=1290, priority=100,ip,nw_dst=10.100.100.202 actions=set_field:fa:16:3e:f3:3d:85->eth_src,set_field:fa:16:3e:7d:82:ab->eth_dst,dec_ttl,set_field:10.0.0.4->ip_dst,output:508:24
raofeican you show me df db. df-db ls floatingips08:25
yuli_ssure08:26
yuli_sKey = 2b7a3178-2908-495c-bc86-a8ba48d86800 , Value = {"router_id": "83d760ec-1929-40da-be51-9e4574a830a1", "status": "ACTIVE", "name": "2b7a3178-2908-495c-bc86-a8ba48d86800", "floating_port_id": "9a3836ae-181c-402f-a6da-87868c641ae0", "floating_mac_address": "fa:16:3e:ff:65:ba", "floating_network_id": "f40a4b8a-1206-4c8e-abee-917d12e58114", "topic": "19cbf2a3a64a4b9fb0d999029e9dc314", "fixed_ip_address": "10.0.0.3", "float08:26
yuli_sing_ip_address": "10.100.100.201", "external_cidr": "10.100.0.0/16", "port_id": "ac915ce0-40ec-47fc-bc51-01cce70794b7", "external_gateway_ip": "10.100.100.8"}08:26
yuli_sKey = 4ab129b3-cdbd-4070-af28-f4837d59e2dc , Value = {"router_id": "83d760ec-1929-40da-be51-9e4574a830a1", "status": "ACTIVE", "name": "4ab129b3-cdbd-4070-af28-f4837d59e2dc", "floating_port_id": "79d80386-0daf-447c-9e2e-74de1a6503e8", "floating_mac_address": "fa:16:3e:f3:3d:85", "floating_network_id": "f40a4b8a-1206-4c8e-abee-917d12e58114", "topic": "19cbf2a3a64a4b9fb0d999029e9dc314", "fixed_ip_address": "10.0.0.4", "float08:26
yuli_sing_ip_address": "10.100.100.202", "external_cidr": "10.100.0.0/16", "port_id": "fbc9b7bd-5dab-46df-88c7-a8f1647be200", "external_gateway_ip": "10.100.100.8"}08:26
yuli_sssb going to meeting08:27
openstackgerritheshan proposed openstack/dragonflow: code for local controller reliability  https://review.openstack.org/29206008:27
raofeiexternal_gateway_ip is not updated08:28
raofeiyuli, just now i check it again. it's ok.08:35
raofeiplease show me the create_network_nb_api on your setup08:36
*** hshan has joined #openstack-dragonflow08:39
raofeiand show me the update_logical_switch in dnatp_app.py08:41
raofeihttps://www.irccloud.com/pastebin/kbnFL2Qn/09:03
raofeihttps://www.irccloud.com/pastebin/Vyb7Jane/09:04
raofeiyuli, please see the link. it's similar configuration with your setup.  the test result is different.09:05
todinI am trying this right now git clone https://git.openstack.org/openstack/dragonflow, is there distributed DNAT active?09:14
yuli_stodin, still no09:14
yuli_su need to do chery pick09:15
todinyuli_s: could I easily do that?09:15
yuli_syes09:15
yuli_sgit clone url09:15
yuli_scd dragownflow09:15
yuli_sgit fetch ssh://yuli@review.openstack.org:29418/openstack/dragonflow refs/changes/48/289148/26 && git cherry-pick FETCH_HEAD09:15
yuli_sgit fetch ssh://yuli@review.openstack.org:29418/openstack/dragonflow refs/changes/74/294374/12 && git cherry-pick FETCH_HEAD09:16
yuli_sgit fetch ssh://yuli@review.openstack.org:29418/openstack/dragonflow refs/changes/03/301003/1 && git cherry-pick FETCH_HEAD09:16
yuli_sthen u need to run stack09:16
todinyuli_s: thanks, I will try.09:17
yuli_sraofei, i can confirm this works for me too: https://www.irccloud.com/pastebin/kbnFL2Qn/09:17
yuli_sthis is not happening here: https://www.irccloud.com/pastebin/Vyb7Jane/09:19
yuli_s    def create_network_nb_api(self, context, network):09:20
yuli_s        external_ids = {df_const.DF_NETWORK_NAME_EXT_ID_KEY: network['name']}09:20
yuli_s        self.nb_api.create_lswitch(name=network['id'],09:20
yuli_s                                   topic=network['tenant_id'],09:20
yuli_s                                   external_ids=external_ids,09:20
yuli_s                                   router_external=network['router:external'],09:20
yuli_s                                   subnets=[])09:20
yuli_s        return network09:20
gampel1 todin: DNAT will be merged today6 or tomorrow09:21
gampel1https://review.openstack.org/#/c/289148/09:21
gampel1https://review.openstack.org/#/c/294374/09:21
gampel1yuli raofei whats the status of the problem with it09:22
raofeiyuli find the dnat rules will not update following the gw ip update .09:23
raofeibut I test it and it works fine.09:23
raofeiso we are discussing what's the different for our test setup or test method.09:23
yuli_si will check the code09:29
raofeican you do the debug for the update_logical_switch in dnat_app.py?09:30
raofeidnat will process lswitch update event when gw ip changed09:30
raofeiwe need to make sure dnat received this event firstly.09:31
yuli_sok, i found the problem09:37
yuli_sby default router1 is in admin tenant09:37
yuli_swhile floatingips that I have are in demo network09:40
yuli_sso, no floating ips are returned, so, none are updated09:41
yuli_sdef check_and_update_floatingip(self, lswitch, topic=None):09:44
yuli_sfor fip in self.get_floatingips(topic):09:44
yuli_scan you please filter here based on "floating_network_id"09:49
yuli_s-        for fip in self.get_floatingips(topic):09:59
yuli_s+        for fip in self.get_floatingips():09:59
yuli_sin dragonflow/db/db_store.py09:59
yuli_sin check_and_update_floatingip(self, lswitch, topic=None):10:00
yuli_sraofei, ?10:07
gampel1yuli: ping10:28
openstackgerritMerged openstack/dragonflow: Allow port update and reduce double port set  https://review.openstack.org/29986610:32
gampel1feipeng: ping10:32
*** yamamot__ has quit IRC10:34
yuli_si am here10:53
*** gampel2 has joined #openstack-dragonflow11:00
raofeihi yuli, if the network/router is not shared, i don't  a floating ip create based on other tenant.11:00
raofeii don't think11:00
*** gampel1 has quit IRC11:02
yuli_sneutron router-show router111:02
yuli_s+-----------------------+-----------------------------------------------------------------------------------------------------------------------------------------+11:02
yuli_s| Field                 | Value                                                                                                                                   |11:02
yuli_s+-----------------------+-----------------------------------------------------------------------------------------------------------------------------------------+11:02
yuli_s| admin_state_up        | True                                                                                                                                    |11:02
yuli_s| description           |                                                                                                                                         |11:02
yuli_s| distributed           | True                                                                                                                                    |11:02
yuli_s| external_gateway_info | {"network_id": "f40a4b8a-1206-4c8e-abee-917d12e58114", "enable_snat": true, "external_fixed_ips": [{"subnet_id":                        |11:02
yuli_s|                       | "eff6bcff-e282-4492-86d4-6d256eb9f2ec", "ip_address": "10.100.100.200"}, {"subnet_id": "671800c6-be42-40f6-ac2c-71886d91f127",          |11:02
yuli_s|                       | "ip_address": "2001:db8::1"}]}                                                                                                          |11:02
yuli_s| id                    | 83d760ec-1929-40da-be51-9e4574a830a1                                                                                                    |11:03
yuli_s| name                  | router1                                                                                                                                 |11:03
yuli_s| status                | ACTIVE                                                                                                                                  |11:03
yuli_s| tenant_id             | 19cbf2a3a64a4b9fb0d999029e11:03
yuli_sneutron subnet-show public-subnet11:03
yuli_s+-------------------+------------------------------------------------------+11:03
yuli_s| Field             | Value                                                |11:03
yuli_s+-------------------+------------------------------------------------------+11:03
yuli_s| allocation_pools  | {"start": "10.100.100.200", "end": "10.100.100.220"} |11:03
yuli_s| cidr              | 10.100.0.0/16                                        |11:03
yuli_s| created_at        | 2016-04-05T07:54:33                                  |11:03
yuli_s| description       |                                                      |11:03
yuli_s| dns_nameservers   |                                                      |11:03
yuli_s| enable_dhcp       | False                                                |11:03
yuli_s| gateway_ip        | 10.100.100.99                                        |11:03
yuli_s| host_routes       |                                                      |11:03
yuli_s| id                | eff6bcff-e282-4492-86d4-6d256eb9f2ec                 |11:03
yuli_s| ip_version        | 4                                                    |11:03
yuli_s| ipv6_address_mode |                                                      |11:03
yuli_s| ipv6_ra_mode      |                                                      |11:03
yuli_s| name              | public-subnet                                        |11:03
yuli_s| network_id        | f40a4b8a-1206-4c8e-abee-917d12e58114                 |11:03
yuli_s| subnetpool_id     |                                                      |11:03
yuli_s| tenant_id         | 06d3282c8a7a4be1a2d3d017755efc01                     |11:04
yuli_s| updated_at        | 2016-04-05T10:58:51                                  |11:04
yuli_s+-------------------+------------------------------------------------------+11:04
yuli_sbtw, I have this patch: https://review.openstack.org/#/c/301003/11:04
raofeican you show me the floating ip and ext-network?11:04
yuli_sneutron net-show public11:05
yuli_s+-----------------+--------------------------------------+11:05
yuli_s| Field           | Value                                |11:05
yuli_s+-----------------+--------------------------------------+11:05
yuli_s| admin_state_up  | True                                 |11:05
yuli_s| created_at      | 2016-04-05T07:54:29                  |11:05
yuli_s| description     |                                      |11:05
yuli_s| id              | f40a4b8a-1206-4c8e-abee-917d12e58114 |11:05
yuli_s| is_default      | True                                 |11:05
yuli_s| name            | public                               |11:05
yuli_s| router:external | True                                 |11:05
yuli_s| shared          | False                                |11:05
yuli_s| status          | ACTIVE                               |11:05
yuli_s| subnets         | eff6bcff-e282-4492-86d4-6d256eb9f2ec |11:05
yuli_s|                 | 671800c6-be42-40f6-ac2c-71886d91f127 |11:05
yuli_s| tags            |                                      |11:05
yuli_s| tenant_id       | 06d3282c8a7a4be1a2d3d017755efc01     |11:06
yuli_s| updated_at      | 2016-04-05T07:54:29                  |11:06
yuli_s+-----------------+--------------------------------------+11:06
yuli_sneutron floatingip-show 2b7a3178-2908-495c-bc86-a8ba48d8680011:06
yuli_s+---------------------+--------------------------------------+11:06
yuli_s| Field               | Value                                |11:06
yuli_s+---------------------+--------------------------------------+11:06
yuli_s| description         |                                      |11:06
yuli_s| fixed_ip_address    | 10.0.0.3                             |11:06
yuli_s| floating_ip_address | 10.100.100.201                       |11:06
yuli_s| floating_network_id | f40a4b8a-1206-4c8e-abee-917d12e58114 |11:06
yuli_s| id                  | 2b7a3178-2908-495c-bc86-a8ba48d86800 |11:06
yuli_s| port_id             | ac915ce0-40ec-47fc-bc51-01cce70794b7 |11:06
yuli_s| router_id           | 83d760ec-1929-40da-be51-9e4574a830a1 |11:06
yuli_s| status              | ACTIVE                               |11:06
yuli_s| tenant_id           | 19cbf2a3a64a4b9fb0d999029e9dc314     |11:06
yuli_s+---------------------+--------------------------------------+11:06
yuli_sneutron port-show ac915ce0-40ec-47fc-bc51-01cce70794b711:07
yuli_s+---------------------+-------------------------------------------------------------------------------------------------------------+11:07
yuli_s| Field               | Value                                                                                                       |11:07
yuli_s+---------------------+-------------------------------------------------------------------------------------------------------------+11:07
yuli_s| admin_state_up      | True                                                                                                        |11:07
yuli_s| binding:host_id     | ubuntu                                                                                                      |11:07
yuli_s| binding:vif_details | {"port_filter": true}                                                                                       |11:07
yuli_s| binding:vif_type    | ovs                                                                                                         |11:07
yuli_s| binding:vnic_type   | normal                                                                                                      |11:07
yuli_s| created_at          | 2016-04-05T08:07:29                                                                                         |11:07
yuli_s| description         |                                                                                                             |11:08
yuli_s| device_id           | 4cd32d7d-e6ab-4349-9292-8986669fa2d7                                                                        |11:08
yuli_s| device_owner        | compute:nova                                                                                                |11:08
yuli_s| extra_dhcp_opts     |                                                                                                             |11:08
yuli_s| fixed_ips           | {"subnet_id": "b8d52f7a-f277-4fc3-be4c-7fce74c2324d", "ip_address": "10.0.0.3"}                             |11:08
yuli_s|                     | {"subnet_id": "026a1107-974b-4d10-b6ec-96d80f3887eb", "ip_address": "fd09:4919:14bc:0:f816:3e11:08
yuli_skeystone tenant-list11:08
yuli_s+----------------------------------+--------------------+---------+11:08
yuli_s|                id                |        name        | enabled |11:08
yuli_s+----------------------------------+--------------------+---------+11:08
yuli_s| 06d3282c8a7a4be1a2d3d017755efc01 |       admin        |   True  |11:08
yuli_s| 38145bc2fa1142da98d23fd4ec10e737 |      alt_demo      |   True  |11:08
yuli_s| 19cbf2a3a64a4b9fb0d999029e9dc314 |        demo        |   True  |11:08
yuli_s| 7f5b01e8628743418cc9eec1a51f5f09 | invisible_to_admin |   True  |11:08
yuli_s| d5178e61cef0465090c5eccb27d70d24 |      service       |   True  |11:08
yuli_s+----------------------------------+--------------------+---------+11:08
raofeiok, so 19cbf2a3a64a4b9fb0d999029e is belong to admin tenant, and  06d3282c8a7a4be1a2d3d017755efc01 is belong to demo tenant.11:09
yuli_syup11:10
yuli_severything works here, except for update11:11
raofeiAs your suggestion, I will considering to resolve this problem.11:14
yuli_sok, thanks11:14
raofeiI will consider resolving this problem11:14
yuli_sok, another problem with update11:17
yuli_smat be I miss something11:18
yuli_sI do not a see a place where you update the "external_gateway_ip" field11:18
yuli_sexternal_gateway_ip in floating tbale11:19
*** yamamoto has joined #openstack-dragonflow11:20
raofeihttps://www.irccloud.com/pastebin/aiPqweew/11:20
raofeifip.set_external_gateway_ip(subnet.get_gateway_ip())11:20
raofeihere, external gw ip will be updated into df db11:21
yuli_sthis is the code here:11:21
yuli_s    def set_external_gateway_ip(self, gw_ip):11:21
yuli_s        self.floatingip['external_gateway_ip'] = gw_ip11:21
yuli_sno update of the db, just in memory11:22
yuli_smay be you have not pushed latest code ?11:23
yuli_sbesides, I am not sure, that it is the right place to change the db here on the controller, may be better place is as part of the plugin11:25
raofeiyes, maybe the code is not updated. I will check it again and push them.11:25
yuli_sgreat !11:25
*** yamamoto has quit IRC11:45
*** yamamoto has joined #openstack-dragonflow11:47
*** yamamoto has quit IRC11:59
*** gampel2 has quit IRC12:00
*** yamamoto has joined #openstack-dragonflow12:00
*** gampel1 has joined #openstack-dragonflow12:01
*** yamamoto has quit IRC12:06
*** yamamoto has joined #openstack-dragonflow12:09
*** yamamoto has quit IRC12:13
openstackgerritOmer Anson proposed openstack/dragonflow: Install OVS as an OS service  https://review.openstack.org/29689712:13
*** yamamoto has joined #openstack-dragonflow12:15
*** Frank_Duan has quit IRC12:17
*** Frank_Duan has joined #openstack-dragonflow12:18
*** yamamoto has quit IRC12:18
*** oanson has joined #openstack-dragonflow12:21
*** yamamoto has joined #openstack-dragonflow12:31
*** yamamoto has quit IRC12:36
openstackgerritheshan proposed openstack/dragonflow: code for local controller reliability  https://review.openstack.org/29206012:41
openstackgerritMerged openstack/dragonflow: When adding router port use tenant_id of the subnet  https://review.openstack.org/30100312:57
*** yamamoto has joined #openstack-dragonflow12:58
*** saggi has quit IRC13:21
*** gsagie has quit IRC13:21
*** todin has quit IRC13:21
*** Mic22 has quit IRC13:21
*** oanson has quit IRC13:21
*** hujie has quit IRC13:21
*** Frank_Duan has quit IRC13:21
*** yuli_s has quit IRC13:21
*** openstackgerrit has quit IRC13:21
*** yamamoto has quit IRC13:21
*** irenab has quit IRC13:21
*** gampel has quit IRC13:21
*** Shlomo_N has quit IRC13:21
*** ChanServ has quit IRC13:21
*** hshan has quit IRC13:21
*** mestery has quit IRC13:22
*** gampel1 has quit IRC13:22
*** zenoway has quit IRC13:22
*** CrayZee has quit IRC13:22
*** gongysh has quit IRC13:22
*** serverascode has quit IRC13:22
*** raofei has quit IRC13:22
*** kun_huang has quit IRC13:22
*** yamamoto has joined #openstack-dragonflow13:24
*** oanson has joined #openstack-dragonflow13:24
*** Frank_Duan has joined #openstack-dragonflow13:24
*** gampel1 has joined #openstack-dragonflow13:24
*** hshan has joined #openstack-dragonflow13:24
*** zenoway has joined #openstack-dragonflow13:24
*** irenab has joined #openstack-dragonflow13:24
*** yuli_s has joined #openstack-dragonflow13:24
*** hujie has joined #openstack-dragonflow13:24
*** raofei has joined #openstack-dragonflow13:24
*** gampel has joined #openstack-dragonflow13:24
*** saggi has joined #openstack-dragonflow13:24
*** gsagie has joined #openstack-dragonflow13:24
*** Shlomo_N has joined #openstack-dragonflow13:24
*** todin has joined #openstack-dragonflow13:24
*** CrayZee has joined #openstack-dragonflow13:24
*** openstackgerrit has joined #openstack-dragonflow13:24
*** gongysh has joined #openstack-dragonflow13:24
*** serverascode has joined #openstack-dragonflow13:24
*** Mic22 has joined #openstack-dragonflow13:24
*** kun_huang has joined #openstack-dragonflow13:24
*** mestery has joined #openstack-dragonflow13:24
*** ChanServ has joined #openstack-dragonflow13:24
*** wolfe.freenode.net sets mode: +o ChanServ13:24
*** pl0pix has joined #openstack-dragonflow13:25
*** yamamoto has quit IRC13:34
*** yamamoto has joined #openstack-dragonflow13:41
*** dingboopt has joined #openstack-dragonflow13:51
openstackgerritOmer Anson proposed openstack/dragonflow: use IDLs built-in notify for ovsdb monitor  https://review.openstack.org/30169114:05
*** DuanKebo has joined #openstack-dragonflow14:07
*** DuanKebo has quit IRC14:18
*** oanson has quit IRC14:20
*** DuanKebo has joined #openstack-dragonflow14:56
*** yuli_s has quit IRC15:25
openstackgerritFei Rao proposed openstack/dragonflow: The implementation of distributed-DNAT  https://review.openstack.org/28914815:35
openstackgerritMerged openstack/dragonflow: Dragonflow L3 Agent for distributed DNAT  https://review.openstack.org/29437415:53
*** zenoway has quit IRC15:56
*** zenoway has joined #openstack-dragonflow15:57
*** zenoway has quit IRC16:01
*** DuanKebo has quit IRC16:02
*** oanson has joined #openstack-dragonflow16:28
openstackgerritOmer Anson proposed openstack/dragonflow: Support py34 tests for redis  https://review.openstack.org/30182316:46
*** oanson has quit IRC17:53
*** dingboopt has quit IRC17:57
*** zenoway has joined #openstack-dragonflow18:11
*** yamamoto has quit IRC18:12
*** zenoway has quit IRC18:15
*** yamamoto has joined #openstack-dragonflow18:16
*** zenoway has joined #openstack-dragonflow18:18
*** yamamoto has quit IRC18:21
*** mastermind has joined #openstack-dragonflow18:24
*** zenoway has quit IRC18:27
*** oanson has joined #openstack-dragonflow18:42
*** yamamoto has joined #openstack-dragonflow18:46
*** gampel1 has quit IRC18:53
*** yamamoto has quit IRC18:54
*** oanson has quit IRC19:06
*** oanson has joined #openstack-dragonflow19:07
*** yamamoto has joined #openstack-dragonflow19:24
*** yamamoto has quit IRC19:24
*** irenab has quit IRC19:30
*** irenab has joined #openstack-dragonflow19:30
*** yamamoto has joined #openstack-dragonflow19:31
*** yamamoto has quit IRC19:36
*** yamamoto has joined #openstack-dragonflow20:30
*** yamamoto has quit IRC20:36
*** oanson has quit IRC20:37
*** yamamoto has joined #openstack-dragonflow21:01
*** yamamoto has quit IRC21:06
*** yamamoto has joined #openstack-dragonflow21:46
*** yamamoto has quit IRC21:50
*** mastermind has quit IRC21:51
*** zenoway has joined #openstack-dragonflow22:06
*** zenoway has quit IRC22:26
*** zenoway has joined #openstack-dragonflow22:26
*** yamamoto_ has joined #openstack-dragonflow22:31
*** zenoway has quit IRC22:31
*** yamamoto_ has quit IRC22:35
*** zenoway has joined #openstack-dragonflow23:06
*** zenoway has quit IRC23:11
*** yamamoto_ has joined #openstack-dragonflow23:16
*** yamamoto_ has quit IRC23:21
*** yamamoto_ has joined #openstack-dragonflow23:50

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!