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

zeeke / sriov-cni
63%
master: 46%

Build:
Build:
LAST BUILD BRANCH: us/OCPBUGS-86764
DEFAULT BRANCH: master
Repo Added 11 Apr 2022 04:58PM UTC
Token 451UgkNQGAJhCZDphDl3lm0SSMmA8LZkI regen
Build 73 Last
Files 12
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

LAST BUILD ON BRANCH us/OCPBUGS-86764
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • avoid-sleep
  • coverage
  • e2e-operator
  • ocpbugs-19536-us
  • us/OCPBUGS-86764
  • us/integration-tests
  • us/lock-file-integration-test
  • us/ocpbugs-45028
  • us/ocpbugs-45028_bck20250115

11 Aug 2026 03:49PM UTC coverage: 62.872%. First build
31509142621

push

github

zeeke
CmdDel: handle NSPathNotNSErr to prevent VF leak on corrupted netns

When a netns bind mount gets corrupted — e.g. a non-recursive bind mount
of /run/netns strips the nsfs submounts due to shared mount propagation —
statfs() returns TMPFS_MAGIC (0x01021994) instead of NSFS_MAGIC. In this
case ns.GetNS() returns NSPathNotNSErr, but CmdDel only handles
NSPathNotExistErr. The unhandled error causes CmdDel to fail, which makes
CRI-O retry teardown in a loop. The pod stays stuck and the
sriov-device-plugin keeps allocating the same VF to new sandbox attempts
that all fail with "LoadConf(): VF pci addr is required".

Treat NSPathNotNSErr the same as NSPathNotExistErr: the netns is not
usable, so return success and let CRI-O proceed with cleanup. The VF
cannot be moved back via ReleaseVF (the netns is inaccessible), but it
will be recovered by the kernel once all references to the dead netns are released.

Signed-off-by: Andrea Panattoni <apanatto@redhat.com>

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

972 of 1546 relevant lines covered (62.87%)

8.66 hits per line

Relevant lines Covered
Build:
Build:
1546 RELEVANT LINES 972 COVERED LINES
8.66 HITS PER LINE
Source Files on avoid-sleep
  • Tree
  • List 12
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
31509142621 us/OCPBUGS-86764 CmdDel: handle NSPathNotNSErr to prevent VF leak on corrupted netns When a netns bind mount gets corrupted — e.g. a non-recursive bind mount of /run/netns strips the nsfs submounts due to shared mount propagation — statfs() returns TMPFS_MAGIC (0... push 11 Aug 2026 03:51PM UTC zeeke github
62.87
14198707167 us/lock-file-integration-test integration-test: Archive `DEFAULT_CNI_DIR` Signed-off-by: Andrea Panattoni <apanatto@redhat.com> push 01 Apr 2025 02:47PM UTC zeeke github
62.88
14198466109 us/lock-file-integration-test integration-test: Archive `DEFAULT_CNI_DIR` Signed-off-by: Andrea Panattoni <apanatto@redhat.com> push 01 Apr 2025 02:36PM UTC zeeke github
62.88
14197862416 us/lock-file-integration-test integration-test: Archive `DEFAULT_CNI_DIR` Signed-off-by: Andrea Panattoni <apanatto@redhat.com> push 01 Apr 2025 02:11PM UTC zeeke github
62.88
14197663101 us/lock-file-integration-test integration-test: Archive `DEFAULT_CNI_DIR` Signed-off-by: Andrea Panattoni <apanatto@redhat.com> push 01 Apr 2025 02:03PM UTC zeeke github
36.35
14192930929 us/lock-file-integration-test lint: fix `G115: integer overflow conversion int -> uint32` Signed-off-by: Andrea Panattoni <apanatto@redhat.com> push 01 Apr 2025 10:10AM UTC zeeke github
36.37
14176865018 us/lock-file-integration-test Integration test for `pull/316` Add an integration test to verify that if an application edits the MTU of a VF, then the sriov-cni DEL command restore it to the previous value. Signed-off-by: Andrea Panattoni <apanatto@redhat.com> push 31 Mar 2025 04:50PM UTC zeeke github
36.53
14040246134 us/integration-tests integration-test Having a test suite that covers the code from an out-of-process perspective helps in testing specific scenarios, e.g. when the concurrency of multiple program instances occurs. Also, using test doubles instead of real SR-IOV capa... push 24 Mar 2025 04:15PM UTC zeeke github
36.53
13785620606 us/integration-tests integration-test Having a test suite that covers the code from an out-of-process perspective helps in testing specific scenarios, e.g. when the concurrency of multiple program instances occurs. Also, using test doubles instead of real SR-IOV capa... push 11 Mar 2025 10:21AM UTC zeeke github
36.53
13672125679 us/integration-tests integration-test Having a test suite that covers the code from an out-of-process perspective helps in testing specific scenarios, e.g. when the concurrency of multiple program instances occurs. Also, using test doubles instead of real SR-IOV capa... push 05 Mar 2025 08:59AM UTC zeeke github
36.53
See All Builds (67)

Badge your Repo: sriov-cni

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc