Hi,All,I want to test ofagent in openstack,my enviroment is:openstack kilomulti-node deploy(compute+network/controller)i refer to the link below:https://github.com/osrg/ryu/wiki/Configuration-OpenStack-OFAgent-agent now the br-int is connected to localhost controller,but br-tun & br-ex is not so how to configure ofagent in multi-node openstack? thanks! here is my operations:#Network/Controller Node#[1]first i installed networking-ofagent # pip install networking-ofagent [2]then configure the following keys in addition to a ML2 configuration[ml2] mechanism_drivers = ofagent,l2population [3]start the agent# python /usr/local/bin/neutron-ofagent-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.iniversion:[root@kilo ~]# ovs-ofctl --version ovs-ofctl (Open vSwitch) 2.3.1 Compiled Dec 26 2014 15:35:14 OpenFlow versions 0x1:0x4 [root@kilo ~]# [root@kilo ~]# ryu-manager --version ryu-manager 3.24
#Compute Node#[1][3] same as network/controller node,[2] ML2 configuration:[root@k2 ml2]# cat ml2_conf.ini [agent] get_datapath_retry_times = 60 ------ovs bridge flows result--------# Network/Controller Node#[root@kilo ~]# ovs-vsctl show b07c09f9-ff21-48ba-8955-65520523ad21 Bridge br-int Controller "tcp:127.0.0.1:6633" is_connected: true fail_mode: secure Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Port br-int Interface br-int type: internal Bridge br-tun fail_mode: secure Port br-tun Interface br-tun type: internal Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Bridge br-ex Port "enp5s0f0" Interface "enp5s0f0" Port br-ex Interface br-ex type: internal ovs_version: "2.3.1" [root@kilo ~]# ovs-ofctl dump-flows br-int -O openflow13 OFPST_FLOW reply (OF1.3) (xid=0x2): cookie=0x0, duration=64073.699s, table=0, n_packets=0, n_bytes=0, priority=0 actions=drop cookie=0x0, duration=64073.698s, table=1, n_packets=0, n_bytes=0, priority=0 actions=drop cookie=0x0, duration=64073.696s, table=2, n_packets=0, n_bytes=0, priority=0 actions=drop cookie=0x0, duration=64073.695s, table=3, n_packets=0, n_bytes=0, priority=0 actions=goto_table:7 cookie=0x0, duration=64073.693s, table=4, n_packets=0, n_bytes=0, priority=0 actions=goto_table:5 cookie=0x0, duration=64073.691s, table=5, n_packets=0, n_bytes=0, priority=0 actions=goto_table:6 cookie=0x0, duration=64073.688s, table=6, n_packets=0, n_bytes=0, priority=0 actions=goto_table:7 cookie=0x0, duration=64073.690s, table=6, n_packets=0, n_bytes=0, priority=1,arp,arp_op=1 actions=CONTROLLER:65509 cookie=0x0, duration=64073.687s, table=7, n_packets=0, n_bytes=0, priority=0 actions=goto_table:8 cookie=0x0, duration=64073.686s, table=8, n_packets=0, n_bytes=0, priority=0 actions=goto_table:9 cookie=0x0, duration=64073.684s, table=9, n_packets=0, n_bytes=0, priority=0 actions=goto_table:10 cookie=0x0, duration=64073.683s, table=10, n_packets=0, n_bytes=0, priority=0 actions=goto_table:11 cookie=0x0, duration=64073.682s, table=11, n_packets=0, n_bytes=0, priority=0 actions=goto_table:12 cookie=0x0, duration=64073.680s, table=12, n_packets=0, n_bytes=0, priority=0 actions=goto_table:13 cookie=0x0, duration=64073.679s, table=13, n_packets=0, n_bytes=0, priority=0 actions=drop [root@kilo ~]# [root@kilo ~]# ovs-ofctl dump-flows br-tun -O openflow13 OFPST_FLOW reply (OF1.3) (xid=0x2): cookie=0x0, duration=64268.986s, table=0, n_packets=0, n_bytes=0, priority=0 actions=drop cookie=0x0, duration=64269.064s, table=0, n_packets=0, n_bytes=0, priority=1,in_port=1 actions=resubmit(,2) cookie=0x0, duration=64268.906s, table=2, n_packets=0, n_bytes=0, priority=0,dl_dst=00:00:00:00:00:00/01:00:00:00:00:00 actions=resubmit(,20) cookie=0x0, duration=64268.826s, table=2, n_packets=0, n_bytes=0, priority=0,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=resubmit(,22) cookie=0x0, duration=64268.747s, table=3, n_packets=0, n_bytes=0, priority=0 actions=drop cookie=0x0, duration=64268.670s, table=4, n_packets=0, n_bytes=0, priority=0 actions=drop cookie=0x0, duration=64268.592s, table=10, n_packets=0, n_bytes=0, priority=1 actions=learn(table=20,hard_timeout=300,priority=1,NXM_OF_VLAN_TCI[0..11],NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],load:0->NXM_OF_VLAN_TCI[],load:NXM_NX_TUN_ID[]->NXM_NX_TUN_ID[],output:NXM_OF_IN_PORT[]),output:1 cookie=0x0, duration=64268.514s, table=20, n_packets=0, n_bytes=0, priority=0 actions=resubmit(,22) cookie=0x0, duration=64268.436s, table=22, n_packets=0, n_bytes=0, priority=0 actions=drop [root@kilo ~]# [root@kilo ~]# ovs-ofctl dump-flows br-ex -O openflow13 OFPST_FLOW reply (OF1.3) (xid=0x2): cookie=0x0, duration=64304.620s, table=0, n_packets=1547493, n_bytes=184722196, priority=0 actions=NORMAL #Compute Node#[root@k2 ml2]# ovs-vsctl show 32809250-3675-4f76-b1c8-dc0a57b67ff1 Bridge br-tun fail_mode: secure Port br-tun Interface br-tun type: internal Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Bridge br-int Controller "tcp:127.0.0.1:6633" is_connected: true fail_mode: secure Port br-int Interface br-int type: internal Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} ovs_version: "2.3.1" [root@k2 ml2]# ovs-ofctl dump-flows br-int -O openflow13 OFPST_FLOW reply (OF1.3) (xid=0x2): cookie=0x0, duration=64606.844s, table=0, n_packets=0, n_bytes=0, priority=0 actions=drop cookie=0x0, duration=64606.842s, table=1, n_packets=0, n_bytes=0, priority=0 actions=drop cookie=0x0, duration=64606.841s, table=2, n_packets=0, n_bytes=0, priority=0 actions=drop cookie=0x0, duration=64606.840s, table=3, n_packets=0, n_bytes=0, priority=0 actions=goto_table:7 cookie=0x0, duration=64606.838s, table=4, n_packets=0, n_bytes=0, priority=0 actions=goto_table:5 cookie=0x0, duration=64606.837s, table=5, n_packets=0, n_bytes=0, priority=0 actions=goto_table:6 cookie=0x0, duration=64606.834s, table=6, n_packets=0, n_bytes=0, priority=0 actions=goto_table:7 cookie=0x0, duration=64606.835s, table=6, n_packets=0, n_bytes=0, priority=1,arp,arp_op=1 actions=CONTROLLER:65509 cookie=0x0, duration=64606.833s, table=7, n_packets=0, n_bytes=0, priority=0 actions=goto_table:8 cookie=0x0, duration=64606.831s, table=8, n_packets=0, n_bytes=0, priority=0 actions=goto_table:9 cookie=0x0, duration=64606.830s, table=9, n_packets=0, n_bytes=0, priority=0 actions=goto_table:10 cookie=0x0, duration=64606.829s, table=10, n_packets=0, n_bytes=0, priority=0 actions=goto_table:11 cookie=0x0, duration=64606.827s, table=11, n_packets=0, n_bytes=0, priority=0 actions=goto_table:12 cookie=0x0, duration=64606.826s, table=12, n_packets=0, n_bytes=0, priority=0 actions=goto_table:13 cookie=0x0, duration=64606.825s, table=13, n_packets=0, n_bytes=0, priority=0 actions=drop [root@k2 ml2]# [root@k2 ml2]# [root@k2 ml2]# ovs-ofctl dump-flows br-tun -O openflow13 OFPST_FLOW reply (OF1.3) (xid=0x2): cookie=0x0, duration=64860.168s, table=0, n_packets=0, n_bytes=0, priority=0 actions=drop cookie=0x0, duration=64860.233s, table=0, n_packets=0, n_bytes=0, priority=1,in_port=1 actions=resubmit(,2) cookie=0x0, duration=64860.102s, table=2, n_packets=0, n_bytes=0, priority=0,dl_dst=00:00:00:00:00:00/01:00:00:00:00:00 actions=resubmit(,20) cookie=0x0, duration=64860.037s, table=2, n_packets=0, n_bytes=0, priority=0,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=resubmit(,22) cookie=0x0, duration=64859.972s, table=3, n_packets=0, n_bytes=0, priority=0 actions=drop cookie=0x0, duration=64859.907s, table=4, n_packets=0, n_bytes=0, priority=0 actions=drop cookie=0x0, duration=64859.842s, table=10, n_packets=0, n_bytes=0, priority=1 actions=learn(table=20,hard_timeout=300,priority=1,NXM_OF_VLAN_TCI[0..11],NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],load:0->NXM_OF_VLAN_TCI[],load:NXM_NX_TUN_ID[]->NXM_NX_TUN_ID[],output:NXM_OF_IN_PORT[]),output:1 cookie=0x0, duration=64859.777s, table=20, n_packets=0, n_bytes=0, priority=0 actions=resubmit(,22) cookie=0x0, duration=64859.712s, table=22, n_packets=0, n_bytes=0, priority=0 actions=drop xueguan...@hotmail.com
------------------------------------------------------------------------------
_______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel