On Thu, Jul 7, 2016 at 1:57 AM, 谢磊 <[email protected]> wrote: > when i used ovsdb protocol integrated into ryu, i met a problem like > this: > first, i set manager for ovs like this: ovs-vsctl set-manager > tcp:ip:port > second, i write a very simple app in which a handler function handle > NewOVSDBConnection event > but what makes me send this email to you is that the app dose not > work, according to the ovsdb-server i find the problem, the ovs dose not > react 'get_schema' method from ryu app, i have taken a lot of time to fix > this problem, but failed, so, i beg your help. > ps. i used ovs-vsctl show can find the manager is connected > i'm looking forward to your reply!
In the future please direct this to the ryu-devel mailing list. I have cc'd the list and moved the other recipients to bcc. Please make sure to reply to the list as well. I believe that openvswitch is probably returning an error to the get_schemas request. To troubleshoot, I would add some logging in the loop at https://github.com/osrg/ryu/blob/master/ryu/services/protocols/ovsdb/client.py#L114 to see what the value of error or reply.error is and then figure out why openvswitch is sending the error. If that doesn't have an error, add some log statements before and after every line in the `discover_schemas` function, so you can see what is the last line executed before it hangs. You might also see if turning on debug level on openvswitch's vlog will show anything of note on the vswitch side. Happy Hacking! 7-11 ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
