agentleFS
NVIDIAKnown publisherNVIDIA/NVSentinel/skills/mongodb-migration/bitnami-to-percona/check-mongodb-migration-readiness/SKILL.md

check-mongodb-migration-readiness

Skill394 starsChanged 3 months agoApache-2.0View on GitHub

Readiness check for migrating an NVSentinel installation from the Bitnami MongoDB backend to the Percona Operator backend. Runs the preflight script, interprets the verdict table, and captures the operator decisions (data handling, quarantined nodes, GitOps) that the migration skill requires. Use this first, before any migration step.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill before migrate-mongodb-to-percona.

    line 19
  2. Distinctive:

    Run the preflight script and show the operator the full table:

    line 43
  3. Distinctive:

    DEFAULT: document IDs are preserved, node annotations and remediation resources stay valid, and in-flight fault handling resumes after the …

    line 63
  4. Distinctive:

    GitOps: ask whether ArgoCD/Flux manages the installation.

    line 74

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Check MongoDB Migration Readiness

When to use

Use this skill before migrate-mongodb-to-percona. Nothing in this skill mutates the cluster.

The procedure it gates is documented in docs/runbooks/mongodb-bitnami-to-percona-migration.md (the source of truth).

Inputs

  • NVSENTINEL_NAMESPACE (default nvsentinel)
  • NVSENTINEL_RELEASE (default nvsentinel)
  • MIGRATION_PVC_SIZE_GI (default 8): the volume size the Percona install will request. Set it to the value from the operator's planned values file so the storage check validates the real request.

Setup

export NVSENTINEL_NAMESPACE="nvsentinel"
export NVSENTINEL_RELEASE="nvsentinel"
export MIGRATION_PVC_SIZE_GI="8"

Steps

  1. Run the preflight script and show the operator the full table:

    scripts/mongodb-migration/preflight.sh
  2. Interpret the verdict:
    • Exit 2 (BLOCKED): stop. Explain each FAIL row and propose the fix, but do NOT execute mutations inside this skill (it is read-only by contract); the operator applies fixes, then re-run the preflight. Typical blockers: a failed/pending Helm release, both backends present (mixed state; see the runbook troubleshooting table), cert-manager missing, or the default StorageClass minimum above the requested volume size (OCI block volumes have a 50Gi minimum; the Percona operator wedges before replica set init when the provisioned volume is larger than requested).
    • Exit 0 with REVIEW rows: each REVIEW row is an operator decision, not yours. Do not proceed until each is acknowledged in conversation.
  3. Capture the decisions the migration skill needs:
    • Data handling: the preserve path (dump and restore) is the DEFAULT: document IDs are preserved, node annotations and remediation resources stay valid, and in-flight fault handling resumes after the restore. It requires scaling fault-quarantine, node-drainer, and fault-remediation to zero before the dump, so no references get created for events the archive will not contain; capture that as part of the plan. The clean path (no dump, all health event data lost) is the opt-out: one-time faults such as GPU XIDs are never re-detected on it, so the operator must explicitly choose it.
    • Quarantined nodes: record the list from the REVIEW row. With the clean path the operator must decide per node: remediate first, keep cordoned for manual review, or return to service.
    • GitOps: ask whether ArgoCD/Flux manages the installation. If yes, reconciliation must be suspended before the migration and the desired state in git updated before resuming (runbook steps 2, 4a and 6a).
    • Chart reference: record which chart and version the installation currently runs (from the Application spec, HelmRelease, or helm list), so the migration redeploys the SAME chart version with new values instead of silently upgrading NVSentinel.

Output

Report to the operator:

  • verdict (READY / READY with review items / BLOCKED)
  • the chosen data-handling path
  • the recorded quarantined-node list (or "none")
  • whether GitOps suspension is required
  • the values changes the install will need (backend flags, volume size, scheduling keys)
  • the chart reference and version to redeploy (CHART_REF for the migration skill)

Next skill to run

  • migrate-mongodb-to-percona (only on READY, with the decisions above captured)

References

TopicReference
Runbook (source of truth)docs/runbooks/mongodb-bitnami-to-percona-migration.md
Backend configurationdocs/configuration/mongodb-store.md
Scriptsscripts/mongodb-migration/

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.