← Back to Pull requests

WIP: infra/hco: s390x hetero cluster support (s390x+arm64 workers) #6350

Open
unknown opened this pull request with 526 lines diff across 6 files
View on GitHub
unknown unknown commented on Sep 18, 2026 04:53 UTC
Author

##### What this PR does / why we need it:

Extends infrastructure and HCO utilities to run correctly on heterogeneous
s390x+arm64 clusters (s390x control plane + s390x and arm64 workers).
Four targeted fixes:

s390x: add multiarch support for s390x+arm64 hetero clusters

  • Adds S390X to SUPPORTED_MULTIARCH_OPTIONS (was {amd64, arm64} only);

  • without this --cpu-arch=s390x raises UnsupportedCPUArchitectureError
    on any multiarch-topology cluster.
  • Adds tests/global_config_multiarch_s390x_arm.py — topology config for

  • heterogeneous clusters (s390x CP + s390x+arm64 compute) with full per-arch
    os_matrix, data_import_cron_matrix, and auto_update_data_source_matrix
    for both S390X and ARM_64, including arch-suffixed preferences (fedora.s390x,
    rhel9.s390x, rhel10.s390x etc). Follows the same pattern as
    global_config_multiarch.py (amd64+arm64/AWS).
  • Fixes test_pytest_utils.py error-message match: s390x now passes the

  • SUPPORTED_MULTIARCH_OPTIONS check and hits 'not in cluster arch list'
    rather than 'unsupported value(s)'.

    infra/vm_console_proxy: use arch-suffixed preference on non-amd64 clusters

  • vm_for_console_proxy hardcoded RHEL10_PREFERENCE (rhel.10, amd64 variant);

  • on s390x/arm64 clusters this causes ErrorUnschedulable — no amd64 worker exists.
  • Fix: call get_multiarch_cpu_arch() at fixture setup; if non-amd64, append

  • arch suffix (e.g. rhel.10.s390x). Falls back to bare RHEL10_PREFERENCE on
    homogeneous amd64 clusters (get_multiarch_cpu_arch() returns None).

    hco: increase verify_boot_sources_reimported timeout after opt-out/re-enable

  • Adds explicit timeout parameter to verify_boot_sources_reimported()

  • (default TIMEOUT_10MIN — no change for all existing callers).
  • enable_common_boot_image_import_spec_wait_for_data_import_cron passes

  • TIMEOUT_20MIN: this is the only call-site where all DIC import jobs are
    rescheduled at once (after HCO opt-out/re-enable); CDI scheduling lag on
    hetero ODF/Ceph clusters can exceed 10 min causing false timeout teardown
    ERRORs on otherwise healthy clusters.
  • Unit tests updated to assert timeout=TIMEOUT_20MIN is forwarded.
  • infra/golden_images: fix vm_from_custom_data_import_cron arch on hetero clusters

  • Fixture created a VM with a fixed memory_guest and no instance-type/preference;

  • KubeVirt's webhook defaulted spec.architecture to the CP arch (s390x), causing
    VMI scheduling failure on arm64 workers (architecture mismatch, machine type
    s390-ccw-virtio vs virt-rhel9.x).
  • Fix: switch to vm_instance_type_infer=True + vm_preference_infer=True so the

  • cluster selects the workers' arch-aware preference from the DataSource — same
    pattern as test_all_datasources_support_vm_creation. Removes now-unused
    Images import.

    Validation: 35/35 arm64 infra tests passed, 38/38 s390x infra tests passed
    on ocp-vip1 (s390x CP + s390x+arm64 workers).

    ##### Which issue(s) this PR fixes:

    ##### Special notes for reviewer:

    global_config_multiarch_s390x_arm.py follows the exact same pattern as
    global_config_multiarch.py (amd64+arm64/AWS) and global_config_rh_it.py.
    The timeout parameter on verify_boot_sources_reimported is fully
    backward-compatible — all existing callers receive the TIMEOUT_10MIN default.
    The test_pytest_utils.py error-message change is a correctness fix: the
    rejection path changed because s390x is now a valid multiarch option.

    ##### jira-ticket:
    NONE

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

    Summary by CodeRabbit

    New Features
    Added support for heterogeneous clusters combining s390x and arm64 architectures.
    Added s390x to supported multi-architecture options.
    Updated VM configuration to select architecture-appropriate preferences for imported images and console access.

    Bug Fixes
    Extended the wait time for boot image imports on heterogeneous storage environments to reduce false timeout failures.

    Tests
    Updated validation coverage for s390x support, architecture-aware configuration, and extended import waits.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 526 lines (+394 / -132) across 6 files Reviewer: geetikakay Review duration: 105778m
    All Vouch review confidence checks passed
    Residual risk 0.46 = Change Risk (0.78) × (1 − Review Confidence (0.41)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.78 · 526 lines diff across 6 files
    0.78
    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%
    40%
    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.375
    Shallow Review Depth shallow_review_depth
    0.344
    Sensitive Paths sensitive_paths
    0.078
    Real PR Conversation Timeline
    1 comments
    "Review active on #6350"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 40.9% 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: 78% (HIGH) · Higher = larger blast radius
    78%
    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: 40.9% · Lower = rushed or shallow review
    40.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: 46.1% · Moderate risk
    46.1%