<div dir="ltr">Hello,<div><br></div><div>New to the list. My company is building an (awesome) industrial security networking platform and OVS is a big part of the solution, so thank you all for your work.</div><div><br></div><div>I&#39;d like to use ovs-dpctl-top as part of our testing suite, but it is crashing on launch. I built it and mininet from scratch/TOT to be sure it wasn&#39;t an old bug. I have two suggestions for the build scripts, and the error I&#39;m seeing with -top.</div><div><br></div><div><ul><li>Should make install create /usr/local/var/run/openvswitch by default? Right now this is a needless manual step.</li><li>Can ovsdb-server create a symlink to db.sock to avoid requiring  &quot;--remote=punix:/usr/local/var/run/openvswitch/db.sock&quot; in what seems to be the default invocation? All of the related tools seem to want to use db.sock rather than the instantiation-specific socket.</li></ul><div>Sorry if I misunderstood the operation of either of the above - this is just based on my experience today building it for the first time.</div><div><br></div><div>-top dies with the following stack trace the moment mininet instantiates:</div><div><br></div><div>







<p class="gmail-p1"><span class="gmail-s1">Traceback (most recent call last):</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">  </span>File &quot;/usr/local/bin/ovs-dpctl-top&quot;, line 1290, in &lt;module&gt;</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">    </span>sys.exit(main())</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">  </span>File &quot;/usr/local/bin/ovs-dpctl-top&quot;, line 1282, in main</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">    </span>flows_top(args)</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">  </span>File &quot;/usr/local/bin/ovs-dpctl-top&quot;, line 1191, in flows_top</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">    </span>flows_read(ihdl, flow_db)</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">  </span>File &quot;/usr/local/bin/ovs-dpctl-top&quot;, line 593, in flows_read</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">    </span>flow_db.flow_line_add(line)</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">  </span>File &quot;/usr/local/bin/ovs-dpctl-top&quot;, line 988, in flow_line_add</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">    </span>self.flow_event(fields_dict, stats_old_dict, stats_dict)</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">  </span>File &quot;/usr/local/bin/ovs-dpctl-top&quot;, line 1080, in flow_event</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">    </span>matches = flow_aggregate(fields_dict, stats_new_dict)</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">  </span>File &quot;/usr/local/bin/ovs-dpctl-top&quot;, line 576, in flow_aggregate</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">    </span>field, stats_dict)</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">  </span>File &quot;/usr/local/bin/ovs-dpctl-top&quot;, line 268, in element_ipv6_get</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">    </span>element_show = fmt % (field_type, element[&quot;src&quot;], element[&quot;dst&quot;])</span></p>
<p class="gmail-p1"><span class="gmail-s1">KeyError: &#39;src&#39;</span></p></div><div><br></div><div>If this is not a known error I can spend some time debugging it. </div><div><br></div><div>Steps: git ovs, git mininet, build both with defaults, no changes to config, etc. run ovs-dpctl-top, start mininet, crash.</div><div><br></div><div>







<p class="gmail-p1"><span class="gmail-s1">root@FusionOVCS:~/ovs# cat /etc/lsb-release<span class="gmail-Apple-converted-space"> </span></span></p>
<p class="gmail-p1"><span class="gmail-s1">DISTRIB_ID=Ubuntu</span></p>
<p class="gmail-p1"><span class="gmail-s1">DISTRIB_RELEASE=17.04</span></p>
<p class="gmail-p1"><span class="gmail-s1">DISTRIB_CODENAME=zesty</span></p>
<p class="gmail-p1"><span class="gmail-s1">DISTRIB_DESCRIPTION=&quot;Ubuntu 17.04&quot;</span></p><p class="gmail-p1"><span class="gmail-s1"><br></span></p><p class="gmail-p1"><span class="gmail-s1">Thanks!</span></p></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-size:14px;line-height:normal"><font face="arial, helvetica, sans-serif">Blue Lang</font></div><div style="font-size:14px;line-height:normal"><font face="arial, helvetica, sans-serif"><font color="#000000">PM </font><b style="font-size:12pt"><span style="color:rgb(192,80,77)">| </span></b>Veracity </font></div><div style="font-size:14px;line-height:normal"><div style="font-size:12.8px"><p style="margin:0in 0in 0.0001pt"><span style="font-size:14px"><font face="arial, helvetica, sans-serif">3423 Piedmont Rd NE<u></u><u></u></font></span></p></div><div style="font-size:12.8px"><p style="margin:0in 0in 0.0001pt"><span style="font-size:14px"><font face="arial, helvetica, sans-serif">Suite 350<u></u><u></u></font></span></p></div><div style="font-size:12.8px"><p style="margin:0in 0in 0.0001pt"><span style="font-size:14px"><font face="arial, helvetica, sans-serif">Atlanta, GA  30305</font></span></p></div></div><div style="font-size:14px;line-height:normal"><font face="arial, helvetica, sans-serif">Cell:  <a href="tel:+17702651381" target="_blank">(770) 265-1381</a><br></font></div><div style="line-height:normal"><a href="https://www.linkedin.com/in/bluelang/" target="_blank"><font face="arial, helvetica, sans-serif"><span style="font-size:14px">https://www.linkedin.com/in/bluelang/</span><br></font></a></div><div style="font-size:14px;line-height:normal"><a href="mailto:blue@veracity.io" target="_blank"><font face="arial, helvetica, sans-serif">blue@veracity.io</font></a></div><div style="font-size:14px;line-height:normal"><a href="http://www.veracity.io" target="_blank"><font face="arial, helvetica, sans-serif">www.veracity.io</font></a></div><div style="font-family:Calibri,sans-serif;font-size:14px;line-height:normal"><img src="cid:7F6FF7CF-4327-4C3B-BD13-9C258997225D"></div></div></div></div></div></div></div></div></div>
</div></div>