← Back to Pull requests

Prepare an iSCSI multipath environment for WSFC tests #6587

Open
unknown opened this pull request with 426 lines diff across 5 files
View on GitHub
unknown unknown commented on Oct 15, 2026 08:06 UTC
Author

##### What this PR does / why we need it:
Adds a reusable environment preparation test for the WSFC scenarios.
The environment includes:

  • A Fedora LIO target exporting dedicated 50 GiB and 70 GiB LUNs through two iSCSI portals.

  • Three workers with temporary storage networks, iSCSI sessions and verified multipath maps.

  • Three Windows VMs with independent root disks and the same shared SCSI LUNs.

  • A Fedora router providing connectivity for two isolated guest networks.

  • One Windows Server 2025 domain controller and two joined Windows Server 2019 members.

  • Persistent Reservations configuration and checks of actual device consumption by QEMU.

  • The preparation reuses existing image selection, storage helpers, VM wrappers, utility pods and HCO reconciliation.

    This PR covers environment preparation. WSFC cluster creation, quorum, fencing and failover scenarios remain outside its scope. The two software storage paths share the existing network underlay.
    ##### Which issue(s) this PR fixes:

    ##### Special notes for reviewer:
    Please review commits in order:
    1. b7fe9a10 — Shared Windows PowerShell/CIM helpers and related tests.
    2. 7182fb20 — iSCSI target, shared LUNs and multipath verification.
    3. 75dd947e — Worker preparation and safe rollback.
    4. ce0f8c06 — Guest networking and Fedora routing.
    5. 23fcf677 — Domain controller promotion and member join.
    6. 743112ab — Fixture orchestration and integration test.
    7. 3dcc4780 — Stabilization logging clarification.
    8. 01f7f27f — Feature unit tests and CI trigger.
    ##### jira-ticket:
    <!-- full-ticket-url needs to be provided. This would add a link to the pull request to the jira and close it when the pull request is merged
    If the task is not tracked by a Jira ticket, just write "NONE".
    -->
    https://redhat.atlassian.net/browse/CNV-83048

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

    Summary by CodeRabbit

    Tests
    Added automated validation for Windows failover-cluster environments using shared iSCSI storage, including persistent reservations, multipath connectivity, guest networking, domain readiness, and safe storage cleanup.
    Expanded Windows guest readiness and operating-system checks, including timeout and error handling.
    Added coverage for storage setup, resource cleanup, and recovery from preparation and connectivity failures.
    * Added an environment-readiness check for VM configuration, shared LUN identities, and domain roles.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 426 lines (+319 / -107) across 5 files Reviewer: ema-aka-young Review duration: 68245m
    All Vouch review confidence checks passed
    Residual risk 0.29 = Change Risk (0.52) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 426 lines diff across 5 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    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.362
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #6587"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 44.7% 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: 52.1% (MEDIUM) · Higher = larger blast radius
    52.1%
    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: 44.7% · Lower = rushed or shallow review
    44.7%
    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: 28.8% · Safe to merge
    28.8%