• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubeovn / kube-ovn / 23172458650
23%

Build:
DEFAULT BRANCH: master
Ran 17 Mar 2026 12:28AM UTC
Jobs 1
Files 205
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Mar 2026 12:26AM UTC coverage: 23.391% (-0.006%) from 23.397%
23172458650

push

github

web-flow
fix: restore NIC name during provider network cleanup in exchangeLinkName mode (#6455)

* fix: restore NIC name during provider network cleanup in exchangeLinkName mode

When exchangeLinkName is enabled, ovsInitProviderNetwork renames the
NIC (e.g., eth1 → br-pn-{id}) before creating the OVS bridge. If
bridge creation fails (waitForBridgeInterface timeout), the mapping is
never stored in ovn-bridge-mappings because addOvnMapping is only
reached after successful bridge setup.

During cleanup, ovsCleanProviderNetwork falls back to
ExternalBridgeName(provider) as brName when the mapping is empty. The
existing rename check (br != brName) always evaluates to false since
both values are ExternalBridgeName(provider), leaving the renamed NIC
orphaned. This blocks subsequent provider network tests from using the
NIC and causes cascading failures.

Pass the original NIC name from the ProviderNetwork spec to
ovsCleanProviderNetwork. When the mapping is empty, no OVS bridge is
found, and the fallback name equals ExternalBridgeName, use the
provided NIC name to restore the link via changeProviderNicName. This
is safe because changeProviderNicName is a no-op when the source link
does not exist or is an openvswitch interface.

Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>

* fix: prevent stale OVS netdev cache from blocking exchange-link-name bridge creation

When a ProviderNetwork is being deleted, a requeue from a previous error
could trigger handleAddOrUpdateProviderNetwork to re-init instead of
clean up (DeletionTimestamp was not checked). This re-init briefly adds
the NIC as a "system" type port to OVS, creating a netdev cache entry.
If the NIC device is destroyed (docker disconnect) before OVS processes
the port removal, the stale netdev persists. When the next test creates
an exchange-link-name bridge with the same NIC name, OVS re... (continued)

0 of 21 new or added lines in 2 files covered. (0.0%)

1 existing line in 1 file now uncovered.

12827 of 54838 relevant lines covered (23.39%)

0.27 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
9
0.0
0.0% pkg/daemon/init.go
12
0.0
0.0% pkg/daemon/controller.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% pkg/daemon/controller.go
Jobs
ID Job ID Ran Files Coverage
1 23172458650.1 17 Mar 2026 12:28AM UTC 205
23.39
GitHub Action Run
Source Files on build 23172458650
  • Tree
  • List 205
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a80b1185 on github
  • Prev Build on master (#23171937171)
  • Next Build on master (#23173895938)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc