Hi, I tried to use OVN with Openstack, but I ran into an Issue.
I use the OVN packages from the Canonical Cloud archive: On the controller node: ii ovn-central 2.6.0-0ubuntu2~cloud0 amd64 OVN central components ii ovn-common 2.6.0-0ubuntu2~cloud0 amd64 OVN common components ii ovn-host 2.6.0-0ubuntu2~cloud0 amd64 OVN host components ii python-networking-ovn 1.0.1.dev4.201610261100.xenial-0ubuntu1 all OpenStack virtual network service - OVN driver On the compute node: ii ovn-common 2.6.0-0ubuntu2~cloud0 amd64 OVN common components ii ovn-host 2.6.0-0ubuntu2~cloud0 amd64 OVN host components If I create a network in Openstack I can see it in the norhd. ovn-nbctl show switch 5cd02e8c-aa16-4246-932e-c1455958daa6 (neutron-83a25bd6-494b-4d9d-ba74-e824a8efb826) And I can see my compute nodes ovn-sbctl show Chassis "4a191104-a3b6-4bde-82ee-1a09ea1b9f17" hostname: "compute03" Encap vxlan ip: "172.16.44.130" options: {csum="true"} Encap geneve ip: "172.16.44.130" options: {csum="true"} Chassis "b0623e67-a2cf-4802-9343-807383e3eb94" hostname: "compute01" Encap geneve ip: "172.16.44.17" options: {csum="true"} Encap vxlan ip: "172.16.44.17" options: {csum="true“} But if I try to start a VM I get an error in the neutron-server log, could you please advise me where my mistake is? Best regards, martin log: 2017-01-21 15:33:42.239 10877 ERROR neutron.agent.ovsdb.impl_idl [req-fee0a2c8-b205-4e1e-8756-026880fe84cd 44ea98f941ce412d999b3c3dd7fe1dad afc5c0f383314e74bdd6bf1e3afbf509 - - -] Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/native/connection.py", line 115, in run txn.results.put(txn.do_commit()) File "/usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/impl_idl.py", line 105, in do_commit ctx.reraise = False File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ self.force_reraise() File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise six.reraise(self.type_, self.value, self.tb) File "/usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/impl_idl.py", line 100, in do_commit command.run_idl(txn) File "/usr/lib/python2.7/dist-packages/networking_ovn/ovsdb/commands.py", line 712, in run_idl raise RuntimeError(msg) RuntimeError: Address set as_ip4_c67f0b5b_ce6f_4a82_aa48_803f00b15300 does not exist. Can't update addresses 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers [req-fee0a2c8-b205-4e1e-8756-026880fe84cd 44ea98f941ce412d999b3c3dd7fe1dad afc5c0f383314e74bdd6bf1e3afbf509 - - -] Mechanism driver 'ovn' failed in create_port_postcommit 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers Traceback (most recent call last): 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 433, in _call_on_drivers 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers getattr(driver.obj, method_name)(context) 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers File "/usr/lib/python2.7/dist-packages/networking_ovn/ml2/mech_driver.py", line 556, in create_port_postcommit 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers self.create_port_in_ovn(port, ovn_port_info) 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers File "/usr/lib/python2.7/dist-packages/networking_ovn/ml2/mech_driver.py", line 657, in create_port_in_ovn 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers if_exists=False)) 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers File "/usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/api.py", line 76, in __exit__ 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers self.result = self.commit() 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers File "/usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/impl_idl.py", line 77, in commit 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers raise result.ex 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers RuntimeError: Address set as_ip4_c67f0b5b_ce6f_4a82_aa48_803f00b15300 does not exist. Can't update addresses 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers 2017-01-21 15:33:42.241 10877 ERROR neutron.plugins.ml2.plugin [req-fee0a2c8-b205-4e1e-8756-026880fe84cd 44ea98f941ce412d999b3c3dd7fe1dad afc5c0f383314e74bdd6bf1e3afbf509 - - -] mechanism_manager.create_port_postcommit failed, deleting port 'e7bacb43-499b-431e-895f-2dadc9edc70b' 2017-01-21 15:33:42.241 10877 DEBUG neutron.plugins.ml2.plugin [req-fee0a2c8-b205-4e1e-8756-026880fe84cd 44ea98f941ce412d999b3c3dd7fe1dad afc5c0f383314e74bdd6bf1e3afbf509 - - -] Deleting port e7bacb43-499b-431e-895f-2dadc9edc70b _pre_delete_port /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py:1568 2017-01-21 15:33:42.241 10877 DEBUG neutron.callbacks.manager [req-fee0a2c8-b205-4e1e-8756-026880fe84cd 44ea98f941ce412d999b3c3dd7fe1dad afc5c0f383314e74bdd6bf1e3afbf509 - - -] Notify callbacks [('neutron.db.l3_db._prevent_l3_port_delete_callback--9223363294117760621', <function _prevent_l3_port_delete_callback at 0x7f393bbf1938>)] for port, before_delete _notify_loop /usr/lib/python2.7/dist-packages/neutron/callbacks/manager.py:142 2017-01-21 15:33:42.307 10877 DEBUG neutron.plugins.ml2.plugin [req-fee0a2c8-b205-4e1e-8756-026880fe84cd 44ea98f941ce412d999b3c3dd7fe1dad afc5c0f383314e74bdd6bf1e3afbf509 - - -] Calling delete_port for e7bacb43-499b-431e-895f-2dadc9edc70b owned by delete_port /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py:1627 2017-01-21 15:33:42.312 10878 DEBUG neutron.wsgi [-] (10878) accepted ('192.168.101.14', 42334) server /usr/lib/python2.7/dist-packages/eventlet/wsgi.py:867 2017-01-21 15:33:42.334 10877 DEBUG neutron.ipam.driver [req-fee0a2c8-b205-4e1e-8756-026880fe84cd 44ea98f941ce412d999b3c3dd7fe1dad afc5c0f383314e74bdd6bf1e3afbf509 - - -] Loading ipam driver: internal get_instance /usr/lib/python2.7/dist-packages/neutron/ipam/driver.py:51 2017-01-21 15:33:42.399 10877 DEBUG neutron.callbacks.manager [req-fee0a2c8-b205-4e1e-8756-026880fe84cd 44ea98f941ce412d999b3c3dd7fe1dad afc5c0f383314e74bdd6bf1e3afbf509 - - -] Notify callbacks [('neutron.db.l3_dvrscheduler_db._notify_port_delete-8742736249213', <function _notify_port_delete at 0x7f393b0417d0>), ('neutron.db.l3_db._notify_routers_callback-8742737015195', <function _notify_routers_callback at 0x7f393bbf19b0>), ('neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api.DhcpAgentNotifyAPI._native_event_send_dhcp_notification--9223372036847063562', <bound method DhcpAgentNotifyAPI._native_event_send_dhcp_notification of <neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api.DhcpAgentNotifyAPI object at 0x7f393b822ed0>>)] for port, after_delete _notify_loop /usr/lib/python2.7/dist-packages/neutron/callbacks/manager.py:142 2017-01-21 15:33:42.452 10877 DEBUG oslo_messaging._drivers.amqpdriver [req-fee0a2c8-b205-4e1e-8756-026880fe84cd 44ea98f941ce412d999b3c3dd7fe1dad afc5c0f383314e74bdd6bf1e3afbf509 - - -] CAST unique_id: 60977bc220f74563a7eaae71ccb73458 exchange 'neutron' topic 'dhcp_agent' _send /usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:448 2017-01-21 15:33:42.454 10877 DEBUG neutron.agent.ovsdb.impl_idl [-] Running txn command(idx=0): DelLSwitchPortCommand(lport=e7bacb43-499b-431e-895f-2dadc9edc70b, if_exists=True, lswitch=neutron-83a25bd6-494b-4d9d-ba74-e824a8efb826) do_commit /usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/impl_idl.py:98 2017-01-21 15:33:42.454 10877 DEBUG neutron.agent.ovsdb.impl_idl [-] Running txn command(idx=1): DelACLCommand(lport=e7bacb43-499b-431e-895f-2dadc9edc70b, if_exists=True, lswitch=neutron-83a25bd6-494b-4d9d-ba74-e824a8efb826) do_commit /usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/impl_idl.py:98 2017-01-21 15:33:42.455 10877 DEBUG neutron.agent.ovsdb.impl_idl [-] Running txn command(idx=2): UpdateAddrSetCommand(if_exists=True, name=as_ip4_c67f0b5b_ce6f_4a82_aa48_803f00b15300, addrs_remove=['10.1.0.10'], addrs_add=None) do_commit /usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/impl_idl.py:98 2017-01-21 15:33:42.455 10877 DEBUG neutron.agent.ovsdb.impl_idl [-] Transaction caused no change do_commit /usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/impl_idl.py:125 2017-01-21 15:33:42.456 10877 DEBUG oslo_messaging._drivers.amqpdriver [req-fee0a2c8-b205-4e1e-8756-026880fe84cd 44ea98f941ce412d999b3c3dd7fe1dad afc5c0f383314e74bdd6bf1e3afbf509 - - -] CAST unique_id: dce8a7a52f124e67b6d560161fdadbc5 FANOUT topic 'q-agent-notifier-port-delete' _send /usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:437 2017-01-21 15:33:42.457 10877 DEBUG oslo_messaging._drivers.amqpdriver [req-fee0a2c8-b205-4e1e-8756-026880fe84cd 44ea98f941ce412d999b3c3dd7fe1dad afc5c0f383314e74bdd6bf1e3afbf509 - - -] CAST unique_id: c06beb82484349fcacbde728d78914ac FANOUT topic 'q-agent-notifier-security_group-update' _send /usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:437 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource [req-fee0a2c8-b205-4e1e-8756-026880fe84cd 44ea98f941ce412d999b3c3dd7fe1dad afc5c0f383314e74bdd6bf1e3afbf509 - - -] create failed: No details. 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource Traceback (most recent call last): 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 79, in resource 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource result = method(request=request, **args) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 430, in create 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource return self._create(request, body, **kwargs) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 88, in wrapped 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource setattr(e, '_RETRY_EXCEEDED', True) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource self.force_reraise() 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 84, in wrapped 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource return f(*args, **kwargs) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource self.force_reraise() 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource return f(*args, **kwargs) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 124, in wrapped 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource traceback.format_exc()) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource self.force_reraise() 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 119, in wrapped 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource return f(*dup_args, **dup_kwargs) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 543, in _create 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource obj = do_create(body) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 525, in do_create 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource request.context, reservation.reservation_id) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource self.force_reraise() 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 518, in do_create 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource return obj_creator(request.context, **kwargs) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/common/utils.py", line 756, in inner 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource return f(self, context, *args, **kwargs) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 159, in wrapped 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource return method(*args, **kwargs) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 88, in wrapped 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource setattr(e, '_RETRY_EXCEEDED', True) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource self.force_reraise() 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 84, in wrapped 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource return f(*args, **kwargs) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource self.force_reraise() 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource return f(*args, **kwargs) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 124, in wrapped 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource traceback.format_exc()) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource self.force_reraise() 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 119, in wrapped 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource return f(*dup_args, **dup_kwargs) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 1287, in create_port 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource self.delete_port(context, result['id'], l3_port_check=False) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource self.force_reraise() 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 1282, in create_port 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource self.mechanism_manager.create_port_postcommit(mech_context) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 671, in create_port_postcommit 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource self._call_on_drivers("create_port_postcommit", context) 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 451, in _call_on_drivers 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource errors=errors 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource MechanismDriverError 2017-01-21 15:33:42.468 10877 ERROR neutron.api.v2.resource 2017-01-21 15:33:42.471 10877 INFO neutron.wsgi [req-fee0a2c8-b205-4e1e-8756-026880fe8 _______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss