<div dir="ltr">Hi guys,<div><br></div><div>Thanks for your responses.</div><div><br></div><div>@Sylvain, I understand your approach but normally Nodes are shared between different projects in OCP, so the only way to identify the specific traffic for a Namespace is filtering but the VNID, but correct me if I'm wrong.</div><div><br></div><div>We are now getting the same error on different deployments for the skydive-analyzer image:</div><div><br></div>wsserver.go:194 http (*WSClient).readPump > ERRO 015 Error while reading websocket from : websocket: close 1001<div><br></div><div>Have you guys git an idea what can cause this?</div><div><br></div><div>Thanks,</div><div>Mak<br><div><br></div><div><span style="color:rgb(237,237,237);font-family:menlo,monaco,consolas,monospace;font-size:12px;white-space:pre-wrap;background-color:rgb(34,38,43)"></span> </div><div><div><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 22, 2017 at 8:47 AM, Sylvain Afchain <span dir="ltr"><<a href="mailto:safchain@redhat.com" target="_blank">safchain@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Marcos,<br>
<br>
Beyond the VNI support that Nicolas explained, there is a way to get flows for a given namespace. I guess you started a capture at the ovs bridge, if so you can do the following gremlin request:<br>
<br>
G.V().Has('Name', 'ns1').Out().Flows()<br>
<br>
which has to be read like this: get all the nodes with the name 'ns1' (your namespace), then returns the nodes belonging to this namespace, finally returns the flows for those interfaces.<br>
<br>
Regards,<br>
<br>
Sylvain<br>
<br>
----- Mail original -----<br>
<div class="HOEnZb"><div class="h5">> Hi Marcos,<br>
><br>
><br>
> For the moment it's not possible to filter out the Flows with a specific VNI,<br>
> but a patch [1] is underway to support that by adding a network.ID on each<br>
> UUID where ID is GRE.key or Geneve.ID or VXLAN.VNI and Link.ID for <a href="http://VLAN.ID" rel="noreferrer" target="_blank">VLAN.ID</a><br>
><br>
> So it would be possible to filter out all flows with a kind of query like<br>
> that :<br>
> G.V().Flows().Has(parentUUID, Within( G.V().Flows().Has(application, 'VXLAN',<br>
> network.ID,<target_VNI>).<wbr>Dedup() ))<br>
><br>
> But keep it mind it's better practice to start only capture interfaces of a<br>
> specific namespace, for example :<br>
> G.V().Has('Type', 'netns', 'Name', 'vm1').Out().Has('State', 'UP')<br>
><br>
><br>
> Regards,<br>
><br>
> Nicolas<br>
><br>
> [1] <a href="https://softwarefactory-project.io/r/#/c/6206/" rel="noreferrer" target="_blank">https://softwarefactory-<wbr>project.io/r/#/c/6206/</a><br>
><br>
><br>
> On Wed, Feb 22, 2017 at 3:22 AM, Marcos Entenza Garcia < <a href="mailto:mak@redhat.com">mak@redhat.com</a> ><br>
> wrote:<br>
><br>
><br>
><br>
> All,<br>
><br>
> I've got a Skydive deployment in an OCP ovs-multitenat Cluster and I was<br>
> wondering if there is any method I could use to filter the traffic for just<br>
> one of the namespaces as all of them has different VNID. The flow schema<br>
> doesn't seem to support that and can't find that filter to be added to a<br>
> Gremlin query.<br>
><br>
> Any ideas?<br>
><br>
> Thanks,<br>
> Mak<br>
><br>
> ______________________________<wbr>_________________<br>
> Skydive-dev mailing list<br>
> <a href="mailto:Skydive-dev@redhat.com">Skydive-dev@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/skydive-dev" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/skydive-dev</a><br>
><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> Skydive-dev mailing list<br>
> <a href="mailto:Skydive-dev@redhat.com">Skydive-dev@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/skydive-dev" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/skydive-dev</a><br>
><br>
</div></div></blockquote></div><br></div>