<div dir="ltr">Hi,<div><br></div><div>TL;DR: I am wondering if there's any specific action/convention that needs to be defined for groups which are referenced by a watch_group, as to have the liveness check correctly working? FYI: I can't use a liveness check on a dedicated OVS port in this case.</div><div><br></div><div>I have not been able to find much documentation surrounding watch_group, the only doc I've been basing myself on is: <a href="http://www.openvswitch.org/support/dist-docs/ovs-ofctl.8.html">http://www.openvswitch.org/support/dist-docs/ovs-ofctl.8.html</a></div><div><br></div><div>I am working on a POC where the goal of my work is to load balance packets between two nexthops for packets matching a given flow. Essentially, I have this flow which gets hit:</div><div><pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;font-family:Monaco,Menlo,Consolas,"Courier New",monospace"><font color="#000000"> cookie=0x0, duration=12657.001s, table=100, n_packets=1423, n_bytes=113190, priority=100,ip,reg0=0x5d41f9 actions=group:2</font></pre><div>for which I have the following groups defined:</div><div><pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;font-family:Monaco,Menlo,Consolas,"Courier New",monospace"><span style="color:rgb(209,210,211)"> </span><font color="#000000">group_id=3,type=select,bucket=weight:100,actions=ct(commit),move:NXM_NX_REG0[]->NXM_NX_TUN_ID[0..31],set_field:172.19.0.2->tun_dst,output:vxlan0</font></pre><pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;font-family:Monaco,Menlo,Consolas,"Courier New",monospace"><font color="#000000">group_id=2,type=select,bucket=weight:100,watch_group:3,actions=group:3,bucket=weight:100,watch_group:4,actions=group:4<span style="box-sizing:inherit"><br style="box-sizing:inherit"></span> group_id=4,type=select,bucket=weight:100,actions=ct(commit),move:NXM_NX_REG0[]->NXM_NX_TUN_ID[0..31],set_field:172.19.0.4->tun_dst,output:vxlan0</font></pre></div><div>Group 2 thus load balances between group 3 (which forwards packets to nexthop 172.19.0.2) and 4 (corresponding to nexthop 172.19.0.4) in an equal way.  </div><div><br></div><div>The load balancing works, however the watch_group does not seem to have any impact, and what I mean by that is: if I shutdown the nodes corresponding to either of my nexthops, group 2 will still try to send packets to the nexthop (node) which I've just shut down.</div><div><br></div><div>Honestly, I don't expect OVS to be able to determine the liveness of my group based off of what I've written....but I don't have any better idea of what to do. I am unable to tell if there's a specific action / convention that needs to be defined for groups which are referenced by a watch_group. </div><div><br></div><div>Thanks in advance for any help!</div><div>-- <br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;margin:0px;padding:0px;font-size:14px">Best regards,</p><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-weight:bold;margin:0px;padding:0px;font-size:14px"><span><br></span></p><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-weight:bold;margin:0px;padding:0px;font-size:14px"><span>Alexander</span> <span>Constantinescu</span><span style="text-transform:uppercase;color:rgb(170,170,170);margin:0px"></span></p><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:12px;margin:0px"><span>Software Engineer, Openshift SDN</span></p><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;margin:0px 0px 4px;font-size:12px"><a href="https://www.redhat.com/" style="color:rgb(0,136,206);margin:0px" target="_blank">Red Hat<span></span></a></p><div style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:medium;margin-bottom:4px"></div><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;margin:0px;font-size:12px"><span style="margin:0px;padding:0px"><a href="mailto:aconstan@redhat.com" style="color:rgb(0,0,0);margin:0px" target="_blank">aconstan@redhat.com</a>   </span></p><div style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:medium;margin-top:12px"><table border="0"><tbody><tr><td width="100px"><a href="https://www.redhat.com/" target="_blank"><img src="https://static.redhat.com/libs/redhat/brand-assets/2/corp/logo--200.png" width="90" height="auto"></a></td></tr></tbody></table></div></div></div></div></div></div></div></div>