[ovs-discuss] Monitoring the contents of group table

Ben Pfaff blp at ovn.org
Tue Sep 25 21:07:15 UTC 2018


I sent a fix:
        https://patchwork.ozlabs.org/patch/974742/

If you are able, please test it and let me know whether it works for you.

On Tue, Sep 25, 2018 at 11:37:11AM -0700, Ben Pfaff wrote:
> Thanks, I got a backtrace out of this:
> 
>     #0  0xf6d320d0 in exit () from /lib/i386-linux-gnu/libc.so.6
>     #1  0xf75e96ec in ovs_fatal_valist (err_no=0, 
>         format=0xf7675f88 "%s needs OpenFlow %s or later ('-O OpenFlow%s')", 
>         args=0xffd44298 "Ecg\367u!g\367\324/i\367\030C\324\377\220E<\371\\p", <incomplete sequence \367>) at ../lib/util.c:386
>     #2  0xf75e9708 in ovs_fatal (err_no=0, 
>         format=0xf7675f88 "%s needs OpenFlow %s or later ('-O OpenFlow%s')")
>         at ../lib/util.c:378
>     #3  0xf7594a47 in bad_group_cmd (cmd=<optimized out>)
>         at ../lib/ofp-group.c:2058
>     #4  ofputil_encode_group_mod () at ../lib/ofp-group.c:2076
>     #5  0xf759ad27 in ofputil_encode_requestforward (rf=0xffd44380, 
>         protocol=OFPUTIL_P_OF14_OXM) at ../lib/ofp-monitor.c:799
>     #6  0xf7505eb5 in connmgr_send_requestforward (mgr=0xf9373b00, 
>         source=0xf93eb5a0, rf=0xffd44380) at ../ofproto/connmgr.c:1676
>     #7  0xf74cf095 in ofproto_group_mod_finish (ofproto=ofproto at entry=0xf93a0590, 
>         ogm=ogm at entry=0xffd44458, req=req at entry=0xffd44428)
>         at ../ofproto/ofproto.c:7400
>     #8  0xf74d2872 in handle_group_mod (oh=0xf93ea660, ofconn=0xf93eb5a0)
>         at ../ofproto/ofproto.c:7460
>     #9  handle_openflow__ (msg=0xf93c22f0, ofconn=0xf93eb5a0)
>         at ../ofproto/ofproto.c:8128
>     #10 handle_openflow () at ../ofproto/ofproto.c:8294
>     #11 0xf7505347 in ofconn_run (handle_openflow=<optimized out>, 
>         ofconn=0xf93eb5a0) at ../ofproto/connmgr.c:1446
>     #12 connmgr_run (mgr=0xf9373b00, handle_openflow=0xf74d16c0 <handle_openflow>)
>         at ../ofproto/connmgr.c:365
>     #13 0xf74cb186 in ofproto_run (p=<optimized out>) at ../ofproto/ofproto.c:1827
>     #14 0xf74b73ab in bridge_run__ () at ../vswitchd/bridge.c:2944
>     #15 0xf74bda0e in bridge_run () at ../vswitchd/bridge.c:3002
>     #16 0xf74b2bed in main () at ../vswitchd/ovs-vswitchd.c:125
>     #17 0xf6d1ae81 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
>     #18 0xf74b48e1 in _start ()
> 
> I'll fix it.
> 
> On Mon, Sep 24, 2018 at 09:19:08AM +0200, pierre.cregut at orange.com wrote:
> > Here is an example:
> > 
> >     ovs-ofctl -O Openflow14 monitor --unixctl /tmp/sk br0
> > 
> >     ovs-appctl -t /tmp/sk ofctl/send
> > "051800180000000300000003000000008000000000000002"
> >     ovs-appctl -t /tmp/sk ofctl/send "051c001000000002000a000800000001"
> > 
> >     ovs-ofctl -O Openflow15 add-group br0
> > group_id=2238,type=all,bucket=output:3
> >     ovs-ofctl -O Openflow15 insert-buckets br0
> > group_id=2238,command_bucket_id:last,bucket=bucket_id:2,output:2
> > 
> > The following will work and the actions will correctly appear in the monitor
> > window.
> > 
> >     ovs-ofctl -O Openflow15 monitor --unixctl /tmp/sk br0
> > 
> >     ovs-appctl -t /tmp/sk ofctl/send
> > "061800180000000300000003000000008000000000000002"
> >     ovs-appctl -t /tmp/sk ofctl/send "061c001000000002000a000800000001"
> > 
> > 
> > _________________________________________________________________________________________________________________________
> > 
> > Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
> > pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
> > a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
> > Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
> > 
> > This message and its attachments may contain confidential or privileged information that may be protected by law;
> > they should not be distributed, used or copied without authorisation.
> > If you have received this email in error, please notify the sender and delete this message and its attachments.
> > As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
> > Thank you.
> > 


More information about the discuss mailing list