← Back to Pull requests

CherryPicked: [cnv-4.22] [Storage] Use Windows 2k22 with vTPM in Storage Class migration test #6294

Closed
unknown closed this pull request without merging on Nov 16, 2026 17:31 UTC
View on GitHub
unknown unknown commented on Sep 14, 2026 07:44 UTC
Author

##### What this PR does / why we need it:
This is part of a project where we use common Windows datasource for windows VMs in storage module.

Also adjusted the helper functions that create Windows VMs with bool attribute that just yields the VM and doesn't verify it if it's running if the argument is set to False manually.

##### Which issue(s) this PR fixes:
https://redhat.atlassian.net/browse/CNV-51351

##### Special notes for reviewer:
Co-Authored-By: Claude <noreply@anthropic.com>

##### jira-ticket:
https://redhat.atlassian.net/browse/CNV-94499

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

Summary by CodeRabbit

Tests
Updated Windows storage migration test setup to use Windows Server 2022 virtual machines.
Added an option to create test virtual machines without automatically starting them or waiting for Windows to boot.
Simplified test data volume setup by using a shared configuration helper.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

##### Backport additions — cnv-4.22

Backport of the original main PR: https://github.com/RedHatQE/openshift-virtualization-tests/pull/5837
Original Jira context: https://redhat.atlassian.net/browse/CNV-51351
Release module: https://redhat.atlassian.net/browse/CNV-94499
Source change: 0fcc8accd014ceabd715ff8aeb5719b6b053f43b

Existing manual-recovery notes:

This cherry-pick required resolving one merge conflict in tests/storage/storage_migration/conftest.py:

  • Root cause: cnv-4.22 uses the pre-refactor flat import style (from utilities.constants import X, Y, Z), while main (after the refactor) uses the modularized style (from utilities.constants.images import X).

  • Resolution: Kept cnv-4.22's flat import style. Consolidated imports from utilities.constants, dropped unused symbols get_http_image_url and OS_FLAVOR_WINDOWS, kept create_windows2022_vm_with_data_volume_template from tests.utils.
  • Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

    Verification status: existing CI reports tox, build-container, and DCO success. The can-be-merged check reports missing cnv-smoke/validation and verified checks, a missing tox:verify-tc-requirement-polarion:passed label, and required approvals/LGTMs. A historical bot comment reports a downstream Polarion requirement check failure. Cluster tests were not run during this backport resumption. Required review and verification remain pending.

    Diff: 308 lines (+231 / -77) across 3 files Reviewer: acinko-rh Review duration: 91307m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.68) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.68 · 308 lines diff across 3 files
    0.68
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.343
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.068
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #6294"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 68.4% (HIGH) · Higher = larger blast radius
    68.4%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 27% · Safe to merge
    27%