Hi
Thank you for your reply.
I actually avoided the problem by using some other codes, but I still
donot understand what was going on behind it. I checked the code but
feel stuck at some points. I mean, since send_openflow_command is
commonly used, maybe it is better to specifically document possible
errors.
Do you mean to check the datapath_leave_event between switch and
controller, which possibly contains reasons why the switch leaves? I
am sure the leaving datapath (f7:ca:e4:00:00:64) is a valid datapath.
Why will it leave if we send some commands to any invalid datapathid?
Thanks.

On Mon, Apr 5, 2010 at 4:12 AM, kk yap <[email protected]> wrote:
> Hi Guanyao,,
>
> Did you check for datapath_leave_event and make sure that you do not
> send commands to invalid datapathid?  Seems like that is the problem.
>
> Regards
> KK
>
> On 4 April 2010 21:41, Guanyao Huang <[email protected]> wrote:
>> Hi
>> Sorry to bother others. My program breaks with datapath leaves the
>> network (HP switch). There are some errors returned by the
>> send_openflow_command, which I dont understand. Is there any document
>> on the meaning of the error?
>>
>>
>> 00079|openflow|WARN:stream: send error: Broken pipe
>> 00080|routingMR|ERR:OpenFlowMR::install_flow: flow-mod command to dpid
>> f7cae4000064 : error 32
>> 00081|openflow|WARN:stream: send error: Bad file descriptor
>> 00082|routingMR|ERR:OpenFlowMR::install_flow: flow-mod command to dpid
>> f7cae4000064 : error 9
>> 00083|openflow|WARN:stream: send error: Bad file descriptor
>> not successfully opf command: routingMR::send_stats_request()
>> 00084|openflow|WARN:stream: send error: Bad file descriptor
>> not successfully opf command: routingMR::send_stats_request()
>> 00085|openflow|WARN:stream: send error: Bad file descriptor
>> 00086|routingMR|ERR:OpenFlowMR::install_flow: flow-mod command to dpid
>> f7cae4000064 : error 9
>> 00087|openflow|WARN:stream: send error: Bad file descriptor
>> 00088|routingMR|ERR:OpenFlowMR::install_flow: flow-mod command to dpid
>> f7cae4000064 : error 9
>> 00089|openflow|WARN:stream: send error: Bad file descriptor
>> 00090|routingMR|ERR:OpenFlowMR::install_flow: flow-mod command to dpid
>> f7cae4000064 : error 9
>> 00091|openflow|WARN:stream: receive error: Bad file descriptor
>> 00092|nox|WARN:stream: disconnected (Bad file descriptor)
>> Datapath leave, f7:ca:e4:00:00:64
>>
>>
>> In the output above, what are the meaning of error 9 and 32. The
>> source code is simply as:
>>
>> int ofc_ret = send_openflow_command(curr_dpid, &ofm->header, true);
>>        if(ofc_ret) {
>>            VLOG_ERR(lg, "OpenFlowMR::install_flow: flow-mod command to dpid
>> %s : error %d", curr_dpid.string().c_str(), ofc_ret);
>>        }
>>
>> Many thanks.
>>
>> _______________________________________________
>> nox-dev mailing list
>> [email protected]
>> http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
>>
>

_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to