Commit 9c48370
fix: harden provider network cleanup to prevent orphaned bridges and routes (#6448)
When the host NIC disappears before daemon cleanup runs (e.g., Docker
disconnects the node), removeProviderNic() returned early without
cleaning up addresses and routes on the OVS bridge, leaving stale
kernel routes that cause subnet conflicts for subsequent operations.
When ovn-bridge-mappings has no entry for a provider (e.g., bridge
setup failed or daemon restarted), ovsCleanProviderNetwork() returned
early without attempting to clean up any orphaned OVS bridge or
restore renamed NICs, leaving the node network in a polluted state.
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent dc5ad3b commit 9c48370
2 files changed
+45
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
165 | | - | |
| 169 | + | |
| 170 | + | |
166 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
167 | 180 | | |
168 | 181 | | |
169 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1553 | 1553 | | |
1554 | 1554 | | |
1555 | 1555 | | |
1556 | | - | |
1557 | | - | |
1558 | | - | |
| 1556 | + | |
| 1557 | + | |
1559 | 1558 | | |
1560 | | - | |
| 1559 | + | |
1561 | 1560 | | |
| 1561 | + | |
1562 | 1562 | | |
1563 | 1563 | | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
1564 | 1568 | | |
1565 | 1569 | | |
1566 | 1570 | | |
| |||
1591 | 1595 | | |
1592 | 1596 | | |
1593 | 1597 | | |
1594 | | - | |
1595 | | - | |
1596 | | - | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
1597 | 1604 | | |
1598 | | - | |
1599 | 1605 | | |
1600 | 1606 | | |
1601 | | - | |
1602 | | - | |
1603 | | - | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
1604 | 1612 | | |
1605 | 1613 | | |
1606 | 1614 | | |
| |||
1610 | 1618 | | |
1611 | 1619 | | |
1612 | 1620 | | |
1613 | | - | |
1614 | | - | |
1615 | | - | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
1616 | 1632 | | |
1617 | | - | |
1618 | 1633 | | |
1619 | 1634 | | |
1620 | 1635 | | |
| |||
0 commit comments