[openstack-dev] [Neutron][networking-ovn]How to enable vxlan as default tenant_network_types use devstack and ovn
Wilence Yao
wilence.yao at gmail.com
Wed Aug 10 02:47:27 UTC 2016
Hi all,
The default tenant_network_types is geneve, after installed following this
document http://docs.openstack.org/developer/networking-ovn/testing.html
```
[ml2]
tenant_network_types = geneve
extension_drivers = port_security
type_drivers = local,flat,vlan,geneve
```
To enable vxlan, I have changed onfig file ml2_conf.ini to this:
```
[ml2]
tenant_network_types = vxlan
extension_drivers = port_security
type_drivers = vxlan,local,flat,vlan,geneve
```
then enable vxlan in compte by this command:
```
ovs-vsctl set open . external-ids:ovn-encap-type=geneve,vxlan
```
After those setup all above, I create a network use neutron command, but
neutron-server failed with "Invalid input for operation: Network type vxlan
is not supported"
```
2016-08-04 13:25:48.243 ERROR neutron.plugins.ml2.managers
[req-9fe72fbc-d6e8-44ae-8e9e-2ba9221dd33c admin
d9933c11512e4dc799490905174278b4] Mechanism driver 'ovn' failed in
create_network_precommit
2016-08-04 13:25:48.243 TRACE neutron.plugins.ml2.managers Traceback (most
recent call last):
2016-08-04 13:25:48.243 TRACE neutron.plugins.ml2.managers File
"/opt/stack/neutron/neutron/plugins/ml2/managers.py", line 408, in
_call_on_drivers
2016-08-04 13:25:48.243 TRACE neutron.plugins.ml2.managers
getattr(driver.obj, method_name)(context)
2016-08-04 13:25:48.243 TRACE neutron.plugins.ml2.managers File
"/opt/stack/networking-ovn/networking_ovn/ml2/mech_driver.py", line 259, in
create_network_precommit
2016-08-04 13:25:48.243 TRACE neutron.plugins.ml2.managers raise
n_exc.InvalidInput(error_message=msg)
2016-08-04 13:25:48.243 TRACE neutron.plugins.ml2.managers InvalidInput:
Invalid input for operation: Network type vxlan is not supported.
2016-08-04 13:25:48.243 TRACE neutron.plugins.ml2.managers
2016-08-04 13:25:48.294 ERROR neutron.api.v2.resource
[req-9fe72fbc-d6e8-44ae-8e9e-2ba9221dd33c admin
d9933c11512e4dc799490905174278b4] create failed: No details.
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource Traceback (most
recent call last):
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource File
"/opt/stack/neutron/neutron/api/v2/resource.py", line 79, in resource
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource result =
method(request=request, **args)
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource File
"/opt/stack/neutron/neutron/api/v2/base.py", line 397, in create
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource return
self._create(request, body, **kwargs)
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource File
"/usr/lib/python2.7/site-packages/oslo_db/api.py", line 151, in wrapper
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource ectxt.value =
e.inner_exc
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource File
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in
__exit__
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource
self.force_reraise()
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource File
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in
force_reraise
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource
six.reraise(self.type_, self.value, self.tb)
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource File
"/usr/lib/python2.7/site-packages/oslo_db/api.py", line 139, in wrapper
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource return f(*args,
**kwargs)
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource File
"/opt/stack/neutron/neutron/api/v2/base.py", line 510, in _create
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource obj =
do_create(body)
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource File
"/opt/stack/neutron/neutron/api/v2/base.py", line 492, in do_create
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource request.context,
reservation.reservation_id)
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource File
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in
__exit__
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource
self.force_reraise()
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource File
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in
force_reraise
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource
six.reraise(self.type_, self.value, self.tb)
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource File
"/opt/stack/neutron/neutron/api/v2/base.py", line 485, in do_create
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource return
obj_creator(request.context, **kwargs)
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource File
"/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 730, in
create_network
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource result,
mech_context = self._create_network_db(context, network)
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource File
"/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 706, in
_create_network_db
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource
self.mechanism_manager.create_network_precommit(mech_context)
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource File
"/opt/stack/neutron/neutron/plugins/ml2/managers.py", line 434, in
create_network_precommit
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource
self._call_on_drivers("create_network_precommit", context)
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource File
"/opt/stack/neutron/neutron/plugins/ml2/managers.py", line 419, in
_call_on_drivers
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource method=method_name
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource MechanismDriverError:
create_network_precommit failed.
2016-08-04 13:25:48.294 TRACE neutron.api.v2.resource
```
The question is how to enable vxlan in ovn with openstack' tenant network?
Wilence Yao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160810/ed5b8716/attachment.html>
More information about the OpenStack-dev
mailing list