← Back to Pull requests

fix(recipes): run nvsentinel-mongodb on Ubuntu's 7.0 kernels #4013

Closed
unknown closed this pull request without merging on Nov 23, 2026 22:12 UTC
View on GitHub
unknown unknown commented on Nov 23, 2026 21:24 UTC
Author

Summary

Pins Percona Server for MongoDB 8.0.38-16 for nvsentinel-mongodb, which starts on Ubuntu's 7.0 kernels, and moves the NVSentinel Kind E2Es back to ubuntu-24.04, whose runner kernel is one of them.

Motivation / Context

MongoDB 8.0 refuses to start on kernels 6.19.0 through 7.0.13. Ubuntu's 7.0 kernels report 7.0.0- whatever upstream release they are built on, so before 8.0.37 mongod refused them all, including those built on 7.0.14 or later (SERVER-131779). On Ubuntu 24.04 with the HWE 7.0 kernel, on Ubuntu 26.04, and on GitHub's ubuntu-24.04 runners, the nvsentinel-mongodb members crash-loop with an empty log and every NVSentinel module that needs the datastore goes down. #3348 worked around it in CI by moving the MongoDB E2Es to ubuntu-22.04.

Fixes: #3349

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

  • New feature (non-breaking change that adds functionality)

  • Breaking change (fix or feature that would cause existing functionality to change)

  • Documentation update

  • Refactoring (no functional changes)

  • Build/CI/tooling
  • Component(s) Affected

  • CLI (cmd/aicr, pkg/cli)

  • API server (cmd/aicrd, pkg/server)

  • Recipe engine / data (pkg/recipe)

  • Bundler and deployers (pkg/bundler, pkg/component)

  • Collectors / snapshotter (pkg/collector, pkg/snapshotter)

  • Validator (pkg/validator)

  • Core libraries (pkg/errors, pkg/k8s)

  • Docs/examples (docs/, examples/)

  • Other: NVSentinel E2E workflows, tools/mirror-e2e, weekly image scan
  • Implementation Notes

  • The pin. 8.0.38-16@sha256:60ec6528…6d97, a multi-arch OCI index (amd64, arm64) like the old pin, in the component values, the three NVSentinel mixins that override it, the remediation render test, tools/mirror-e2e, and the weekly image scan; make bom-docs changed exactly that line of docs/user/container-images.md. The pinned mongod reads the upstream release from /proc/version_signature when uname reports an Ubuntu 7.0 kernel; both come from the host kernel, so the check works from the image's UBI base too. It is the first Percona 8.0 build above the affected range, a same-major patch with no FCV change.

  • What is still refused. Kernels 6.19.0 through 7.0.13 that are not Ubuntu builds on 7.0.14 or later stay refused by MongoDB 8.0 by design.

  • Clusters already crash-looping need one manual step. The chart's SmartUpdate strategy runs the replica set's StatefulSet as OnDelete, and the operator starts an update only when every member is ready. So applying a bundle at this pin to a cluster whose members already crash-loop changes the pod template but replaces no pod. After applying it, wait until the operator has moved the StatefulSet to the new image (kubectl -n nvsentinel get statefulset nvsentinel-mongodb-rs0 -o jsonpath='{.spec.template.spec.containers[].image}' names 8.0.38-16), because a pod deleted before that comes back on the old image. Then delete each nvsentinel-mongodb-rs0- pod that is not ready (kubectl -n nvsentinel delete pod <name>); the StatefulSet recreates it on 8.0.38-16 from its existing volume, and once every member is ready the operator rolls the rest. If NVSentinel's setup Job failed while the datastore was down, delete it and deploy again. The component catalog now says this under "Kernels 6.19 and newer", and states MongoDB 8.0.38. This belongs in the release note too.

  • Render golden. pkg/bundler/testdata/stock_render_golden.yaml is regenerated (AICR_UPDATE_GOLDEN=1) for the one leaf that renders the datastore, h100-eks-ubuntu-training-slurm+nvsentinel-slinky-drainer. Seven file hashes change: the nvsentinel-mongodb values file its chart and -post folders share (the pin), nvsentinel's values (the setup Job image), UPGRADING.md (the record summary below), and bundle-info.yaml, checksums.txt and recipe.yaml, which derive from them. Nothing else in any leaf moved.

  • Upgrade record. The psmdb-operator record's summary named the 8.0.32-14 pin as the mongod roll a bundle carries; it now names 8.0.38-16. This is an image change, not a chart pin, so no new record is due.

  • E2E runners. The ten NVSentinel E2E workflows on ubuntu-22.04 return to ubuntu-24.04 and drop their "return once the pin is 8.0.35 or newer" comments. Nine start the datastore and exercise the fix; nvsentinel-node-validation deploys none and was on 22.04 only because it was copied from a sibling, so it moves to match.
  • Testing

    make qualify
    go test ./pkg/bundler/validations/...
    make bom-docs
    

  • make qualify: passes, with the regenerated render golden.

  • The proof is this PR's CI: the nine NVSentinel E2Es that start the datastore now run on ubuntu-24.04 (kernel 7.0.0--azure, built on 7.0.14 or later) and must reach a ready PerconaServerMongoDB. Each fails closed if it does not.

  • TestRemediationImagesPinnedEverywhere and TestNVSentinelMongoDBContract tie every copy of the pin together.

  • CI runs the datastore with one member, so the member-by-member rollout of an existing three-member cluster rests on the operator's source, not a run.
  • Risk Assessment

  • Low — Isolated change, well-tested, easy to revert

  • Medium — Touches multiple components or has broader impact

  • High — Breaking change, affects critical paths, or complex rollout
  • Every recipe with an NVSentinel step rolls its datastore to a new MongoDB patch.

    Rollout notes: Healthy clusters roll one member at a time. A cluster already crash-looping on an affected kernel needs its non-ready nvsentinel-mongodb-rs0-* pods deleted once, after the StatefulSet names the new image, and a failed setup Job deleted and redeployed (see Implementation Notes).

    Checklist

  • Tests pass locally (make test with -race)

  • Linter passes (make lint)

  • I did not skip/disable tests to make CI green

  • I added/updated tests for new functionality

  • I updated docs if user-facing behavior changed

  • Changes follow existing patterns in the codebase

  • Commits are signed off and cryptographically signed (git commit -s -S) — GPG signing info
  • Diff: 650 lines (+487 / -163) across 8 files Reviewer: dims Review duration: 48m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    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.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #4013"
    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: 52% (MEDIUM) · Higher = larger blast radius
    52%
    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: 20.5% · Safe to merge
    20.5%
    Repository