[openstack-dev] [neutron][trunk-port] OVS tbr bridge wasn't be created by OVS agent

zhi changzhi1990 at gmail.com
Thu Nov 17 07:56:18 UTC 2016


Oh, sorry, this exception was gone after I set  "ovs-vsctl set-controller
br-ex tcp:127.0.0.1:6640 ".

Thanks

2016-11-17 15:07 GMT+08:00 zhi <changzhi1990 at gmail.com>:

> Hi, Brain
>
> 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.
>
> 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.
>
> Exception details show that:
>
> 2016-11-17 14:57:15.831 WARNING neutron.agent.ovsdb.native.vlog [-] tcp:
> 127.0.0.1:6640: send error: Connection refused
> 2016-11-17 14:57:16.793 INFO oslo_rootwrap.client [-] Spawned new rootwrap
> daemon process with pid=21465
> 2016-11-17 14:57:16.837 WARNING neutron.agent.ovsdb.native.vlog [-] tcp:
> 127.0.0.1:6640: send error: Connection refused
> 2016-11-17 14:57:16.859 WARNING neutron.agent.ovsdb.native.vlog [-] tcp:
> 127.0.0.1:6640: send error: Connection refused
> 2016-11-17 14:57:16.901 WARNING neutron.agent.ovsdb.native.vlog [-] tcp:
> 127.0.0.1:6640: send error: Connection refused
> 2016-11-17 14:57:16.983 WARNING neutron.agent.ovsdb.native.vlog [-] tcp:
> 127.0.0.1:6640: send error: Connection refused
> 2016-11-17 14:57:17.146 WARNING neutron.agent.ovsdb.native.vlog [-] tcp:
> 127.0.0.1:6640: send error: Connection refused
> 2016-11-17 14:57:17.469 WARNING neutron.agent.ovsdb.native.vlog [-] tcp:
> 127.0.0.1:6640: send error: Connection refused
> 2016-11-17 14:57:18.113 WARNING neutron.agent.ovsdb.native.vlog [-] tcp:
> 127.0.0.1:6640: send error: Connection refused
> 2016-11-17 14:57:18.116 ERROR ryu.lib.hub [-] hub: uncaught exception:
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 54,
> in _launch
>     return func(*args, **kwargs)
>   File "/opt/stack/neutron/neutron/plugins/ml2/drivers/
> openvswitch/agent/openflow/native/ovs_ryuapp.py", line 37, in
> agent_main_wrapper
>     ovs_agent.main(bridge_classes)
>   File "/opt/stack/neutron/neutron/plugins/ml2/drivers/
> openvswitch/agent/ovs_neutron_agent.py", line 2172, in main
>     agent = OVSNeutronAgent(bridge_classes, cfg.CONF)
>   File "/opt/stack/neutron/neutron/plugins/ml2/drivers/
> openvswitch/agent/ovs_neutron_agent.py", line 140, in __init__
>     self.ovs = ovs_lib.BaseOVS()
>   File "/opt/stack/neutron/neutron/agent/common/ovs_lib.py", line 107, in
> __init__
>     self.ovsdb = ovsdb.API.get(self)
>   File "/opt/stack/neutron/neutron/agent/ovsdb/api.py", line 89, in get
>     return iface(context)
>   File "/opt/stack/neutron/neutron/agent/ovsdb/impl_idl.py", line 291, in
> __init__
>     super(NeutronOvsdbIdl, self).__init__(context)
>   File "/opt/stack/neutron/neutron/agent/ovsdb/impl_idl.py", line 199, in
> __init__
>     OvsdbIdl.ovsdb_connection.start()
>   File "/opt/stack/neutron/neutron/agent/ovsdb/native/connection.py",
> line 79, in start
>     helper = self.get_schema_helper()
>   File "/opt/stack/neutron/neutron/agent/ovsdb/native/connection.py",
> line 105, in get_schema_helper
>     helper = do_get_schema_helper()
>   File "/usr/local/lib/python2.7/dist-packages/tenacity/__init__.py",
> line 87, in wrapped_f
>     return r.call(f, *args, **kw)
>   File "/usr/local/lib/python2.7/dist-packages/tenacity/__init__.py",
> line 188, in call
>     raise RetryError(fut).reraise()
>   File "/usr/local/lib/python2.7/dist-packages/tenacity/__init__.py",
> line 233, in reraise
>     raise self.last_attempt.result()
>   File "/usr/local/lib/python2.7/dist-packages/concurrent/futures/_base.py",
> line 398, in result
>     return self.__get_result()
>   File "/usr/local/lib/python2.7/dist-packages/tenacity/__init__.py",
> line 159, in call
>     result = fn(*args, **kwargs)
>   File "/opt/stack/neutron/neutron/agent/ovsdb/native/connection.py",
> line 104, in do_get_schema_helper
>     self.schema_name)
>   File "/opt/stack/neutron/neutron/agent/ovsdb/native/idlutils.py", line
> 112, in get_schema_helper
>     'err': os.strerror(err)})
> Exception: Could not retrieve schema from tcp:127.0.0.1:6640: Connection
> refused
>
> I try to use "ovs-vsctl show" to ensure if the OVS runs okay. The result
> shows the right info :
>
> root at devstack:~# ovs-vsctl show
> a4416a7b-3899-48bc-926f-b02e6554924d
>     Manager "ptcp:6640:127.0.0.1"
>     Bridge br-tun
>         Controller "tcp:127.0.0.1:6633"
>             is_connected: true
>         fail_mode: secure
>         Port br-tun
>             Interface br-tun
>                 type: internal
>         Port patch-int
>             Interface patch-int
>                 type: patch
>                 options: {peer=patch-tun}
>
> ... ...
>
> Could you give me some advice to how to resolve the neutron ovs agent
> exception which I met ? :)
>
>
> Thanks
> Zhi Chang
>
>
> [1]: https://github.com/mininet/mininet/wiki/Installing-new-version-of-
> Open-vSwitch
>
> 2016-11-15 21:30 GMT+08:00 Brian Haley <brian.haley at hpe.com>:
>
>> On 11/15/16 5:12 AM, zhi wrote:
>>
>>> Sorry, I forgot to say my local environment is Liberty. :)
>>>
>>
>> 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.
>>
>> -Brian
>>
>>
>> 2016-11-15 18:07 GMT+08:00 zhi <changzhi1990 at gmail.com
>>> <mailto:changzhi1990 at gmail.com>>:
>>>
>>>     Hi, all
>>>
>>>         I followed this guide[1] to create trunk ports and created a vm
>>>     by using trunk port. But I met a weird problem. OVS agent didn't
>>>     generate " tbr " bridge. All the OVS bridges shows below:
>>>     "
>>>         [root at server-64 ~]# ovs-vsctl list-br
>>>         br-int
>>>         br-physnet4
>>>         br-tun
>>>     "
>>>     Why did the OVS agent doesn't create " tbr " bridge ? I think I must
>>>     miss something but I don't know.
>>>
>>>         I enabled " trunk " in service_plugins configuration in neutron
>>>     server. And I did not add anything in OVS agent. Did I miss any
>>>     configuration in OVS agent ?
>>>
>>>
>>>     Thanks
>>>     Zhi Chang
>>>
>>>     [1]: https://wiki.openstack.org/wiki/Neutron/TrunkPort#CLI_usage_
>>> example
>>>     <https://wiki.openstack.org/wiki/Neutron/TrunkPort#CLI_usage_example
>>> >
>>>
>>>
>>>
>>>
>>> ____________________________________________________________
>>> ______________
>>> OpenStack Development Mailing List (not for usage questions)
>>> Unsubscribe: OpenStack-dev-request at lists.op
>>> enstack.org?subject:unsubscribe
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>
>>>
>>
>> ____________________________________________________________
>> ______________
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscrib
>> e
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20161117/aa5a8db6/attachment.html>


More information about the OpenStack-dev mailing list