[ovn-sync] LSP is not created when metadata port is missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-ovn |
Fix Released
|
Undecided
|
Daniel Alvarez |
Bug Description
When neutron-
Also, current code assumes that the corresponding LSP will be created when syncing ports but that's
not true since db_ports are fetched prior to creating them in sync_metadata_
# Create the missing port in Neutron. Later it will be
# created in OVN when sync_network_
# is called.
The solution to this bug has to be compatible with current sync code being run when neutron-server starts (which matches the functional tests). There, it works correctly.
I'll submit a patch to fix it which will consist of overriding the create_
Changed in networking-ovn: | |
assignee: | nobody → Daniel Alvarez (dalvarezs) |
status: | New → In Progress |
Reviewed: https:/ /review. openstack. org/513059 /git.openstack. org/cgit/ openstack/ networking- ovn/commit/ ?id=27447582562 a10fa889befeb30 42dca147292da5
Committed: https:/
Submitter: Zuul
Branch: master
commit 27447582562a10f a889befeb3042dc a147292da5
Author: Daniel Alvarez <email address hidden>
Date: Wed Oct 18 16:49:10 2017 +0200
Create Metadata port in OVN when found missing in Neutron
When running the neutron- ovn-db- sync-util tool and a Metadata port
is missing in Neutron, the corresponding LSP is not created in OVN.
This is due to the fact that OVN mechanism driver is overriden in the
cmd tool.
This patch fixes it by overriding the create_ port_postcommit so that
it also gets created in OVN.
Closes-bug: 1724591
Change-Id: Iacb5f6eb3cecce 883afae10476422 1d92f8ece04
Signed-off-by: Daniel Alvarez <email address hidden>