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

kubeovn / kube-ovn / 27194249053
25%
master: 27%

Build:
Build:
LAST BUILD BRANCH: fix/ovn-fip-delete-idempotent
DEFAULT BRANCH: master
Ran 09 Jun 2026 08:39AM UTC
Jobs 1
Files 207
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

09 Jun 2026 08:36AM UTC coverage: 25.17% (+0.08%) from 25.088%
27194249053

push

github

oilbeater
fix(controller): skip orphaned subnet instead of breaking namespace subnet loop (#6836)

* fix(controller): skip orphaned subnet instead of breaking namespace subnet loop

In handleAddNamespace, when a subnet references a non-existent VPC the
code logged "ignoring subnet" but executed `break`, which terminated the
entire `for _, s := range subnets` loop rather than skipping just the
broken subnet. Since the lister iteration order is non-deterministic, any
valid subnet returned after an orphaned one was never evaluated for
namespace binding, leaving the namespace with incomplete or wrong
logical-switch/cidr/exclude-ips annotations. New pods in that namespace
could then land on the wrong subnet (or fall back to the default subnet),
breaking network isolation.

Replace `break` with `continue` so only the broken subnet is skipped and
the loop keeps evaluating the remaining subnets, matching the intent of
the surrounding "we just ignore it" comment.

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

* test(controller): cover orphaned-subnet handling in handleAddNamespace

Add a regression test asserting that a subnet referencing a non-existent
VPC does not abort evaluation of the remaining subnets, so a valid subnet
returned by the lister after the orphaned one is still bound to the
namespace regardless of the (random) lister iteration order.

Wire ippoolLister and nsKeyMutex into the fake controller harness so the
namespace handler can run under test.

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

---------

Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
(cherry picked from commit 9194883e1)

3 of 3 new or added lines in 1 file covered. (100.0%)

14281 of 56738 relevant lines covered (25.17%)

0.29 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27194249053.1 09 Jun 2026 08:39AM UTC 207
25.17
GitHub Action Run
Source Files on build 27194249053
  • Tree
  • List 207
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ae328ebb on github
  • Prev Build on release-1.16 (#27182127918)
  • Next Build on release-1.16 (#27194596192)
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