Yes it is. Actually I fixed this issue by following the thread spawning code:
self.threads.append(hub.spawn(self.xxx))
previously I was doing something like: hub.spawn(self.xxx)
I don’t quite get the difference when there is only one thread, but it somehow
fixed the problem…
> On May 19, 2017,
Hi Yikai,
Hmm... sounds strange...
First, could you confirm "dst" attribute is pointing to "service.py"?
https://github.com/osrg/ryu/blob/master/ryu/topology/event.py#L77
In this case,
class EventDeleteXXRequest(event.EventRequestBase):
def __init__(self, ...):
super(EventDeleteX
you are right, this was the cause. But the second problem still exists, the
output is as follows:
loading app test-xx.py
require_app: service is required by test-xx
loading app xx.service
instantiating app xx.service of Service
instantiating app test-xx.py of testxx
BRICK testxx
BRICK service
C
Hi Yikai,
Could you share the command you invoked?
If "xx/service.py" is specified by handler.register_service(), you don't
need to add it for "ryu-manager" argument, I guess.
In that case, "xx/service.py" should be automatically detected as the
required service.
If specified, "xx/service.py" will
And regarding the first problem, my PYTHONPATH is like this /path/to/myapp
and the service.py is at /path/to/myapp/xx/service.py
in event.py I wrote handler.register_service(‘xx.service’)
in api.py I wrote app_manager.require_app(‘xx.service’, api_style=True)
and the output was like this:
loadi
Hi Iwase,
I did actually enable --verbose and saw that the service was loaded, and I
was able to see the first request processed. The second request however was
lost.
The test app looks something like this:
from xxx import api
def __init__(...):
hub.spawn(_test)
def _test(...):
rep = a
Hi Yikai,
Sorry if I couldn't understand your question well.
On 2017年05月17日 15:20, Yikai Lin wrote:
> The first problem was somehow fixed by removing xxx from that line of code,
> so it goes handler.register_service('service)', which is weird. But the
> second problem was not resolved.
The a
The first problem was somehow fixed by removing xxx from that line of code,
so it goes handler.register_service('service)', which is weird. But the
second problem was not resolved.
On Wed, May 17, 2017 at 2:15 AM Yikai Lin wrote:
> Hi,
>
> I was trying to wrote an "topology" like service app tha
Hi,
I was trying to wrote an "topology" like service app that exposes APIs for
other applications. So I started from mimicing the topology app, and I
created the api.py, event.py and the main file service.py. I have another
test program that basically calls the api and sends several sequential
req