Hi,

 > Why? What should i do to solve this question?

There may be a problem with the destination port.


Please execute the following command.

$ ryu-manager --verbose --ofp-tcp-listen-port 6653

If Ryu can connect to the OVS, the following log is output.

------------------------------------------------------------------
$ ryu-manager --verbose --ofp-tcp-listen-port 6653
loading app ryu.controller.ofp_handler
instantiating app ryu.controller.ofp_handler of OFPHandler
BRICK ofp_event
   CONSUMES EventOFPPortDescStatsReply
   CONSUMES EventOFPHello
   CONSUMES EventOFPErrorMsg
   CONSUMES EventOFPEchoRequest
   CONSUMES EventOFPPortStatus
   CONSUMES EventOFPEchoReply
   CONSUMES EventOFPSwitchFeatures
connected socket:<eventlet.greenio.base.GreenSocket object at 
0x7fe581fc9a10> address:('127.0.0.1', 50634)
hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x7fe57e2f54d0>
move onto config mode
switch features ev 
version=0x4,msg_type=0x6,msg_len=0x20,xid=0x4de89fc,OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=1,n_buffers=0,n_tables=254)
move onto main mode
------------------------------------------------------------------


Do you use any version of the Ryu?
If the version of Ryu you are using the old,
Ryu might not correspond to a port numbers 6653.
If possible, please try to install the latest version of Ryu.

If still no good.
please execute the following command,
make sure that the port is not LISTEN to other processes.

  $ netstat -apn | grep LISTEN


Thanks,

On 2016年10月26日 21:18, Alan Wang wrote:
> Hi All,
>
> I tried to let openvswitch connect to the ryu controller.
>
> But the connection is be refused by ryu controller.
>
> I am so confused about is_connected:true and last_error="Connection
> refused".
>
> $ ovs-vsctl list controller
> _uuid               : abbeff95-fdec-43c0-a566-6e4cf79163ee
> connection_mode     : out-of-band
> controller_burst_limit: []
> controller_rate_limit: []
> enable_async_messages: []
> external_ids        : {}
> inactivity_probe    : []
> is_connected        : true
> local_gateway       : []
> local_ip            : []
> local_netmask       : []
> max_backoff         : []
> other_config        : {}
> role                : other
> status              : {last_error="Connection refused",
> sec_since_connect="3", sec_since_disconnect="5", state=ACTIVE}
> target              : "tcp:192.168.1.143:6653 <http://192.168.1.143:6653>"
>
>
> Why? What should i do to solve this question?
>
> Thanks,
>
> Alan
>
>
>
> ------------------------------------------------------------------------------
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>

------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to