Hi,
2014-05-26 0:27 GMT+09:00 马超 <[email protected]>:
> thank you for your reply!
>
> sorry to bother you every time, but I got lot of problems,
>
> Q1:
> when I run ryu-manager --config-file /etc/ryu/ryu.conf
> it shows
> Traceback (most recent call last):
> File "/usr/local/bin/ryu-manager", line 9, in <module>
> load_entry_point('ryu==3.9', 'console_scripts', 'ryu-manager')()
> File "/usr/local/lib/python2.7/dist-packages/ryu/cmd/manager.py", line 75,
> in main
> services.extend(app_mgr.instantiate_apps(**contexts))
> File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py",
> line 434, in instantiate_apps
> self._instantiate(app_name, cls, *args, **kwargs)
> File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py",
> line 421, in _instantiate
> register_app(app)
> File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py",
> line 50, in register_app
> assert app.name not in SERVICE_BRICKS
> AssertionError
Can you show me your "/etc/ryu/ryu.conf" and all output of ryu-manager?
>
> 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
>
> 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
...
- 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
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