Hi, Shahid

Possible causes are:
* The port number in the application is inconsistent with that set for OVS
* Firewall between controller and OVS is blocking communication
* Packet is lost due to network high load

I think the problem is not due to Ryu.
Please check your configuration and network.

Thanks,
Fujimoto

On 2017年12月08日 00:34, shahid javed wrote:
Hi All,

I am trying to set up queues on port 'eth0' of switch 's3' using the following code:

from ryu.cfg import CONF
from ryu.lib.ovs import bridge

config_path = "tcp:10.0.0.103:6640 <http://10.0.0.103:6640>"
ovsdb_bridge= bridge.OVSBridge(CONF, datapath.id <http://datapath.id>, config_path)

ovsdb_bridge.set_qos("s3-eth0",
     queues=[{'min-rate': '10000', 'max-rate': '100000'},{'min-rate': '500000'}],
     max_rate="100000000")


switch 's3' address is '10.0.0.103' and my controller is at address '10.0.0.1'. I am using Ryu(4.18) and OpenFlow 1.3 I am also opening the manager for the port eth0 at the switch 's3'
using " ovs-vsctl set-manager ptcp:6640 " in xterm


I am getting the following error:

Connection refused
hub: uncaught exception: Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 60, in _launch
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ryu/app/simple_switch_13.py", line 200, in _monitor
    max_rate="100000000")
  File "/usr/local/lib/python2.7/dist-packages/ryu/lib/ovs/bridge.py", line 401, in set_qos
    self.run_command([command_qos, command_queue])
  File "/usr/local/lib/python2.7/dist-packages/ryu/lib/ovs/bridge.py", line 105, in run_command
    self.vsctl.run_command(commands, self.timeout, self.exception)
  File "/usr/local/lib/python2.7/dist-packages/ryu/lib/ovs/vsctl.py", line 1207, in run_command
    self._run_command(commands)
  File "/usr/local/lib/python2.7/dist-packages/ryu/lib/ovs/vsctl.py", line 1200, in _run_command
    self._do_main(commands)
  File "/usr/local/lib/python2.7/dist-packages/ryu/lib/ovs/vsctl.py", line 1097, in _do_main
    self._init_schema_helper()
  File "/usr/local/lib/python2.7/dist-packages/ryu/lib/ovs/vsctl.py", line 984, in _init_schema_helper
    vswitch_idl.OVSREC_DB_NAME)
  File "/usr/local/lib/python2.7/dist-packages/ryu/lib/ovs/vsctl.py", line 976, in _rpc_get_schema_json
    vsctl_fatal(os.strerror(error))
  File "/usr/local/lib/python2.7/dist-packages/ryu/lib/ovs/vsctl.py", line 140, in vsctl_fatal     raise Exception(msg)        # not call ovs.utils.ovs_fatal for reusability
Exception: Connection refused



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to