<div dir="ltr">Oh, sorry, this exception was gone after I set "ovs-vsctl set-controller br-ex tcp:<a href="http://127.0.0.1:6640">127.0.0.1:6640</a> ". <div><br></div><div>Thanks </div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-17 15:07 GMT+08:00 zhi <span dir="ltr"><<a href="mailto:changzhi1990@gmail.com" target="_blank">changzhi1990@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, Brain<div><br></div><div>Thanks for your reply. I try to build a new environment with devstack and the code from the master branch. But I meet some OVS problems. Please let me show them.</div><div><br></div><div>I installed the devstack ( Ubuntu 14.04 and code from master branch ) successfully. But I found that OVS version is 2.0.2. So I remove all the OVS packages. I followed this document[1] to install the OVS which version is 2.6.0. I met an exception when I restart the OVS agent.</div><div><br></div><div>Exception details show that:</div><div><br></div><div><div>2016-11-17 14:57:15.831 WARNING neutron.agent.ovsdb.native.<wbr>vlog [-] tcp:<a href="http://127.0.0.1:6640" target="_blank">127.0.0.1:6640</a>: send error: Connection refused</div><div>2016-11-17 14:57:16.793 INFO oslo_rootwrap.client [-] Spawned new rootwrap daemon process with pid=21465</div><div>2016-11-17 14:57:16.837 WARNING neutron.agent.ovsdb.native.<wbr>vlog [-] tcp:<a href="http://127.0.0.1:6640" target="_blank">127.0.0.1:6640</a>: send error: Connection refused</div><div>2016-11-17 14:57:16.859 WARNING neutron.agent.ovsdb.native.<wbr>vlog [-] tcp:<a href="http://127.0.0.1:6640" target="_blank">127.0.0.1:6640</a>: send error: Connection refused</div><div>2016-11-17 14:57:16.901 WARNING neutron.agent.ovsdb.native.<wbr>vlog [-] tcp:<a href="http://127.0.0.1:6640" target="_blank">127.0.0.1:6640</a>: send error: Connection refused</div><div>2016-11-17 14:57:16.983 WARNING neutron.agent.ovsdb.native.<wbr>vlog [-] tcp:<a href="http://127.0.0.1:6640" target="_blank">127.0.0.1:6640</a>: send error: Connection refused</div><div>2016-11-17 14:57:17.146 WARNING neutron.agent.ovsdb.native.<wbr>vlog [-] tcp:<a href="http://127.0.0.1:6640" target="_blank">127.0.0.1:6640</a>: send error: Connection refused</div><div>2016-11-17 14:57:17.469 WARNING neutron.agent.ovsdb.native.<wbr>vlog [-] tcp:<a href="http://127.0.0.1:6640" target="_blank">127.0.0.1:6640</a>: send error: Connection refused</div><div>2016-11-17 14:57:18.113 WARNING neutron.agent.ovsdb.native.<wbr>vlog [-] tcp:<a href="http://127.0.0.1:6640" target="_blank">127.0.0.1:6640</a>: send error: Connection refused</div><div>2016-11-17 14:57:18.116 ERROR ryu.lib.hub [-] hub: uncaught exception: Traceback (most recent call last):</div><div> File "/usr/local/lib/python2.7/<wbr>dist-packages/ryu/lib/hub.py", line 54, in _launch</div><div> return func(*args, **kwargs)</div><div> File "/opt/stack/neutron/neutron/<wbr>plugins/ml2/drivers/<wbr>openvswitch/agent/openflow/<wbr>native/ovs_ryuapp.py", line 37, in agent_main_wrapper</div><div> ovs_agent.main(bridge_classes)</div><div> File "/opt/stack/neutron/neutron/<wbr>plugins/ml2/drivers/<wbr>openvswitch/agent/ovs_neutron_<wbr>agent.py", line 2172, in main</div><div> agent = OVSNeutronAgent(bridge_<wbr>classes, cfg.CONF)</div><div> File "/opt/stack/neutron/neutron/<wbr>plugins/ml2/drivers/<wbr>openvswitch/agent/ovs_neutron_<wbr>agent.py", line 140, in __init__</div><div> self.ovs = ovs_lib.BaseOVS()</div><div> File "/opt/stack/neutron/neutron/<wbr>agent/common/ovs_lib.py", line 107, in __init__</div><div> self.ovsdb = ovsdb.API.get(self)</div><div> File "/opt/stack/neutron/neutron/<wbr>agent/ovsdb/api.py", line 89, in get</div><div> return iface(context)</div><div> File "/opt/stack/neutron/neutron/<wbr>agent/ovsdb/impl_idl.py", line 291, in __init__</div><div> super(NeutronOvsdbIdl, self).__init__(context)</div><div> File "/opt/stack/neutron/neutron/<wbr>agent/ovsdb/impl_idl.py", line 199, in __init__</div><div> OvsdbIdl.ovsdb_connection.<wbr>start()</div><div> File "/opt/stack/neutron/neutron/<wbr>agent/ovsdb/native/connection.<wbr>py", line 79, in start</div><div> helper = self.get_schema_helper()</div><div> File "/opt/stack/neutron/neutron/<wbr>agent/ovsdb/native/connection.<wbr>py", line 105, in get_schema_helper</div><div> helper = do_get_schema_helper()</div><div> File "/usr/local/lib/python2.7/<wbr>dist-packages/tenacity/__init_<wbr>_.py", line 87, in wrapped_f</div><div> return r.call(f, *args, **kw)</div><div> File "/usr/local/lib/python2.7/<wbr>dist-packages/tenacity/__init_<wbr>_.py", line 188, in call</div><div> raise RetryError(fut).reraise()</div><div> File "/usr/local/lib/python2.7/<wbr>dist-packages/tenacity/__init_<wbr>_.py", line 233, in reraise</div><div> raise self.last_attempt.result()</div><div> File "/usr/local/lib/python2.7/<wbr>dist-packages/concurrent/<wbr>futures/_base.py", line 398, in result</div><div> return self.__get_result()</div><div> File "/usr/local/lib/python2.7/<wbr>dist-packages/tenacity/__init_<wbr>_.py", line 159, in call</div><div> result = fn(*args, **kwargs)</div><div> File "/opt/stack/neutron/neutron/<wbr>agent/ovsdb/native/connection.<wbr>py", line 104, in do_get_schema_helper</div><div> self.schema_name)</div><div> File "/opt/stack/neutron/neutron/<wbr>agent/ovsdb/native/idlutils.<wbr>py", line 112, in get_schema_helper</div><div> 'err': os.strerror(err)})</div><div>Exception: Could not retrieve schema from tcp:<a href="http://127.0.0.1:6640" target="_blank">127.0.0.1:6640</a>: Connection refused</div></div><div><br></div><div>I try to use "ovs-vsctl show" to ensure if the OVS runs okay. The result shows the right info :</div><div><br></div><div><div>root@devstack:~# ovs-vsctl show</div><div>a4416a7b-3899-48bc-926f-<wbr>b02e6554924d</div><div> Manager "ptcp:6640:127.0.0.1"</div><div> Bridge br-tun</div><div> Controller "tcp:<a href="http://127.0.0.1:6633" target="_blank">127.0.0.1:6633</a>"</div><div> is_connected: true</div><div> fail_mode: secure</div><div> Port br-tun</div><div> Interface br-tun</div><div> type: internal</div><div> Port patch-int</div><div> Interface patch-int</div><div> type: patch</div><div> options: {peer=patch-tun}</div></div><div><br></div><div>... ...</div><div><br></div><div>Could you give me some advice to how to resolve the neutron ovs agent exception which I met ? :)</div><div><br></div><div><br></div><div>Thanks</div><div>Zhi Chang</div><div><br></div><div><br></div><div>[1]: <a href="https://github.com/mininet/mininet/wiki/Installing-new-version-of-Open-vSwitch" target="_blank">https://github.com/<wbr>mininet/mininet/wiki/<wbr>Installing-new-version-of-<wbr>Open-vSwitch</a></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-11-15 21:30 GMT+08:00 Brian Haley <span dir="ltr"><<a href="mailto:brian.haley@hpe.com" target="_blank">brian.haley@hpe.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 11/15/16 5:12 AM, zhi wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sorry, I forgot to say my local environment is Liberty. :)<br>
</blockquote>
<br></span>
According to the blueprint and reviews this didn't land until Newton, maybe some in Mitaka, so I wouldn't expect it to work in Liberty.<br>
<br>
-Brian<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>
2016-11-15 18:07 GMT+08:00 zhi <<a href="mailto:changzhi1990@gmail.com" target="_blank">changzhi1990@gmail.com</a><br></span>
<mailto:<a href="mailto:changzhi1990@gmail.com" target="_blank">changzhi1990@gmail.com</a><wbr>>>:<span><br>
<br>
Hi, all<br>
<br>
I followed this guide[1] to create trunk ports and created a vm<br>
by using trunk port. But I met a weird problem. OVS agent didn't<br>
generate " tbr " bridge. All the OVS bridges shows below:<br>
"<br>
[root@server-64 ~]# ovs-vsctl list-br<br>
br-int<br>
br-physnet4<br>
br-tun<br>
"<br>
Why did the OVS agent doesn't create " tbr " bridge ? I think I must<br>
miss something but I don't know.<br>
<br>
I enabled " trunk " in service_plugins configuration in neutron<br>
server. And I did not add anything in OVS agent. Did I miss any<br>
configuration in OVS agent ?<br>
<br>
<br>
Thanks<br>
Zhi Chang<br>
<br>
[1]: <a href="https://wiki.openstack.org/wiki/Neutron/TrunkPort#CLI_usage_example" rel="noreferrer" target="_blank">https://wiki.openstack.org/wik<wbr>i/Neutron/TrunkPort#CLI_usage_<wbr>example</a><br></span>
<<a href="https://wiki.openstack.org/wiki/Neutron/TrunkPort#CLI_usage_example" rel="noreferrer" target="_blank">https://wiki.openstack.org/wi<wbr>ki/Neutron/TrunkPort#CLI_usage<wbr>_example</a>><br>
<br>
<br>
<br>
<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
<br>
</blockquote>
<br>
<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>