Hi,

I tried to work out the "Example of the operation of QoS by using DiffServ" on

   https://osrg.github.io/ryu-book/en/html/rest_qos.html

with gui_topology.py (using my own browser side code). When I start the system with

PYTHONPATH=. ./bin/ryu-manager ryu.app.rest_qos ryu.app.qos_rest_router ryu.app.rest_conf_switch ryu.app.gui_topology.gui_topology ryu.app.ofctl_rest

Then all requests for "/stats/..." result 404 error (ofctl worked fine with the first example). Any idea what goes wrong?

I'm testing the system in virtualbox running ubuntu 16.10 image.

[attached some log output from ryu-manager]
# PYTHONPATH=. ./bin/ryu-manager ryu.app.rest_qos ryu.app.qos_rest_router ryu.app.rest_conf_switch ryu.app.gui_topology.gui_topology ryu.app.ofctl_rest
lzma module is not available
Registered VCS backend: git
Registered VCS backend: hg
Registered VCS backend: svn
Registered VCS backend: bzr
loading app ryu.app.rest_qos
loading app ryu.app.qos_rest_router
loading app ryu.app.rest_conf_switch
loading app ryu.app.gui_topology.gui_topology
loading app ryu.app.ofctl_rest
loading app ryu.controller.ofp_handler
loading app ryu.app.rest_topology
loading app ryu.app.ws_topology
loading app ryu.controller.ofp_handler
instantiating app None of Switches
creating context switches
instantiating app None of DPSet
creating context dpset
instantiating app None of ConfSwitchSet
creating context conf_switch
creating context wsgi
instantiating app ryu.app.rest_conf_switch of ConfSwitchAPI
instantiating app ryu.controller.ofp_handler of OFPHandler
instantiating app ryu.app.rest_qos of RestQoSAPI
instantiating app ryu.app.ws_topology of WebSocketTopology
instantiating app ryu.app.rest_topology of TopologyAPI
instantiating app ryu.app.qos_rest_router of RestRouterAPI
instantiating app ryu.app.gui_topology.gui_topology of GUIServerApp
instantiating app ryu.app.ofctl_rest of RestStatsApi
(5056) wsgi starting up on http://0.0.0.0:8080
[RT][INFO] switch_id=0000000000000001: Set SW config for TTL error packet in.
[RT][INFO] switch_id=0000000000000001: Set ARP handling (packet in) flow [cookie=0x0]
[RT][INFO] switch_id=0000000000000001: Set L2 switching (normal) flow [cookie=0x0]
[RT][INFO] switch_id=0000000000000001: Set default route (drop) flow [cookie=0x0]
[RT][INFO] switch_id=0000000000000001: Start cyclic routing table update.
[RT][INFO] switch_id=0000000000000001: Join as router.
[RT][INFO] switch_id=0000000000000002: Set SW config for TTL error packet in.
[RT][INFO] switch_id=0000000000000002: Set ARP handling (packet in) flow [cookie=0x0]
[RT][INFO] switch_id=0000000000000002: Set L2 switching (normal) flow [cookie=0x0]
[RT][INFO] switch_id=0000000000000002: Set default route (drop) flow [cookie=0x0]
[RT][INFO] switch_id=0000000000000002: Start cyclic routing table update.
[RT][INFO] switch_id=0000000000000002: Join as router.
[QoS][INFO] dpid=0000000000000001: Join qos switch.
[QoS][INFO] dpid=0000000000000002: Join qos switch.
(5056) accepted ('xxx.xxx.xxx.xxx', 43876)
xxx.xxx.xxx.xxx - - [04/May/2017 09:30:55] "GET /static/index.html HTTP/1.1" 200 7632 0.020050
xxx.xxx.xxx.xxx - - [04/May/2017 09:30:55] "GET /v1.0/topology/switches HTTP/1.1" 200 631 0.000643
xxx.xxx.xxx.xxx - - [04/May/2017 09:30:55] "GET /v1.0/topology/switches HTTP/1.1" 200 631 0.000643
xxx.xxx.xxx.xxx - - [04/May/2017 09:30:56] "GET /v1.0/topology/links HTTP/1.1" 200 133 0.000652
xxx.xxx.xxx.xxx - - [04/May/2017 09:30:56] "GET /v1.0/topology/hosts HTTP/1.1" 200 133 0.000535
(5056) accepted ('xxx.xxx.xxx.xxx', 43878)
xxx.xxx.xxx.xxx - - [04/May/2017 09:31:07] "GET /qos/queue/0000000000000002 HTTP/1.1" 200 244 0.000518
xxx.xxx.xxx.xxx - - [04/May/2017 09:31:07] "GET /stats/portdesc/2 HTTP/1.1" 404 339 0.001423
xxx.xxx.xxx.xxx - - [04/May/2017 09:31:11] "GET /stats/flow/2 HTTP/1.1" 404 335 0.001379
xxx.xxx.xxx.xxx - - [04/May/2017 09:31:11] "GET /stats/queueconfig/2 HTTP/1.1" 404 342 0.001357
xxx.xxx.xxx.xxx - - [04/May/2017 09:31:12] "GET /stats/meterconfig/2 HTTP/1.1" 404 342 0.001383
xxx.xxx.xxx.xxx - - [04/May/2017 09:31:59] "GET /qos/rules/0000000000000002 HTTP/1.1" 200 189 0.002673
xxx.xxx.xxx.xxx - - [04/May/2017 09:32:00] "GET /qos/queue/0000000000000002 HTTP/1.1" 200 244 0.000430
(5056) accepted ('127.0.0.1', 38102)
127.0.0.1 - - [04/May/2017 09:32:52] "PUT /v1.0/conf/switches/0000000000000001/ovsdb_addr HTTP/1.1" 201 120 0.000404
(5056) accepted ('127.0.0.1', 38864)
127.0.0.1 - - [04/May/2017 09:33:27] "POST /qos/queue/0000000000000001 HTTP/1.1" 200 322 0.060867
xxx.xxx.xxx.xxx - - [04/May/2017 09:33:38] "GET /qos/queue/0000000000000001 HTTP/1.1" 200 346 0.000669
xxx.xxx.xxx.xxx - - [04/May/2017 09:33:38] "GET /stats/meterconfig/1 HTTP/1.1" 404 342 0.002929
xxx.xxx.xxx.xxx - - [04/May/2017 09:33:42] "GET /stats/portdesc/1 HTTP/1.1" 404 339 0.003136
(5056) accepted ('127.0.0.1', 39318)
[RT][INFO] switch_id=0000000000000001: Set host MAC learning (packet in) flow [cookie=0x1]
[RT][INFO] switch_id=0000000000000001: Set IP handling (packet in) flow [cookie=0x1]
[RT][INFO] switch_id=0000000000000001: Set L2 switching (normal) flow [cookie=0x1]
127.0.0.1 - - [04/May/2017 09:34:07] "POST /router/0000000000000001 HTTP/1.1" 200 228 0.011138
Reply must contain exactly one of result and error.
(5056) accepted ('127.0.0.1', 39426)
[RT][INFO] switch_id=0000000000000001: Set host MAC learning (packet in) flow [cookie=0x2]
[RT][INFO] switch_id=0000000000000001: Set IP handling (packet in) flow [cookie=0x2]
[RT][INFO] switch_id=0000000000000001: Set L2 switching (normal) flow [cookie=0x2]
127.0.0.1 - - [04/May/2017 09:34:21] "POST /router/0000000000000001 HTTP/1.1" 200 228 0.003276
(5056) accepted ('127.0.0.1', 39536)
[RT][INFO] switch_id=0000000000000001: Set default routing (packet in) flow [cookie=0x10000]
127.0.0.1 - - [04/May/2017 09:34:33] "POST /router/0000000000000001 HTTP/1.1" 200 224 0.002227
(5056) accepted ('127.0.0.1', 39654)
[RT][INFO] switch_id=0000000000000002: Set host MAC learning (packet in) flow [cookie=0x1]
[RT][INFO] switch_id=0000000000000002: Set IP handling (packet in) flow [cookie=0x1]
[RT][INFO] switch_id=0000000000000002: Set L2 switching (normal) flow [cookie=0x1]
127.0.0.1 - - [04/May/2017 09:34:44] "POST /router/0000000000000002 HTTP/1.1" 200 228 0.005900
Reply must contain exactly one of result and error.
(5056) accepted ('127.0.0.1', 39780)
[RT][INFO] switch_id=0000000000000002: Set host MAC learning (packet in) flow [cookie=0x2]
[RT][INFO] switch_id=0000000000000002: Set IP handling (packet in) flow [cookie=0x2]
[RT][INFO] switch_id=0000000000000002: Set L2 switching (normal) flow [cookie=0x2]
127.0.0.1 - - [04/May/2017 09:34:56] "POST /router/0000000000000002 HTTP/1.1" 200 228 0.002276
[RT][INFO] switch_id=0000000000000001: Set default routing flow [cookie=0x10000]
[RT][INFO] switch_id=0000000000000001: Receive GARP from [172.16.30.1].
[RT][INFO] switch_id=0000000000000001: Send GARP (normal).
(5056) accepted ('127.0.0.1', 39892)
[RT][INFO] switch_id=0000000000000002: Set default routing (packet in) flow [cookie=0x10000]
127.0.0.1 - - [04/May/2017 09:35:06] "POST /router/0000000000000002 HTTP/1.1" 200 224 0.002417
[RT][INFO] switch_id=0000000000000001: Receive ARP request from [172.16.30.1] to router port [172.16.30.10].
[RT][INFO] switch_id=0000000000000001: Send ARP reply to [172.16.30.1]
[RT][INFO] switch_id=0000000000000002: Set default routing flow [cookie=0x10000]
[RT][INFO] switch_id=0000000000000002: Receive ARP reply from [172.16.30.10] to router port [172.16.30.1].
(5056) accepted ('127.0.0.1', 40878)
127.0.0.1 - - [04/May/2017 09:36:23] "POST /qos/rules/0000000000000001 HTTP/1.1" 200 223 0.000746
(5056) accepted ('127.0.0.1', 41000)
127.0.0.1 - - [04/May/2017 09:36:35] "POST /qos/rules/0000000000000001 HTTP/1.1" 200 223 0.000891
(5056) accepted ('127.0.0.1', 41110)
127.0.0.1 - - [04/May/2017 09:36:50] "POST /qos/rules/0000000000000002 HTTP/1.1" 200 223 0.000757
(5056) accepted ('127.0.0.1', 41266)
127.0.0.1 - - [04/May/2017 09:37:05] "POST /qos/rules/0000000000000002 HTTP/1.1" 200 223 0.001236
(5056) accepted ('xxx.xxx.xxx.xxx', 43880)
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:25] "GET /v1.0/topology/hosts HTTP/1.1" 200 522 0.000535
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:29] "GET /qos/queue/0000000000000002 HTTP/1.1" 200 244 0.000415
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:29] "GET /stats/portdesc/2 HTTP/1.1" 404 339 0.001574
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:30] "GET /qos/queue/0000000000000001 HTTP/1.1" 200 346 0.000622
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:30] "GET /stats/portdesc/1 HTTP/1.1" 404 339 0.002020
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:33] "GET /v1.0/topology/switches HTTP/1.1" 200 631 0.001021
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:36] "GET /qos/rules/0000000000000001 HTTP/1.1" 200 385 0.006175
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:38] "GET /qos/rules/0000000000000002 HTTP/1.1" 200 477 0.007865
(5056) accepted ('xxx.xxx.xxx.xxx', 43882)
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:38] "GET /stats/portdesc/2 HTTP/1.1" 404 339 0.001911
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:40] "GET /qos/rules/0000000000000001 HTTP/1.1" 200 385 0.007934
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:40] "GET /stats/portdesc/1 HTTP/1.1" 404 339 0.004333
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:41] "GET /qos/rules/0000000000000002 HTTP/1.1" 200 477 0.006660
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:41] "GET /stats/portdesc/2 HTTP/1.1" 404 339 0.003523
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:42] "GET /qos/rules/0000000000000001 HTTP/1.1" 200 385 0.006284
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:42] "GET /stats/portdesc/1 HTTP/1.1" 404 339 0.002257
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:43] "GET /qos/rules/0000000000000002 HTTP/1.1" 200 477 0.005988
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:43] "GET /stats/portdesc/2 HTTP/1.1" 404 339 0.001538
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:44] "GET /qos/meter/0000000000000002 HTTP/1.1" 200 196 0.001217
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:45] "GET /qos/queue/0000000000000002 HTTP/1.1" 200 244 0.000655
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:49] "GET /qos/rules/0000000000000002 HTTP/1.1" 200 477 0.005693
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:49] "GET /qos/queue/0000000000000002 HTTP/1.1" 200 244 0.000460
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:51] "GET /qos/queue/0000000000000001 HTTP/1.1" 200 346 0.000452
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:51] "GET /stats/portdesc/1 HTTP/1.1" 404 339 0.001416
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:52] "GET /qos/queue/0000000000000002 HTTP/1.1" 200 244 0.000532
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:52] "GET /stats/portdesc/2 HTTP/1.1" 404 339 0.001586
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:55] "GET /qos/queue/0000000000000001 HTTP/1.1" 200 346 0.000559
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:55] "GET /stats/portdesc/1 HTTP/1.1" 404 339 0.004388
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:57] "GET /stats/flow/1 HTTP/1.1" 404 335 0.001833
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:58] "GET /stats/queueconfig/1 HTTP/1.1" 404 342 0.001640
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:58] "GET /stats/meterconfig/1 HTTP/1.1" 404 342 0.001690
xxx.xxx.xxx.xxx - - [04/May/2017 09:37:59] "GET /stats/portdesc/1 HTTP/1.1" 404 339 0.001349
xxx.xxx.xxx.xxx - - [04/May/2017 09:39:25] "GET /v1.0/topology/hosts HTTP/1.1" 200 522 0.000720
xxx.xxx.xxx.xxx - - [04/May/2017 09:39:26] "GET /v1.0/topology/switches HTTP/1.1" 200 631 0.001682
xxx.xxx.xxx.xxx - - [04/May/2017 09:39:27] "GET /qos/rules/0000000000000001 HTTP/1.1" 200 385 0.005775
xxx.xxx.xxx.xxx - - [04/May/2017 09:39:29] "GET /qos/queue/0000000000000001 HTTP/1.1" 200 346 0.001426
xxx.xxx.xxx.xxx - - [04/May/2017 09:39:30] "GET /qos/rules/0000000000000001 HTTP/1.1" 200 385 0.005801
xxx.xxx.xxx.xxx - - [04/May/2017 09:39:31] "GET /qos/queue/0000000000000001 HTTP/1.1" 200 346 0.000636

------------------------------------------------------------------------------
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