local_ydb_upgrade_version
Upgrade a local YDB profile to a target image tag while preserving gRPC, monitoring, and IC ports. Preflights images, dumps data, rebuilds nodes, restores, and verifies the final image with rollback on mismatch.
Instructions
Upgrade a file-backed, volume-backed local-ydb profile to a target image tag. Use only for version upgrades on profiles without bindMountPath; before dump or destroy it inspects every one-off dynamic node and preserves its exact gRPC, monitoring, and IC ports, aborting on an incomplete definition. It then preflights source and target images, dumps, rebuilds, restores, reapplies auth when configured, recreates extra nodes, and performs final image verification. A verified mismatch leaves the profile unchanged; if final inventory is unavailable after successful rebuild phases, the response keeps command history, reports partial verification, and persists the target profile image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to execute the version upgrade plan. Omit or false for plan-only output. | |
| profile | No | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. | |
| version | Yes | Target image tag returned by local_ydb_list_versions. | |
| dumpName | No | Optional dump directory name under profile.dumpHostPath for the upgrade backup. | |
| configPath | No | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |