<div dir="ltr">Hi,<div><br></div><div>I would try to test step by step to validate each filter</div><div><br></div><div>G.V().Has('Type', 'container')<br></div><div>G.V().Has('Namespace', 'default')<br></div><div>G.V().Has('Type', 'container', 'Namespace', 'default')<br></div><div>G.V().Has('Type', 'container').Descendants()<br></div><div>G.V().Has('Namespace', 'default').Descendants()<b><br></b></div><div><br></div><div>You can reach out us on IRC freenode #skydive-project</div><div><br></div><div>Thanks,</div><div>Sylvain</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 7, 2018 at 4:35 PM Jorge Luis Tudela Gonzalez de Riancho <<a href="mailto:jtudelag@redhat.com" target="_blank">jtudelag@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Sylvain,</div><div><br></div><div>Thanks for your answer.<br></div><div><br></div><div>Forgot to mention that Im using Skydive version 0.20.0...</div><div><br></div><div>Im trying what you suggested, but using a fixed name instead of a regexp for the Namespace, just to start with sth even more simple.<br></div><div>So, Im trying to get all the containers & descendants of the Namespace default. But it is not working...</div><div><br></div><div><b> G.V().Has('Type', 'container', 'Namespace', 'default').Descendants()</b></div><div><br></div><div>Here are the logs from the analyer Pod, so the query looks legit:</div><div><br></div><div><b>2018-11-07 15:30:59.063809 I | [Request: admin, noderule, read ---> true]<br>2018-11-07 15:31:00.063688 I | [Request: admin, injectpacket, read ---> true]<br>2018-11-07T15:31:01.250Z INFO topology/topology_subscriber_endpoint.go:142 (*TopologySubscriberEndpoint).OnStructMessage skydive-analyzer-1-d489k: Client <a href="http://10.130.0.1:47296" target="_blank">10.130.0.1:47296</a> subscribed with filter G.V().Has('Type', 'container', 'Namespace', 'default').Descendants().SubGraph()<br></b><br></div><div>Any idea?</div><div><br></div><div>Thanks!!<br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 7, 2018 at 3:50 PM Sylvain Afchain <<a href="mailto:safchain@redhat.com" target="_blank">safchain@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>We need to update the documentation :)</div><div><br></div><div>For your use case I think it could be something like this:</div><div><br></div><div>G.V().Has('Type', 'container', 'Namespace', Regex('.*my-namespace.*')).Descendants()<br></div><div><br></div><div>The "Descendants" step will retrieve everything belonging to what you selected before.</div><div><br></div><div>There are few other gremlin things that have been introduced and that need to be added to the documentation.</div><div><br></div><div>i hope this will help</div><div>Sylvain<br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 7, 2018 at 3:11 PM Jorge Luis Tudela Gonzalez de Riancho <<a href="mailto:jtudelag@redhat.com" target="_blank">jtudelag@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi guys,<div><br></div><div>Although I have used skydive before, Im having some troubles with queries.</div><div>I have been checking the docs [1], but still, no luck.</div><div><br></div><div>I would like to filter a few OpenShift Namespaces, using a regexp for the Namespace name.</div><div>Let's say the regexp is "my-namespace-*"</div><div><br></div><div>So, I would like to show all the elements belonging to the namespaces. I guess maybe only containers could be shown, as containersmight be the only ones with related OpenShift Namespace metadata...</div><div><br></div><div>Sth like:<br></div><div><div><br></div><div>G.V().Has('Name', '**', 'Type', 'container','Filter', 'Namespace', '*my-namespace*' ).Out()</div></div><div><br></div><div>* So, would this be possible?</div><div><br></div><div>Thanks!!</div><div><br></div><div>PS: I can not subscribe to <a href="mailto:skydive-dev@redhat.com" target="_blank">skydive-dev@redhat.com</a> in<a href="https://post-office.corp.redhat.com/mailman/listinfo" target="_blank"> https://post-office.corp.redhat.com/mailman/listinfo</a>, I can not find the list there...<br clear="all"><div><br></div><div>[1] <a href="http://skydive.network/documentation/api-gremlin" target="_blank">http://skydive.network/documentation/api-gremlin</a></div><div><br></div>-- <br><div dir="ltr" class="m_7237408602877328373m_1260764584252451055m_3713936518974490655m_5945429701474031829gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span style="font-family:verdana,sans-serif;font-size:12.8px">Jorge Tudela</span><br></div><div style="font-size:12.8px"><font face="verdana, sans-serif">Infrastructure Consultant - Red Hat Iberia</font></div><div style="font-size:12.8px"><font face="verdana, sans-serif"><br></font></div><div style="font-size:12.8px"><font face="verdana, sans-serif">Cell: +34 626 860 421</font></div><div style="font-size:12.8px"><font face="verdana, sans-serif">Email: <a href="mailto:jtudelag@redhat.com" style="color:rgb(17,85,204)" target="_blank">jtudelag@redhat.com</a></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
Skydive-dev mailing list<br>
<a href="mailto:Skydive-dev@redhat.com" target="_blank">Skydive-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/skydive-dev" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/skydive-dev</a><br>
</blockquote></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="m_7237408602877328373m_1260764584252451055gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span style="font-family:verdana,sans-serif;font-size:12.8px">Jorge Tudela</span><br></div><div style="font-size:12.8px"><font face="verdana, sans-serif">Infrastructure Consultant - Red Hat Iberia</font></div><div style="font-size:12.8px"><font face="verdana, sans-serif"><br></font></div><div style="font-size:12.8px"><font face="verdana, sans-serif">Cell: +34 626 860 421</font></div><div style="font-size:12.8px"><font face="verdana, sans-serif">Email: <a href="mailto:jtudelag@redhat.com" style="color:rgb(17,85,204)" target="_blank">jtudelag@redhat.com</a></font></div></div></div></div></div></div></div></div></div>
</blockquote></div>