← Back to Pull requests

system migrate: hide --migrate-db flag #30391

Closed
unknown closed this pull request without merging on Nov 30, 2026 09:02 UTC
View on GitHub
unknown unknown commented on Nov 28, 2026 12:45 UTC
Author

Fixes #30210

Database migration from BoltDB to SQLite now runs automatically on reboot, so podman system migrate --migrate-db is normally not needed. The flag can't be removed before 7.0 without breaking scripts that still pass it. This PR keeps the flag working and hides it from --help, shell completion, and the man page. It follows the same approach as the earlier hidden-flag cleanups, such as 655b8cee14 for --cpu-rt-period.

The change is in cmd/podman/system/migrate.go (MarkHidden("migrate-db") with a TODO for 7.0) and in podman-system-migrate.1.md, where the --migrate-db section is removed. Parsing and runtime behavior are unchanged.

I left the error text as it is. Without a reboot, --migrate-db is the only manual way to run the migration, so users still need to see the name when they hit the error. I checked this in an isolated root with a fake BoltDB file. On a second run, system migrate without the flag fails with the BoltDB error that points to the flag (exit 125). The same run with --migrate-db gets past init and reaches the migration step, which then fails on the fake file. Branch and main gave the same results for these runs. The first run without the flag triggers the automatic migration attempt instead of failing.

Testing:

system migrate --help no longer lists the flag. --migrate-db --help is still accepted.
Shell completion no longer suggests the flag.
hack/xref-helpmsgs-manpages passes after make docs. The first run failed only because of a stale generated manpage.
TestShellCompletionFunctions passes.
golangci-lint reports 0 issues for ./cmd/podman/system/.... I did not run it on the whole repo.
make validatepr passes with PODMANCMD=/usr/bin/podman.

The --migrate-db option of podman system migrate is now hidden from --help, shell completion, and the man page. It still works and is planned for removal in Podman 7.0.

Diff: 233 lines (+174 / -59) across 2 files Reviewer: Honny1 Review duration: 2656m
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.60) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 233 lines diff across 2 files
0.60
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%
57%
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.326
Shallow Review Depth shallow_review_depth
0.289
Sensitive Paths sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #30391"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 58.0% reviewed sensitive_module
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: 60.3% (MEDIUM) · Higher = larger blast radius
60.3%
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: 58.0% · Lower = rushed or shallow review
58.0%
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: 25.3% · Safe to merge
25.3%