Skip to content

MTV-3613 | fix transient ConnectionTestFailed error#4496

Merged
mnecas merged 3 commits intokubev2v:mainfrom
jonner:mtv-3613
Feb 13, 2026
Merged

MTV-3613 | fix transient ConnectionTestFailed error#4496
mnecas merged 3 commits intokubev2v:mainfrom
jonner:mtv-3613

Conversation

@jonner
Copy link
Contributor

@jonner jonner commented Jan 28, 2026

There was a previous attempt to fix this bug in commit 2aafff4, but it wasn't a complete fix. This patch series should fully fix the issue. The first commit is the most important:

  • Don't indicate a transient connection error when creating an ova provider

The other two minor commits fix some small related corner cases or race conditions:

  • Move endStagingConditions to defer func
  • Add a Readiness probe to the ova-provider-server image

…ider

When an ova provider is created, we need to wait for the
ova-server-provider pods to come up and be able to respond to requests.
Currently, what is happening is that we're attempting to test the
connection immediately and returning a ConnectionTestFailed condition
simply because the ova-provider-server pod has not been created and
is not waiting for requests. After the pod becomes ready, the provider
succeeds and the error condition is cleared, but this causes confusion
to users. Introduce a new WaitingForService condition that is shown
until the service becomes available.

Resolves: MTV-3613

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
We want to always end the staging conditions, so put it in a defer
function to ensure it gets called even when returning early from the
reconcile function (e.g. if validation fails).

Resolves: MTV-3613

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
This allows us to verify that the http server is ready to receive
requests before marking the pod as ready. It eliminates a potential
short race condition where the provider might set a connection failure
status after an ova provider is created but before the pod is ready.

Resolves: MTV-3613

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
@sonarqubecloud
Copy link

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 0% with 120 lines in your changes missing coverage. Please review.
✅ Project coverage is 8.89%. Comparing base (f1fe5d0) to head (92097c9).
⚠️ Report is 1663 commits behind head on main.

Files with missing lines Patch % Lines
pkg/controller/provider/validation.go 0.00% 106 Missing ⚠️
pkg/controller/ova/builder.go 0.00% 13 Missing ⚠️
pkg/controller/provider/controller.go 0.00% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##             main   #4496      +/-   ##
=========================================
- Coverage   15.45%   8.89%   -6.56%     
=========================================
  Files         112     468     +356     
  Lines       23377   53480   +30103     
=========================================
+ Hits         3613    4759    +1146     
- Misses      19479   48317   +28838     
- Partials      285     404     +119     
Flag Coverage Δ
unittests 8.89% <0.00%> (-6.56%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@yaacov yaacov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, nitpick: i have concerns about the "fail to get deployment" case

@mnecas mnecas merged commit ab072e7 into kubev2v:main Feb 13, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments