← Back to Pull requests

[release-4.22] OCPBUGS-140048: Propagate management-cluster provisioning failures from CreateVolume #128

Merged
dsanatar merged 9 files (452 lines) on Nov 19, 2026 13:23 UTC
View on GitHub
dsanatar dsanatar commented on Nov 11, 2026 20:42 UTC
Author

<!-- Thanks for sending a pull request! Here are some tips for you:
1. Follow the instructions for writing a release note from k8s: https://git.k8s.io/community/contributors/guide/release-notes.md
-->

What this PR does / why we need it:

Cherry-pick of kubevirt/csi-driver#383 / openshift/kubevirt-csi-driver#126 into release-4.22.

When CreateVolume creates a DataVolume on the management cluster it now polls the DV status for a configurable period (default 30s) to detect definitive provisioning failures before returning success.

Adapted for pre-refactor driver construction on release-4.22 (no config.go / WithControllerService builder).

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Release note:
<!-- Write your release note:
1. Enter your extended release note in the below block. If the PR requires additional action from users switching to the new release, include the string "action required".
2. If no release note is required, just write "NONE".
-->
``release-note
Detect failures in infra provisioning and propagate them to tenant cluster provisioning
``

Diff: 452 lines (+441 / -11) across 9 files Reviewer: awels Review duration: 11081m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.51) × (1 − Review Confidence (0.72)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.51 · 452 lines diff across 9 files
0.51
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.58 · 5 substantive comment(s)
0.58
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
71%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.366
Real PR Conversation Timeline
20 items
openshift-merge-bot[bot] openshift-merge-bot[bot] commented on Nov 11, 2026 20:42 UTC
Bot

Pipeline controller notification

This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration.

Use /test ? to list jobs and /pipeline help for commands.

coderabbitai[bot] coderabbitai[bot] commented on Nov 11, 2026 20:42 UTC
Bot

<!-- coderabbit-ai-generated:v1 -->

<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- This is an auto-generated comment: skip review by coderabbit.ai -->

[!IMPORTANT]

## Review skipped

> Auto reviews are disabled on base/target branches other than the default branch.

>

> Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

> <details>

<summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary>

<dl>

<dd>

<br>

> - Source mode: Auto

- Repository: Unavailable

- Branch: Unavailable

- File: No configuration file from this repository applied

- Commit: Unavailable

- Layers: Central YAML; Path: .coderabbit.yaml

- Review profile: CHILL

- Plan: Advanced

- Run ID: c4d872ef-18e1-4184-8144-9b97c5beebe5

> </dd>

</dl>

</details>

> You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

> Use the checkbox below for a quick retry:

- [ ] <!-- {"checkboxId":"e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> Trigger review

<!-- end of auto-generated comment: skip review by coderabbit.ai -->

openshift-ci-robot openshift-ci-robot commented on Nov 11, 2026 20:42 UTC
Contributor

@dsanatar: This pull request references Jira Issue OCPBUGS-140048, which is invalid:
- release note text must be set and not match the template OR release note type must be set to "Release Note Not Required". For more information you can reference the OpenShift Bug Process.
- expected Jira Issue OCPBUGS-140048 to depend on a bug targeting a version in 5.0.0, 5.0.z and in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but no dependents were found

Comment <code>/jira refresh</code> to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

<details>

In response to this:

><!-- Thanks for sending a pull request! Here are some tips for you:
>1. Follow the instructions for writing a release note from k8s: https://git.k8s.io/community/contributors/guide/release-notes.md
>-->

>What this PR does / why we need it:

>Cherry-pick of kubevirt/csi-driver#383 / openshift/kubevirt-csi-driver#126 into release-4.22.

>When CreateVolume creates a DataVolume on the management cluster it now polls the DV status for a configurable period (default 30s) to detect definitive provisioning failures before returning success.

>Adapted for pre-refactor driver construction on release-4.22 (no config.go / WithControllerService builder).

>Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):

>Fixes #
>Special notes for your reviewer:

>Release note:

><!-- Write your release note:
>1. Enter your extended release note in the below block. If the PR requires additional action from users switching to the new release, include the string "action required".
>2. If no release note is required, just write "NONE".
>-->
>``release-note
>Detect failures in infra provisioning and propagate them to tenant cluster provisioning
>
``
>

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.
</details>

dsanatar dsanatar commented on Nov 11, 2026 20:46 UTC
Author

/cc @awels
backport did not merge cleanly due to a refactor of the driver initialization that was introduced post 4.22. I had AI help me resolve the conflicts, so would appreciate some human eyes on this

awels awels approved these changes on Nov 12, 2026 14:07 UTC
Approved Reviewer

/approve

awels awels commented on Nov 12, 2026 14:21 UTC
Contributor

/test e2e-kubevirt-aws-csi

dsanatar dsanatar commented on Nov 12, 2026 15:15 UTC
Author

/test e2e-kubevirt-aws-csi

dsanatar dsanatar commented on Nov 12, 2026 17:28 UTC
Author

Hi @orenc1 there seems to be an issue with the aws credentials in this failing ci job. would you be able to take a look?

openshift-merge-robot openshift-merge-robot commented on Nov 13, 2026 17:04 UTC
Contributor

/jira refresh

openshift-ci-robot openshift-ci-robot commented on Nov 13, 2026 17:04 UTC
Contributor

@openshift-merge-robot: This pull request references Jira Issue OCPBUGS-140048, which is valid. The bug has been moved to the POST state.

<details><summary>7 validation(s) were run on this bug</summary>

bug is open, matching expected state (open)
bug target version (4.22.0) matches configured target version for branch (4.22.0)
bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
release note text is set and does not match the template
dependent bug Jira Issue OCPBUGS-140045 is in the state Verified, which is one of the valid states (VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA))
dependent Jira Issue OCPBUGS-140045 targets the "5.0" version, which is one of the valid target versions: 5.0.0, 5.0.z

  • bug has dependents</details>
  • <details>

    In response to this:

    >/jira refresh

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.
    </details>

    dsanatar dsanatar commented on Nov 18, 2026 20:22 UTC
    Author

    /test e2e-kubevirt-aws-csi

    awels awels commented on Nov 18, 2026 20:41 UTC
    Contributor

    /label backport-risk-assessed
    /lgtm

    openshift-ci[bot] openshift-ci[bot] commented on Nov 18, 2026 20:42 UTC
    Bot

    [APPROVALNOTIFIER] This PR is APPROVED

    This pull-request has been approved by: <a href="https://github.com/openshift/kubevirt-csi-driver/pull/128#issuecomment-6991019958" title="LGTM">awels</a>

    The full list of commands accepted by this bot can be found here.

    The pull request process is described here

    <details >
    Needs approval from an approver in each of these files:

  • ~~OWNERS~~ [awels]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    openshift-ci[bot] openshift-ci[bot] commented on Nov 18, 2026 23:26 UTC
    Bot

    @dsanatar: all tests passed!

    Full PR test history. Your PR dashboard.

    <details>

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.
    </details>
    <!-- test report -->

    orenc1 orenc1 commented on Nov 19, 2026 11:18 UTC
    Contributor

    Hi @orenc1 there seems to be an issue with the aws credentials in this failing ci job. would you be able to take a look?

    This has been fixed yesterday.
    You need to comment "/verified by @dsanatar" to get it merged

    awels awels commented on Nov 19, 2026 13:15 UTC
    Contributor

    /verified by "e2e-kubevirt-aws-csi"

    openshift-ci-robot openshift-ci-robot commented on Nov 19, 2026 13:15 UTC
    Contributor

    @awels: This PR has been marked as verified by "e2e-kubevirt-aws-csi".

    <details>

    In response to this:

    >/verified by "e2e-kubevirt-aws-csi"

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.
    </details>

    openshift-ci-robot openshift-ci-robot commented on Nov 19, 2026 13:23 UTC
    Contributor

    @dsanatar: Jira Issue Verification Checks: Jira Issue OCPBUGS-140048
    :heavy_check_mark: This pull request was pre-merge verified.
    :heavy_check_mark: All associated pull requests have merged.
    :heavy_check_mark: All associated, merged pull requests were pre-merge verified.

    Jira Issue OCPBUGS-140048 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. :clock4:

    <details>

    In response to this:

    ><!-- Thanks for sending a pull request! Here are some tips for you:
    >1. Follow the instructions for writing a release note from k8s: https://git.k8s.io/community/contributors/guide/release-notes.md
    >-->

    >What this PR does / why we need it:

    >Cherry-pick of kubevirt/csi-driver#383 / openshift/kubevirt-csi-driver#126 into release-4.22.

    >When CreateVolume creates a DataVolume on the management cluster it now polls the DV status for a configurable period (default 30s) to detect definitive provisioning failures before returning success.

    >Adapted for pre-refactor driver construction on release-4.22 (no config.go / WithControllerService builder).

    >Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):

    >Fixes #
    >Special notes for your reviewer:

    >Release note:

    ><!-- Write your release note:
    >1. Enter your extended release note in the below block. If the PR requires additional action from users switching to the new release, include the string "action required".
    >2. If no release note is required, just write "NONE".
    >-->
    >``release-note
    >Detect failures in infra provisioning and propagate them to tenant cluster provisioning
    >
    ``
    >

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.
    </details>

    openshift-merge-robot openshift-merge-robot commented on Nov 23, 2026 23:52 UTC
    Contributor

    Fix included in release 4.22.0-0.nightly-2026-11-23-123312

    Reviewers
    Assignees
    dsanatar dsanatar
    Labels
    risk: low confidence: 71.9% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 51.3% (MEDIUM) · Higher = larger blast radius
    51.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 71.9% · Lower = rushed or shallow review
    71.9%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.4% · Safe to merge
    14.4%