WIP: infra/hco: s390x hetero cluster support (s390x+arm64 workers) #6350
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
geetikakay
##### 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 clusterswithout this
--cpu-arch=s390xraises UnsupportedCPUArchitectureErroron any multiarch-topology cluster.
tests/global_config_multiarch_s390x_arm.py— topology config forheterogeneous clusters (s390x CP + s390x+arm64 compute) with full per-arch
os_matrix,data_import_cron_matrix, andauto_update_data_source_matrixfor 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).test_pytest_utils.pyerror-message match: s390x now passes theSUPPORTED_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 clustersvm_for_console_proxyhardcoded RHEL10_PREFERENCE (rhel.10, amd64 variant);on s390x/arm64 clusters this causes ErrorUnschedulable — no amd64 worker exists.
get_multiarch_cpu_arch()at fixture setup; if non-amd64, appendarch suffix (e.g.
rhel.10.s390x). Falls back to bare RHEL10_PREFERENCE onhomogeneous amd64 clusters (
get_multiarch_cpu_arch()returns None).hco: increase verify_boot_sources_reimported timeout after opt-out/re-enabletimeoutparameter toverify_boot_sources_reimported()(default TIMEOUT_10MIN — no change for all existing callers).
enable_common_boot_image_import_spec_wait_for_data_import_cronpassesTIMEOUT_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.
timeout=TIMEOUT_20MINis forwarded.infra/golden_images: fix vm_from_custom_data_import_cron arch on hetero clustersmemory_guestand no instance-type/preference;KubeVirt's webhook defaulted
spec.architectureto the CP arch (s390x), causingVMI scheduling failure on arm64 workers (architecture mismatch, machine type
s390-ccw-virtio vs virt-rhel9.x).
vm_instance_type_infer=True+vm_preference_infer=Trueso thecluster selects the workers' arch-aware preference from the DataSource — same
pattern as
test_all_datasources_support_vm_creation. Removes now-unusedImagesimport.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.pyfollows the exact same pattern asglobal_config_multiarch.py(amd64+arm64/AWS) andglobal_config_rh_it.py.The
timeoutparameter onverify_boot_sources_reimportedis fullybackward-compatible — all existing callers receive the TIMEOUT_10MIN default.
The
test_pytest_utils.pyerror-message change is a correctness fix: therejection 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 -->