← Back to Pull requests

ROSAENG-67845 | fix: warn when --availability-zones is ignored with --subnet-ids #3591

Closed
unknown closed this pull request without merging on Sep 29, 2026 20:51 UTC
View on GitHub
unknown unknown commented on Sep 28, 2026 17:36 UTC
Author

Summary


When both --subnet-ids and --availability-zones are provided on rosa create cluster, ROSA derives availability zones from the subnets and ignores the explicit AZ values for placement. The previous nonfatal E: message was easy to miss. This PR replaces it with a clear WARN so users understand --availability-zones does not select zones when using BYO VPC.

Jira


  • ROSAENG-67845
  • Type of Change


  • feat

  • fix

  • docs / style / refactor / test / chore / build / ci / perf
  • Testing


  • Updated Day1Negative e2e OCP-52692 to assert the new WARN: text when both flags are set

  • Manual check:

  •   ./rosa create cluster --availability-zones us-east-2a,us-east2b --subnet-ids subnet-abc,subnet-def ...
      W: With --subnet-ids, ROSA determines availability zones from the provided subnets; --availability-zones does not select them.
       

    Breaking Changes


    <!-- Does this PR introduce breaking changes? If yes, describe impact and migration -->
  • No breaking changes

  • Checklist


  • Commit format follows OCM-XXXXX | type: description

  • make install-hooks has been run

  • Tests added/updated where appropriate

  • Manually tested the change
  • [ROSAENG-67845]: https://redhat.atlassian.net/browse/ROSAENG-67845?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

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

    Summary by CodeRabbit

    Bug Fixes
    Cluster creation no longer rejects commands that combine subnet IDs with availability zones. For clusters using an existing VPC or supplied subnets, a warning clarifies that ROSA determines the zones from those resources; the availability-zones option does not select them. Availability-zone selection and validation remain available for clusters that do not use an existing VPC.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 252 lines (+189 / -63) across 3 files Reviewer: michaelryanmcneill Review duration: 1635m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 252 lines diff across 3 files
    0.39
    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.331
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3591"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 39% (MEDIUM) · Higher = larger blast radius
    39%
    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: 15.4% · Safe to merge
    15.4%
    Repository