Hi,

2014-05-27 14:08 GMT+09:00 马超 <[email protected]>:
(snip)
>    /etc/ryu/ryu.conf
>
> [DEFAULT]
> # app_lists = $RYU_APPS
> # mac address based isolation
> # app_lists = ryu.app.simple_isolation,ryu.app.rest
> # vlan
> #app_lists=ryu.app.quantum_adapter,ryu.app.rest,ryu.app.rest_conf_switch,ryu.app.rest_quantum,ryu.app.rest_tunnel,ryu.app.simple_vlan
> # GRE tunneling
> app_lists=ryu.app.quantum_adapter,ryu.app.rest,ryu.app.rest_conf_switch,ryu.app.rest_quantum,ryu.app.rest_tunnel,ryu.app.tunnel_port_updater,ryu.app.gre_tunnel

Please define gre_tunnel before quantum_adapter.
  
app_lists=ryu.app.gre_tunnel,ryu.app.quantum_adapter,ryu.app.rest,ryu.app.rest_conf_switch,ryu.app.rest_quantum,ryu.app.rest_tunnel,ryu.app.tunnel_port_updater

Probably this is a bug of ryu.

Thanks,
Kaneko

>
> # wsapi_host = $RYU_API_HOST
> # wsapi_port = $RYU_API_PORT
> # ofp_listen_host = $RYU_OFP_HOST
> # ofp_tcp_listen_port = $RYU_OFP_PORT
> wsapi_host = 10.0.0.203
> wsapi_port = 8080
> ofp_listen_host = 10.0.0.203
> ofp_tcp_listen_port = 6633
>
> # the followings must be set according to neutron settings
> # neutron_url = http://$Q_HOST:$Q_PORT
> # neutron_admin_username = $Q_ADMIN_USERNAME
> # neutron_admin_password = $SERVICE_PASSWORD
> # neutron_admin_tenant_name = $SERVICE_TENANT_NAME
> #neutron_admin_auth_url=$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_AUTH_PORT/v2.0
> # neutron_auth_strategy = $Q_AUTH_STRATEGY
> # neutron_controller_addr = tcp:$RYU_OFP_HOST:$RYU_OFP_PORT
> neutron_url = http:// 10.0.0.202:9696
> neutron_admin_username = neutron
> neutron_admin_password = 123456
> neutron_admin_tenant_name = service
> neutron_admin_auth_url = http:// 10.0.0.202:5000/v2.0
> neutron_auth_strategy = keystone
> neutron_controller_addr = tcp:10.0.0.203:6633
>
>
>
>> >
>> > Q2:
>> > I try to run ryu-manager /root/ryu/ryu/app/tunnel_port_updater.py
>> > /root/ryu/ryu/app/rest_quantum.py /root/ryu/ryu/app/rest_conf_switch.py
>> > /root/ryu/ryu/ofctl_rest.py
>> >
>> > even thought I set ovs-vsctl set-controller br-int tcp:10.0.0.203:6633
>> > on
>> > both network and compute node, and config in ryu.conf, it still shows:
>> >
>> > hub: uncaught exception: Traceback (most recent call last):
>> >   File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 52,
>> > in
>> > _launch
>> >     func(*args, **kwargs)
>> >   File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py",
>> > line 256, in _event_loop
>> >     handler(ev)
>> >   File "/root/ryu/ryu/app/quantum_adapter.py", line 370, in dp_handler
>> >     ovs_switch = self._get_ovs_switch(dpid)
>> >   File "/root/ryu/ryu/app/quantum_adapter.py", line 353, in
>> > _get_ovs_switch
>> >     self.logger)
>> >   File "/root/ryu/ryu/app/quantum_adapter.py", line 139, in __init__
>> >     raise ValueError('option neutron_controller_addr must be speicfied')
>> > ValueError: option neutron_controller_addr must be speicfied
>>
>> Please read this page:
>>   https://github.com/osrg/ryu/wiki/configuration_openstack_havana_with_ryu
>>
>
>    I do read this page, and config as it suggest, but somehow it didn't
> work.
>
>>
>> >
>> > Q3:
>> >   is there any way to check whether the ryu-controller is running
>> > without
>> > problems?
>>
>> There are many kind of the problem, I think that there is not the simple
>> way.
>> For example...
>> - watching ryu-manager's log
>> - confirm a connection with OVS
>>     $ sudo ovs-vsctl show
>>     fd908bb0-dd7e-45f5-9a01-78456d88510d
>>         Manager "ptcp:6634"
>>         Bridge br-int
>>             Controller "tcp:192.168.122.60:6633"
>>                 is_connected: true
>>     ...
>
>     This part is ok, I set Controller "tcp:****:6633" manually.
>
>>
>>
>> - confirm a flow table
>>     $ sudo ovs-ofctl dump-flows br-int
>>     NXST_FLOW reply (xid=0x4):
>>      cookie=0x0, duration=371.119s, table=0, n_packets=7, n_bytes=558,
>> idle_age=361, in_port=1,dl_src=fa:16:3e:ab:3a:c9
>> actions=set_tunnel:0x2,resubmit(,1)
>>      cookie=0x0, duration=367.167s, table=0, n_packets=6, n_bytes=480,
>> idle_age=358, in_port=2,dl_src=fa:16:3e:80:fd:49
>> actions=set_tunnel:0x2,resubmit(,1)
>>      cookie=0x0, duration=371.119s, table=0, n_packets=0, n_bytes=0,
>> idle_age=371, priority=16384,in_port=1 actions=drop
>>      cookie=0x0, duration=367.167s, table=0, n_packets=0, n_bytes=0,
>> idle_age=367, priority=16384,in_port=2 actions=drop
>>      cookie=0x0, duration=371.12s, table=1, n_packets=13,
>> n_bytes=1038, idle_age=358, priority=8192,tun_id=0x2
>> actions=resubmit(,2)
>>      cookie=0x0, duration=371.119s, table=1, n_packets=0, n_bytes=0,
>> idle_age=371, priority=16384,tun_id=0x2,dl_dst=ff:ff:ff:ff:ff:ff
>> actions=resubmit(,2)
>>      cookie=0x0, duration=371.12s, table=2, n_packets=13,
>> n_bytes=1038, idle_age=358, priority=8192,tun_id=0x2 actions=drop
>>      cookie=0x0, duration=371.12s, table=2, n_packets=0, n_bytes=0,
>> idle_age=371, tun_id=0x2,dl_dst=fa:16:3e:ab:3a:c9 actions=output:1
>>      cookie=0x0, duration=371.12s, table=2, n_packets=0, n_bytes=0,
>> idle_age=371, hard_age=367,
>> priority=16384,tun_id=0x2,dl_dst=ff:ff:ff:ff:ff:ff
>> actions=output:1,output:2
>>      cookie=0x0, duration=367.171s, table=2, n_packets=0, n_bytes=0,
>> idle_age=367, tun_id=0x2,dl_dst=fa:16:3e:80:fd:49 actions=output:2
>>
>    this part is not work....
>
>>
>> I suggests trying devstack with ryu-plugin until you get familiar with
>> Ryu.
>>   https://github.com/osrg/ryu/wiki/RYU-Openstack-Havana-environment-HOWTO
>>
>> Thanks,
>> Kaneko
>>
>> >
>> > thank you!
>> >
>> >
>> >
>> >
>> > 2014-05-23 17:34 GMT+08:00 Yoshihiro Kaneko <[email protected]>:
>> >>
>> >> Hi,
>> >>
>> >> 2014-05-21 12:04 GMT+09:00 马超 <[email protected]>:
>> >> > Hi
>> >> >
>> >> > I have Havana with three node: Controller, Network and Compute
>> >> >
>> >> > Q1:  neutron-server  is running on both Controller and Network node
>> >> > according to "OpenStack Installation Guide for Ubuntu 12.04", witch
>> >> > node
>> >> > should  Ryu controller run on ?
>> >>
>> >> neutron-server should be run on controller node only.
>> >> Usually Ryu controller is run on controller node, but any node is ok.
>> >>
>> >> >
>> >> > Q2: if Ryu controller run on Controller (or Network) node, the other
>> >> > node
>> >> > should config neutron-plugin-ryu?
>> >>
>> >> You need configure neutron-plugin-ryu on controller node.
>> >> (but it is unrelated which node to run Ryu controller on.)
>> >>
>> >> >
>> >> > Q3: every node should install Ryu and config ryu.ini?
>> >>
>> >> Of course, it is necessary on controller node.
>> >> On network node and compute node, you need install Ryu
>> >> (neutron-plugin-ryu-agent imports it), but it is not necessary to
>> >> configure.
>> >>
>> >> Thanks,
>> >> Kaneko
>> >>
>> >> >
>> >> > thanks
>> >> >
>> >> >
>> >> >
>> >> > ------------------------------------------------------------------------------
>> >> > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For
>> >> > FREE
>> >> > Instantly run your Selenium tests across 300+ browser/OS combos.
>> >> > Get unparalleled scalability from the best Selenium testing platform
>> >> > available
>> >> > Simple to use. Nothing to install. Get started now for free."
>> >> > http://p.sf.net/sfu/SauceLabs
>> >> > _______________________________________________
>> >> > Ryu-devel mailing list
>> >> > [email protected]
>> >> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
>> >> >
>> >
>> >
>
>

------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to