[ovs-discuss] is this a bug?

Ashok Chippa a.n.chippa at gmail.com
Fri Dec 26 22:55:55 UTC 2014


Thank you Ansis, appreciate your response. If that's the case, I assume the
openvswitch should be punting to whatever it shows as the controller in the
output of "ovs-ofctl get-controller ...".. right?

How do I capture the packets that the openvswitch datapath is punting? My
epoll event is not getting triggered in my controller.

When I reboot my controller, does the controller have to do anything else
(other than listening on the right tcp port) for the openvswitch to try and
connect to the controller? Or does the openvswitch periodically tries to
connect to the controller (as long as it knows which controller(s) to
connect to)? I would think the latter, but would be good to know from the
horse's mouth :(

I am sure this is documented somewhere, but at the moment I do not have the
luxury to pour through documentation... :(   Sorry for the noise,
appreciate your help.

Thanks,
Ashok


On Fri, Dec 26, 2014 at 2:14 PM, Ansis Atteka <aatteka at vmware.com> wrote:

>      Hello,
>
>  1. I set the controller and check it:
> root at ashok-vb:/home/achippa/firewall# ovs-vsctl get-controller br-int
> 127.0.0.1:8888
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__127.0.0.1-3A8888&d=AwMFaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=AseqGobniu17eZwiefRxV_Xyfy_6IbJC3cK8jL-bARY&m=ATViXTnW2UrPM3LJ4S7etR-a7L7p677l-U5Tm5g7z5M&s=8HbXgkG7qkLu8r8ikv3bp2fNB8h0oSTlzMCF9i9v9g4&e=>
>
>  2. I add a flow with actions set to controller:
> root at ashok-vb:/home/achippa/firewall# ovs-ofctl add-flow br-int
> table=0,priority=0,actions=controller
>
>  3. I dump the flows:
> root at ashok-vb:/home/achippa/firewall# ovs-ofctl dump-flows br-int
> NXST_FLOW reply (xid=0x4):
>  cookie=0x0, duration=8.967s, table=0, n_packets=0, n_bytes=0, idle_age=8,
> priority=0 actions=CONTROLLER:65535
>
>  Even though controller was set to 127.0.0.1:8888
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__127.0.0.1-3A8888&d=AwMFaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=AseqGobniu17eZwiefRxV_Xyfy_6IbJC3cK8jL-bARY&m=ATViXTnW2UrPM3LJ4S7etR-a7L7p677l-U5Tm5g7z5M&s=8HbXgkG7qkLu8r8ikv3bp2fNB8h0oSTlzMCF9i9v9g4&e=>
> why does it still default to 65535?
>
>  What am I missing? Appreciate your help.
>
> [Ansis]: ​65535 is *not TCP port number* but instead *how many bytes of
> the packet you want to be sent to the controller*. Answer to your
> question can be found in "man ovs-ofctl".
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20141226/7291be5a/attachment-0002.html>


More information about the discuss mailing list