Skip to content

fix(unikontainers): warn on vAccel misconfiguration#699

Open
Chennamma-Hotkar wants to merge 3 commits into
urunc-dev:mainfrom
Chennamma-Hotkar:fix/issue-vaccel-silent-error
Open

fix(unikontainers): warn on vAccel misconfiguration#699
Chennamma-Hotkar wants to merge 3 commits into
urunc-dev:mainfrom
Chennamma-Hotkar:fix/issue-vaccel-silent-error

Conversation

@Chennamma-Hotkar
Copy link
Copy Markdown

@Chennamma-Hotkar Chennamma-Hotkar commented May 18, 2026

Description

When calling resolveVAccelConfig() in pkg/unikontainers/unikontainers.go, we only print the error at DEBUG level. The function returns the same error type in 2 different cases:
1) when vAccel is disabled and
2) when a bad configuration is detected (i.e. missing or bad RPCAddress).
Therefore the error is always ignored and the container launched in with no vAccel but with no warning of the situation.

The fix adds a sentinel error ErrVAccelDisabled to treat the two cases differently. When vAccel is not configured, we expect an error and log it at Debug. When there is a genuine misconfiguration, we Warn so operators can see the
issue without having to enable debug log level. Added unit tests for all four paths in resolveVAccelConfig.

Files changed:

  • pkg/unikontainers/vaccel.go — added ErrVAccelDisabled sentinel error
  • pkg/unikontainers/unikontainers.go — log Warn on misconfiguration
  • pkg/unikontainers/vaccel_test.go — 4 new unit tests

Related issues

How was this tested?

All existing unit tests pass (make unittest). Build passes (make). Four new unit tests added covering disabled, missing address, malformed address and valid address cases.

LLM usage

N/A

Checklist

  • I have read the contribution guide.
  • The linter passes locally (make lint).
  • The e2e tests of at least one tool pass locally (make test_ctr, make test_nerdctl, make test_docker, make test_crictl).
  • If LLMs were used: I have read the llm policy.

Introduce ErrVAccelDisabled to distinguish missing vAccel config
from actual misconfiguration. Log Warn instead of Debug on error.

Fixes: urunc-dev#698
Signed-off-by: Chennamma-Hotkar <channuhotkar@gmail.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 18, 2026

Deploy Preview for urunc canceled.

Name Link
🔨 Latest commit a1a0bb5
🔍 Latest deploy log https://app.netlify.com/projects/urunc/deploys/6a0b3ac4789ec20008682771

@netlify
Copy link
Copy Markdown

netlify Bot commented May 18, 2026

Deploy Preview for urunc canceled.

Name Link
🔨 Latest commit 953b7a2
🔍 Latest deploy log https://app.netlify.com/projects/urunc/deploys/6a10960b2b30a50008baf14c

@cmainas
Copy link
Copy Markdown
Contributor

cmainas commented May 19, 2026

Hello @Chennamma-Hotkar , please read the contribution guide

@cmainas cmainas added do-not-merge invalid This doesn't seem right and removed invalid This doesn't seem right labels May 19, 2026
@Chennamma-Hotkar
Copy link
Copy Markdown
Author

Hi @cmainas, I added the contribution guide template to the PR description including the following things. A description of the files changed, how it was tested, LLM disclosure and a checklist. Please let me know if there are any other things that need to be fixed.

@cmainas
Copy link
Copy Markdown
Contributor

cmainas commented May 20, 2026

Hello @Chennamma-Hotkar , you will also need to add yourself on https://github.com/urunc-dev/urunc/blob/main/.github/contributors.yaml

@Chennamma-Hotkar
Copy link
Copy Markdown
Author

Chennamma-Hotkar commented May 20, 2026

Hi @cmainas, I have included my name in .github/contributors.yaml.

@Chennamma-Hotkar Chennamma-Hotkar force-pushed the fix/issue-vaccel-silent-error branch 2 times, most recently from 82faa31 to bd5f83b Compare May 20, 2026 13:59
Signed-off-by: Chennamma-Hotkar <channuhotkar@gmail.com>
@Chennamma-Hotkar Chennamma-Hotkar force-pushed the fix/issue-vaccel-silent-error branch from bd5f83b to 1e044a8 Compare May 20, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: vAccel misconfiguration errors silently swallowed in Exec()

2 participants