Commit 37abd72
committed
[OVN] DB sync host/physnet - filter on agent_type
When syncing hostname and physical networks, filter neutron
hosts on agent_type. Only segmenthostmappings for hosts
with agent 'OVN Controller agent' should be cleaned up.
Since change: I935186b6ee95f0cae8dc05869d9742c8fb3353c3 there
is de-duplication of segmenthostmapping updates from agents.
If the OVN DB sync clears/deletes mappings for hosts owned by
other agents/plugins the mappings are never re-created.
Closes-Bug: #2040172
Change-Id: Iaf15e560e1b1ec31618b2ebc6206a938463c1094
Signed-off-by: Harald Jensås <[email protected]>
(cherry picked from commit 71d69cf6277ba553354512209a2bff61c013f8ea)
(cherry picked from commit 4eb234a)1 parent 7d8ea71 commit 37abd72
File tree
4 files changed
+65
-2
lines changed- neutron
- plugins/ml2/drivers/ovn/mech_driver/ovsdb
- tests
- functional/plugins/ml2/drivers/ovn/mech_driver/ovsdb
- unit/plugins/ml2/drivers/ovn/mech_driver/ovsdb
- releasenotes/notes
4 files changed
+65
-2
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1344 | 1344 | | |
1345 | 1345 | | |
1346 | 1346 | | |
1347 | | - | |
| 1347 | + | |
| 1348 | + | |
1348 | 1349 | | |
1349 | 1350 | | |
1350 | 1351 | | |
| |||
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1794 | 1794 | | |
1795 | 1795 | | |
1796 | 1796 | | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
1797 | 1813 | | |
1798 | 1814 | | |
1799 | 1815 | | |
| |||
1834 | 1850 | | |
1835 | 1851 | | |
1836 | 1852 | | |
| 1853 | + | |
1837 | 1854 | | |
1838 | 1855 | | |
1839 | 1856 | | |
| |||
1842 | 1859 | | |
1843 | 1860 | | |
1844 | 1861 | | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
1845 | 1892 | | |
1846 | 1893 | | |
1847 | 1894 | | |
| |||
1854 | 1901 | | |
1855 | 1902 | | |
1856 | 1903 | | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
1857 | 1907 | | |
1858 | 1908 | | |
1859 | 1909 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1169 | 1169 | | |
1170 | 1170 | | |
1171 | 1171 | | |
1172 | | - | |
| 1172 | + | |
1173 | 1173 | | |
| 1174 | + | |
| 1175 | + | |
1174 | 1176 | | |
1175 | 1177 | | |
1176 | 1178 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments