← Back to Pull requests

ROSAENG-63029 - Send automated servicelog for not-ready EC2NodeClass #2850

Closed
unknown closed this pull request without merging on Aug 20, 2026 17:12 UTC
View on GitHub
unknown unknown commented on Aug 17, 2026 16:56 UTC
Author

What type of PR is this?


feature

What this PR does / why we need it?

Adds an ocm-agent managed fleet notification to automatically send a service log to customers when an OpenshiftEC2NodeClass is not ready for 5+ minutes on ROSA HCP clusters. This replaces the need for SRE manual investigation via PagerDuty/CAD — the service log is sent directly via ocm-agent-fleet on the management cluster.

Changes:

  • PrometheusRule (100-ec2nodeclass-not-ready.PrometheusRule.yaml): Fires OpenshiftEC2NodeClassNotReadyFleetNotification using the existing operator_ec2nodeclass_status_condition_current_status_seconds metric, routed to ocm-agent via send_managed_notification: "true"

  • ManagedFleetNotification (ec2nodeclass-not-ready.yaml): Generic service log covering common causes (missing subnet tags, missing security group tags, AMI unavailable, deleted instance profile, IAM role issues) with troubleshooting steps and documentation link
  • Which Jira/Github issue(s) this PR fixes?

    Fixes https://issues.redhat.com/browse/ROSAENG-63029

    Special notes for your reviewer:

  • The existing OpenshiftEC2NodeClassNotReady PD alert in RHOBS (RHOBS/configuration/resources/tenant-rules/hcp/karpenter.yaml) should be removed in a separate PR once this is deployed, to stop PD routing for this alert.

  • The service log is generic (covers all common causes) rather than differentiating between default and custom NodeClasses, since ocm-agent does not have access to inspect the CRD spec on the hosted cluster.
  • Pre-checks (if applicable):


  • Tested latest changes against a cluster

  • Included documentation changes with PR

  • If this is a new object that is not intended for the FedRAMP environment (if unsure, please reach out to team FedRAMP), please exclude it with:
  •     matchExpressions:
        - key: api.openshift.com/fedramp
          operator: NotIn
          values: ["true"]
        

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

    Summary by CodeRabbit

  • New Features

  • - Added notifications when an OpenShift EC2 node class is not ready.
    - Added a monitoring alert for node classes that remain non-ready for more than five minutes.
    - Notifications include warning severity, support guidance, resend timing, and documentation references.
    - Alerts include informational status, descriptive details, summaries, runbook information, and namespace metadata.
    - Suppressed alerts are excluded from monitoring notifications.
    - These updates improve visibility into node class readiness issues and provide guidance for troubleshooting.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 337 lines (+252 / -85) across 4 files Reviewer: reedcort Review duration: 4336m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 337 lines diff across 4 files
    0.42
    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.348
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2850"
    general weight: 0.35
    Reviewers
    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: 42.2% (MEDIUM) · Higher = larger blast radius
    42.2%
    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: 16.7% · Safe to merge
    16.7%