[openstack-dev] 回复: [neutron]dragonflow deployment incorrectness

shihanzhang ayshihanzhang at 126.com
Thu Jul 28 03:45:11 UTC 2016


As I know,  now dragonflow still use neutron l3-agent for snat, so the l3-agent is enabled and router namespace  be created.




在 2016-07-28 08:53:20,kangjingting at sina.com 写道:

Hi 


The reason why a namepspace be created while creating router is just because l3-agent is enabled. You can disable it as you want to.


At present, there is only dhcp app in dragonflow need packets from datapath, so you will observe controller related flows after you create vms in subnet where dhcp is enabled. 


BTW, if you want the all flows showed in br-int, including hidden flows, you can use command “ovs-appctl bridge/dump-flows br-int”


----- 原始邮件 -----
发件人:"郑杰" <zhengjie at unitedstack.com>
收件人:"openstack-dev" <openstack-dev at lists.openstack.org>
主题:[openstack-dev] [neutron]dragonflow deployment incorrectness
日期:2016年07月27日 14点46分




Hi ,everybody:

when I deploy DragonFlow, I start neutron-server ,df-local-controller and df-l3-router, but there still are router namespace when I create routers ,I check ovs flow table ,there is no CONTROLLER actions for ip traffic ,so I guess something wrong with my conf.
below are my neutron.conf and l3_agent.ini respectively

----------------------------neutron.conf-----------------------------
[DEFAULT]
dhcp_agent_notification = False
advertise_mtu = True
api_workers = 10
notify_nova_on_port_data_changes = True
notify_nova_on_port_status_changes = True
auth_strategy = keystone
allow_overlapping_ips = True
debug = True
service_plugins =
core_plugin = dragonflow.neutron.plugin.DFPlugin
transport_url = rabbit://stackrabbit:secret@172.16.18.127:5672/
logging_exception_prefix = %(color)s%(asctime)s.%(msecs)03d TRACE %(name)s ^[[01;35m%(instance)s^[[00m
logging_debug_format_suffix = ^[[00;33mfrom (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d^[[00m
logging_default_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [^[[00;36m-%(color)s] ^[[01;35m%(instance)s%(color)s%(message)s^[[00m
logging_context_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [^[[01;36m%(request_id)s ^[[00;36m%(user_name)s %(project_id)s%(color)s] ^[[01;35m%(instance)s%(color)s%(message)s^[[00m
bind_host = 0.0.0.0
use_syslog = False
state_path = /opt/stack/data/neutron

[df]
pub_sub_driver = redis_db_pubsub_driver
enable_selective_topology_distribution = True
publisher_rate_limit_count = 1
publisher_rate_limit_timeout = 180
pub_sub_use_multiproc = False
enable_df_pub_sub = True
monitor_table_poll_time = 30
apps_list = l2_app.L2App,l3_proactive_app.L3ProactiveApp,dhcp_app.DHCPApp,dnat_app.DNATApp,sg_app.SGApp,portsec_app.PortSecApp
integration_bridge = br-int
tunnel_type = geneve
local_ip = 172.16.18.127
nb_db_class = dragonflow.db.drivers.redis_db_driver.RedisDbDriver
remote_db_hosts = 172.16.18.127:4001
remote_db_port = 4001
remote_db_ip = 172.16.18.127

[df_l2_app]
l2_responder = True

[df_dnat_app]
ex_peer_patch_port = patch-int
int_peer_patch_port = patch-ex
external_network_bridge = br-ex

---------------------------------------------------------l3_agent.ini -------------
[DEFAULT]
l3_agent_manager = neutron.agent.l3_agent.L3NATAgentWithStateReport
external_network_bridge = br-ex
interface_driver = openvswitch
ovs_use_veth = False
debug = True

[AGENT]
root_helper_daemon = sudo /usr/bin/neutron-rootwrap-daemon /etc/neutron/rootwrap.conf
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf

--------------------------------------ovs-ofctl dump-flows br-int---------------

NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=1710.883s, table=0, n_packets=0, n_bytes=0, idle_age=1710, priority=100,in_port=19 actions=load:0x17->NXM_NX_REG6[],load:0x3->OXM_OF_METADATA[],resubmit(,1)
 cookie=0x0, duration=1710.883s, table=0, n_packets=1268, n_bytes=53760, idle_age=0, priority=100,in_port=13 actions=load:0x15->NXM_NX_REG6[],load:0x3->OXM_OF_METADATA[],resubmit(,1)
 cookie=0x0, duration=1710.876s, table=0, n_packets=0, n_bytes=0, idle_age=1710, priority=100,in_port=15 actions=load:0x1a->NXM_NX_REG6[],load:0x2->OXM_OF_METADATA[],resubmit(,1)
 cookie=0x0, duration=1710.876s, table=0, n_packets=0, n_bytes=0, idle_age=1710, priority=100,in_port=20 actions=load:0x1c->NXM_NX_REG6[],load:0x3->OXM_OF_METADATA[],resubmit(,1)
 cookie=0x0, duration=1710.876s, table=0, n_packets=3, n_bytes=126, idle_age=643, priority=100,in_port=18 actions=load:0x1b->NXM_NX_REG6[],load:0x2->OXM_OF_METADATA[],resubmit(,1)
 cookie=0x0, duration=1710.883s, table=0, n_packets=0, n_bytes=0, idle_age=1710, priority=100,tun_id=0x17 actions=load:0x17->NXM_NX_REG7[],load:0x3->OXM_OF_METADATA[],resubmit(,72)
 cookie=0x0, duration=1710.882s, table=0, n_packets=0, n_bytes=0, idle_age=1710, priority=100,tun_id=0x15 actions=load:0x15->NXM_NX_REG7[],load:0x3->OXM_OF_METADATA[],resubmit(,72)
 cookie=0x0, duration=1710.876s, table=0, n_packets=0, n_bytes=0, idle_age=1710, priority=100,tun_id=0x1a actions=load:0x1a->NXM_NX_REG7[],load:0x2->OXM_OF_METADATA[],resubmit(,72)
 cookie=0x0, duration=1710.876s, table=0, n_packets=0, n_bytes=0, idle_age=1710, priority=100,tun_id=0x1c actions=load:0x1c->NXM_NX_REG7[],load:0x3->OXM_OF_METADATA[],resubmit(,72)
 cookie=0x0, duration=1710.869s, table=0, n_packets=0, n_bytes=0, idle_age=1710, priority=100,tun_id=0x1b actions=load:0x1b->NXM_NX_REG7[],load:0x2->OXM_OF_METADATA[],resubmit(,72)
 cookie=0x0, duration=1710.852s, table=1, n_packets=9, n_bytes=882, idle_age=1675, priority=100,ip actions=drop
 cookie=0x0, duration=1710.852s, table=1, n_packets=1262, n_bytes=53004, idle_age=0, priority=100,arp actions=drop
 cookie=0x0, duration=1710.883s, table=1, n_packets=0, n_bytes=0, idle_age=1710, priority=1 actions=resubmit(,3)
 cookie=0x0, duration=1710.852s, table=1, n_packets=0, n_bytes=0, idle_age=1710, priority=20 actions=drop
 cookie=0x0, duration=1710.883s, table=3, n_packets=0, n_bytes=0, idle_age=1710, priority=1 actions=resubmit(,9)
 cookie=0x0, duration=1710.852s, table=6, n_packets=0, n_bytes=0, idle_age=1710, priority=1 actions=drop
 cookie=0x0, duration=1710.883s, table=9, n_packets=0, n_bytes=0, idle_age=1710, priority=100,arp actions=resubmit(,10)
 cookie=0x0, duration=1710.862s, table=9, n_packets=0, n_bytes=0, idle_age=1710, priority=100,udp,dl_dst=ff:ff:ff:ff:ff:ff,tp_src=68,tp_dst=67 actions=resubmit(,11)
 cookie=0x0, duration=1710.862s, table=9, n_packets=0, n_bytes=0, idle_age=1710, priority=100,udp,metadata=0x2,nw_dst=10.0.0.100,tp_src=68,tp_dst=67 actions=resubmit(,11)
 cookie=0x0, duration=1710.862s, table=9, n_packets=0, n_bytes=0, idle_age=1710, priority=100,udp,metadata=0x3,nw_dst=130.140.25.100,tp_src=68,tp_dst=67 actions=resubmit(,11)
 cookie=0x0, duration=1710.883s, table=9, n_packets=0, n_bytes=0, idle_age=1710, priority=1 actions=resubmit(,17)
 cookie=0x0, duration=1710.883s, table=10, n_packets=0, n_bytes=0, idle_age=1710, priority=100,arp,metadata=0x3,arp_tpa=130.140.25.109,arp_op=1 actions=load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],mod_dl_src:fa:16:3e:08:46:3f,load:0xfa163e08463f->NXM_NX_ARP_SHA[],load:0x828c196d->NXM_OF_ARP_SPA[],IN_PORT
 cookie=0x0, duration=1710.876s, table=10, n_packets=0, n_bytes=0, idle_age=1710, priority=100,arp,metadata=0x3,arp_tpa=130.140.25.107,arp_op=1 actions=load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],mod_dl_src:fa:16:3e:57:58:a9,load:0xfa163e5758a9->NXM_NX_ARP_SHA[],load:0x828c196b->NXM_OF_ARP_SPA[],IN_PORT
 cookie=0x0, duration=1710.869s, table=10, n_packets=0, n_bytes=0, idle_age=1710, priority=100,arp,metadata=0x2,arp_tpa=10.0.0.110,arp_op=1 actions=load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],mod_dl_src:fa:16:3e:f0:f8:0d,load:0xfa163ef0f80d->NXM_NX_ARP_SHA[],load:0xa00006e->NXM_OF_ARP_SPA[],IN_PORT
 cookie=0x0, duration=1710.869s, table=10, n_packets=0, n_bytes=0, idle_age=1710, priority=100,arp,metadata=0x3,arp_tpa=130.140.25.1,arp_op=1 actions=load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],mod_dl_src:fa:16:3e:00:d0:7b,load:0xfa163e00d07b->NXM_NX_ARP_SHA[],load:0x828c1901->NXM_OF_ARP_SPA[],IN_PORT
 cookie=0x0, duration=1710.869s, table=10, n_packets=0, n_bytes=0, idle_age=1710, priority=100,arp,metadata=0x2,arp_tpa=10.0.0.1,arp_op=1 actions=load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],mod_dl_src:fa:16:3e:bd:8d:7b,load:0xfa163ebd8d7b->NXM_NX_ARP_SHA[],load:0xa000001->NXM_OF_ARP_SPA[],IN_PORT
 cookie=0x0, duration=1710.883s, table=10, n_packets=0, n_bytes=0, idle_age=1710, priority=1 actions=resubmit(,17)
 cookie=0x0, duration=1710.862s, table=11, n_packets=0, n_bytes=0, idle_age=1710, priority=100,in_port=19 actions=load:0x17->OXM_OF_METADATA[],CONTROLLER:65535
 cookie=0x0, duration=1710.862s, table=11, n_packets=0, n_bytes=0, idle_age=1710, priority=100,in_port=20 actions=load:0x1c->OXM_OF_METADATA[],CONTROLLER:65535
 cookie=0x0, duration=1710.862s, table=11, n_packets=0, n_bytes=0, idle_age=1710, priority=100,in_port=18 actions=load:0x1b->OXM_OF_METADATA[],CONTROLLER:65535
 cookie=0x0, duration=1710.862s, table=11, n_packets=0, n_bytes=0, idle_age=1710, priority=1 actions=resubmit(,17)
 cookie=0x0, duration=1710.883s, table=17, n_packets=0, n_bytes=0, idle_age=1710, priority=200,metadata=0x3,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=load:0x17->NXM_NX_REG7[],resubmit(,64),load:0x15->NXM_NX_REG7[],resubmit(,64),load:0x1c->NXM_NX_REG7[],resubmit(,64)
 cookie=0x0, duration=1710.876s, table=17, n_packets=0, n_bytes=0, idle_age=1710, priority=200,metadata=0x2,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=load:0x1a->NXM_NX_REG7[],resubmit(,64),load:0x1b->NXM_NX_REG7[],resubmit(,64)
 cookie=0x0, duration=1710.883s, table=17, n_packets=0, n_bytes=0, idle_age=1710, priority=100,metadata=0x3,dl_dst=fa:16:3e:08:46:3f actions=load:0x17->NXM_NX_REG7[],resubmit(,64)
 cookie=0x0, duration=1710.876s, table=17, n_packets=0, n_bytes=0, idle_age=1710, priority=100,metadata=0x3,dl_dst=fa:16:3e:57:58:a9 actions=load:0x1c->NXM_NX_REG7[],resubmit(,64)
 cookie=0x0, duration=1710.869s, table=17, n_packets=0, n_bytes=0, idle_age=1710, priority=100,metadata=0x2,dl_dst=fa:16:3e:f0:f8:0d actions=load:0x1b->NXM_NX_REG7[],resubmit(,64)
 cookie=0x0, duration=1710.869s, table=17, n_packets=0, n_bytes=0, idle_age=1710, priority=200,metadata=0x3,dl_dst=fa:16:3e:00:d0:7b actions=resubmit(,20)
 cookie=0x0, duration=1710.862s, table=17, n_packets=0, n_bytes=0, idle_age=1710, priority=200,metadata=0x2,dl_dst=fa:16:3e:bd:8d:7b actions=resubmit(,20)
 cookie=0x0, duration=1710.869s, table=17, n_packets=0, n_bytes=0, idle_age=1710, priority=100,icmp,dl_dst=fa:16:3e:00:d0:7b,nw_dst=130.140.25.1,icmp_type=8 actions=move:NXM_OF_ETH_SRC[]->NXM_OF_ETH_DST[],move:NXM_OF_IP_SRC[]->NXM_OF_IP_DST[],load:0->NXM_OF_ICMP_TYPE[],load:0->NXM_OF_ICMP_CODE[],mod_dl_src:fa:16:3e:00:d0:7b,mod_nw_src:130.140.25.1,IN_PORT
 cookie=0x0, duration=1710.869s, table=17, n_packets=0, n_bytes=0, idle_age=1710, priority=100,icmp,dl_dst=fa:16:3e:bd:8d:7b,nw_dst=10.0.0.1,icmp_type=8 actions=move:NXM_OF_ETH_SRC[]->NXM_OF_ETH_DST[],move:NXM_OF_IP_SRC[]->NXM_OF_IP_DST[],load:0->NXM_OF_ICMP_TYPE[],load:0->NXM_OF_ICMP_CODE[],mod_dl_src:fa:16:3e:bd:8d:7b,mod_nw_src:10.0.0.1,IN_PORT
 cookie=0x0, duration=1710.869s, table=20, n_packets=0, n_bytes=0, idle_age=1710, priority=200,ip,metadata=0x3,nw_dst=130.140.25.1 actions=load:0x15->NXM_NX_REG7[],resubmit(,64)
 cookie=0x0, duration=1710.869s, table=20, n_packets=0, n_bytes=0, idle_age=1710, priority=200,ip,metadata=0x2,nw_dst=10.0.0.1 actions=load:0x1a->NXM_NX_REG7[],resubmit(,64)
 cookie=0x0, duration=1710.869s, table=20, n_packets=0, n_bytes=0, idle_age=1710, priority=1 actions=resubmit(,64)
 cookie=0x0, duration=1710.869s, table=25, n_packets=0, n_bytes=0, idle_age=1710, priority=200,ip,metadata=0x3,nw_dst=130.140.25.1 actions=load:0x15->NXM_NX_REG7[],resubmit(,64)
 cookie=0x0, duration=1710.869s, table=25, n_packets=0, n_bytes=0, idle_age=1710, priority=200,ip,metadata=0x2,nw_dst=10.0.0.1 actions=load:0x1a->NXM_NX_REG7[],resubmit(,64)
 cookie=0x0, duration=1710.862s, table=25, n_packets=0, n_bytes=0, idle_age=1710, priority=200,ip,metadata=0x3,nw_dst=130.140.25.109 actions=mod_dl_dst:fa:16:3e:08:46:3f,load:0x17->NXM_NX_REG7[],resubmit(,64)
 cookie=0x0, duration=1710.862s, table=25, n_packets=0, n_bytes=0, idle_age=1710, priority=200,ip,metadata=0x3,nw_dst=130.140.25.107 actions=mod_dl_dst:fa:16:3e:57:58:a9,load:0x1c->NXM_NX_REG7[],resubmit(,64)
 cookie=0x0, duration=1710.862s, table=25, n_packets=0, n_bytes=0, idle_age=1710, priority=200,ip,metadata=0x2,nw_dst=10.0.0.110 actions=mod_dl_dst:fa:16:3e:f0:f8:0d,load:0x1b->NXM_NX_REG7[],resubmit(,64)
 cookie=0x0, duration=1710.581s, table=30, n_packets=0, n_bytes=0, idle_age=1710, priority=100,ip,metadata=0x3,nw_src=130.140.25.107 actions=mod_dl_src:fa:16:3e:af:47:cd,mod_dl_dst:24:6e:96:0e:5d:38,mod_nw_src:130.140.150.101,resubmit(,66)
 cookie=0x0, duration=1710.883s, table=64, n_packets=0, n_bytes=0, idle_age=1710, priority=100,reg7=0x17 actions=load:0x3->OXM_OF_METADATA[],resubmit(,72)
 cookie=0x0, duration=1710.877s, table=64, n_packets=0, n_bytes=0, idle_age=1710, priority=100,reg7=0x15 actions=load:0x3->OXM_OF_METADATA[],resubmit(,72)
 cookie=0x0, duration=1710.876s, table=64, n_packets=0, n_bytes=0, idle_age=1710, priority=100,reg7=0x1a actions=load:0x2->OXM_OF_METADATA[],resubmit(,72)
 cookie=0x0, duration=1710.876s, table=64, n_packets=0, n_bytes=0, idle_age=1710, priority=100,reg7=0x1c actions=load:0x3->OXM_OF_METADATA[],resubmit(,72)
 cookie=0x0, duration=1710.869s, table=64, n_packets=0, n_bytes=0, idle_age=1710, priority=100,reg7=0x1b actions=load:0x2->OXM_OF_METADATA[],resubmit(,72)
 cookie=0x0, duration=1710.853s, table=66, n_packets=0, n_bytes=0, idle_age=1710, priority=100 actions=output:1
 cookie=0x0, duration=1710.883s, table=72, n_packets=0, n_bytes=0, idle_age=1710, priority=1 actions=resubmit(,78)
 cookie=0x0, duration=1710.853s, table=77, n_packets=0, n_bytes=0, idle_age=1710, priority=1 actions=drop
 cookie=0x0, duration=1710.883s, table=78, n_packets=0, n_bytes=0, idle_age=1710, priority=100,reg7=0x17 actions=output:19
 cookie=0x0, duration=1710.877s, table=78, n_packets=0, n_bytes=0, idle_age=1710, priority=100,reg7=0x15 actions=output:13
 cookie=0x0, duration=1710.876s, table=78, n_packets=0, n_bytes=0, idle_age=1710, priority=100,reg7=0x1a actions=output:15
 cookie=0x0, duration=1710.876s, table=78, n_packets=0, n_bytes=0, idle_age=1710, priority=100,reg7=0x1c actions=output:20
 cookie=0x0, duration=1710.869s, table=78, n_packets=0, n_bytes=0, idle_age=1710, priority=100,reg7=0x1b actions=output:18

Could anyone check with this problem for me ?

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160728/140a047c/attachment-0001.html>


More information about the OpenStack-dev mailing list