Hey

I also tried the grizzly setup with the configuration provided here
https://github.com/osrg/ryu/wiki/OpenStack. The Problem with this
error message is, that if you use the /etc/ryu/ryu.conf from the docs,
the rest_conf_switch application is missing. And along with that, also
the API function /v1.0/conf/switches/. The patch for the doc is
attached and in the eMail.

>From 1feeb614d8340e1054b639196f88a3907f87d2ac Mon Sep 17 00:00:00 2001
From: Aeschlimann Philipp <[email protected]>
Date: Thu, 27 Feb 2014 16:17:56 +0100
Subject: [PATCH] added ryu.app.rest_conf_switch to apps list

Signed-off-by: Aeschlimann Philipp <[email protected]>
---
 configuration_openstack_grizzly_with_ryu.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configuration_openstack_grizzly_with_ryu.md
b/configuration_openstack_grizzly_with_ryu.md
index b2372cb..0380a24 100644
--- a/configuration_openstack_grizzly_with_ryu.md
+++ b/configuration_openstack_grizzly_with_ryu.md
@@ -64,9 +64,9 @@ devstack will create /etc/ryu/ryu.conf automatically for you.:
     # mac address based isolation
     # app_lists = ryu.app.simple_isolation,ryu.app.rest
     # vlan
-    #app_lists =
ryu.app.quantum_adapter,ryu.app.rest,ryu.app.rest_quantum,ryu.app.rest_tunnel,ryu.app.simple_vlan
+    #app_lists =
ryu.app.quantum_adapter,ryu.app.rest,ryu.app.rest_quantum,ryu.app.rest_tunnel,ryu.app.rest_conf_switch,ryu.app.simple_vlan
     # GRE tunneling
-    app_lists =
ryu.app.quantum_adapter,ryu.app.rest,ryu.app.rest_quantum,ryu.app.rest_tunnel,ryu.app.tunnel_port_updater,ryu.app.gre_tunnel
+    app_lists =
ryu.app.quantum_adapter,ryu.app.rest,ryu.app.rest_quantum,ryu.app.rest_tunnel,ryu.app.rest_conf_switch,ryu.app.tunnel_port_updater,ryu.app.gre_tunnel

     # wsapi_host = $RYU_API_HOST
     # wsapi_port = $RYU_API_PORT
-- 
1.9.0

g *pae

2013-11-18 12:33 GMT+01:00 Yoshihiro Kaneko <[email protected]>:
> Hello,
>
> 2013/11/16 張華婷 <[email protected]>:
>> Hi,this is my first time to setup openstack with ryu.
>> However, I met some problems. Please tell me how to solve them.
>> I setup openstack first, and I change the plugin and agent to ryu.
>> First, there is an import error, because there are some like "from ryu.app
>> import client", but the directory "ryu" doesn't appear in
>> /usr/lib/python2.7/dist-packages/,so I copy the directory from Internet to
>> it. Is this step correct? Because the rest api ip can't be got correctly, it
>> always is 127.0.0.1.
>
> Please install Ryu by:
>   $ sudo pip install ryu
>
>>
>> After I directly modified the rest api ip in ryu_quantum_agent.py, the
>> second problem appears. In ryu-agent.log, this is a problem about "
>> Initialization failed: (<httplib.HTTPResponse instance at 0x2886098>, 'code
>> 404 reason Not Found', [('date', 'Sat, 16 Nov 2013 09:12:17 GMT'),
>> ('content-length', '52'), ('content-type', 'text/plain; charset=UTF-8')],
>> '404 Not Found\n\nThe resource could not be found.\n\n   ')  ".
>> In the controller, this appears-- "192.168.3.11 - - [16/Nov/2013 17:12:17]
>> "PUT /v1.0/conf/switches/000022877531ea44/ovs_tunnel_addr HTTP/1.1" 404 176
>> 0.000466" .
>>
>> I trace code in ryu_quantum_agent.py, seems that this line
>> fails--"sc_client.set_key(self.int_br.datapath_id,
>>                           conf_switch_key.OVS_TUNNEL_ADDR, tunnel_ip)".
>>
>>
>> Please tell me how can I solve these problems, ThX!!!!!!!!!!!!!!
>
> Please refer to the document for configurations:
>   https://github.com/osrg/ryu/wiki/OpenStack
> I hope it will help you.
>
> Thanks,
> Kaneko
>
>>
>> ------------------------------------------------------------------------------
>> DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
>> OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
>> Free app hosting. Or install the open source package on any LAMP server.
>> Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
>> http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Ryu-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
>
> ------------------------------------------------------------------------------
> DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
> OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
> Free app hosting. Or install the open source package on any LAMP server.
> Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
> http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel

-- 
ZHAW - Zurich University of Applied Sciences
Institute of Applied Information Technology InIT
InIT Cloud Computing Laboratory ICCLab

Philipp Aeschlimann
Researcher
Obere Kirchgasse 2
CH-8401 Winterthur

Tel. +41 58 934 6964 (intern 6964)
mailto:[email protected]
www.zhaw.ch
www.cloudcomp.ch

GPG IDKey: 647E122E
Fingerprint: 47B7 8D8A 98D1 E91D 4B7C E261 D88C BE9E 647E 122E
From 1feeb614d8340e1054b639196f88a3907f87d2ac Mon Sep 17 00:00:00 2001
From: Aeschlimann Philipp <[email protected]>
Date: Thu, 27 Feb 2014 16:17:56 +0100
Subject: [PATCH] added ryu.app.rest_conf_switch to apps list

Signed-off-by: Aeschlimann Philipp <[email protected]>
---
 configuration_openstack_grizzly_with_ryu.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configuration_openstack_grizzly_with_ryu.md b/configuration_openstack_grizzly_with_ryu.md
index b2372cb..0380a24 100644
--- a/configuration_openstack_grizzly_with_ryu.md
+++ b/configuration_openstack_grizzly_with_ryu.md
@@ -64,9 +64,9 @@ devstack will create /etc/ryu/ryu.conf automatically for you.:
     # mac address based isolation
     # app_lists = ryu.app.simple_isolation,ryu.app.rest
     # vlan
-    #app_lists = ryu.app.quantum_adapter,ryu.app.rest,ryu.app.rest_quantum,ryu.app.rest_tunnel,ryu.app.simple_vlan
+    #app_lists = ryu.app.quantum_adapter,ryu.app.rest,ryu.app.rest_quantum,ryu.app.rest_tunnel,ryu.app.rest_conf_switch,ryu.app.simple_vlan
     # GRE tunneling
-    app_lists = ryu.app.quantum_adapter,ryu.app.rest,ryu.app.rest_quantum,ryu.app.rest_tunnel,ryu.app.tunnel_port_updater,ryu.app.gre_tunnel
+    app_lists = ryu.app.quantum_adapter,ryu.app.rest,ryu.app.rest_quantum,ryu.app.rest_tunnel,ryu.app.rest_conf_switch,ryu.app.tunnel_port_updater,ryu.app.gre_tunnel
 
     # wsapi_host = $RYU_API_HOST
     # wsapi_port = $RYU_API_PORT
-- 
1.9.0

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to