On Thu, 29 May 2014 13:40:33 +0900
Yoshihiro Kaneko <[email protected]> wrote:

> For example, app-A has app-X in CONTEXTS, and app-B depends on app-X as
> SERVICE.  When app-B is specified in the app-lists before app-A, the
> instantiating app-X fails by an assertion.
> 
> $ PYTHONPATH=. bin/ryu-manager ryu.app.quantum_adapter ryu.app.gre_tunnel
> loading app ryu.app.quantum_adapter
> loading app ryu.app.gre_tunnel
> loading app ryu.controller.dpset
> loading app ryu.controller.ofp_handler
> loading app ryu.controller.ofp_handler
> loading app ryu.controller.ofp_handler
> instantiating app None of QuantumIfaces
> creating context quantum_ifaces
> instantiating app None of ConfSwitchSet
> creating context conf_switch
> instantiating app None of Network
> creating context network
> instantiating app None of Tunnels
> creating context tunnels
> instantiating app None of DPSet
> creating context dpset
> instantiating app ryu.app.gre_tunnel of GRETunnel
> instantiating app ryu.controller.dpset of DPSet
> Traceback (most recent call last):
>   File "/opt/stack/ryu/bin/ryu-manager", line 19, in <module>
>     main()
>   File "/opt/stack/ryu/ryu/cmd/manager.py", line 77, in main
>     services.extend(app_mgr.instantiate_apps(**contexts))
>   File "/opt/stack/ryu/ryu/base/app_manager.py", line 434, in instantiate_apps
>     self._instantiate(app_name, cls, *args, **kwargs)
>   File "/opt/stack/ryu/ryu/base/app_manager.py", line 421, in _instantiate
>     register_app(app)
>   File "/opt/stack/ryu/ryu/base/app_manager.py", line 50, in register_app
>     assert app.name not in SERVICE_BRICKS
> AssertionError
> 
> This patch avoid the double loading of app in context and service.
> 
> Signed-off-by: Yoshihiro Kaneko <[email protected]>
> ---
>  ryu/base/app_manager.py |   11 ++++++++---
>  1 file changed, 8 insertions(+), 3 deletions(-)

Applied, thanks!

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to