Hello,

Please see 2 comments inline.

Thanks,
Kaneko

2013/5/31 赤羽 新 <[email protected]>:
> Hi,
>
> I need help in openstack(Grizzly) with ryu controller.
>
> The following errors output when quantum-ryu-agent boot.
>
>
> # /usr/bin/python /usr/bin/quantum-ryu-agent -d
> --config-file=/etc/quantum/quantum.conf
> --config-file=/etc/quantum/plugins/ryu/ryu.ini
> --log-file=/var/log/quantum/ryu-agent.log
>      INFO [quantum.openstack.common.rpc.common] Connected to AMQP server on
> 10.0.0.2:5672
>     DEBUG [quantum.plugins.ryu.agent.ryu_quantum_agent] Get Ryu rest API
> address
>     DEBUG [quantum.openstack.common.rpc.amqp] Making synchronous call on
> q-plugin ...
>     DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is
> 5eb65c68c95f4cc498f324f7bbef90cc
>     DEBUG [quantum.openstack.common.rpc.amqp] UNIQUE_ID is
> 524e978046c74f1891446874e6cc8a8b.
>     DEBUG [quantum.openstack.common.rpc.amqp] Pool creating new connection
>      INFO [quantum.openstack.common.rpc.common] Connected to AMQP server on
> 10.0.0.2:5672
>     DEBUG [quantum.plugins.ryu.agent.ryu_quantum_agent] ************ DEBUG
> Start ********************
>     DEBUG [quantum.plugins.ryu.agent.ryu_quantum_agent] 127.0.0.1:8080
>     DEBUG [quantum.plugins.ryu.agent.ryu_quantum_agent] ************ DEBUG
> End   ********************
>     DEBUG [quantum.plugins.ryu.agent.ryu_quantum_agent] Going to ofp
> controller mode 127.0.0.1:8080

rest_api_addr is retrieved from quantum-server via AMQP connection.
The configuration parameter 'openflow_rest_api' in
'/etc/quantum/plugins/ryu/ryu.ini' on a controller node is the source.
I suspect that the configuration of the controller node might be
incomplete, when you found the problem.


>  CRITICAL [quantum] [Errno 111] ECONNREFUSED
>
> (Network node)
>
>
> ** source change **
> rest_api_addr = "192.168.0.2:8080"
>
> # /usr/bin/python /usr/bin/quantum-ryu-agent -d
> --config-file=/etc/quantum/quantum.conf
> --config-file=/etc/quantum/plugins/ryu/ryu.ini --log-file=/var/
> log/quantum/ryu-agent.log
>
>      INFO [quantum.openstack.common.rpc.common] Connected to AMQP server on
> 10.0.0.2:5672
>     DEBUG [quantum.plugins.ryu.agent.ryu_quantum_agent] Get Ryu rest API
> address
>     DEBUG [quantum.openstack.common.rpc.amqp] Making synchronous call on
> q-plugin ...
>     DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is
> 7d7357ffdbce422dba854607ce5a6bda
>     DEBUG [quantum.openstack.common.rpc.amqp] UNIQUE_ID is
> 009b8bed4cb64fefbdb74bd8cb4586e6.
>     DEBUG [quantum.openstack.common.rpc.amqp] Pool creating new connection
>      INFO [quantum.openstack.common.rpc.common] Connected to AMQP server on
> 10.0.0.2:5672
>     DEBUG [quantum.plugins.ryu.agent.ryu_quantum_agent] ************ DEBUG
> Start ********************
>     DEBUG [quantum.plugins.ryu.agent.ryu_quantum_agent] 192.168.0.2:8080
>     DEBUG [quantum.plugins.ryu.agent.ryu_quantum_agent] ************ DEBUG
> End   ********************
>     DEBUG [quantum.plugins.ryu.agent.ryu_quantum_agent] Going to ofp
> controller mode 192.168.1.2:8080
>     ERROR [quantum.plugins.ryu.agent.ryu_quantum_agent] Initialization
> failed: (<httplib.HTTPResponse instance at 0x21c3e18>, 'code 404 reason Not
> Found', [('date', 'Fri, 31 May 2013 07:46:39 GMT'), ('content-length',
> '52'), ('content-type', 'text/plain; charset=UTF-8')], '404 Not Found\n\nThe
> resource could not be found.\n\n   ')
>
>
>
> Controller Node
>
> file : /etc/ryu/ryu.conf
>   app_lists =
> ryu.app.client,ryu.app.conf_switch_key,ryu.app.gre_tunnel,ryu.app.ofctl_rest,ryu.app.quantum_adapter,ryu.app.rest,ryu.app.rest_conf_switch,ryu.app.rest_firewall,ryu.app.rest_nw_id,ryu.app.rest_quantum,ryu.app.rest_topology,ryu.app.rest_tunnel,ryu.app.tunnel_port_updater
>
>   wsapi_host = 0.0.0.0
>   wsapi_port = 8080
>   ofp_listen_host = 0.0.0.0
>   ofp_tcp_listen_port = 6633
>
>   quantum_url = http://10.0.0.2:9696
>   quantum_admin_username = quantum
>   quantum_admin_password = pass
>   quantum_admin_tenant_name = service
>   quantum_admin_auth_url = http://10.0.0.2:5000/v2.0
>   uantum_auth_strategy = keystone
>   quantum_controller_addr = tcp:0.0.0.0:6633

quantum_controller_addr is set as a openflow controller address into
OVS(br-int), so it should be configured actual ryu service address,
e.g. "tcp:192.168.0.2:6633".


>
>
> file : /etc/quantum/quantum.conf
>
>   core_plugin = quantum.plugins.ryu.ryu_quantum_plugin.RyuQuantumPluginV2
>
>
> file : /etc/quantum/plugins/ryu/ryu.ini
>
>   [DATABASE]
>   sql_connection = mysql://quantum:[email protected]/quantum?charset=utf8
>   [OVS]
>   integration_bridge = br-int
>   openflow_rest_api = 192.168.0.2:8080
>   tunnel_interface = eth2
>   ovsdb_interface = eth2
>   [SECURITYGROUP]
>   firewall_driver =
> quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
>   [AGENT]
>   polling_interval = 2
>
>
> # ifconfig eth1 | grep "inet a"
>           inet addr:10.0.0.2  Bcast:10.0.0.255  Mask:255.255.255.0
>
> # ifconfig eth2 | grep "inet a"
>           inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
>
> # ovs-vsctl show
>     Bridge br-int
>         Port br-int
>             Interface br-int
>                 type: internal
>     ovs_version: "1.9.0"
>
>
>
> Network Node
>
> file : /etc/quantum/quantum.conf
>
>   core_plugin = quantum.plugins.ryu.ryu_quantum_plugin.RyuQuantumPluginV2
>
> file : /etc/quantum/plugins/ryu/ryu.ini
>
>   [DATABASE]
>   sql_connection = mysql://quantum:[email protected]/quantum?charset=utf8
>   [OVS]
>   integration_bridge = br-int
>   openflow_rest_api = 192.168.0.2:8080
>   tunnel_interface = eth2
>   ovsdb_interface = eth2
>   [SECURITYGROUP]
>   firewall_driver =
> quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
>   [AGENT]
>   polling_interval = 2
>
>
> # nc -v 192.168.0.2 8080
> Connection to 192.168.0.2 8080 port [tcp/http-alt] succeeded!
>
> # ifconfig eth1 | grep "inet a"
>           inet addr:10.0.0.3  Bcast:10.0.0.255  Mask:255.255.255.0
>
> # ifconfig eth2 | grep "inet a"
>           inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0
>
> # ovs-vsctl show
>     Bridge br-ex
>         Port br-ex
>             Interface br-ex
>                 type: internal
>         Port "eth3"
>             Interface "eth3"
>     Bridge br-tun
>         Port patch-int
>             Interface patch-int
>                 type: patch
>                 options: {peer=patch-tun}
>         Port br-tun
>             Interface br-tun
>                 type: internal
>     Bridge br-int
>         Port patch-tun
>             Interface patch-tun
>                 type: patch
>                 options: {peer=patch-int}
>         Port br-int
>             Interface br-int
>                 type: internal
>     ovs_version: "1.9.0"
>
>
>
> GRE setting need except ryu.ini ?
>
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to