Commit 877e85e
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 3aafeef)1 parent 98a3eae commit 877e85e
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 | |
|---|---|---|---|
| |||
1353 | 1353 | | |
1354 | 1354 | | |
1355 | 1355 | | |
1356 | | - | |
| 1356 | + | |
| 1357 | + | |
1357 | 1358 | | |
1358 | 1359 | | |
1359 | 1360 | | |
| |||
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1818 | 1818 | | |
1819 | 1819 | | |
1820 | 1820 | | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
1821 | 1837 | | |
1822 | 1838 | | |
1823 | 1839 | | |
| |||
1858 | 1874 | | |
1859 | 1875 | | |
1860 | 1876 | | |
| 1877 | + | |
1861 | 1878 | | |
1862 | 1879 | | |
1863 | 1880 | | |
| |||
1866 | 1883 | | |
1867 | 1884 | | |
1868 | 1885 | | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
1869 | 1916 | | |
1870 | 1917 | | |
1871 | 1918 | | |
| |||
1878 | 1925 | | |
1879 | 1926 | | |
1880 | 1927 | | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
1881 | 1931 | | |
1882 | 1932 | | |
1883 | 1933 | | |
| |||
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